Skip to content

ChangePasswordRequest

Source code in docs_src/capo_cognito_identity_provider/types/change_password_request.py
class ChangePasswordRequest(TypedDict, closed=True):
    previous_password: NotRequired[
        "capo_cognito_identity_provider.types.password_type.PasswordType"
    ]
    """<p>The user's previous password. Required if the user has a password. If the user has no password and only signs in with passwordless authentication options, you can omit this parameter.</p>"""
    proposed_password: "capo_cognito_identity_provider.types.password_type.PasswordType"
    """<p>A new password that you prompted the user to enter in your application.</p>"""
    access_token: "capo_cognito_identity_provider.types.token_model_type.TokenModelType"
    """<p>A valid access token that Amazon Cognito issued to the user whose password you want to change.</p>"""

access_token instance-attribute

access_token: TokenModelType

A valid access token that Amazon Cognito issued to the user whose password you want to change.

previous_password instance-attribute

previous_password: NotRequired[PasswordType]

The user's previous password. Required if the user has a password. If the user has no password and only signs in with passwordless authentication options, you can omit this parameter.

proposed_password instance-attribute

proposed_password: PasswordType

A new password that you prompted the user to enter in your application.