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.104.0 (build e79254c)",
date="2024-11-06T23:25:06.419Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forUserPoolDomainOptions
static final class
An implementation forUserPoolDomainOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default CognitoDomainOptions
Associate a cognito prefix domain with your user pool EithercustomDomain
orcognitoDomain
must be specified.default CustomDomainOptions
Associate a custom domain with your user pool EithercustomDomain
orcognitoDomain
must be specified.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCognitoDomain
Associate a cognito prefix domain with your user pool EithercustomDomain
orcognitoDomain
must be specified.Default: - not set if `customDomain` is specified, otherwise, throws an error.
- See Also:
-
getCustomDomain
Associate a custom domain with your user pool EithercustomDomain
orcognitoDomain
must be specified.Default: - not set if `cognitoDomain` is specified, otherwise, throws an error.
- See Also:
-
builder
- Returns:
- a
UserPoolDomainOptions.Builder
ofUserPoolDomainOptions
-