@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:27.219Z") @Stability(value=Experimental) public interface UserPoolDomainOptions 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 |
UserPoolDomainOptions.Builder
A builder for
UserPoolDomainOptions |
static class |
UserPoolDomainOptions.Jsii$Proxy
An implementation for
UserPoolDomainOptions |
| Modifier and Type | Method and Description |
|---|---|
static UserPoolDomainOptions.Builder |
builder() |
default CognitoDomainOptions |
getCognitoDomain()
(experimental) Associate a cognito prefix domain with your user pool Either `customDomain` or `cognitoDomain` must be specified.
|
default CustomDomainOptions |
getCustomDomain()
(experimental) Associate a custom domain with your user pool Either `customDomain` or `cognitoDomain` must be specified.
|
@Stability(value=Experimental) @Nullable default CognitoDomainOptions getCognitoDomain()
Default: - not set if `customDomain` is specified, otherwise, throws an error.
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-assign-domain-prefix.html@Stability(value=Experimental) @Nullable default CustomDomainOptions getCustomDomain()
Default: - not set if `cognitoDomain` is specified, otherwise, throws an error.
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-add-custom-domain.html@Stability(value=Experimental) static UserPoolDomainOptions.Builder builder()
UserPoolDomainOptions.Builder of UserPoolDomainOptionsCopyright © 2022. All rights reserved.