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

Description

Confirms user registration as an admin without using a confirmation code. Works on any user.

Calling this action requires developer credentials.

Synopsis

Creating a Request

data AdminConfirmSignUp Source #

Represents the request to confirm user registration.

See: newAdminConfirmSignUp smart constructor.

Constructors

AdminConfirmSignUp' 

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.

    If your user pool configuration includes triggers, the AdminConfirmSignUp API action invokes the Lambda function that is specified for the post confirmation trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. In this payload, the clientMetadata attribute provides the data that you assigned to the ClientMetadata parameter in your AdminConfirmSignUp 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.
  • userPoolId :: Text

    The user pool ID for which you want to confirm user registration.

  • username :: Sensitive Text

    The user name for which you want to confirm user registration.

Instances

Instances details
Eq AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Show AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Generic AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Associated Types

type Rep AdminConfirmSignUp :: Type -> Type #

NFData AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Methods

rnf :: AdminConfirmSignUp -> () #

Hashable AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

ToJSON AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

AWSRequest AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Associated Types

type AWSResponse AdminConfirmSignUp #

ToHeaders AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

ToPath AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

ToQuery AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

type Rep AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

type Rep AdminConfirmSignUp = D1 ('MetaData "AdminConfirmSignUp" "Amazonka.CognitoIdentityProvider.AdminConfirmSignUp" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "AdminConfirmSignUp'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text)))))
type AWSResponse AdminConfirmSignUp Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

newAdminConfirmSignUp Source #

Create a value of AdminConfirmSignUp 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:AdminConfirmSignUp', adminConfirmSignUp_clientMetadata - A map of custom key-value pairs that you can provide as input for any custom workflows that this action triggers.

If your user pool configuration includes triggers, the AdminConfirmSignUp API action invokes the Lambda function that is specified for the post confirmation trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. In this payload, the clientMetadata attribute provides the data that you assigned to the ClientMetadata parameter in your AdminConfirmSignUp 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:userPoolId:AdminConfirmSignUp', adminConfirmSignUp_userPoolId - The user pool ID for which you want to confirm user registration.

$sel:username:AdminConfirmSignUp', adminConfirmSignUp_username - The user name for which you want to confirm user registration.

Request Lenses

adminConfirmSignUp_clientMetadata :: Lens' AdminConfirmSignUp (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.

If your user pool configuration includes triggers, the AdminConfirmSignUp API action invokes the Lambda function that is specified for the post confirmation trigger. When Amazon Cognito invokes this function, it passes a JSON payload, which the function receives as input. In this payload, the clientMetadata attribute provides the data that you assigned to the ClientMetadata parameter in your AdminConfirmSignUp 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.

adminConfirmSignUp_userPoolId :: Lens' AdminConfirmSignUp Text Source #

The user pool ID for which you want to confirm user registration.

adminConfirmSignUp_username :: Lens' AdminConfirmSignUp Text Source #

The user name for which you want to confirm user registration.

Destructuring the Response

data AdminConfirmSignUpResponse Source #

Represents the response from the server for the request to confirm registration.

See: newAdminConfirmSignUpResponse smart constructor.

Constructors

AdminConfirmSignUpResponse' 

Fields

Instances

Instances details
Eq AdminConfirmSignUpResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Read AdminConfirmSignUpResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Show AdminConfirmSignUpResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Generic AdminConfirmSignUpResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

Associated Types

type Rep AdminConfirmSignUpResponse :: Type -> Type #

NFData AdminConfirmSignUpResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

type Rep AdminConfirmSignUpResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminConfirmSignUp

type Rep AdminConfirmSignUpResponse = D1 ('MetaData "AdminConfirmSignUpResponse" "Amazonka.CognitoIdentityProvider.AdminConfirmSignUp" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "AdminConfirmSignUpResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAdminConfirmSignUpResponse Source #

Create a value of AdminConfirmSignUpResponse 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:AdminConfirmSignUpResponse', adminConfirmSignUpResponse_httpStatus - The response's http status code.

Response Lenses