Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Allows a user to enter a confirmation code to reset a forgotten password.
Synopsis
- data ConfirmForgotPassword = ConfirmForgotPassword' {}
- newConfirmForgotPassword :: Text -> Text -> Text -> Text -> ConfirmForgotPassword
- confirmForgotPassword_clientMetadata :: Lens' ConfirmForgotPassword (Maybe (HashMap Text Text))
- confirmForgotPassword_analyticsMetadata :: Lens' ConfirmForgotPassword (Maybe AnalyticsMetadataType)
- confirmForgotPassword_userContextData :: Lens' ConfirmForgotPassword (Maybe UserContextDataType)
- confirmForgotPassword_secretHash :: Lens' ConfirmForgotPassword (Maybe Text)
- confirmForgotPassword_clientId :: Lens' ConfirmForgotPassword Text
- confirmForgotPassword_username :: Lens' ConfirmForgotPassword Text
- confirmForgotPassword_confirmationCode :: Lens' ConfirmForgotPassword Text
- confirmForgotPassword_password :: Lens' ConfirmForgotPassword Text
- data ConfirmForgotPasswordResponse = ConfirmForgotPasswordResponse' {
- httpStatus :: Int
- newConfirmForgotPasswordResponse :: Int -> ConfirmForgotPasswordResponse
- confirmForgotPasswordResponse_httpStatus :: Lens' ConfirmForgotPasswordResponse Int
Creating a Request
data ConfirmForgotPassword Source #
The request representing the confirmation for a password reset.
See: newConfirmForgotPassword
smart constructor.
ConfirmForgotPassword' | |
|
Instances
newConfirmForgotPassword Source #
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> ConfirmForgotPassword |
Create a value of ConfirmForgotPassword
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:clientMetadata:ConfirmForgotPassword'
, confirmForgotPassword_clientMetadata
- A map of custom key-value pairs that you can provide as input for any
custom workflows that this action triggers.
You create custom workflows by assigning Lambda functions to user pool
triggers. When you use the ConfirmForgotPassword API action, Amazon
Cognito invokes the function that is assigned to the post confirmation
trigger. When Amazon Cognito invokes this function, it passes a JSON
payload, which the function receives as input. This payload contains a
clientMetadata
attribute, which provides the data that you assigned to
the ClientMetadata parameter in your ConfirmForgotPassword request. In
your function code in Lambda, you can process the clientMetadata
value
to enhance your workflow for your specific needs.
For more information, see Customizing User Pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
Take the following limitations into consideration when you use the ClientMetadata parameter:
- Amazon Cognito does not store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration does not include triggers, the ClientMetadata parameter serves no purpose.
- Amazon Cognito does not validate the ClientMetadata value.
- Amazon Cognito does not encrypt the the ClientMetadata value, so don't use it to provide sensitive information.
$sel:analyticsMetadata:ConfirmForgotPassword'
, confirmForgotPassword_analyticsMetadata
- The Amazon Pinpoint analytics metadata for collecting metrics for
ConfirmForgotPassword
calls.
$sel:userContextData:ConfirmForgotPassword'
, confirmForgotPassword_userContextData
- 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.
$sel:secretHash:ConfirmForgotPassword'
, confirmForgotPassword_secretHash
- 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.
$sel:clientId:ConfirmForgotPassword'
, confirmForgotPassword_clientId
- The app client ID of the app associated with the user pool.
$sel:username:ConfirmForgotPassword'
, confirmForgotPassword_username
- The user name of the user for whom you want to enter a code to retrieve
a forgotten password.
$sel:confirmationCode:ConfirmForgotPassword'
, confirmForgotPassword_confirmationCode
- The confirmation code sent by a user's request to retrieve a forgotten
password. For more information, see
ForgotPassword.
$sel:password:ConfirmForgotPassword'
, confirmForgotPassword_password
- The password sent by a user's request to retrieve a forgotten password.
Request Lenses
confirmForgotPassword_clientMetadata :: Lens' ConfirmForgotPassword (Maybe (HashMap Text Text)) Source #
A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.
You create custom workflows by assigning Lambda functions to user pool
triggers. When you use the ConfirmForgotPassword API action, Amazon
Cognito invokes the function that is assigned to the post confirmation
trigger. When Amazon Cognito invokes this function, it passes a JSON
payload, which the function receives as input. This payload contains a
clientMetadata
attribute, which provides the data that you assigned to
the ClientMetadata parameter in your ConfirmForgotPassword request. In
your function code in Lambda, you can process the clientMetadata
value
to enhance your workflow for your specific needs.
For more information, see Customizing User Pool Workflows with Lambda Triggers in the Amazon Cognito Developer Guide.
Take the following limitations into consideration when you use the ClientMetadata parameter:
- Amazon Cognito does not store the ClientMetadata value. This data is available only to Lambda triggers that are assigned to a user pool to support custom workflows. If your user pool configuration does not include triggers, the ClientMetadata parameter serves no purpose.
- Amazon Cognito does not validate the ClientMetadata value.
- Amazon Cognito does not encrypt the the ClientMetadata value, so don't use it to provide sensitive information.
confirmForgotPassword_analyticsMetadata :: Lens' ConfirmForgotPassword (Maybe AnalyticsMetadataType) Source #
The Amazon Pinpoint analytics metadata for collecting metrics for
ConfirmForgotPassword
calls.
confirmForgotPassword_userContextData :: Lens' ConfirmForgotPassword (Maybe UserContextDataType) Source #
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.
confirmForgotPassword_secretHash :: Lens' ConfirmForgotPassword (Maybe Text) Source #
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.
confirmForgotPassword_clientId :: Lens' ConfirmForgotPassword Text Source #
The app client ID of the app associated with the user pool.
confirmForgotPassword_username :: Lens' ConfirmForgotPassword Text Source #
The user name of the user for whom you want to enter a code to retrieve a forgotten password.
confirmForgotPassword_confirmationCode :: Lens' ConfirmForgotPassword Text Source #
The confirmation code sent by a user's request to retrieve a forgotten password. For more information, see ForgotPassword.
confirmForgotPassword_password :: Lens' ConfirmForgotPassword Text Source #
The password sent by a user's request to retrieve a forgotten password.
Destructuring the Response
data ConfirmForgotPasswordResponse Source #
The response from the server that results from a user's request to retrieve a forgotten password.
See: newConfirmForgotPasswordResponse
smart constructor.
ConfirmForgotPasswordResponse' | |
|
Instances
Eq ConfirmForgotPasswordResponse Source # | |
Read ConfirmForgotPasswordResponse Source # | |
Show ConfirmForgotPasswordResponse Source # | |
Generic ConfirmForgotPasswordResponse Source # | |
NFData ConfirmForgotPasswordResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword rnf :: ConfirmForgotPasswordResponse -> () # | |
type Rep ConfirmForgotPasswordResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword type Rep ConfirmForgotPasswordResponse = D1 ('MetaData "ConfirmForgotPasswordResponse" "Amazonka.CognitoIdentityProvider.ConfirmForgotPassword" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "ConfirmForgotPasswordResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newConfirmForgotPasswordResponse Source #
Create a value of ConfirmForgotPasswordResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:ConfirmForgotPasswordResponse'
, confirmForgotPasswordResponse_httpStatus
- The response's http status code.
Response Lenses
confirmForgotPasswordResponse_httpStatus :: Lens' ConfirmForgotPasswordResponse Int Source #
The response's http status code.