{
  "sourceUrl" : "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-apigatewayv2/tree/master/aws-apigatewayv2-stage.git",
  "tagging" : {
    "permissions" : [ "apigateway:POST", "apigateway:TagResource", "apigateway:UntagResource" ],
    "taggable" : true,
    "tagOnCreate" : true,
    "tagUpdatable" : true,
    "tagProperty" : "/properties/Tags",
    "cloudFormationSystemTags" : true
  },
  "handlers" : {
    "read" : {
      "permissions" : [ "apigateway:GET" ]
    },
    "create" : {
      "permissions" : [ "apigateway:POST", "apigateway:TagResource" ]
    },
    "update" : {
      "permissions" : [ "apigateway:PATCH", "apigateway:POST", "apigateway:DELETE", "apigateway:TagResource", "apigateway:UntagResource" ]
    },
    "list" : {
      "permissions" : [ "apigateway:GET" ],
      "handlerSchema" : {
        "properties" : {
          "ApiId" : {
            "$ref" : "resource-schema.json#/properties/ApiId"
          }
        },
        "required" : [ "ApiId" ]
      }
    },
    "delete" : {
      "permissions" : [ "apigateway:DELETE" ]
    }
  },
  "typeName" : "AWS::ApiGatewayV2::Stage",
  "description" : "Resource Type definition for AWS::ApiGatewayV2::Stage",
  "createOnlyProperties" : [ "/properties/StageName", "/properties/ApiId" ],
  "additionalProperties" : false,
  "primaryIdentifier" : [ "/properties/ApiId", "/properties/StageName" ],
  "definitions" : {
    "AccessLogSettings" : {
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "Format" : {
          "type" : "string"
        },
        "DestinationArn" : {
          "type" : "string"
        }
      }
    },
    "RouteSettings" : {
      "additionalProperties" : false,
      "type" : "object",
      "properties" : {
        "LoggingLevel" : {
          "type" : "string"
        },
        "DataTraceEnabled" : {
          "type" : "boolean"
        },
        "ThrottlingBurstLimit" : {
          "type" : "integer"
        },
        "DetailedMetricsEnabled" : {
          "type" : "boolean"
        },
        "ThrottlingRateLimit" : {
          "type" : "number"
        }
      }
    }
  },
  "properties" : {
    "ClientCertificateId" : {
      "description" : "The identifier of a client certificate for a Stage. Supported only for WebSocket APIs.",
      "type" : "string"
    },
    "DeploymentId" : {
      "description" : "The deployment identifier for the API stage. Can't be updated if autoDeploy is enabled.",
      "type" : "string"
    },
    "Description" : {
      "description" : "The description for the API stage.",
      "type" : "string"
    },
    "AutoDeploy" : {
      "description" : "Specifies whether updates to an API automatically trigger a new deployment. The default value is false.",
      "type" : "boolean"
    },
    "AccessLogSettings" : {
      "description" : "Settings for logging access in this stage.",
      "$ref" : "#/definitions/AccessLogSettings"
    },
    "RouteSettings" : {
      "description" : "Route settings for the stage.",
      "type" : "object"
    },
    "StageName" : {
      "description" : "The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be $default. Maximum length is 128 characters.",
      "type" : "string"
    },
    "StageVariables" : {
      "description" : "A map that defines the stage variables for a Stage. Variable names can have alphanumeric and underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.",
      "type" : "object"
    },
    "ApiId" : {
      "description" : "The API identifier.",
      "type" : "string"
    },
    "DefaultRouteSettings" : {
      "description" : "The default route settings for the stage.",
      "$ref" : "#/definitions/RouteSettings"
    },
    "Tags" : {
      "description" : "The collection of tags. Each tag element is associated with a given resource.",
      "type" : "object"
    }
  },
  "required" : [ "StageName", "ApiId" ]
}