{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/TableBucketName"
 ],
 "definitions": {
  "EncryptionConfiguration": {
   "additionalProperties": false,
   "properties": {
    "KMSKeyArn": {
     "format": "AWS::KMS::Key.Arn",
     "type": "string"
    },
    "SSEAlgorithm": {
     "enum": [
      "AES256",
      "aws:kms"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "MetricsConfiguration": {
   "additionalProperties": false,
   "properties": {
    "Status": {
     "default": "Disabled",
     "enum": [
      "Enabled",
      "Disabled"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "ReplicationConfiguration": {
   "additionalProperties": false,
   "properties": {
    "Role": {
     "type": "string"
    },
    "Rules": {
     "items": {
      "$ref": "#/definitions/ReplicationRule"
     },
     "maxItems": 1,
     "minItems": 1,
     "type": "array"
    }
   },
   "required": [
    "Role",
    "Rules"
   ],
   "type": "object"
  },
  "ReplicationDestination": {
   "additionalProperties": false,
   "properties": {
    "DestinationTableBucketARN": {
     "type": "string"
    }
   },
   "required": [
    "DestinationTableBucketARN"
   ],
   "type": "object"
  },
  "ReplicationRule": {
   "additionalProperties": false,
   "properties": {
    "Destinations": {
     "items": {
      "$ref": "#/definitions/ReplicationDestination"
     },
     "maxItems": 5,
     "minItems": 1,
     "type": "array"
    }
   },
   "required": [
    "Destinations"
   ],
   "type": "object"
  },
  "StorageClassConfiguration": {
   "additionalProperties": false,
   "properties": {
    "StorageClass": {
     "enum": [
      "STANDARD",
      "INTELLIGENT_TIERING"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "TableBucketARN": {
   "examples": [
    "arn:aws:s3tables:us-west-2:123456789012:bucket/mytablebucket"
   ],
   "pattern": "^(arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}:bucket/[a-z0-9_-]{3,63})$",
   "type": "string"
  },
  "TableBucketName": {
   "maxLength": 63,
   "minLength": 3,
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "UnreferencedFileRemoval": {
   "additionalProperties": false,
   "properties": {
    "NoncurrentDays": {
     "minimum": 1,
     "type": "integer"
    },
    "Status": {
     "enum": [
      "Enabled",
      "Disabled"
     ],
     "type": "string"
    },
    "UnreferencedDays": {
     "minimum": 1,
     "type": "integer"
    }
   },
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/TableBucketARN"
 ],
 "properties": {
  "EncryptionConfiguration": {
   "$ref": "#/definitions/EncryptionConfiguration"
  },
  "MetricsConfiguration": {
   "$ref": "#/definitions/MetricsConfiguration"
  },
  "ReplicationConfiguration": {
   "$ref": "#/definitions/ReplicationConfiguration"
  },
  "StorageClassConfiguration": {
   "$ref": "#/definitions/StorageClassConfiguration"
  },
  "TableBucketARN": {
   "$ref": "#/definitions/TableBucketARN"
  },
  "TableBucketName": {
   "$ref": "#/definitions/TableBucketName"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": true
  },
  "UnreferencedFileRemoval": {
   "$ref": "#/definitions/UnreferencedFileRemoval"
  }
 },
 "readOnlyProperties": [
  "/properties/TableBucketARN"
 ],
 "required": [
  "TableBucketName"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::S3Tables::TableBucket"
}
