@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-02-15T19:53:17.387Z") @Stability(value=Experimental) public interface DomainMappingOptions extends software.amazon.jsii.JsiiSerializable
Example:
import software.amazon.awscdk.services.apigatewayv2.integrations.alpha.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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
DomainMappingOptions.Builder
A builder for
DomainMappingOptions |
static class |
DomainMappingOptions.Jsii$Proxy
An implementation for
DomainMappingOptions |
| Modifier and Type | Method and Description |
|---|---|
static DomainMappingOptions.Builder |
builder() |
IDomainName |
getDomainName()
(experimental) The domain name for the mapping.
|
default String |
getMappingKey()
(experimental) The API mapping key.
|
@Stability(value=Experimental) @NotNull IDomainName getDomainName()
@Stability(value=Experimental) @Nullable default String getMappingKey()
Leave it undefined for the root path mapping.
Default: - empty key for the root path mapping
@Stability(value=Experimental) static DomainMappingOptions.Builder builder()
DomainMappingOptions.Builder of DomainMappingOptionsCopyright © 2023. All rights reserved.