v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14101465558.4 KB

Creates a new domain for a user pool.

post/#X-Amz-Target=AWSCognitoIdentityProviderService.CreateUserPoolDomain

Headers

X-Amz-Target'AWSCognitoIdentityProviderService.CreateUserPoolDomain' required

Request body

Domainstring required

The domain string. For custom domains, this is the fully-qualified domain name, such as <code>auth.example.com</code>. For Amazon Cognito prefix domains, this is the prefix alone, such as <code>auth</code>.

UserPoolIdstring required

The user pool ID.

Response

Success

CloudFrontDomainstring

The Amazon CloudFront endpoint that you use as the target of the alias that you set up with your Domain Name Service (DNS) provider.