Interface CognitoDomainOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CognitoDomainOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:16.670Z")
@Stability(Stable)
public interface CognitoDomainOptions
extends software.amazon.jsii.JsiiSerializable
Options while specifying a cognito prefix domain.
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());
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCognitoDomainOptions
static final class
An implementation forCognitoDomainOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic CognitoDomainOptions.Builder
builder()
The prefix to the Cognito hosted domain name that will be associated with the user pool.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDomainPrefix
The prefix to the Cognito hosted domain name that will be associated with the user pool. -
builder
- Returns:
- a
CognitoDomainOptions.Builder
ofCognitoDomainOptions
-