Interface StageOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
HttpStageOptions,HttpStageProps,WebSocketStageProps
- All Known Implementing Classes:
HttpStageOptions.Jsii$Proxy,HttpStageProps.Jsii$Proxy,StageOptions.Jsii$Proxy,WebSocketStageProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-04-02T21:55:03.951Z")
@Stability(Stable)
public interface StageOptions
extends software.amazon.jsii.JsiiSerializable
Options required to create a new stage.
Options that are common between HTTP and Websocket APIs.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigatewayv2.*;
import software.amazon.awscdk.interfaces.apigatewayv2.*;
IAccessLogSettings accessLogSettings;
IDomainNameRef domainNameRef;
StageOptions stageOptions = StageOptions.builder()
.accessLogSettings(accessLogSettings)
.autoDeploy(false)
.description("description")
.detailedMetricsEnabled(false)
.domainMapping(DomainMappingOptions.builder()
.domainName(domainNameRef)
// the properties below are optional
.mappingKey("mappingKey")
.build())
.stageVariables(Map.of(
"stageVariablesKey", "stageVariables"))
.throttle(ThrottleSettings.builder()
.burstLimit(123)
.rateLimit(123)
.build())
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forStageOptionsstatic final classAn implementation forStageOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic StageOptions.Builderbuilder()default IAccessLogSettingsSettings for access logging.default BooleanWhether updates to an API automatically trigger a new deployment.default StringThe description for the API stage.default BooleanSpecifies whether detailed metrics are enabled.default DomainMappingOptionsThe options for custom domain and api mapping.Stage variables for the stage.default ThrottleSettingsThrottle settings for the routes of this stage.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessLogSettings
Settings for access logging.Default: - No access logging
-
getAutoDeploy
Whether updates to an API automatically trigger a new deployment.Default: false
-
getDescription
The description for the API stage.Default: - no description
-
getDetailedMetricsEnabled
Specifies whether detailed metrics are enabled.Default: false
-
getDomainMapping
The options for custom domain and api mapping.Default: - no custom domain and api mapping configuration
-
getStageVariables
Stage variables for the stage. These are key-value pairs that you can define and use in your API routes.The allowed characters for variable names and the required pattern for variable values are specified here: https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-apigateway-stage.html#cfn-apigateway-stage-variables
Default: - No stage variables
-
getThrottle
Throttle settings for the routes of this stage.Default: - no throttling configuration
-
builder
- Returns:
- a
StageOptions.BuilderofStageOptions
-