Class UserPoolDomain.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolDomain.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolDomain>
- Enclosing class:
UserPoolDomain
@Stability(Stable)
public static final class UserPoolDomain.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolDomain>
A fluent builder for
UserPoolDomain.-
Method Summary
Modifier and TypeMethodDescriptionbuild()cognitoDomain(CognitoDomainOptions cognitoDomain) Associate a cognito prefix domain with your user pool EithercustomDomainorcognitoDomainmust be specified.static UserPoolDomain.BuildercustomDomain(CustomDomainOptions customDomain) Associate a custom domain with your user pool EithercustomDomainorcognitoDomainmust be specified.managedLoginVersion(ManagedLoginVersion managedLoginVersion) A version that indicates the state of managed login.The user pool to which this domain should be associated.
-
Method Details
-
create
@Stability(Stable) public static UserPoolDomain.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
UserPoolDomain.Builder.
-
cognitoDomain
Associate a cognito prefix domain with your user pool EithercustomDomainorcognitoDomainmust be specified.Default: - not set if `customDomain` is specified, otherwise, throws an error.
- Parameters:
cognitoDomain- Associate a cognito prefix domain with your user pool EithercustomDomainorcognitoDomainmust be specified. This parameter is required.- Returns:
this- See Also:
-
customDomain
Associate a custom domain with your user pool EithercustomDomainorcognitoDomainmust be specified.Default: - not set if `cognitoDomain` is specified, otherwise, throws an error.
- Parameters:
customDomain- Associate a custom domain with your user pool EithercustomDomainorcognitoDomainmust be specified. This parameter is required.- Returns:
this- See Also:
-
managedLoginVersion
@Stability(Stable) public UserPoolDomain.Builder managedLoginVersion(ManagedLoginVersion managedLoginVersion) A version that indicates the state of managed login.This choice applies to all app clients that host services at the domain.
Default: undefined - Cognito default setting is ManagedLoginVersion.CLASSIC_HOSTED_UI
- Parameters:
managedLoginVersion- A version that indicates the state of managed login. This parameter is required.- Returns:
this- See Also:
-
userPool
The user pool to which this domain should be associated.- Parameters:
userPool- The user pool to which this domain should be associated. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UserPoolDomain>- Returns:
- a newly built instance of
UserPoolDomain.
-