AWS::ApiGatewayV2::StageThe `AWS::ApiGatewayV2::Stage` resource specifies a stage for an API. Each stage is a named reference to a deployment of the API and is made available for client applications to call. To learn more, see [Working with stages for HTTP APIs](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-stages.html) and [Deploy a WebSocket API in API Gateway](https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-set-up-websocket-deployment.html) .
import { CfnStage } from 'aws-cdk-lib/aws-apigatewayv2';Or use the module namespace:
import * as apigatewayv2 from 'aws-cdk-lib/aws-apigatewayv2';
// apigatewayv2.CfnStageConfiguration passed to the constructor as CfnStageProps.
apiIdRequiredstringThe API identifier.
stageNameRequiredstringThe stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be `$default` . Maximum length is 128 characters.
accessLogSettingsOptionalIResolvable | AccessLogSettingsPropertySettings for logging access in this stage.
accessPolicyIdOptionalstringThis parameter is not currently supported.
autoDeployOptionalboolean | IResolvableSpecifies whether updates to an API automatically trigger a new deployment. The default value is `false` .
clientCertificateIdOptionalstringThe identifier of a client certificate for a `Stage` . Supported only for WebSocket APIs.
defaultRouteSettingsOptionalIResolvable | RouteSettingsPropertyThe default route settings for the stage.
deploymentIdOptionalstringThe deployment identifier for the API stage. Can't be updated if `autoDeploy` is enabled.
descriptionOptionalstringThe description for the API stage.
routeSettingsOptionalanyRoute settings for the stage.
stageVariablesOptionalanyA 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-._~:/?#&=,]+.
tagsOptionalanyThe collection of tags. Each tag element is associated with a given resource.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-apigatewayv2AWS::ApiGatewayV2::Stage