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.
import { CfnDeployment } from 'aws-cdk-lib/aws-apigateway';Or use the module namespace:
import * as apigateway from 'aws-cdk-lib/aws-apigateway';
// apigateway.CfnDeploymentConfiguration passed to the constructor as CfnDeploymentProps.
restApiIdRequiredstring | IRestApiRefThe string identifier of the associated RestApi.
deploymentCanarySettingsOptionalIResolvable | DeploymentCanarySettingsPropertyThe input configuration for a canary deployment.
descriptionOptionalstringThe description for the Deployment resource to create.
stageDescriptionOptionalIResolvable | StageDescriptionPropertyThe description of the Stage resource for the Deployment resource to create. To specify a stage description, you must also provide a stage name.
stageNameOptionalstringThe name of the Stage resource for the Deployment resource to create.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon API Gateway on one page. HD quality, print-friendly.
Download Free Infographicaws-apigatewayAWS::ApiGateway::Deployment