Interface DomainMappingOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
DomainMappingOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:43.239Z") @Stability(Experimental) public interface DomainMappingOptions extends software.amazon.jsii.JsiiSerializable
(experimental) Options for DomainMapping.

Example:

 import software.amazon.awscdk.services.apigatewayv2.integrations.HttpLambdaIntegration;
 Function handler;
 DomainName dn;
 HttpApi apiDemo = HttpApi.Builder.create(this, "DemoApi")
         .defaultIntegration(new HttpLambdaIntegration("DefaultIntegration", handler))
         // https://${dn.domainName}/demo goes to apiDemo $default stage
         .defaultDomainMapping(DomainMappingOptions.builder()
                 .domainName(dn)
                 .mappingKey("demo")
                 .build())
         .build();
 
  • Method Details

    • getDomainName

      @Stability(Experimental) @NotNull IDomainName getDomainName()
      (experimental) The domain name for the mapping.
    • getMappingKey

      @Stability(Experimental) @Nullable default String getMappingKey()
      (experimental) The API mapping key.

      Leave it undefined for the root path mapping.

      Default: - empty key for the root path mapping

    • builder

      @Stability(Experimental) static DomainMappingOptions.Builder builder()
      Returns:
      a DomainMappingOptions.Builder of DomainMappingOptions