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.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.294Z") @Stability(Experimental) public interface HttpStageOptions extends software.amazon.jsii.JsiiSerializable, StageOptions
(experimental) 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(Experimental) @Nullable default String getStageName()
      (experimental) 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(Experimental) static HttpStageOptions.Builder builder()
      Returns:
      a HttpStageOptions.Builder of HttpStageOptions