StringAttribute

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

Bases: object

The String custom attribute type.

stability :stability: experimental

__init__(*, max_len=None, min_len=None, mutable=None)
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

  • mutable (Optional[bool]) – Specifies whether the value of the attribute can be changed. For any user pool attribute that’s mapped to an identity provider attribute, you must set this parameter to true. Amazon Cognito updates mapped attributes when users sign in to your application through an identity provider. If an attribute is immutable, Amazon Cognito throws an error when it attempts to update the attribute. Default: false

stability :stability: experimental

Return type

None

Methods

bind()

Bind this custom attribute type to the values as expected by CloudFormation.

stability :stability: experimental

Return type

CustomAttributeConfig