Class DomainNameProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.DomainNameProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DomainNameProps>
- Enclosing interface:
DomainNameProps
@Stability(Stable)
public static final class DomainNameProps.Builder
extends Object
implements software.amazon.jsii.Builder<DomainNameProps>
A builder for
DomainNameProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofDomainNameOptions.getBasePath()build()Builds the configured instance.certificate(ICertificate certificate) Sets the value ofDomainNameOptions.getCertificate()domainName(String domainName) Sets the value ofDomainNameOptions.getDomainName()endpointType(EndpointType endpointType) Sets the value ofDomainNameOptions.getEndpointType()Sets the value ofDomainNameProps.getMapping()mtls(MTLSConfig mtls) Sets the value ofDomainNameOptions.getMtls()securityPolicy(SecurityPolicy securityPolicy) Sets the value ofDomainNameOptions.getSecurityPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mapping
Sets the value ofDomainNameProps.getMapping()- Parameters:
mapping- If specified, all requests to this domain will be mapped to the production deployment of this API. If you wish to map this domain to multiple APIs with different base paths, useaddBasePathMappingoraddApiMapping.- Returns:
this
-
certificate
Sets the value ofDomainNameOptions.getCertificate()- Parameters:
certificate- The reference to an AWS-managed certificate for use by the edge-optimized endpoint for the domain name. This parameter is required. For "EDGE" domain names, the certificate needs to be in the US East (N. Virginia) region.- Returns:
this
-
domainName
Sets the value ofDomainNameOptions.getDomainName()- Parameters:
domainName- The custom domain name for your API. This parameter is required. Uppercase letters are not supported.- Returns:
this
-
basePath
Sets the value ofDomainNameOptions.getBasePath()- Parameters:
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.- Returns:
this
-
endpointType
Sets the value ofDomainNameOptions.getEndpointType()- Parameters:
endpointType- The type of endpoint for this DomainName.- Returns:
this
-
mtls
Sets the value ofDomainNameOptions.getMtls()- Parameters:
mtls- The mutual TLS authentication configuration for a custom domain name.- Returns:
this
-
securityPolicy
Sets the value ofDomainNameOptions.getSecurityPolicy()- Parameters:
securityPolicy- The Transport Layer Security (TLS) version + cipher suite for this domain name.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DomainNameProps>- Returns:
- a new instance of
DomainNameProps - Throws:
NullPointerException- if any required attribute was not provided
-