class BooleanAttribute
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.BooleanAttribute |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#BooleanAttribute |
Java | software.amazon.awscdk.services.cognito.BooleanAttribute |
Python | aws_cdk.aws_cognito.BooleanAttribute |
TypeScript (source) | aws-cdk-lib » aws_cognito » BooleanAttribute |
Implements
ICustom
The Boolean custom attribute type.
Example
new cognito.UserPool(this, 'myuserpool', {
// ...
standardAttributes: {
fullname: {
required: true,
mutable: false,
},
address: {
required: false,
mutable: true,
},
},
customAttributes: {
'myappid': new cognito.StringAttribute({ minLen: 5, maxLen: 15, mutable: false }),
'callingcode': new cognito.NumberAttribute({ min: 1, max: 3, mutable: true }),
'isEmployee': new cognito.BooleanAttribute({ mutable: true }),
'joinedOn': new cognito.DateTimeAttribute(),
},
});
Initializer
new BooleanAttribute(props?: CustomAttributeProps)
Parameters
- props
Custom
Attribute Props
Methods
Name | Description |
---|---|
bind() | Bind this custom attribute type to the values as expected by CloudFormation. |
bind()
public bind(): CustomAttributeConfig
Returns
Bind this custom attribute type to the values as expected by CloudFormation.