@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:46:59.155Z") @Stability(value=Experimental) public class Domain extends Resource
Example:
App amplifyApp;
Branch master;
Branch dev;
Domain domain = amplifyApp.addDomain("example.com", DomainOptions.builder()
.enableAutoSubdomain(true) // in case subdomains should be auto registered for branches
.autoSubdomainCreationPatterns(List.of("*", "pr*"))
.build());
domain.mapRoot(master); // map master branch to domain root
domain.mapSubDomain(master, "www");
domain.mapSubDomain(dev);
| Modifier and Type | Class and Description |
|---|---|
static class |
Domain.Builder
(experimental) A fluent builder for
Domain. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Domain(software.constructs.Construct scope,
String id,
DomainProps props) |
protected |
Domain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Domain(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArn()
(experimental) The ARN of the domain.
|
String |
getCertificateRecord()
(experimental) The DNS Record for certificate verification.
|
List<String> |
getDomainAutoSubDomainCreationPatterns()
(experimental) Branch patterns for the automatically created subdomain.
|
String |
getDomainAutoSubDomainIamRole()
(experimental) The IAM service role for the subdomain.
|
IResolvable |
getDomainEnableAutoSubDomain()
(experimental) Specifies whether the automated creation of subdomains for branches is enabled.
|
String |
getDomainName()
(experimental) The name of the domain.
|
String |
getDomainStatus()
(experimental) The status of the domain association.
|
String |
getStatusReason()
(experimental) The reason for the current status of the domain.
|
Domain |
mapRoot(IBranch branch)
(experimental) Maps a branch to the domain root.
|
Domain |
mapSubDomain(IBranch branch)
(experimental) Maps a branch to a sub domain.
|
Domain |
mapSubDomain(IBranch branch,
String prefix)
(experimental) Maps a branch to a sub domain.
|
protected List<String> |
validate()
(experimental) Validate the current construct.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetNodeprotected Domain(software.amazon.jsii.JsiiObjectRef objRef)
protected Domain(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Domain(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
DomainProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public Domain mapRoot(@NotNull IBranch branch)
branch - This parameter is required.@Stability(value=Experimental) @NotNull public Domain mapSubDomain(@NotNull IBranch branch, @Nullable String prefix)
branch - The branch. This parameter is required.prefix - The prefix.@Stability(value=Experimental) @NotNull public Domain mapSubDomain(@NotNull IBranch branch)
branch - The branch. This parameter is required.@Stability(value=Experimental) @NotNull protected List<String> validate()
This method can be implemented by derived constructs in order to perform validation logic. It is called on all constructs before synthesis.
@Stability(value=Experimental) @NotNull public String getArn()
@Stability(value=Experimental) @NotNull public String getCertificateRecord()
@Stability(value=Experimental) @NotNull public List<String> getDomainAutoSubDomainCreationPatterns()
@Stability(value=Experimental) @NotNull public String getDomainAutoSubDomainIamRole()
@Stability(value=Experimental) @NotNull public IResolvable getDomainEnableAutoSubDomain()
@Stability(value=Experimental) @NotNull public String getDomainName()
@Stability(value=Experimental) @NotNull public String getDomainStatus()
@Stability(value=Experimental) @NotNull public String getStatusReason()
Copyright © 2022. All rights reserved.