@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.158Z") @Stability(value=Stable) public class DomainName extends Resource implements IDomainName
Object acm;
DomainName.Builder.create(this, "domain-name")
.domainName("example.com")
.certificate(acm.Certificate.fromCertificateArn(this, "cert", "arn:aws:acm:us-east-1:1111111:certificate/11-3336f1-44483d-adc7-9cd375c5169d"))
.mtls(MTLSConfig.builder()
.bucket(new Bucket(this, "bucket"))
.key("truststore.pem")
.version("version")
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
DomainName.Builder
A fluent builder for
DomainName. |
software.amazon.jsii.JsiiObject.InitializationModeIDomainName.Jsii$Default, IDomainName.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
DomainName(software.constructs.Construct scope,
String id,
DomainNameProps props) |
protected |
DomainName(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
DomainName(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
BasePathMapping |
addBasePathMapping(IRestApi targetApi)
Maps this domain to an API endpoint.
|
BasePathMapping |
addBasePathMapping(IRestApi targetApi,
BasePathMappingOptions options)
Maps this domain to an API endpoint.
|
static IDomainName |
fromDomainNameAttributes(software.constructs.Construct scope,
String id,
DomainNameAttributes attrs)
Imports an existing domain name.
|
String |
getDomainName()
The domain name (e.g.
|
String |
getDomainNameAliasDomainName()
The Route53 alias target to use in order to connect a record set to this domain through an alias.
|
String |
getDomainNameAliasHostedZoneId()
The Route53 hosted zone ID to use in order to connect a record set to this domain through an alias.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected DomainName(software.amazon.jsii.JsiiObjectRef objRef)
protected DomainName(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public DomainName(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
DomainNameProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static IDomainName fromDomainNameAttributes(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DomainNameAttributes attrs)
scope - This parameter is required.id - This parameter is required.attrs - This parameter is required.@Stability(value=Stable) @NotNull public BasePathMapping addBasePathMapping(@NotNull IRestApi targetApi, @Nullable BasePathMappingOptions options)
targetApi - That target API endpoint, requests will be mapped to the deployment stage. This parameter is required.options - Options for mapping to base path with or without a stage.@Stability(value=Stable) @NotNull public BasePathMapping addBasePathMapping(@NotNull IRestApi targetApi)
targetApi - That target API endpoint, requests will be mapped to the deployment stage. This parameter is required.@Stability(value=Stable) @NotNull public String getDomainName()
getDomainName in interface IDomainName@Stability(value=Stable) @NotNull public String getDomainNameAliasDomainName()
getDomainNameAliasDomainName in interface IDomainName@Stability(value=Stable) @NotNull public String getDomainNameAliasHostedZoneId()
getDomainNameAliasHostedZoneId in interface IDomainNameCopyright © 2022. All rights reserved.