StringAttributeConstraints

class aws_cdk.aws_cognito.StringAttributeConstraints(*, max_len=None, min_len=None)

Bases: object

Constraints that can be applied to a custom attribute of string type.

Parameters:
  • max_len (Union[int, float, None]) – Maximum length of this attribute. Default: 2048

  • min_len (Union[int, float, None]) – Minimum length of this attribute. Default: 0

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_cognito as cognito

string_attribute_constraints = cognito.StringAttributeConstraints(
    max_len=123,
    min_len=123
)

Attributes

max_len

Maximum length of this attribute.

Default:

2048

min_len

Minimum length of this attribute.

Default:

0