Class CfnDomainNameV2.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.CfnDomainNameV2.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDomainNameV2>
- Enclosing class:
CfnDomainNameV2
@Stability(Stable)
public static final class CfnDomainNameV2.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDomainNameV2>
A fluent builder for
CfnDomainNameV2.-
Method Summary
Modifier and TypeMethodDescriptionbuild()certificateArn(String certificateArn) The reference to an AWS -managed certificate that will be used by the private endpoint for this domain name.static CfnDomainNameV2.BuilderdomainName(String domainName) Represents a custom domain name as a user-friendly host name of an API (RestApi).endpointConfiguration(IResolvable endpointConfiguration) The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has.endpointConfiguration(CfnDomainNameV2.EndpointConfigurationProperty endpointConfiguration) The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has.A stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration.securityPolicy(String securityPolicy) The Transport Layer Security (TLS) version + cipher suite for this DomainName.The collection of tags.
-
Method Details
-
create
@Stability(Stable) public static CfnDomainNameV2.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDomainNameV2.Builder.
-
certificateArn
The reference to an AWS -managed certificate that will be used by the private endpoint for this domain name.AWS Certificate Manager is the only supported source.
- Parameters:
certificateArn- The reference to an AWS -managed certificate that will be used by the private endpoint for this domain name. This parameter is required.- Returns:
this- See Also:
-
domainName
Represents a custom domain name as a user-friendly host name of an API (RestApi).- Parameters:
domainName- Represents a custom domain name as a user-friendly host name of an API (RestApi). This parameter is required.- Returns:
this- See Also:
-
endpointConfiguration
@Stability(Stable) public CfnDomainNameV2.Builder endpointConfiguration(IResolvable endpointConfiguration) The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has.- Parameters:
endpointConfiguration- The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has. This parameter is required.- Returns:
this- See Also:
-
endpointConfiguration
@Stability(Stable) public CfnDomainNameV2.Builder endpointConfiguration(CfnDomainNameV2.EndpointConfigurationProperty endpointConfiguration) The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has.- Parameters:
endpointConfiguration- The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has. This parameter is required.- Returns:
this- See Also:
-
policy
A stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration.You can use
Fn::ToJsonStringto enter yourpolicy. For more information, see Fn::ToJsonString .- Parameters:
policy- A stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration. This parameter is required.- Returns:
this- See Also:
-
securityPolicy
The Transport Layer Security (TLS) version + cipher suite for this DomainName.Only
TLS_1_2is supported.- Parameters:
securityPolicy- The Transport Layer Security (TLS) version + cipher suite for this DomainName. This parameter is required.- Returns:
this- See Also:
-
tags
The collection of tags.Each tag element is associated with a given resource.
- Parameters:
tags- The collection of tags. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDomainNameV2>- Returns:
- a newly built instance of
CfnDomainNameV2.
-