Class CfnDomainNameV2
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.apigateway.CfnDomainNameV2
- All Implemented Interfaces:
IInspectable,ITaggableV2,IDomainNameV2Ref,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:31.410Z")
@Stability(Stable)
public class CfnDomainNameV2
extends CfnResource
implements IInspectable, IDomainNameV2Ref, ITaggableV2
The
AWS::ApiGateway::DomainNameV2 resource specifies a custom domain name for your private APIs in API Gateway.
You can use a private custom domain name to provide a URL for your private API that's more intuitive and easier to recall.
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.*;
Object policy;
CfnDomainNameV2 cfnDomainNameV2 = CfnDomainNameV2.Builder.create(this, "MyCfnDomainNameV2")
.certificateArn("certificateArn")
.domainName("domainName")
.endpointConfiguration(EndpointConfigurationProperty.builder()
.ipAddressType("ipAddressType")
.types(List.of("types"))
.build())
.policy(policy)
.routingMode("routingMode")
.securityPolicy("securityPolicy")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDomainNameV2.static interfaceThe endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.apigateway.IDomainNameV2Ref
IDomainNameV2Ref.Jsii$Default, IDomainNameV2Ref.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDomainNameV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDomainNameV2(software.amazon.jsii.JsiiObjectRef objRef) CfnDomainNameV2(software.constructs.Construct scope, String id) CfnDomainNameV2(software.constructs.Construct scope, String id, CfnDomainNameV2Props props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the domain name.The domain name ID.Tag Manager which manages the tags for this resource.The reference to an AWS -managed certificate that will be used by the private endpoint for this domain name.Represents a custom domain name as a user-friendly host name of an API (RestApi).A reference to a DomainNameV2 resource.The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.A stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration.The routing mode for this domain name.The Transport Layer Security (TLS) version + cipher suite for this DomainName.getTags()The collection of tags.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCertificateArn(String value) The reference to an AWS -managed certificate that will be used by the private endpoint for this domain name.voidsetDomainName(String value) Represents a custom domain name as a user-friendly host name of an API (RestApi).voidThe endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.voidThe endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.voidA stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration.voidsetRoutingMode(String value) The routing mode for this domain name.voidsetSecurityPolicy(String value) The Transport Layer Security (TLS) version + cipher suite for this DomainName.voidThe collection of tags.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDomainNameV2
protected CfnDomainNameV2(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDomainNameV2
protected CfnDomainNameV2(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDomainNameV2
@Stability(Stable) public CfnDomainNameV2(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnDomainNameV2Props props) - 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.props- Resource properties.
-
CfnDomainNameV2
@Stability(Stable) public CfnDomainNameV2(@NotNull software.constructs.Construct scope, @NotNull 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.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrDomainNameArn
The ARN of the domain name. -
getAttrDomainNameId
The domain name ID. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDomainNameV2Ref
A reference to a DomainNameV2 resource.- Specified by:
getDomainNameV2Refin interfaceIDomainNameV2Ref
-
getCertificateArn
The reference to an AWS -managed certificate that will be used by the private endpoint for this domain name. -
setCertificateArn
The reference to an AWS -managed certificate that will be used by the private endpoint for this domain name. -
getDomainName
Represents a custom domain name as a user-friendly host name of an API (RestApi). -
setDomainName
Represents a custom domain name as a user-friendly host name of an API (RestApi). -
getEndpointConfiguration
The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.Returns union: either
IResolvableorCfnDomainNameV2.EndpointConfigurationProperty -
setEndpointConfiguration
The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it. -
setEndpointConfiguration
@Stability(Stable) public void setEndpointConfiguration(@Nullable CfnDomainNameV2.EndpointConfigurationProperty value) The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it. -
getPolicy
A stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration. -
setPolicy
A stringified JSON policy document that applies to theexecute-apiservice for this DomainName regardless of the caller and Method configuration. -
getRoutingMode
The routing mode for this domain name. -
setRoutingMode
The routing mode for this domain name. -
getSecurityPolicy
The Transport Layer Security (TLS) version + cipher suite for this DomainName. -
setSecurityPolicy
The Transport Layer Security (TLS) version + cipher suite for this DomainName. -
getTags
The collection of tags. -
setTags
The collection of tags.
-