Class DomainName
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.apigatewayv2.DomainName
- All Implemented Interfaces:
IEnvironmentAware,IResource,IDomainName,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:27.974Z")
@Stability(Stable)
public class DomainName
extends Resource
implements IDomainName
Custom domain resource for the API.
Example:
import software.amazon.awscdk.services.s3.*;
import software.amazon.awscdk.services.certificatemanager.*;
Bucket bucket;
String certArn = "arn:aws:acm:us-east-1:111111111111:certificate";
String domainName = "example.com";
DomainName.Builder.create(this, "DomainName")
.domainName(domainName)
.certificate(Certificate.fromCertificateArn(this, "cert", certArn))
.mtls(MTLSConfig.builder()
.bucket(bucket)
.key("someca.pem")
.version("version")
.build())
.build();
-
Nested Class Summary
Nested ClassesNested 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.apigatewayv2.IDomainName
IDomainName.Jsii$Default, IDomainName.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDomainName(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDomainName(software.amazon.jsii.JsiiObjectRef objRef) DomainName(software.constructs.Construct scope, String id, DomainNameProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEndpoint(EndpointOptions options) Adds an endpoint to a domain name.static IDomainNamefromDomainNameAttributes(software.constructs.Construct scope, String id, DomainNameAttributes attrs) Import from attributes.getName()The custom domain name.The domain name associated with the regional endpoint for this custom domain name.The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
DomainName
protected DomainName(software.amazon.jsii.JsiiObjectRef objRef) -
DomainName
protected DomainName(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
DomainName
@Stability(Stable) public DomainName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DomainNameProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromDomainNameAttributes
@Stability(Stable) @NotNull public static IDomainName fromDomainNameAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DomainNameAttributes attrs) Import from attributes.- Parameters:
scope- This parameter is required.id- This parameter is required.attrs- This parameter is required.
-
addEndpoint
Adds an endpoint to a domain name.- Parameters:
options- domain name endpoint properties to be set. This parameter is required.
-
getName
The custom domain name.- Specified by:
getNamein interfaceIDomainName
-
getRegionalDomainName
The domain name associated with the regional endpoint for this custom domain name.- Specified by:
getRegionalDomainNamein interfaceIDomainName
-
getRegionalHostedZoneId
The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint.- Specified by:
getRegionalHostedZoneIdin interfaceIDomainName
-