aws-cdk-lib.aws_cognito.CfnUserPoolDomainProps

interface CfnUserPoolDomainProps

LanguageType name
.NETAmazon.CDK.AWS.Cognito.CfnUserPoolDomainProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscognito#CfnUserPoolDomainProps
Javasoftware.amazon.awscdk.services.cognito.CfnUserPoolDomainProps
Pythonaws_cdk.aws_cognito.CfnUserPoolDomainProps
TypeScript aws-cdk-lib » aws_cognito » CfnUserPoolDomainProps

Properties for defining a CfnUserPoolDomain.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cognito as cognito } from 'aws-cdk-lib';
const cfnUserPoolDomainProps: cognito.CfnUserPoolDomainProps = {
  domain: 'domain',
  userPoolId: 'userPoolId',

  // the properties below are optional
  customDomainConfig: {
    certificateArn: 'certificateArn',
  },
};

Properties

NameTypeDescription
domainstringThe domain name for the domain that hosts the sign-up and sign-in pages for your application.
userPoolIdstringThe user pool ID for the user pool where you want to associate a user pool domain.
customDomainConfig?IResolvable | CustomDomainConfigTypePropertyThe configuration for a custom domain that hosts the sign-up and sign-in pages for your application.

domain

Type: string

The domain name for the domain that hosts the sign-up and sign-in pages for your application.

For example: auth.example.com . If you're using a prefix domain, this field denotes the first part of the domain before .auth.[region].amazoncognito.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

Type: string

The user pool ID for the user pool where you want to associate a user pool domain.


customDomainConfig?

Type: IResolvable | CustomDomainConfigTypeProperty (optional)

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.