Update User Pool Domain
cognitoidentityprovider_update_user_pool_domain | R Documentation |
A user pool domain hosts managed login, an authorization server and web server for authentication in your application¶
Description¶
A user pool domain hosts managed login, an authorization server and web
server for authentication in your application. This operation updates
the branding version for user pool domains between 1
for hosted UI
(classic) and 2
for managed login. It also updates the SSL certificate
for user pool custom domains.
Changes to the domain branding version take up to one minute to take effect for a prefix domain and up to five minutes for a custom domain.
This operation doesn't change the name of your user pool domain. To
change your domain, delete it with delete_user_pool_domain
and create
a new domain with create_user_pool_domain
.
You can pass the ARN of a new Certificate Manager certificate in this request. Typically, ACM certificates automatically renew and you user pool can continue to use the same ARN. But if you generate a new certificate for your custom domain name, replace the original configuration with the new ARN in this request.
ACM certificates for custom domains must be in the US East (N. Virginia) Amazon Web Services Region. After you submit your request, Amazon Cognito requires up to 1 hour to distribute your new certificate to your custom domain.
For more information about adding a custom domain to your user pool, see Configuring a user pool domain.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Usage¶
cognitoidentityprovider_update_user_pool_domain(Domain, UserPoolId,
ManagedLoginVersion, CustomDomainConfig)
Arguments¶
Domain
[required] The domain name for the custom domain that hosts the sign-up and sign-in pages for your application. One example might be
auth.example.com
.This string can include only lowercase letters, numbers, and hyphens. Don't use a hyphen for the first or last character. Use periods to separate subdomain names.
UserPoolId
[required] The ID of the user pool that is associated with the custom domain whose certificate you're updating.
ManagedLoginVersion
A version number that indicates the state of managed login for your domain. Version
1
is hosted UI (classic). Version2
is the newer managed login with the branding designer. For more information, see Managed login.CustomDomainConfig
The configuration for a custom domain that hosts the sign-up and sign-in pages for your application. Use this object to specify an SSL certificate that is managed by ACM.
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. Update the RP ID in a
set_user_pool_mfa_config
request.
Value¶
A list with the following syntax: