AWS::ApiGateway::DeploymentThe AWS::ApiGateway::Deployment resource deploys an API Gateway RestApi resource to a stage so that clients can call the API over the internet. The stage acts as an environment.
5 configurable properties. 1 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
RestApiId | string | RequiredCreate-only |
DeploymentCanarySettings | DeploymentCanarySettings | Create-onlyWrite-only |
Description | string | |
StageDescription | StageDescription | Write-only |
StageName | string | Write-only |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
DeploymentId | string | - |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::ApiGateway::Deployment
Resources:
MyResource:
Type: AWS::ApiGateway::Deployment
Properties:
RestApiId: "my-restapiid"
Description: !Ref "AWS::StackName"Permissions CloudFormation needs in your IAM role to manage this resource.
apigateway:GETapigateway:POSTapigateway:PATCHapigateway:PUTapigateway:GETapigateway:PATCHapigateway:GETapigateway:PUTapigateway:DELETEapigateway:GETapigateway:GETapigateway:DELETEEverything you need to know about ApiGateway on one page. HD quality, print-friendly.
Download Free InfographicDeploymentIdThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
DeploymentCanarySettingsRestApiId