{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-dynamodb/json-schema/amazon-dynamodb-import-table-input-schema.json",
  "title": "ImportTableInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-dynamodb-exports-imports-api-openapi.yml#/components/schemas/ImportTableInput",
  "type": "object",
  "properties": {
    "ClientToken": {
      "type": "string",
      "description": "Providing a ClientToken makes the call to ImportTableInput idempotent, meaning that multiple identical calls have the same effect as one single call. A client token is valid for 8 hours after the first request that uses it is completed. After 8 hours, any request with the same client token is treated as a new request. Do not resubmit the same request with the same client token for more than 8 hours, or the result might not be idempotent. If you submit a request with the same client token but a change in other parameters within the 8-hour idempotency window, DynamoDB returns an IdempotentParame"
    },
    "S3BucketSource": {
      "$ref": "#/$defs/S3BucketSource"
    },
    "InputFormat": {
      "type": "string",
      "enum": [
        "DYNAMODB_JSON",
        "ION",
        "CSV"
      ],
      "description": "The format of the source data. Valid values for ImportFormat are CSV, DYNAMODB_JSON or ION."
    },
    "InputFormatOptions": {
      "$ref": "#/$defs/InputFormatOptions"
    },
    "InputCompressionType": {
      "type": "string",
      "enum": [
        "GZIP",
        "ZSTD",
        "NONE"
      ],
      "description": "Type of compression to be used on the input coming from the imported table."
    },
    "TableCreationParameters": {
      "$ref": "#/$defs/TableCreationParameters"
    }
  },
  "required": [
    "S3BucketSource",
    "InputFormat",
    "TableCreationParameters"
  ],
  "$defs": {
    "AttributeDefinition": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "description": "A name for the attribute."
        },
        "AttributeType": {
          "type": "string",
          "enum": [
            "S",
            "N",
            "B"
          ],
          "description": "The data type for the attribute, where: S - the attribute is of type String N - the attribute is of type Number B - the attribute is of type Binary"
        }
      },
      "required": [
        "AttributeName",
        "AttributeType"
      ]
    },
    "CsvOptions": {
      "type": "object",
      "properties": {
        "Delimiter": {
          "type": "string",
          "description": "The delimiter used for separating items in the CSV file being imported."
        },
        "HeaderList": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header."
        }
      }
    },
    "GlobalSecondaryIndex": {
      "type": "object",
      "properties": {
        "IndexName": {
          "type": "string",
          "description": "The name of the global secondary index. The name must be unique among all other indexes on this table."
        },
        "KeySchema": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KeySchemaElement"
          },
          "description": "The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted or"
        },
        "Projection": {
          "$ref": "#/$defs/Projection"
        },
        "ProvisionedThroughput": {
          "$ref": "#/$defs/ProvisionedThroughput"
        },
        "OnDemandThroughput": {
          "$ref": "#/$defs/OnDemandThroughput"
        },
        "WarmThroughput": {
          "$ref": "#/$defs/WarmThroughput"
        }
      },
      "required": [
        "IndexName",
        "KeySchema",
        "Projection"
      ]
    },
    "InputFormatOptions": {
      "type": "object",
      "properties": {
        "Csv": {
          "$ref": "#/$defs/CsvOptions"
        }
      }
    },
    "KeySchemaElement": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "description": "The name of a key attribute."
        },
        "KeyType": {
          "type": "string",
          "enum": [
            "HASH",
            "RANGE"
          ],
          "description": "The role that this key attribute will assume: HASH - partition key RANGE - sort key The partition key of an item is also known as its hash attribute. The term \"hash attribute\" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values. The sort key of an item is also known as its range attribute. The term \"range attribute\" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value."
        }
      },
      "required": [
        "AttributeName",
        "KeyType"
      ]
    },
    "OnDemandThroughput": {
      "type": "object",
      "properties": {
        "MaxReadRequestUnits": {
          "type": "integer",
          "description": "Maximum number of read request units for the specified table. To specify a maximum OnDemandThroughput on your table, set the value of MaxReadRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxReadRequestUnits to -1."
        },
        "MaxWriteRequestUnits": {
          "type": "integer",
          "description": "Maximum number of write request units for the specified table. To specify a maximum OnDemandThroughput on your table, set the value of MaxWriteRequestUnits as greater than or equal to 1. To remove the maximum OnDemandThroughput that is currently set on your table, set the value of MaxWriteRequestUnits to -1."
        }
      }
    },
    "Projection": {
      "type": "object",
      "properties": {
        "ProjectionType": {
          "type": "string",
          "enum": [
            "ALL",
            "KEYS_ONLY",
            "INCLUDE"
          ],
          "description": "The set of attributes that are projected into the index: KEYS_ONLY - Only the index and primary keys are projected into the index. INCLUDE - In addition to the attributes described in KEYS_ONLY, the secondary index will include other non-key attributes that you specify. ALL - All of the table attributes are projected into the index. When using the DynamoDB console, ALL is selected by default."
        },
        "NonKeyAttributes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the non-key attribute names which will be projected into the index. For global and local secondary indexes, the total count of NonKeyAttributes summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total. This limit only applies when you specify the ProjectionType of INCLUDE. You still can specify the ProjectionType of ALL to project all attributes from the source table, even if the table has more than 100 attributes."
        }
      }
    },
    "ProvisionedThroughput": {
      "type": "object",
      "properties": {
        "ReadCapacityUnits": {
          "type": "integer",
          "description": "The maximum number of strongly consistent reads consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide. If read/write capacity mode is PAY_PER_REQUEST the value is set to 0."
        },
        "WriteCapacityUnits": {
          "type": "integer",
          "description": "The maximum number of writes consumed per second before DynamoDB returns a ThrottlingException. For more information, see Specifying Read and Write Requirements in the Amazon DynamoDB Developer Guide. If read/write capacity mode is PAY_PER_REQUEST the value is set to 0."
        }
      },
      "required": [
        "ReadCapacityUnits",
        "WriteCapacityUnits"
      ]
    },
    "S3BucketSource": {
      "type": "object",
      "properties": {
        "S3BucketOwner": {
          "type": "string",
          "description": "The account number of the S3 bucket that is being imported from. If the bucket is owned by the requester this is optional."
        },
        "S3Bucket": {
          "type": "string",
          "description": "The S3 bucket that is being imported from."
        },
        "S3KeyPrefix": {
          "type": "string",
          "description": "The key prefix shared by all S3 Objects that are being imported."
        }
      },
      "required": [
        "S3Bucket"
      ]
    },
    "SSESpecification": {
      "type": "object",
      "properties": {
        "Enabled": {
          "type": "boolean",
          "description": "Indicates whether server-side encryption is done using an Amazon Web Services managed key or an Amazon Web Services owned key. If enabled (true), server-side encryption type is set to KMS and an Amazon Web Services managed key is used (KMS charges apply). If disabled (false) or not specified, server-side encryption is set to Amazon Web Services owned key."
        },
        "SSEType": {
          "type": "string",
          "enum": [
            "AES256",
            "KMS"
          ],
          "description": "Server-side encryption type. The only supported value is: KMS - Server-side encryption that uses Key Management Service. The key is stored in your account and is managed by KMS (KMS charges apply)."
        },
        "KMSMasterKeyId": {
          "type": "string",
          "description": "The KMS key that should be used for the KMS encryption. To specify a key, use its key ID, Amazon Resource Name (ARN), alias name, or alias ARN. Note that you should only provide this parameter if the key is different from the default DynamoDB key alias/aws/dynamodb."
        }
      }
    },
    "SearchSchemaElement": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "description": "The name of the attribute."
        },
        "SearchSchemaElementType": {
          "type": "string",
          "enum": [
            "HASH",
            "INLINE_FILTER"
          ],
          "description": "The role of the attribute in the search schema. Valid values: HASH - A partition key that partitions the vector index for independent scaling. When specified, you must provide this attribute's value in the SearchConditionExpression. INLINE_FILTER - An attribute projected into the vector index for filtering at the storage layer during search. Inline filters are optional in the SearchConditionExpression."
        }
      },
      "required": [
        "AttributeName",
        "SearchSchemaElementType"
      ]
    },
    "TableCreationParameters": {
      "type": "object",
      "properties": {
        "TableName": {
          "type": "string",
          "description": "The name of the table created as part of the import operation."
        },
        "AttributeDefinitions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AttributeDefinition"
          },
          "description": "The attributes of the table created as part of the import operation."
        },
        "KeySchema": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/KeySchemaElement"
          },
          "description": "The primary key and option sort key of the table created as part of the import operation."
        },
        "BillingMode": {
          "type": "string",
          "enum": [
            "PROVISIONED",
            "PAY_PER_REQUEST"
          ],
          "description": "The billing mode for provisioning the table created as part of the import operation."
        },
        "ProvisionedThroughput": {
          "$ref": "#/$defs/ProvisionedThroughput"
        },
        "OnDemandThroughput": {
          "$ref": "#/$defs/OnDemandThroughput"
        },
        "SSESpecification": {
          "$ref": "#/$defs/SSESpecification"
        },
        "GlobalSecondaryIndexes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GlobalSecondaryIndex"
          },
          "description": "The Global Secondary Indexes (GSI) of the table to be created as part of the import operation."
        },
        "VectorIndexes": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/VectorIndex"
          },
          "description": "The vector indexes of the table to be created as part of the import operation."
        }
      },
      "required": [
        "TableName",
        "AttributeDefinitions",
        "KeySchema"
      ]
    },
    "VectorAttributeDefinition": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "description": "The name of the vector attribute."
        }
      },
      "required": [
        "AttributeName"
      ]
    },
    "VectorIndex": {
      "type": "object",
      "properties": {
        "IndexName": {
          "type": "string",
          "description": "The name of the vector index."
        },
        "VectorAttribute": {
          "$ref": "#/$defs/VectorAttributeDefinition"
        },
        "SearchSchema": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SearchSchemaElement"
          },
          "description": "The search schema that defines partition key and inline filter attributes for the vector index."
        },
        "Projection": {
          "$ref": "#/$defs/Projection"
        },
        "Dimensions": {
          "type": "integer",
          "description": "The number of dimensions in each vector."
        },
        "DistanceFunction": {
          "type": "string",
          "enum": [
            "COSINE",
            "DOT_PRODUCT",
            "EUCLIDEAN"
          ],
          "description": "The distance function used to calculate similarity between vectors. Valid values: COSINE, EUCLIDEAN, DOT_PRODUCT."
        }
      },
      "required": [
        "IndexName",
        "VectorAttribute",
        "Projection",
        "Dimensions",
        "DistanceFunction"
      ]
    },
    "WarmThroughput": {
      "type": "object",
      "properties": {
        "ReadUnitsPerSecond": {
          "type": "integer",
          "description": "Represents the number of read operations your base table can instantaneously support."
        },
        "WriteUnitsPerSecond": {
          "type": "integer",
          "description": "Represents the number of write operations your base table can instantaneously support."
        }
      }
    }
  }
}