@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.258Z") @Stability(value=Stable) public class CfnDomainName extends CfnResource implements IInspectable
The AWS::ApiGatewayV2::DomainName resource specifies a custom domain name for your API in Amazon API Gateway (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.apigatewayv2.*;
Object tags;
CfnDomainName cfnDomainName = CfnDomainName.Builder.create(this, "MyCfnDomainName")
.domainName("domainName")
// the properties below are optional
.domainNameConfigurations(List.of(DomainNameConfigurationProperty.builder()
.certificateArn("certificateArn")
.certificateName("certificateName")
.endpointType("endpointType")
.ownershipVerificationCertificateArn("ownershipVerificationCertificateArn")
.securityPolicy("securityPolicy")
.build()))
.mutualTlsAuthentication(MutualTlsAuthenticationProperty.builder()
.truststoreUri("truststoreUri")
.truststoreVersion("truststoreVersion")
.build())
.tags(tags)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDomainName.Builder
A fluent builder for
CfnDomainName. |
static interface |
CfnDomainName.DomainNameConfigurationProperty
The `DomainNameConfiguration` property type specifies the configuration for a an API's domain name.
|
static interface |
CfnDomainName.MutualTlsAuthenticationProperty
If specified, API Gateway performs two-way authentication between the client and the server.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDomainName(software.constructs.Construct scope,
String id,
CfnDomainNameProps props)
Create a new `AWS::ApiGatewayV2::DomainName`.
|
protected |
CfnDomainName(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDomainName(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrRegionalDomainName()
The domain name associated with the regional endpoint for this custom domain name.
|
String |
getAttrRegionalHostedZoneId()
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDomainName()
The custom domain name for your API in Amazon API Gateway.
|
Object |
getDomainNameConfigurations()
The domain name configurations.
|
Object |
getMutualTlsAuthentication()
The mutual TLS authentication configuration for a custom domain name.
|
TagManager |
getTags()
The collection of tags associated with a domain name.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDomainName(String value)
The custom domain name for your API in Amazon API Gateway.
|
void |
setDomainNameConfigurations(IResolvable value)
The domain name configurations.
|
void |
setDomainNameConfigurations(List<Object> value)
The domain name configurations.
|
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.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDomainName(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDomainName(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDomainName(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrRegionalDomainName()
You set up this association by adding a DNS record that points the custom domain name to this regional domain name.
@Stability(value=Stable) @NotNull public String getAttrRegionalHostedZoneId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public String getDomainName()
Uppercase letters are not supported.
@Stability(value=Stable)
public void setDomainName(@NotNull
String value)
Uppercase letters are not supported.
@Stability(value=Stable) @Nullable public Object getDomainNameConfigurations()
@Stability(value=Stable)
public void setDomainNameConfigurations(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setDomainNameConfigurations(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public Object getMutualTlsAuthentication()
@Stability(value=Stable)
public void setMutualTlsAuthentication(@Nullable
CfnDomainName.MutualTlsAuthenticationProperty value)
@Stability(value=Stable)
public void setMutualTlsAuthentication(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.