{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/DataSource",
  "/properties/IndexName"
 ],
 "definitions": {
  "DataSourceConfiguration": {
   "additionalProperties": false,
   "properties": {
    "IntendedUse": {
     "$ref": "#/definitions/IntendedUse"
    }
   },
   "type": "object"
  },
  "IntendedUse": {
   "enum": [
    "SingleUse",
    "Storage"
   ],
   "type": "string"
  },
  "PricingPlan": {
   "enum": [
    "RequestBasedUsage"
   ],
   "type": "string"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^[a-zA-Z+-=._:/]+$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^[A-Za-z0-9 _=@:.+-/]*$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "TagMap": {
   "additionalProperties": false,
   "maxProperties": 50,
   "patternProperties": {
    "^([\\p{L}\\p{Z}\\p{N}_.,:/=+\\-@]*)$": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^([\\p{L}\\p{Z}\\p{N}_.,:/=+\\-@]*)$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "iso8601UTC": {
   "pattern": "^([0-2]\\d{3})-(0[0-9]|1[0-2])-([0-2]\\d|3[01])T([01]\\d|2[0-4]):([0-5]\\d):([0-6]\\d)((\\.\\d{3})?)Z$",
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/IndexName"
 ],
 "properties": {
  "Arn": {
   "maxLength": 1600,
   "pattern": "^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?$",
   "type": "string"
  },
  "CreateTime": {
   "$ref": "#/definitions/iso8601UTC"
  },
  "DataSource": {
   "type": "string"
  },
  "DataSourceConfiguration": {
   "$ref": "#/definitions/DataSourceConfiguration"
  },
  "Description": {
   "maxLength": 1000,
   "minLength": 0,
   "type": "string"
  },
  "IndexArn": {
   "maxLength": 1600,
   "pattern": "^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0-9]+)*))(:[0-9]+):((\\*)|([-a-z]+[/][*-._\\w]+))$",
   "type": "string"
  },
  "IndexName": {
   "maxLength": 100,
   "minLength": 1,
   "pattern": "^[-._\\w]+$",
   "type": "string"
  },
  "PricingPlan": {
   "$ref": "#/definitions/PricingPlan"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 200,
   "minItems": 0,
   "type": "array",
   "uniqueItems": true
  },
  "UpdateTime": {
   "$ref": "#/definitions/iso8601UTC"
  }
 },
 "readOnlyProperties": [
  "/properties/CreateTime",
  "/properties/Arn",
  "/properties/IndexArn",
  "/properties/UpdateTime"
 ],
 "required": [
  "DataSource",
  "IndexName"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Location::PlaceIndex"
}
