{
  "typeName" : "AWS::Location::RouteCalculator",
  "description" : "Definition of AWS::Location::RouteCalculator Resource Type",
  "definitions" : {
    "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" : {
    "CalculatorArn" : {
      "type" : "string",
      "maxLength" : 1600,
      "pattern" : "^arn(:[a-z0-9]+([.-][a-z0-9]+)*):geo(:([a-z0-9]+([.-][a-z0-9]+)*))(:[0-9]+):((\\*)|([-a-z]+[/][*-._\\w]+))$"
    },
    "CalculatorName" : {
      "type" : "string",
      "maxLength" : 100,
      "minLength" : 1,
      "pattern" : "^[-._\\w]+$"
    },
    "CreateTime" : {
      "$ref" : "#/definitions/iso8601UTC"
    },
    "DataSource" : {
      "type" : "string"
    },
    "Description" : {
      "type" : "string",
      "maxLength" : 1000,
      "minLength" : 0
    },
    "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" : [ "DataSource", "CalculatorName" ],
  "readOnlyProperties" : [ "/properties/CalculatorArn", "/properties/Arn", "/properties/CreateTime", "/properties/UpdateTime" ],
  "createOnlyProperties" : [ "/properties/CalculatorName", "/properties/DataSource" ],
  "primaryIdentifier" : [ "/properties/CalculatorName" ],
  "handlers" : {
    "create" : {
      "permissions" : [ "geo:CreateRouteCalculator", "geo:DescribeRouteCalculator", "geo:TagResource", "geo:UntagResource" ]
    },
    "delete" : {
      "permissions" : [ "geo:DeleteRouteCalculator", "geo:DescribeRouteCalculator" ]
    },
    "list" : {
      "permissions" : [ "geo:ListRouteCalculators" ]
    },
    "read" : {
      "permissions" : [ "geo:DescribeRouteCalculator" ]
    },
    "update" : {
      "permissions" : [ "geo:CreateRouteCalculator", "geo:DescribeRouteCalculator", "geo:TagResource", "geo:UntagResource", "geo:UpdateRouteCalculator" ]
    }
  },
  "tagging" : {
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "cloudFormationSystemTags" : false,
    "tagProperty" : "/properties/Tags",
    "permissions" : [ "geo:TagResource", "geo:UntagResource" ]
  },
  "additionalProperties" : false
}