{
  "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]+$"
        }
      },
      "additionalProperties" : false,
      "required" : [ "Style" ]
    },
    "PricingPlan" : {
      "type" : "string",
      "enum" : [ "RequestBasedUsage" ]
    },
    "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"
    },
    "DataSource" : {
      "type" : "string"
    },
    "Description" : {
      "type" : "string",
      "maxLength" : 1000,
      "minLength" : 0
    },
    "MapArn" : {
      "type" : "string",
      "maxLength" : 1600,
      "pattern" : "^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?$"
    },
    "Arn" : {
      "type" : "string",
      "maxLength" : 1600,
      "pattern" : "^arn(:[a-z0-9]+([.-][a-z0-9]+)*){2}(:([a-z0-9]+([.-][a-z0-9]+)*)?){2}:([^/].*)?$"
    },
    "MapName" : {
      "type" : "string",
      "maxLength" : 100,
      "minLength" : 1,
      "pattern" : "^[-._\\w]+$"
    },
    "PricingPlan" : {
      "$ref" : "#/definitions/PricingPlan"
    },
    "UpdateTime" : {
      "$ref" : "#/definitions/iso8601UTC"
    }
  },
  "readOnlyProperties" : [ "/properties/CreateTime", "/properties/DataSource", "/properties/MapArn", "/properties/Arn", "/properties/UpdateTime" ],
  "createOnlyProperties" : [ "/properties/MapName", "/properties/Configuration", "/properties/Description", "/properties/PricingPlan" ],
  "required" : [ "MapName", "Configuration" ],
  "primaryIdentifier" : [ "/properties/MapName" ],
  "additionalProperties" : false,
  "handlers" : {
    "create" : {
      "permissions" : [ "geo:CreateMap" ]
    },
    "read" : {
      "permissions" : [ "geo:DescribeMap" ]
    },
    "delete" : {
      "permissions" : [ "geo:DeleteMap" ]
    },
    "list" : {
      "permissions" : [ "geo:ListMaps" ]
    }
  }
}