@Generated(value="jsii-pacmak/1.71.0 (build f1f58ae)", date="2022-12-07T17:24:44.579Z") @Stability(value=Stable) public interface CustomDomainOptions extends software.amazon.jsii.JsiiSerializable
Example:
UserPool pool = new UserPool(this, "Pool");
pool.addDomain("CognitoDomain", UserPoolDomainOptions.builder()
.cognitoDomain(CognitoDomainOptions.builder()
.domainPrefix("my-awesome-app")
.build())
.build());
String certificateArn = "arn:aws:acm:us-east-1:123456789012:certificate/11-3336f1-44483d-adc7-9cd375c5169d";
ICertificate domainCert = Certificate.fromCertificateArn(this, "domainCert", certificateArn);
pool.addDomain("CustomDomain", UserPoolDomainOptions.builder()
.customDomain(CustomDomainOptions.builder()
.domainName("user.myapp.com")
.certificate(domainCert)
.build())
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
CustomDomainOptions.Builder
A builder for
CustomDomainOptions |
static class |
CustomDomainOptions.Jsii$Proxy
An implementation for
CustomDomainOptions |
| Modifier and Type | Method and Description |
|---|---|
static CustomDomainOptions.Builder |
builder() |
ICertificate |
getCertificate()
The certificate to associate with this domain.
|
String |
getDomainName()
The custom domain name that you would like to associate with this User Pool.
|
@Stability(value=Stable) @NotNull ICertificate getCertificate()
@Stability(value=Stable) @NotNull String getDomainName()
@Stability(value=Stable) static CustomDomainOptions.Builder builder()
CustomDomainOptions.Builder of CustomDomainOptionsCopyright © 2022. All rights reserved.