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 EithercustomDomain
orcognitoDomain
must be specified.static UserPoolDomain.Builder
customDomain
(CustomDomainOptions customDomain) Associate a custom domain with your user pool EithercustomDomain
orcognitoDomain
must be specified.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 EithercustomDomain
orcognitoDomain
must be specified.Default: - not set if `customDomain` is specified, otherwise, throws an error.
- Parameters:
cognitoDomain
- Associate a cognito prefix domain with your user pool EithercustomDomain
orcognitoDomain
must be specified. This parameter is required.- Returns:
this
- See Also:
-
customDomain
Associate a custom domain with your user pool EithercustomDomain
orcognitoDomain
must be specified.Default: - not set if `cognitoDomain` is specified, otherwise, throws an error.
- Parameters:
customDomain
- Associate a custom domain with your user pool EithercustomDomain
orcognitoDomain
must be specified. 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:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolDomain>
- Returns:
- a newly built instance of
UserPoolDomain
.
-