@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)",
date="2022-08-09T19:16:40.738Z")
public interface DomainMappingOptions
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();
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 java.lang.String |
getMappingKey()
(experimental) The API mapping key.
|
IDomainName getDomainName()
default java.lang.String getMappingKey()
Leave it undefined for the root path mapping.
Default: - empty key for the root path mapping
static DomainMappingOptions.Builder builder()
DomainMappingOptions.Builder
of DomainMappingOptions