Interface UserPoolDomainOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
UserPoolDomainProps
- All Known Implementing Classes:
UserPoolDomainOptions.Jsii$Proxy,UserPoolDomainProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.073Z")
@Stability(Stable)
public interface UserPoolDomainOptions
extends software.amazon.jsii.JsiiSerializable
Options to create a UserPoolDomain.
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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forUserPoolDomainOptionsstatic final classAn implementation forUserPoolDomainOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default CognitoDomainOptionsAssociate a cognito prefix domain with your user pool EithercustomDomainorcognitoDomainmust be specified.default CustomDomainOptionsAssociate a custom domain with your user pool EithercustomDomainorcognitoDomainmust be specified.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCognitoDomain
Associate a cognito prefix domain with your user pool EithercustomDomainorcognitoDomainmust be specified.Default: - not set if `customDomain` is specified, otherwise, throws an error.
-
getCustomDomain
Associate a custom domain with your user pool EithercustomDomainorcognitoDomainmust be specified.Default: - not set if `cognitoDomain` is specified, otherwise, throws an error.
-
builder
- Returns:
- a
UserPoolDomainOptions.BuilderofUserPoolDomainOptions
-