class CfnUserPoolPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Cognito.Mixins.CfnUserPoolPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscognito/mixins#CfnUserPoolPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.cognito.mixins.CfnUserPoolPropsMixin |
Python | aws_cdk.mixins_preview.aws_cognito.mixins.CfnUserPoolPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_cognito » mixins » CfnUserPoolPropsMixin |
Implements
IMixin
Extends
Mixin
The AWS::Cognito::UserPool resource creates an Amazon Cognito user pool.
For more information on working with Amazon Cognito user pools, see Amazon Cognito User Pools and CreateUserPool .
If you don't specify a value for a parameter, Amazon Cognito sets it to a default value.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cognito-userpool.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as cognito_mixins } from '@aws-cdk/mixins-preview/aws-cognito';
declare const userPoolTags: any;
const cfnUserPoolPropsMixin = new cognito_mixins.CfnUserPoolPropsMixin({
accountRecoverySetting: {
recoveryMechanisms: [{
name: 'name',
priority: 123,
}],
},
adminCreateUserConfig: {
allowAdminCreateUserOnly: false,
inviteMessageTemplate: {
emailMessage: 'emailMessage',
emailSubject: 'emailSubject',
smsMessage: 'smsMessage',
},
unusedAccountValidityDays: 123,
},
aliasAttributes: ['aliasAttributes'],
autoVerifiedAttributes: ['autoVerifiedAttributes'],
deletionProtection: 'deletionProtection',
deviceConfiguration: {
challengeRequiredOnNewDevice: false,
deviceOnlyRememberedOnUserPrompt: false,
},
emailAuthenticationMessage: 'emailAuthenticationMessage',
emailAuthenticationSubject: 'emailAuthenticationSubject',
emailConfiguration: {
configurationSet: 'configurationSet',
emailSendingAccount: 'emailSendingAccount',
from: 'from',
replyToEmailAddress: 'replyToEmailAddress',
sourceArn: 'sourceArn',
},
emailVerificationMessage: 'emailVerificationMessage',
emailVerificationSubject: 'emailVerificationSubject',
enabledMfas: ['enabledMfas'],
lambdaConfig: {
createAuthChallenge: 'createAuthChallenge',
customEmailSender: {
lambdaArn: 'lambdaArn',
lambdaVersion: 'lambdaVersion',
},
customMessage: 'customMessage',
customSmsSender: {
lambdaArn: 'lambdaArn',
lambdaVersion: 'lambdaVersion',
},
defineAuthChallenge: 'defineAuthChallenge',
kmsKeyId: 'kmsKeyId',
postAuthentication: 'postAuthentication',
postConfirmation: 'postConfirmation',
preAuthentication: 'preAuthentication',
preSignUp: 'preSignUp',
preTokenGeneration: 'preTokenGeneration',
preTokenGenerationConfig: {
lambdaArn: 'lambdaArn',
lambdaVersion: 'lambdaVersion',
},
userMigration: 'userMigration',
verifyAuthChallengeResponse: 'verifyAuthChallengeResponse',
},
mfaConfiguration: 'mfaConfiguration',
policies: {
passwordPolicy: {
minimumLength: 123,
passwordHistorySize: 123,
requireLowercase: false,
requireNumbers: false,
requireSymbols: false,
requireUppercase: false,
temporaryPasswordValidityDays: 123,
},
signInPolicy: {
allowedFirstAuthFactors: ['allowedFirstAuthFactors'],
},
},
schema: [{
attributeDataType: 'attributeDataType',
developerOnlyAttribute: false,
mutable: false,
name: 'name',
numberAttributeConstraints: {
maxValue: 'maxValue',
minValue: 'minValue',
},
required: false,
stringAttributeConstraints: {
maxLength: 'maxLength',
minLength: 'minLength',
},
}],
smsAuthenticationMessage: 'smsAuthenticationMessage',
smsConfiguration: {
externalId: 'externalId',
snsCallerArn: 'snsCallerArn',
snsRegion: 'snsRegion',
},
smsVerificationMessage: 'smsVerificationMessage',
userAttributeUpdateSettings: {
attributesRequireVerificationBeforeUpdate: ['attributesRequireVerificationBeforeUpdate'],
},
usernameAttributes: ['usernameAttributes'],
usernameConfiguration: {
caseSensitive: false,
},
userPoolAddOns: {
advancedSecurityAdditionalFlows: {
customAuthMode: 'customAuthMode',
},
advancedSecurityMode: 'advancedSecurityMode',
},
userPoolName: 'userPoolName',
userPoolTags: userPoolTags,
userPoolTier: 'userPoolTier',
verificationMessageTemplate: {
defaultEmailOption: 'defaultEmailOption',
emailMessage: 'emailMessage',
emailMessageByLink: 'emailMessageByLink',
emailSubject: 'emailSubject',
emailSubjectByLink: 'emailSubjectByLink',
smsMessage: 'smsMessage',
},
webAuthnRelyingPartyId: 'webAuthnRelyingPartyId',
webAuthnUserVerification: 'webAuthnUserVerification',
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnUserPoolPropsMixin(props: CfnUserPoolMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.User Pool Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::Cognito::UserPool.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript