{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-dynamodb-table.json",
  "title": "AWSDynamoDBTableProperties",
  "description": "Version: None. Resource Type definition for AWS::DynamoDB::Table. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-dynamodb-table.json",
    "sourceSha256": "39839f7bacd6787ada250fd31d69c0ed691763d56f83b3f335650389d9f9a80d"
  },
  "type": "object",
  "properties": {
    "AttributeDefinitions": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/AttributeDefinition"
      }
    },
    "BillingMode": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "DeletionProtectionEnabled": {
      "type": "boolean"
    },
    "GlobalSecondaryIndexes": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/GlobalSecondaryIndex"
      }
    },
    "KeySchema": {
      "oneOf": [
        {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/KeySchema"
          }
        },
        {
          "type": "object"
        }
      ]
    },
    "LocalSecondaryIndexes": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/LocalSecondaryIndex"
      }
    },
    "PointInTimeRecoverySpecification": {
      "$ref": "#/$defs/PointInTimeRecoverySpecification"
    },
    "TableClass": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "ProvisionedThroughput": {
      "$ref": "#/$defs/ProvisionedThroughput"
    },
    "SSESpecification": {
      "$ref": "#/$defs/SSESpecification"
    },
    "StreamSpecification": {
      "$ref": "#/$defs/StreamSpecification"
    },
    "TableName": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Tags": {
      "type": "array",
      "uniqueItems": false,
      "items": {
        "$ref": "#/$defs/Tag"
      }
    },
    "TimeToLiveSpecification": {
      "$ref": "#/$defs/TimeToLiveSpecification"
    },
    "ContributorInsightsSpecification": {
      "$ref": "#/$defs/ContributorInsightsSpecification"
    },
    "KinesisStreamSpecification": {
      "$ref": "#/$defs/KinesisStreamSpecification"
    },
    "ImportSourceSpecification": {
      "$ref": "#/$defs/ImportSourceSpecification"
    }
  },
  "typeName": "AWS::DynamoDB::Table",
  "writeOnlyProperties": [
    "/properties/ImportSourceSpecification"
  ],
  "$defs": {
    "StreamSpecification": {
      "type": "object",
      "title": "AWSDynamoDBTableStreamSpecificationDefinition",
      "properties": {
        "StreamViewType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "StreamViewType"
      ],
      "additionalProperties": false
    },
    "DeprecatedKeySchema": {
      "type": "object",
      "title": "AWSDynamoDBTableDeprecatedKeySchemaDefinition",
      "properties": {
        "HashKeyElement": {
          "$ref": "#/$defs/DeprecatedHashKeyElement"
        }
      },
      "required": [
        "HashKeyElement"
      ],
      "additionalProperties": false
    },
    "DeprecatedHashKeyElement": {
      "type": "object",
      "title": "AWSDynamoDBTableDeprecatedHashKeyElementDefinition",
      "properties": {
        "AttributeType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AttributeName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AttributeType",
        "AttributeName"
      ],
      "additionalProperties": false
    },
    "KeySchema": {
      "type": "object",
      "title": "AWSDynamoDBTableKeySchemaDefinition",
      "properties": {
        "AttributeName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "KeyType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "KeyType",
        "AttributeName"
      ],
      "additionalProperties": false
    },
    "PointInTimeRecoverySpecification": {
      "type": "object",
      "title": "AWSDynamoDBTablePointInTimeRecoverySpecificationDefinition",
      "properties": {
        "PointInTimeRecoveryEnabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "KinesisStreamSpecification": {
      "type": "object",
      "title": "AWSDynamoDBTableKinesisStreamSpecificationDefinition",
      "properties": {
        "StreamArn": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "StreamArn"
      ],
      "additionalProperties": false
    },
    "TimeToLiveSpecification": {
      "type": "object",
      "title": "AWSDynamoDBTableTimeToLiveSpecificationDefinition",
      "properties": {
        "AttributeName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "Enabled"
      ],
      "additionalProperties": false
    },
    "LocalSecondaryIndex": {
      "type": "object",
      "title": "AWSDynamoDBTableLocalSecondaryIndexDefinition",
      "properties": {
        "IndexName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "KeySchema": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/KeySchema"
          }
        },
        "Projection": {
          "$ref": "#/$defs/Projection"
        }
      },
      "required": [
        "IndexName",
        "Projection",
        "KeySchema"
      ],
      "additionalProperties": false
    },
    "GlobalSecondaryIndex": {
      "type": "object",
      "title": "AWSDynamoDBTableGlobalSecondaryIndexDefinition",
      "properties": {
        "IndexName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "KeySchema": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/KeySchema"
          }
        },
        "Projection": {
          "$ref": "#/$defs/Projection"
        },
        "ProvisionedThroughput": {
          "$ref": "#/$defs/ProvisionedThroughput"
        },
        "ContributorInsightsSpecification": {
          "$ref": "#/$defs/ContributorInsightsSpecification"
        }
      },
      "required": [
        "IndexName",
        "Projection",
        "KeySchema"
      ],
      "additionalProperties": false
    },
    "SSESpecification": {
      "type": "object",
      "title": "AWSDynamoDBTableSSESpecificationDefinition",
      "properties": {
        "KMSMasterKeyId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "SSEEnabled": {
          "type": "boolean"
        },
        "SSEType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "SSEEnabled"
      ],
      "additionalProperties": false
    },
    "AttributeDefinition": {
      "type": "object",
      "title": "AWSDynamoDBTableAttributeDefinition",
      "properties": {
        "AttributeName": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "AttributeType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "AttributeName",
        "AttributeType"
      ],
      "additionalProperties": false
    },
    "ProvisionedThroughput": {
      "type": "object",
      "title": "AWSDynamoDBTableProvisionedThroughputDefinition",
      "properties": {
        "ReadCapacityUnits": {
          "type": "integer"
        },
        "WriteCapacityUnits": {
          "type": "integer"
        }
      },
      "required": [
        "WriteCapacityUnits",
        "ReadCapacityUnits"
      ],
      "additionalProperties": false
    },
    "Tag": {
      "type": "object",
      "title": "AWSDynamoDBTableTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "Projection": {
      "type": "object",
      "title": "AWSDynamoDBTableProjectionDefinition",
      "properties": {
        "NonKeyAttributes": {
          "type": "array",
          "uniqueItems": false,
          "items": {
            "type": "string"
          }
        },
        "ProjectionType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "ContributorInsightsSpecification": {
      "type": "object",
      "title": "AWSDynamoDBTableContributorInsightsSpecificationDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "Enabled"
      ],
      "additionalProperties": false
    },
    "ImportSourceSpecification": {
      "type": "object",
      "title": "AWSDynamoDBTableImportSourceSpecificationDefinition",
      "properties": {
        "S3BucketSource": {
          "$ref": "#/$defs/S3BucketSource"
        },
        "InputFormat": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "InputFormatOptions": {
          "$ref": "#/$defs/InputFormatOptions"
        },
        "InputCompressionType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "S3BucketSource",
        "InputFormat"
      ],
      "additionalProperties": false
    },
    "S3BucketSource": {
      "type": "object",
      "title": "AWSDynamoDBTableS3BucketSourceDefinition",
      "properties": {
        "S3BucketOwner": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "S3Bucket": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "S3KeyPrefix": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "S3Bucket"
      ],
      "additionalProperties": false
    },
    "InputFormatOptions": {
      "type": "object",
      "title": "AWSDynamoDBTableInputFormatOptionsDefinition",
      "properties": {
        "Csv": {
          "$ref": "#/$defs/Csv"
        }
      },
      "additionalProperties": false
    },
    "Csv": {
      "type": "object",
      "title": "AWSDynamoDBTableCsvDefinition",
      "properties": {
        "HeaderList": {
          "type": "array",
          "uniqueItems": true,
          "items": {
            "type": "string"
          }
        },
        "Delimiter": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/TableName"
  ],
  "propertyTransform": {
    "/properties/SSESpecification/KMSMasterKeyId": "$join([\"arn:(aws)[-]{0,1}[a-z]{0,3}[-]{0,1}[a-z]{0,3}:kms:[a-z]{2}[-]{1}[a-z]{3,10}[-]{0,1}[a-z]{0,4}[-]{1}[1-4]{1}:[0-9]{12}[:]{1}key\\/\", SSESpecification.KMSMasterKeyId])"
  },
  "additionalProperties": false,
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "KeySchema"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/StreamArn"
  ],
  "createOnlyProperties": [
    "/properties/TableName",
    "/properties/ImportSourceSpecification"
  ]
}
