Interface HttpStageOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable, StageOptions
All Known Subinterfaces:
HttpStageProps
All Known Implementing Classes:
HttpStageOptions.Jsii$Proxy, HttpStageProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-11T18:01:10.758Z") @Stability(Stable) public interface HttpStageOptions extends software.amazon.jsii.JsiiSerializable, StageOptions
The options to create a new Stage for an HTTP API.

Example:

 HttpApi api;
 DomainName dn;
 api.addStage("beta", HttpStageOptions.builder()
         .stageName("beta")
         .autoDeploy(true)
         // https://${dn.domainName}/bar goes to the beta stage
         .domainMapping(DomainMappingOptions.builder()
                 .domainName(dn)
                 .mappingKey("bar")
                 .build())
         .build());
 
  • Method Details

    • getStageName

      @Stability(Stable) @Nullable default String getStageName()
      The name of the stage.

      See StageName class for more details.

      Default: '$default' the default stage of the API. This stage will have the URL at the root of the API endpoint.

    • builder

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