@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:47.500Z") public class CfnDomainName extends CfnResource implements IInspectable
The AWS::ApiGateway::DomainName
resource specifies a custom domain name for your API in API Gateway.
You can use a custom domain name to provide a URL that's more intuitive and easier to recall. For more information about using custom domain names, see Set up Custom Domain Name for an API in API Gateway in the API Gateway Developer Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.apigateway.*; CfnDomainName cfnDomainName = CfnDomainName.Builder.create(this, "MyCfnDomainName") .certificateArn("certificateArn") .domainName("domainName") .endpointConfiguration(EndpointConfigurationProperty.builder() .types(List.of("types")) .build()) .mutualTlsAuthentication(MutualTlsAuthenticationProperty.builder() .truststoreUri("truststoreUri") .truststoreVersion("truststoreVersion") .build()) .ownershipVerificationCertificateArn("ownershipVerificationCertificateArn") .regionalCertificateArn("regionalCertificateArn") .securityPolicy("securityPolicy") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnDomainName.Builder
A fluent builder for
CfnDomainName . |
static interface |
CfnDomainName.EndpointConfigurationProperty
The `EndpointConfiguration` property type specifies the endpoint types of an Amazon API Gateway domain name.
|
static interface |
CfnDomainName.MutualTlsAuthenticationProperty
The mutual TLS authentication configuration for a custom domain name.
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnDomainName(Construct scope,
java.lang.String id)
Create a new `AWS::ApiGateway::DomainName`.
|
|
CfnDomainName(Construct scope,
java.lang.String id,
CfnDomainNameProps props)
Create a new `AWS::ApiGateway::DomainName`.
|
protected |
CfnDomainName(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDomainName(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrDistributionDomainName()
The Amazon CloudFront distribution domain name that's mapped to the custom domain name.
|
java.lang.String |
getAttrDistributionHostedZoneId()
The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint.
|
java.lang.String |
getAttrRegionalDomainName()
The domain name associated with the regional endpoint for this custom domain name.
|
java.lang.String |
getAttrRegionalHostedZoneId()
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.
|
java.lang.String |
getCertificateArn()
The reference to an AWS -managed certificate that will be used by edge-optimized endpoint for this domain name.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getDomainName()
The custom domain name as an API host name, for example, `my-api.example.com` .
|
java.lang.Object |
getEndpointConfiguration()
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
|
java.lang.Object |
getMutualTlsAuthentication()
The mutual TLS authentication configuration for a custom domain name.
|
java.lang.String |
getOwnershipVerificationCertificateArn()
The ARN of the public certificate issued by ACM to validate ownership of your custom domain.
|
java.lang.String |
getRegionalCertificateArn()
The reference to an AWS -managed certificate that will be used for validating the regional domain name.
|
java.lang.String |
getSecurityPolicy()
The Transport Layer Security (TLS) version + cipher suite for this DomainName.
|
TagManager |
getTags()
The collection of tags.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCertificateArn(java.lang.String value)
The reference to an AWS -managed certificate that will be used by edge-optimized endpoint for this domain name.
|
void |
setDomainName(java.lang.String value)
The custom domain name as an API host name, for example, `my-api.example.com` .
|
void |
setEndpointConfiguration(CfnDomainName.EndpointConfigurationProperty value)
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
|
void |
setEndpointConfiguration(IResolvable value)
The endpoint configuration of this DomainName showing the endpoint types of the domain name.
|
void |
setMutualTlsAuthentication(CfnDomainName.MutualTlsAuthenticationProperty value)
The mutual TLS authentication configuration for a custom domain name.
|
void |
setMutualTlsAuthentication(IResolvable value)
The mutual TLS authentication configuration for a custom domain name.
|
void |
setOwnershipVerificationCertificateArn(java.lang.String value)
The ARN of the public certificate issued by ACM to validate ownership of your custom domain.
|
void |
setRegionalCertificateArn(java.lang.String value)
The reference to an AWS -managed certificate that will be used for validating the regional domain name.
|
void |
setSecurityPolicy(java.lang.String value)
The Transport Layer Security (TLS) version + cipher suite for this DomainName.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnDomainName(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDomainName(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnDomainName(Construct scope, java.lang.String id, CfnDomainNameProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnDomainName(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrDistributionDomainName()
This is only applicable for endpoints whose type is EDGE
.
Example: d111111abcdef8.cloudfront.net
public java.lang.String getAttrDistributionHostedZoneId()
The only valid value is Z2FDTNDATAQYW2
for all regions.
public java.lang.String getAttrRegionalDomainName()
You set up this association by adding a DNS record that points the custom domain name to this regional domain name.
public java.lang.String getAttrRegionalHostedZoneId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public TagManager getTags()
Each tag element is associated with a given resource.
public java.lang.String getCertificateArn()
AWS Certificate Manager is the only supported source.
public void setCertificateArn(java.lang.String value)
AWS Certificate Manager is the only supported source.
public java.lang.String getDomainName()
public void setDomainName(java.lang.String value)
public java.lang.Object getEndpointConfiguration()
public void setEndpointConfiguration(IResolvable value)
public void setEndpointConfiguration(CfnDomainName.EndpointConfigurationProperty value)
public java.lang.Object getMutualTlsAuthentication()
If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
public void setMutualTlsAuthentication(IResolvable value)
If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
public void setMutualTlsAuthentication(CfnDomainName.MutualTlsAuthenticationProperty value)
If specified, API Gateway performs two-way authentication between the client and the server. Clients must present a trusted certificate to access your API.
public java.lang.String getOwnershipVerificationCertificateArn()
Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the RegionalCertificateArn.
public void setOwnershipVerificationCertificateArn(java.lang.String value)
Only required when configuring mutual TLS and using an ACM imported or private CA certificate ARN as the RegionalCertificateArn.
public java.lang.String getRegionalCertificateArn()
AWS Certificate Manager is the only supported source.
public void setRegionalCertificateArn(java.lang.String value)
AWS Certificate Manager is the only supported source.
public java.lang.String getSecurityPolicy()
The valid values are TLS_1_0
and TLS_1_2
.
public void setSecurityPolicy(java.lang.String value)
The valid values are TLS_1_0
and TLS_1_2
.