libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Description

Allows a user to enter a confirmation code to reset a forgotten password.

Synopsis

Creating a Request

data ConfirmForgotPassword Source #

The request representing the confirmation for a password reset.

See: newConfirmForgotPassword smart constructor.

Constructors

ConfirmForgotPassword' 

Fields

  • clientMetadata :: Maybe (HashMap Text Text)

    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.
  • analyticsMetadata :: Maybe AnalyticsMetadataType

    The Amazon Pinpoint analytics metadata for collecting metrics for ConfirmForgotPassword calls.

  • userContextData :: Maybe UserContextDataType

    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.

  • secretHash :: Maybe (Sensitive Text)

    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.

  • clientId :: Sensitive Text

    The app client ID of the app associated with the user pool.

  • username :: Sensitive Text

    The user name of the user for whom you want to enter a code to retrieve a forgotten password.

  • confirmationCode :: Text

    The confirmation code sent by a user's request to retrieve a forgotten password. For more information, see ForgotPassword.

  • password :: Sensitive Text

    The password sent by a user's request to retrieve a forgotten password.

Instances

Instances details
Eq ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Show ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Generic ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Associated Types

type Rep ConfirmForgotPassword :: Type -> Type #

NFData ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Methods

rnf :: ConfirmForgotPassword -> () #

Hashable ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

ToJSON ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

AWSRequest ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Associated Types

type AWSResponse ConfirmForgotPassword #

ToHeaders ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

ToPath ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

ToQuery ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

type Rep ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

type Rep ConfirmForgotPassword = D1 ('MetaData "ConfirmForgotPassword" "Amazonka.CognitoIdentityProvider.ConfirmForgotPassword" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "ConfirmForgotPassword'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "clientMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "analyticsMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AnalyticsMetadataType))) :*: (S1 ('MetaSel ('Just "userContextData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe UserContextDataType)) :*: S1 ('MetaSel ('Just "secretHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (Sensitive Text))))) :*: ((S1 ('MetaSel ('Just "clientId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))) :*: (S1 ('MetaSel ('Just "confirmationCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "password") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))))
type AWSResponse ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

newConfirmForgotPassword Source #

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.

Constructors

ConfirmForgotPasswordResponse' 

Fields

Instances

Instances details
Eq ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Read ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Show ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Generic ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Associated Types

type Rep ConfirmForgotPasswordResponse :: Type -> Type #

NFData ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

type Rep ConfirmForgotPasswordResponse Source # 
Instance details

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