{
 "additionalIdentifiers": [
  [
   "/properties/IndexName",
   "/properties/VectorBucketName"
  ]
 ],
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/DataType",
  "/properties/Dimension",
  "/properties/DistanceMetric",
  "/properties/EncryptionConfiguration",
  "/properties/IndexName",
  "/properties/MetadataConfiguration",
  "/properties/VectorBucketArn",
  "/properties/VectorBucketName"
 ],
 "definitions": {
  "CreationTime": {
   "format": "date-time",
   "type": "string"
  },
  "DataType": {
   "enum": [
    "float32"
   ],
   "type": "string"
  },
  "Dimension": {
   "maximum": 4096,
   "minimum": 1,
   "type": "integer"
  },
  "DistanceMetric": {
   "enum": [
    "cosine",
    "euclidean"
   ],
   "type": "string"
  },
  "EncryptionConfiguration": {
   "additionalProperties": false,
   "properties": {
    "KmsKeyArn": {
     "format": "AWS::KMS::Key.Arn",
     "maxLength": 2048,
     "minLength": 1,
     "pattern": "^(arn:aws[-a-z0-9]*:kms:[-a-z0-9]*:[0-9]{12}:key/.+)$",
     "type": "string"
    },
    "SseType": {
     "enum": [
      "AES256",
      "aws:kms"
     ],
     "type": "string"
    }
   },
   "type": "object"
  },
  "IndexArn": {
   "examples": [
    "arn:aws:s3vectors:us-east-1:123456789012:bucket/myvectorbucket/index/myindex"
   ],
   "type": "string"
  },
  "IndexName": {
   "maxLength": 63,
   "minLength": 3,
   "type": "string"
  },
  "MetadataConfiguration": {
   "additionalProperties": false,
   "properties": {
    "NonFilterableMetadataKeys": {
     "insertionOrder": false,
     "items": {
      "maxLength": 63,
      "minLength": 1,
      "type": "string"
     },
     "maxItems": 10,
     "minItems": 1,
     "type": "array",
     "uniqueItems": true
    }
   },
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "VectorBucketArn": {
   "examples": [
    "arn:aws:s3vectors:us-east-1:123456789012:bucket/myvectorbucket"
   ],
   "pattern": "^arn:aws[-a-z0-9]*:s3vectors:[a-z0-9-]+:[0-9]{12}:bucket/[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]$",
   "type": "string"
  },
  "VectorBucketName": {
   "maxLength": 63,
   "minLength": 3,
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/IndexArn"
 ],
 "properties": {
  "CreationTime": {
   "$ref": "#/definitions/CreationTime"
  },
  "DataType": {
   "$ref": "#/definitions/DataType"
  },
  "Dimension": {
   "$ref": "#/definitions/Dimension"
  },
  "DistanceMetric": {
   "$ref": "#/definitions/DistanceMetric"
  },
  "EncryptionConfiguration": {
   "$ref": "#/definitions/EncryptionConfiguration"
  },
  "IndexArn": {
   "$ref": "#/definitions/IndexArn"
  },
  "IndexName": {
   "$ref": "#/definitions/IndexName"
  },
  "MetadataConfiguration": {
   "$ref": "#/definitions/MetadataConfiguration"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": true
  },
  "VectorBucketArn": {
   "$ref": "#/definitions/VectorBucketArn"
  },
  "VectorBucketName": {
   "$ref": "#/definitions/VectorBucketName"
  }
 },
 "readOnlyProperties": [
  "/properties/CreationTime",
  "/properties/IndexArn"
 ],
 "required": [
  "DataType",
  "Dimension",
  "DistanceMetric"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::S3Vectors::Index"
}
