{
  "typeName" : "AWS::Location::Map",
  "description" : "Definition of AWS::Location::Map Resource Type",
  "definitions" : {
    "MapConfiguration" : {
      "type" : "object",
      "properties" : {
        "Style" : {
          "type" : "string",
          "maxLength" : 100,
          "minLength" : 1,
          "pattern" : "^[-._\\w]+$"
        },
        "PoliticalView" : {
          "type" : "string",
          "maxLength" : 3,
          "minLength" : 3,
          "pattern" : "^[A-Z]{3}$"
        },
        "CustomLayers" : {
          "type" : "array",
          "items" : {
            "type" : "string",
            "maxLength" : 100,
            "minLength" : 1,
            "pattern" : "^[-._\\w]+$"
          },
          "maxItems" : 10
        }
      },
      "required" : [ "Style" ],
      "additionalProperties" : false
    },
    "PricingPlan" : {
      "type" : "string",
      "enum" : [ "RequestBasedUsage" ]
    },
    "TagMap" : {
      "type" : "object",
      "maxProperties" : 50,
      "patternProperties" : {
        "^([\\p{L}\\p{Z}\\p{N}_.,:/=+\\-@]*)$" : {
          "type" : "string",
          "maxLength" : 256,
          "minLength" : 0,
          "pattern" : "^([\\p{L}\\p{Z}\\p{N}_.,:/=+\\-@]*)$"
        }
      },
      "additionalProperties" : false
    },
    "Tag" : {
      "description" : "A key-value pair to associate with a resource.",
      "type" : "object",
      "properties" : {
        "Key" : {
          "type" : "string",
          "description" : "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.",
          "minLength" : 1,
          "maxLength" : 128,
          "pattern" : "^[a-zA-Z+-=._:/]+$"
        },
        "Value" : {
          "type" : "string",
          "description" : "The value for the tag. You can specify a value that is 0 to 256 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -.",
          "minLength" : 0,
          "maxLength" : 256,
          "pattern" : "^[A-Za-z0-9 _=@:.+-/]*$"
        }
      },
      "required" : [ "Key", "Value" ],
      "additionalProperties" : false
    },
    "iso8601UTC" : {
      "description" : "The datetime value in ISO 8601 format. The timezone is always UTC. (YYYY-MM-DDThh:mm:ss.sssZ)",
      "type" : "string",
      "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$"
    }
  },
  "properties" : {
    "Configuration" : {
      "$ref" : "#/definitions/MapConfiguration"
    },
    "CreateTime" : {
      "$ref" : "#/definitions/iso8601UTC"
    },
    "Description" : {
      "type" : "string",
      "maxLength" : 1000,
      "minLength" : 0
    },
    "MapArn" : {
      "type" : "string",
      "maxLength" : 1600,
      "pattern" : "^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0-9]+)*))(:[0-9]+):((\\*)|([-a-z]+[/][*-._\\w]+))$"
    },
    "MapName" : {
      "type" : "string",
      "maxLength" : 100,
      "minLength" : 1,
      "pattern" : "^[-._\\w]+$"
    },
    "PricingPlan" : {
      "$ref" : "#/definitions/PricingPlan"
    },
    "Tags" : {
      "description" : "An array of key-value pairs to apply to this resource.",
      "type" : "array",
      "uniqueItems" : true,
      "insertionOrder" : false,
      "minItems" : 0,
      "maxItems" : 200,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    },
    "UpdateTime" : {
      "$ref" : "#/definitions/iso8601UTC"
    },
    "Arn" : {
      "type" : "string",
      "maxLength" : 1600,
      "pattern" : "^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?$"
    }
  },
  "required" : [ "Configuration", "MapName" ],
  "readOnlyProperties" : [ "/properties/CreateTime", "/properties/Arn", "/properties/MapArn", "/properties/UpdateTime" ],
  "createOnlyProperties" : [ "/properties/Configuration", "/properties/MapName" ],
  "primaryIdentifier" : [ "/properties/MapName" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "geo:CreateMap", "geo:DescribeMap", "geo:TagResource", "geo:UntagResource" ]
    },
    "delete" : {
      "permissions" : [ "geo:DeleteMap", "geo:DescribeMap" ]
    },
    "list" : {
      "permissions" : [ "geo:ListMaps" ]
    },
    "read" : {
      "permissions" : [ "geo:DescribeMap" ]
    },
    "update" : {
      "permissions" : [ "geo:CreateMap", "geo:DescribeMap", "geo:TagResource", "geo:UntagResource", "geo:UpdateMap" ]
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : false,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "geo:TagResource", "geo:UntagResource" ]
  },
  "additionalProperties" : false
}