@Stability(value=Stable) public static final class DomainName.Builder extends Object implements software.amazon.jsii.Builder<DomainName>
DomainName.| Modifier and Type | Method and Description |
|---|---|
DomainName.Builder |
basePath(String basePath)
The base path name that callers of the API must provide in the URL after the domain name (e.g.
|
DomainName |
build() |
DomainName.Builder |
certificate(ICertificate certificate)
The reference to an AWS-managed certificate for use by the edge-optimized endpoint for the domain name.
|
static DomainName.Builder |
create(software.constructs.Construct scope,
String id) |
DomainName.Builder |
domainName(String domainName)
The custom domain name for your API.
|
DomainName.Builder |
endpointType(EndpointType endpointType)
The type of endpoint for this DomainName.
|
DomainName.Builder |
mapping(IRestApi mapping)
If specified, all requests to this domain will be mapped to the production deployment of this API.
|
DomainName.Builder |
mtls(MTLSConfig mtls)
The mutual TLS authentication configuration for a custom domain name.
|
DomainName.Builder |
securityPolicy(SecurityPolicy securityPolicy)
The Transport Layer Security (TLS) version + cipher suite for this domain name.
|
@Stability(value=Stable) public static DomainName.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.DomainName.Builder.@Stability(value=Stable) public DomainName.Builder certificate(ICertificate certificate)
For "EDGE" domain names, the certificate needs to be in the US East (N. Virginia) region.
certificate - The reference to an AWS-managed certificate for use by the edge-optimized endpoint for the domain name. This parameter is required.this@Stability(value=Stable) public DomainName.Builder domainName(String domainName)
Uppercase letters are not supported.
domainName - The custom domain name for your API. This parameter is required.this@Stability(value=Stable) public DomainName.Builder basePath(String basePath)
Default: - map requests from the domain root (e.g. `example.com`). If this is undefined, no additional mappings will be allowed on this domain name.
basePath - The base path name that callers of the API must provide in the URL after the domain name (e.g. `example.com/base-path`). If you specify this property, it can't be an empty string. This parameter is required.this@Stability(value=Stable) public DomainName.Builder endpointType(EndpointType endpointType)
Default: REGIONAL
endpointType - The type of endpoint for this DomainName. This parameter is required.this@Stability(value=Stable) public DomainName.Builder mtls(MTLSConfig mtls)
Default: - mTLS is not configured.
mtls - The mutual TLS authentication configuration for a custom domain name. This parameter is required.this@Stability(value=Stable) public DomainName.Builder securityPolicy(SecurityPolicy securityPolicy)
Default: SecurityPolicy.TLS_1_0
securityPolicy - The Transport Layer Security (TLS) version + cipher suite for this domain name. This parameter is required.this@Stability(value=Stable) public DomainName.Builder mapping(IRestApi mapping)
If you wish to map this domain to multiple APIs
with different base paths, don't specify this option and use
addBasePathMapping.
Default: - you will have to call `addBasePathMapping` to map this domain to API endpoints.
mapping - If specified, all requests to this domain will be mapped to the production deployment of this API. This parameter is required.this@Stability(value=Stable) public DomainName build()
build in interface software.amazon.jsii.Builder<DomainName>Copyright © 2022. All rights reserved.