{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-dynamodb-globaltable.json",
  "title": "AWSDynamoDBGlobalTableProperties",
  "description": "Version: None. Resource Type definition for AWS::DynamoDB::GlobalTable. 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-globaltable.json",
    "sourceSha256": "7acff22e1c46c3a0b16b383812cda4c86c3ea4f7615f50b9adf73222ad2065ac"
  },
  "type": "object",
  "properties": {
    "AttributeDefinitions": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/AttributeDefinition"
      },
      "minItems": 1
    },
    "BillingMode": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "GlobalSecondaryIndexes": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/GlobalSecondaryIndex"
      }
    },
    "KeySchema": {
      "type": "array",
      "uniqueItems": true,
      "items": {
        "$ref": "#/$defs/KeySchema"
      },
      "minItems": 1,
      "maxItems": 2
    },
    "LocalSecondaryIndexes": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/LocalSecondaryIndex"
      }
    },
    "WriteProvisionedThroughputSettings": {
      "$ref": "#/$defs/WriteProvisionedThroughputSettings"
    },
    "Replicas": {
      "type": "array",
      "uniqueItems": true,
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/ReplicaSpecification"
      },
      "minItems": 1
    },
    "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"
        }
      ]
    },
    "TimeToLiveSpecification": {
      "$ref": "#/$defs/TimeToLiveSpecification"
    }
  },
  "typeName": "AWS::DynamoDB::GlobalTable",
  "additionalIdentifiers": [
    [
      "/properties/Arn"
    ],
    [
      "/properties/StreamArn"
    ]
  ],
  "$defs": {
    "StreamSpecification": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableStreamSpecificationDefinition",
      "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
    },
    "KinesisStreamSpecification": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableKinesisStreamSpecificationDefinition",
      "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
    },
    "KeySchema": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableKeySchemaDefinition",
      "properties": {
        "AttributeName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$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": "AWSDynamoDBGlobalTablePointInTimeRecoverySpecificationDefinition",
      "properties": {
        "PointInTimeRecoveryEnabled": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    },
    "ReplicaSpecification": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableReplicaSpecificationDefinition",
      "properties": {
        "Region": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "GlobalSecondaryIndexes": {
          "type": "array",
          "uniqueItems": true,
          "insertionOrder": false,
          "items": {
            "$ref": "#/$defs/ReplicaGlobalSecondaryIndexSpecification"
          }
        },
        "ContributorInsightsSpecification": {
          "$ref": "#/$defs/ContributorInsightsSpecification"
        },
        "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"
            }
          ]
        },
        "DeletionProtectionEnabled": {
          "type": "boolean"
        },
        "SSESpecification": {
          "$ref": "#/$defs/ReplicaSSESpecification"
        },
        "Tags": {
          "type": "array",
          "insertionOrder": false,
          "uniqueItems": true,
          "items": {
            "$ref": "#/$defs/Tag"
          }
        },
        "ReadProvisionedThroughputSettings": {
          "$ref": "#/$defs/ReadProvisionedThroughputSettings"
        },
        "KinesisStreamSpecification": {
          "$ref": "#/$defs/KinesisStreamSpecification"
        }
      },
      "required": [
        "Region"
      ],
      "additionalProperties": false
    },
    "TimeToLiveSpecification": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableTimeToLiveSpecificationDefinition",
      "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": "AWSDynamoDBGlobalTableLocalSecondaryIndexDefinition",
      "properties": {
        "IndexName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 3,
              "maxLength": 255
            },
            {
              "$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"
          },
          "maxItems": 2
        },
        "Projection": {
          "$ref": "#/$defs/Projection"
        }
      },
      "required": [
        "IndexName",
        "Projection",
        "KeySchema"
      ],
      "additionalProperties": false
    },
    "GlobalSecondaryIndex": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableGlobalSecondaryIndexDefinition",
      "properties": {
        "IndexName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 3,
              "maxLength": 255
            },
            {
              "$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"
          },
          "minItems": 1,
          "maxItems": 2
        },
        "Projection": {
          "$ref": "#/$defs/Projection"
        },
        "WriteProvisionedThroughputSettings": {
          "$ref": "#/$defs/WriteProvisionedThroughputSettings"
        }
      },
      "required": [
        "IndexName",
        "Projection",
        "KeySchema"
      ],
      "additionalProperties": false
    },
    "SSESpecification": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableSSESpecificationDefinition",
      "properties": {
        "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
    },
    "ReplicaSSESpecification": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableReplicaSSESpecificationDefinition",
      "properties": {
        "KMSMasterKeyId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "KMSMasterKeyId"
      ],
      "additionalProperties": false
    },
    "AttributeDefinition": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableAttributeDefinition",
      "properties": {
        "AttributeName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            {
              "$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
    },
    "Tag": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableTagDefinition",
      "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": "AWSDynamoDBGlobalTableProjectionDefinition",
      "properties": {
        "NonKeyAttributes": {
          "type": "array",
          "uniqueItems": true,
          "insertionOrder": false,
          "items": {
            "type": "string"
          },
          "maxItems": 20
        },
        "ProjectionType": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "ReplicaGlobalSecondaryIndexSpecification": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableReplicaGlobalSecondaryIndexSpecificationDefinition",
      "properties": {
        "IndexName": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 3,
              "maxLength": 255
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "ContributorInsightsSpecification": {
          "$ref": "#/$defs/ContributorInsightsSpecification"
        },
        "ReadProvisionedThroughputSettings": {
          "$ref": "#/$defs/ReadProvisionedThroughputSettings"
        }
      },
      "required": [
        "IndexName"
      ],
      "additionalProperties": false
    },
    "ContributorInsightsSpecification": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableContributorInsightsSpecificationDefinition",
      "properties": {
        "Enabled": {
          "type": "boolean"
        }
      },
      "required": [
        "Enabled"
      ],
      "additionalProperties": false
    },
    "ReadProvisionedThroughputSettings": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableReadProvisionedThroughputSettingsDefinition",
      "properties": {
        "ReadCapacityUnits": {
          "type": "integer",
          "minimum": 1
        },
        "ReadCapacityAutoScalingSettings": {
          "$ref": "#/$defs/CapacityAutoScalingSettings"
        }
      },
      "additionalProperties": false
    },
    "WriteProvisionedThroughputSettings": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableWriteProvisionedThroughputSettingsDefinition",
      "properties": {
        "WriteCapacityAutoScalingSettings": {
          "$ref": "#/$defs/CapacityAutoScalingSettings"
        }
      },
      "additionalProperties": false
    },
    "CapacityAutoScalingSettings": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableCapacityAutoScalingSettingsDefinition",
      "properties": {
        "MinCapacity": {
          "type": "integer",
          "minimum": 1
        },
        "MaxCapacity": {
          "type": "integer",
          "minimum": 1
        },
        "SeedCapacity": {
          "type": "integer",
          "minimum": 1
        },
        "TargetTrackingScalingPolicyConfiguration": {
          "$ref": "#/$defs/TargetTrackingScalingPolicyConfiguration"
        }
      },
      "required": [
        "MinCapacity",
        "MaxCapacity",
        "TargetTrackingScalingPolicyConfiguration"
      ],
      "additionalProperties": false
    },
    "TargetTrackingScalingPolicyConfiguration": {
      "type": "object",
      "title": "AWSDynamoDBGlobalTableTargetTrackingScalingPolicyConfigurationDefinition",
      "properties": {
        "DisableScaleIn": {
          "type": "boolean"
        },
        "ScaleInCooldown": {
          "type": "integer",
          "minimum": 0
        },
        "ScaleOutCooldown": {
          "type": "integer",
          "minimum": 0
        },
        "TargetValue": {
          "type": "number",
          "format": "double"
        }
      },
      "required": [
        "TargetValue"
      ],
      "additionalProperties": false
    }
  },
  "primaryIdentifier": [
    "/properties/TableName"
  ],
  "additionalProperties": false,
  "required": [
    "KeySchema",
    "AttributeDefinitions",
    "Replicas"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/StreamArn",
    "/properties/TableId"
  ],
  "createOnlyProperties": [
    "/properties/LocalSecondaryIndexes",
    "/properties/TableName",
    "/properties/KeySchema"
  ]
}
