Amazon Mainframe Modernization · JSON Structure

Amazon Mainframe Modernization Primary Key Structure

The primary key for a KSDS data set.

Type: object Properties: 3 Required: 2
COBOLMainframeMigrationModernizationBatch Processing

PrimaryKey is a JSON Structure definition published by Amazon Mainframe Modernization, describing 3 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

length name offset

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-mainframe-modernization/refs/heads/main/json-structure/amazon-mainframe-modernization-primary-key-structure.json",
  "name": "PrimaryKey",
  "description": "The primary key for a KSDS data set.",
  "type": "object",
  "properties": {
    "length": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Integer"
        },
        {
          "description": "A strictly positive integer value representing the length of the primary key. "
        }
      ]
    },
    "name": {
      "allOf": [
        {
          "$ref": "#/components/schemas/String"
        },
        {
          "description": "A name for the Primary Key."
        }
      ]
    },
    "offset": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Integer"
        },
        {
          "description": "A positive integer value representing the offset to mark the start of the primary key in the record byte array."
        }
      ]
    }
  },
  "required": [
    "length",
    "offset"
  ]
}