AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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 DeleteUserPoolDomain
and create a new domain with CreateUserPoolDomain
.
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
For .NET Core this operation is only available in asynchronous form. Please refer to UpdateUserPoolDomainAsync.
Namespace: Amazon.CognitoIdentityProvider
Assembly: AWSSDK.CognitoIdentityProvider.dll
Version: 3.x.y.z
public virtual UpdateUserPoolDomainResponse UpdateUserPoolDomain( UpdateUserPoolDomainRequest request )
Container for the necessary parameters to execute the UpdateUserPoolDomain service method.
Exception | Condition |
---|---|
ConcurrentModificationException | This exception is thrown if two or more modifications are happening concurrently. |
FeatureUnavailableInTierException | This exception is thrown when a feature you attempted to configure isn't available in your current feature plan. |
InternalErrorException | This exception is thrown when Amazon Cognito encounters an internal error. |
InvalidParameterException | This exception is thrown when the Amazon Cognito service encounters an invalid parameter. |
NotAuthorizedException | This exception is thrown when a user isn't authorized. |
ResourceNotFoundException | This exception is thrown when the Amazon Cognito service can't find the requested resource. |
TooManyRequestsException | This exception is thrown when the user has made too many requests for a given operation. |
.NET Framework:
Supported in: 4.5 and newer, 3.5