Calling this API causes a message to be sent to the end user with a
confirmation code that is required to change the user's password. For
the Username
parameter, you can use the username or user alias. If a
verified phone number exists for the user, the confirmation code is sent
to the phone number. Otherwise, if a verified email exists, the
confirmation code is sent to the email. If neither a verified phone
number nor a verified email exists, InvalidParameterException
is
thrown. To use the confirmation code for resetting the password, call .
cognitoidentityprovider_forgot_password(ClientId, SecretHash,
UserContextData, Username, AnalyticsMetadata)
[required] The ID of the client associated with the user pool.
A keyed-hash message authentication code (HMAC) calculated using the secret key of a user pool client and username plus the client ID in the message.
Contextual data such as the user's device fingerprint, IP address, or location used for evaluating the risk of an unexpected event by Amazon Cognito advanced security.
[required] The user name of the user for whom you want to enter a code to reset a forgotten password.
The Amazon Pinpoint analytics metadata for collecting metrics for
ForgotPassword
calls.
svc$forgot_password( ClientId = "string", SecretHash = "string", UserContextData = list( EncodedData = "string" ), Username = "string", AnalyticsMetadata = list( AnalyticsEndpointId = "string" ) )