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.110.0 (build 336b265)", date="2025-04-22T23:08:06.599Z") @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.*;
 IAccessLogSettings accessLogSettings;
 DomainName domainName;
 StageOptions stageOptions = StageOptions.builder()
         .accessLogSettings(accessLogSettings)
         .autoDeploy(false)
         .description("description")
         .detailedMetricsEnabled(false)
         .domainMapping(DomainMappingOptions.builder()
                 .domainName(domainName)
                 // the properties below are optional
                 .mappingKey("mappingKey")
                 .build())
         .throttle(ThrottleSettings.builder()
                 .burstLimit(123)
                 .rateLimit(123)
                 .build())
         .build();
 
  • Method Details

    • getAccessLogSettings

      @Stability(Stable) @Nullable default IAccessLogSettings getAccessLogSettings()
      Settings for access logging.

      Default: - No access logging

    • getAutoDeploy

      @Stability(Stable) @Nullable default Boolean getAutoDeploy()
      Whether updates to an API automatically trigger a new deployment.

      Default: false

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      The description for the API stage.

      Default: - no description

    • getDetailedMetricsEnabled

      @Stability(Stable) @Nullable default Boolean getDetailedMetricsEnabled()
      Specifies whether detailed metrics are enabled.

      Default: false

    • getDomainMapping

      @Stability(Stable) @Nullable default DomainMappingOptions getDomainMapping()
      The options for custom domain and api mapping.

      Default: - no custom domain and api mapping configuration

    • getThrottle

      @Stability(Stable) @Nullable default ThrottleSettings getThrottle()
      Throttle settings for the routes of this stage.

      Default: - no throttling configuration

    • builder

      @Stability(Stable) static StageOptions.Builder builder()
      Returns:
      a StageOptions.Builder of StageOptions