amazonka-cognito-idp-2.0: Amazon Cognito Identity Provider SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

  • analyticsMetadata :: Maybe AnalyticsMetadataType

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

  • 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.

    When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

    • 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 doesn't include triggers, the ClientMetadata parameter serves no purpose.
    • Validate the ClientMetadata value.
    • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.
  • 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.

  • userContextData :: Maybe UserContextDataType

    Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.

  • 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 from your user's request to reset their password. For more information, see ForgotPassword.

  • password :: Sensitive Text

    The new password that your user wants to set.

Instances

Instances details
ToJSON ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.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

AWSRequest ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Associated Types

type AWSResponse ConfirmForgotPassword #

Generic ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Associated Types

type Rep ConfirmForgotPassword :: Type -> Type #

Show ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

NFData ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Methods

rnf :: ConfirmForgotPassword -> () #

Eq ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Hashable ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

type AWSResponse ConfirmForgotPassword Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

type Rep 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:analyticsMetadata:ConfirmForgotPassword', confirmForgotPassword_analyticsMetadata - The Amazon Pinpoint analytics metadata for collecting metrics for ConfirmForgotPassword calls.

$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.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • 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 doesn't include triggers, the ClientMetadata parameter serves no purpose.
  • Validate the ClientMetadata value.
  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

$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:userContextData:ConfirmForgotPassword', confirmForgotPassword_userContextData - Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.

ConfirmForgotPassword, confirmForgotPassword_clientId - The app client ID of the app associated with the user pool.

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 from your user's request to reset their password. For more information, see ForgotPassword.

$sel:password:ConfirmForgotPassword', confirmForgotPassword_password - The new password that your user wants to set.

Request Lenses

confirmForgotPassword_analyticsMetadata :: Lens' ConfirmForgotPassword (Maybe AnalyticsMetadataType) Source #

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

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.

When you use the ClientMetadata parameter, remember that Amazon Cognito won't do the following:

  • 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 doesn't include triggers, the ClientMetadata parameter serves no purpose.
  • Validate the ClientMetadata value.
  • Encrypt the ClientMetadata value. Don't use Amazon Cognito to provide sensitive information.

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_userContextData :: Lens' ConfirmForgotPassword (Maybe UserContextDataType) Source #

Contextual data about your user session, such as the device fingerprint, IP address, or location. Amazon Cognito advanced security evaluates the risk of an authentication event based on the context that your app generates and passes to Amazon Cognito when it makes API requests.

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 from your user's request to reset their password. For more information, see ForgotPassword.

confirmForgotPassword_password :: Lens' ConfirmForgotPassword Text Source #

The new password that your user wants to set.

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
Generic ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Associated Types

type Rep ConfirmForgotPasswordResponse :: Type -> Type #

Read ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Show ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

NFData ConfirmForgotPasswordResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.ConfirmForgotPassword

Eq 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" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" '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