Interface CreateUserPoolDomainRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CognitoIdentityProviderRequest.Builder
,CopyableBuilder<CreateUserPoolDomainRequest.Builder,
,CreateUserPoolDomainRequest> SdkBuilder<CreateUserPoolDomainRequest.Builder,
,CreateUserPoolDomainRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateUserPoolDomainRequest
-
Method Summary
Modifier and TypeMethodDescriptioncustomDomainConfig
(Consumer<CustomDomainConfigType.Builder> customDomainConfig) The configuration for a custom domain.customDomainConfig
(CustomDomainConfigType customDomainConfig) The configuration for a custom domain.The domain string.managedLoginVersion
(Integer managedLoginVersion) The version of managed login branding that you want to apply to your domain.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.userPoolId
(String userPoolId) The ID of the user pool where you want to add a domain.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
domain
The domain string. For custom domains, this is the fully-qualified domain name, such as
auth.example.com
. For prefix domains, this is the prefix alone, such asmyprefix
. A prefix value ofmyprefix
for a user pool in theus-east-1
Region results in a domain ofmyprefix.auth.us-east-1.amazoncognito.com
.- Parameters:
domain
- The domain string. For custom domains, this is the fully-qualified domain name, such asauth.example.com
. For prefix domains, this is the prefix alone, such asmyprefix
. A prefix value ofmyprefix
for a user pool in theus-east-1
Region results in a domain ofmyprefix.auth.us-east-1.amazoncognito.com
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userPoolId
The ID of the user pool where you want to add a domain.
- Parameters:
userPoolId
- The ID of the user pool where you want to add a domain.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
managedLoginVersion
The version of managed login branding that you want to apply to your domain. A value of
1
indicates hosted UI (classic) and a version of2
indicates managed login.Managed login requires that your user pool be configured for any feature plan other than
Lite
.- Parameters:
managedLoginVersion
- The version of managed login branding that you want to apply to your domain. A value of1
indicates hosted UI (classic) and a version of2
indicates managed login.Managed login requires that your user pool be configured for any feature plan other than
Lite
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDomainConfig
The configuration for a custom domain. Configures your domain with an Certificate Manager certificate in the
us-east-1
Region.Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can omit this parameter and use a prefix domain instead.
When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.
- Parameters:
customDomainConfig
- The configuration for a custom domain. Configures your domain with an Certificate Manager certificate in theus-east-1
Region.Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can omit this parameter and use a prefix domain instead.
When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
customDomainConfig
default CreateUserPoolDomainRequest.Builder customDomainConfig(Consumer<CustomDomainConfigType.Builder> customDomainConfig) The configuration for a custom domain. Configures your domain with an Certificate Manager certificate in the
us-east-1
Region.Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can omit this parameter and use a prefix domain instead.
When you create a custom domain, the passkey RP ID defaults to the custom domain. If you had a prefix domain active, this will cause passkey integration for your prefix domain to stop working due to a mismatch in RP ID. To keep the prefix domain passkey integration working, you can explicitly set RP ID to the prefix domain.
This is a convenience method that creates an instance of theCustomDomainConfigType.Builder
avoiding the need to create one manually viaCustomDomainConfigType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomDomainConfig(CustomDomainConfigType)
.- Parameters:
customDomainConfig
- a consumer that will call methods onCustomDomainConfigType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateUserPoolDomainRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateUserPoolDomainRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-