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