Interface CfnApiGatewayManagedOverrides.StageOverridesProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnApiGatewayManagedOverrides.StageOverridesProperty.Jsii$Proxy
Enclosing class:
CfnApiGatewayManagedOverrides

@Stability(Stable) public static interface CfnApiGatewayManagedOverrides.StageOverridesProperty extends software.amazon.jsii.JsiiSerializable
The StageOverrides property overrides the stage configuration for an API Gateway-managed stage.

If you remove this property, API Gateway restores the default values.

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.*;
 Object routeSettings;
 Object stageVariables;
 StageOverridesProperty stageOverridesProperty = StageOverridesProperty.builder()
         .accessLogSettings(AccessLogSettingsProperty.builder()
                 .destinationArn("destinationArn")
                 .format("format")
                 .build())
         .autoDeploy(false)
         .defaultRouteSettings(RouteSettingsProperty.builder()
                 .dataTraceEnabled(false)
                 .detailedMetricsEnabled(false)
                 .loggingLevel("loggingLevel")
                 .throttlingBurstLimit(123)
                 .throttlingRateLimit(123)
                 .build())
         .description("description")
         .routeSettings(routeSettings)
         .stageVariables(stageVariables)
         .build();
 
  • Method Details

    • getAccessLogSettings

      @Stability(Stable) @Nullable default Object getAccessLogSettings()
      Settings for logging access in a stage.
    • getAutoDeploy

      @Stability(Stable) @Nullable default Object getAutoDeploy()
      Specifies whether updates to an API automatically trigger a new deployment.

      The default value is true .

    • getDefaultRouteSettings

      @Stability(Stable) @Nullable default Object getDefaultRouteSettings()
      The default route settings for the stage.
    • getDescription

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

      @Stability(Stable) @Nullable default Object getRouteSettings()
      Route settings for the stage.
    • getStageVariables

      @Stability(Stable) @Nullable default Object getStageVariables()
      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-._~:/?#&=,]+.

    • builder

      Returns:
      a CfnApiGatewayManagedOverrides.StageOverridesProperty.Builder of CfnApiGatewayManagedOverrides.StageOverridesProperty