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

Description

Enables the specified user as an administrator. Works on any user.

Calling this action requires developer credentials.

Synopsis

Creating a Request

data AdminEnableUser Source #

Represents the request that enables the user as an administrator.

See: newAdminEnableUser smart constructor.

Constructors

AdminEnableUser' 

Fields

Instances

Instances details
ToJSON AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

ToHeaders AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

ToPath AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

ToQuery AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

AWSRequest AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

Associated Types

type AWSResponse AdminEnableUser #

Generic AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

Associated Types

type Rep AdminEnableUser :: Type -> Type #

Show AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

NFData AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

Methods

rnf :: AdminEnableUser -> () #

Eq AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

Hashable AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

type AWSResponse AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

type Rep AdminEnableUser Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

type Rep AdminEnableUser = D1 ('MetaData "AdminEnableUser" "Amazonka.CognitoIdentityProvider.AdminEnableUser" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "AdminEnableUser'" 'PrefixI 'True) (S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newAdminEnableUser Source #

Create a value of AdminEnableUser 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:

AdminEnableUser, adminEnableUser_userPoolId - The user pool ID for the user pool where you want to enable the user.

AdminEnableUser, adminEnableUser_username - The user name of the user you want to enable.

Request Lenses

adminEnableUser_userPoolId :: Lens' AdminEnableUser Text Source #

The user pool ID for the user pool where you want to enable the user.

adminEnableUser_username :: Lens' AdminEnableUser Text Source #

The user name of the user you want to enable.

Destructuring the Response

data AdminEnableUserResponse Source #

Represents the response from the server for the request to enable a user as an administrator.

See: newAdminEnableUserResponse smart constructor.

Constructors

AdminEnableUserResponse' 

Fields

Instances

Instances details
Generic AdminEnableUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

Associated Types

type Rep AdminEnableUserResponse :: Type -> Type #

Read AdminEnableUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

Show AdminEnableUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

NFData AdminEnableUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

Methods

rnf :: AdminEnableUserResponse -> () #

Eq AdminEnableUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

type Rep AdminEnableUserResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.AdminEnableUser

type Rep AdminEnableUserResponse = D1 ('MetaData "AdminEnableUserResponse" "Amazonka.CognitoIdentityProvider.AdminEnableUser" "amazonka-cognito-idp-2.0-D1ERgMvEVPG9z8cOLXdU2" 'False) (C1 ('MetaCons "AdminEnableUserResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newAdminEnableUserResponse Source #

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

Response Lenses