Interface DomainOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
DomainProps
- All Known Implementing Classes:
DomainOptions.Jsii$Proxy,DomainProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:49.502Z")
@Stability(Experimental)
public interface DomainOptions
extends software.amazon.jsii.JsiiSerializable
(experimental) Options to add a domain to an application.
Example:
App amplifyApp;
Branch main;
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(main); // map main branch to domain root
domain.mapSubDomain(main, "www");
domain.mapSubDomain(dev);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forDomainOptionsstatic final classAn implementation forDomainOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic DomainOptions.Builderbuilder()(experimental) Branches which should automatically create subdomains.default ICertificate(experimental) The type of SSL/TLS certificate to use for your custom domain.default String(experimental) The name of the domain.default Boolean(experimental) Automatically create subdomains for connected branches.(experimental) Subdomains.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoSubdomainCreationPatterns
(experimental) Branches which should automatically create subdomains.Default: - all repository branches ['*', 'pr*']
-
getCustomCertificate
(experimental) The type of SSL/TLS certificate to use for your custom domain.Default: - Amplify uses the default certificate that it provisions and manages for you
-
getDomainName
(experimental) The name of the domain.Default: - the construct's id
-
getEnableAutoSubdomain
(experimental) Automatically create subdomains for connected branches.Default: false
-
getSubDomains
(experimental) Subdomains.Default: - use `addSubDomain()` to add subdomains
-
builder
- Returns:
- a
DomainOptions.BuilderofDomainOptions
-