We recommend new projects start with resources from the AWS provider.
published on Monday, Apr 20, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Apr 20, 2026 by Pulumi
Resource Type definition for AWS::ApiGatewayV2::Stage
Create Stage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Stage(name: string, args: StageArgs, opts?: CustomResourceOptions);@overload
def Stage(resource_name: str,
args: StageArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Stage(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
access_log_settings: Optional[StageAccessLogSettingsArgs] = None,
auto_deploy: Optional[bool] = None,
client_certificate_id: Optional[str] = None,
default_route_settings: Optional[StageRouteSettingsArgs] = None,
deployment_id: Optional[str] = None,
description: Optional[str] = None,
route_settings: Optional[Any] = None,
stage_name: Optional[str] = None,
stage_variables: Optional[Any] = None,
tags: Optional[Any] = None)func NewStage(ctx *Context, name string, args StageArgs, opts ...ResourceOption) (*Stage, error)public Stage(string name, StageArgs args, CustomResourceOptions? opts = null)type: aws-native:apigatewayv2:Stage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args StageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args StageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args StageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args StageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args StageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Stage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Stage resource accepts the following input properties:
- Api
Id string - The API identifier.
- Access
Log Pulumi.Settings Aws Native. Api Gateway V2. Inputs. Stage Access Log Settings - Settings for logging access in this stage.
- Auto
Deploy bool - Specifies whether updates to an API automatically trigger a new deployment. The default value is
false. - Client
Certificate stringId - The identifier of a client certificate for a
Stage. Supported only for WebSocket APIs. - Default
Route Pulumi.Settings Aws Native. Api Gateway V2. Inputs. Stage Route Settings - The default route settings for the stage.
- Deployment
Id string - The deployment identifier for the API stage. Can't be updated if
autoDeployis enabled. - Description string
- The description for the API stage.
- Route
Settings object Route settings for the stage.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- Stage
Name string - The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default. Maximum length is 128 characters. - Stage
Variables object 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-._~:/?#&=,]+.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- object
The collection of tags. Each tag element is associated with a given resource.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.
- Api
Id string - The API identifier.
- Access
Log StageSettings Access Log Settings Args - Settings for logging access in this stage.
- Auto
Deploy bool - Specifies whether updates to an API automatically trigger a new deployment. The default value is
false. - Client
Certificate stringId - The identifier of a client certificate for a
Stage. Supported only for WebSocket APIs. - Default
Route StageSettings Route Settings Args - The default route settings for the stage.
- Deployment
Id string - The deployment identifier for the API stage. Can't be updated if
autoDeployis enabled. - Description string
- The description for the API stage.
- Route
Settings interface{} Route settings for the stage.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- Stage
Name string - The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default. Maximum length is 128 characters. - Stage
Variables interface{} 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-._~:/?#&=,]+.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- interface{}
The collection of tags. Each tag element is associated with a given resource.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.
- api
Id String - The API identifier.
- access
Log StageSettings Access Log Settings - Settings for logging access in this stage.
- auto
Deploy Boolean - Specifies whether updates to an API automatically trigger a new deployment. The default value is
false. - client
Certificate StringId - The identifier of a client certificate for a
Stage. Supported only for WebSocket APIs. - default
Route StageSettings Route Settings - The default route settings for the stage.
- deployment
Id String - The deployment identifier for the API stage. Can't be updated if
autoDeployis enabled. - description String
- The description for the API stage.
- route
Settings Object Route settings for the stage.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- stage
Name String - The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default. Maximum length is 128 characters. - stage
Variables Object 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-._~:/?#&=,]+.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- Object
The collection of tags. Each tag element is associated with a given resource.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.
- api
Id string - The API identifier.
- access
Log StageSettings Access Log Settings - Settings for logging access in this stage.
- auto
Deploy boolean - Specifies whether updates to an API automatically trigger a new deployment. The default value is
false. - client
Certificate stringId - The identifier of a client certificate for a
Stage. Supported only for WebSocket APIs. - default
Route StageSettings Route Settings - The default route settings for the stage.
- deployment
Id string - The deployment identifier for the API stage. Can't be updated if
autoDeployis enabled. - description string
- The description for the API stage.
- route
Settings any Route settings for the stage.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- stage
Name string - The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default. Maximum length is 128 characters. - stage
Variables any 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-._~:/?#&=,]+.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- any
The collection of tags. Each tag element is associated with a given resource.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.
- api_
id str - The API identifier.
- access_
log_ Stagesettings Access Log Settings Args - Settings for logging access in this stage.
- auto_
deploy bool - Specifies whether updates to an API automatically trigger a new deployment. The default value is
false. - client_
certificate_ strid - The identifier of a client certificate for a
Stage. Supported only for WebSocket APIs. - default_
route_ Stagesettings Route Settings Args - The default route settings for the stage.
- deployment_
id str - The deployment identifier for the API stage. Can't be updated if
autoDeployis enabled. - description str
- The description for the API stage.
- route_
settings Any Route settings for the stage.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- stage_
name str - The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default. Maximum length is 128 characters. - stage_
variables Any 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-._~:/?#&=,]+.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- Any
The collection of tags. Each tag element is associated with a given resource.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.
- api
Id String - The API identifier.
- access
Log Property MapSettings - Settings for logging access in this stage.
- auto
Deploy Boolean - Specifies whether updates to an API automatically trigger a new deployment. The default value is
false. - client
Certificate StringId - The identifier of a client certificate for a
Stage. Supported only for WebSocket APIs. - default
Route Property MapSettings - The default route settings for the stage.
- deployment
Id String - The deployment identifier for the API stage. Can't be updated if
autoDeployis enabled. - description String
- The description for the API stage.
- route
Settings Any Route settings for the stage.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- stage
Name String - The stage name. Stage names can contain only alphanumeric characters, hyphens, and underscores, or be
$default. Maximum length is 128 characters. - stage
Variables Any 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-._~:/?#&=,]+.Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.- Any
The collection of tags. Each tag element is associated with a given resource.
Search the CloudFormation User Guide for
AWS::ApiGatewayV2::Stagefor more information about the expected schema for this property.
Outputs
All input properties are implicitly available as output properties. Additionally, the Stage resource produces the following output properties:
Supporting Types
StageAccessLogSettings, StageAccessLogSettingsArgs
- Destination
Arn string - The ARN of the CloudWatch Logs log group to receive access logs. This parameter is required to enable access logging.
- Format string
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId. This parameter is required to enable access logging.
- Destination
Arn string - The ARN of the CloudWatch Logs log group to receive access logs. This parameter is required to enable access logging.
- Format string
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId. This parameter is required to enable access logging.
- destination
Arn String - The ARN of the CloudWatch Logs log group to receive access logs. This parameter is required to enable access logging.
- format String
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId. This parameter is required to enable access logging.
- destination
Arn string - The ARN of the CloudWatch Logs log group to receive access logs. This parameter is required to enable access logging.
- format string
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId. This parameter is required to enable access logging.
- destination_
arn str - The ARN of the CloudWatch Logs log group to receive access logs. This parameter is required to enable access logging.
- format str
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId. This parameter is required to enable access logging.
- destination
Arn String - The ARN of the CloudWatch Logs log group to receive access logs. This parameter is required to enable access logging.
- format String
- A single line format of the access logs of data, as specified by selected $context variables. The format must include at least $context.requestId. This parameter is required to enable access logging.
StageRouteSettings, StageRouteSettingsArgs
- Data
Trace boolEnabled - Specifies whether (
true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - Detailed
Metrics boolEnabled - Specifies whether detailed metrics are enabled.
- Logging
Level string - Specifies the logging level for this route:
INFO,ERROR, orOFF. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - Throttling
Burst intLimit - Specifies the throttling burst limit.
- Throttling
Rate doubleLimit - Specifies the throttling rate limit.
- Data
Trace boolEnabled - Specifies whether (
true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - Detailed
Metrics boolEnabled - Specifies whether detailed metrics are enabled.
- Logging
Level string - Specifies the logging level for this route:
INFO,ERROR, orOFF. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - Throttling
Burst intLimit - Specifies the throttling burst limit.
- Throttling
Rate float64Limit - Specifies the throttling rate limit.
- data
Trace BooleanEnabled - Specifies whether (
true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - detailed
Metrics BooleanEnabled - Specifies whether detailed metrics are enabled.
- logging
Level String - Specifies the logging level for this route:
INFO,ERROR, orOFF. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - throttling
Burst IntegerLimit - Specifies the throttling burst limit.
- throttling
Rate DoubleLimit - Specifies the throttling rate limit.
- data
Trace booleanEnabled - Specifies whether (
true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - detailed
Metrics booleanEnabled - Specifies whether detailed metrics are enabled.
- logging
Level string - Specifies the logging level for this route:
INFO,ERROR, orOFF. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - throttling
Burst numberLimit - Specifies the throttling burst limit.
- throttling
Rate numberLimit - Specifies the throttling rate limit.
- data_
trace_ boolenabled - Specifies whether (
true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - detailed_
metrics_ boolenabled - Specifies whether detailed metrics are enabled.
- logging_
level str - Specifies the logging level for this route:
INFO,ERROR, orOFF. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - throttling_
burst_ intlimit - Specifies the throttling burst limit.
- throttling_
rate_ floatlimit - Specifies the throttling rate limit.
- data
Trace BooleanEnabled - Specifies whether (
true) or not (false) data trace logging is enabled for this route. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - detailed
Metrics BooleanEnabled - Specifies whether detailed metrics are enabled.
- logging
Level String - Specifies the logging level for this route:
INFO,ERROR, orOFF. This property affects the log entries pushed to Amazon CloudWatch Logs. Supported only for WebSocket APIs. - throttling
Burst NumberLimit - Specifies the throttling burst limit.
- throttling
Rate NumberLimit - Specifies the throttling rate limit.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Apr 20, 2026 by Pulumi
