class NumberAttribute
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Cognito.NumberAttribute |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscognito#NumberAttribute |
Java | software.amazon.awscdk.services.cognito.NumberAttribute |
Python | aws_cdk.aws_cognito.NumberAttribute |
TypeScript (source) | aws-cdk-lib » aws_cognito » NumberAttribute |
Implements
ICustom
The Number 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 NumberAttribute(props?: NumberAttributeProps)
Parameters
- props
Number
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.