delete_user_pool_domain
async
¶
delete_user_pool_domain(
domain: DomainType,
user_pool_id: UserPoolIdType,
*,
config_overrides: Optional[AsyncCognitoIdentityProviderClientConfig] = None,
) -> DeleteUserPoolDomainResponse
Given a user pool ID and domain identifier, deletes a user pool domain. After you delete a user pool domain, your managed login pages and authorization server are no longer available.
Parameters:
-
domain(DomainType) –The domain that you want to delete. For custom domains, this is the fully-qualified domain name like
auth.example.com. For Amazon Cognito prefix domains, this is the prefix alone, likemyprefix. -
user_pool_id(UserPoolIdType) –The ID of the user pool where you want to delete the domain.
Raises:
-
ConcurrentModificationException–This exception is thrown if two or more modifications are happening concurrently.
-
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.
-
OperationNotEnabledException–This exception is thrown when an operation is not available in the current region or for the current user pool configuration. This can occur when attempting to perform operations that are not supported in secondary replica regions.
-
ResourceNotFoundException–This exception is thrown when the Amazon Cognito service can't find the requested resource.
-
UnknownServiceError–The service returned an error code this client does not model.