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

Description

Revokes all of the access tokens generated by the specified refresh token. After the token is revoked, you can not use the revoked token to access Cognito authenticated APIs.

Synopsis

Creating a Request

data RevokeToken Source #

See: newRevokeToken smart constructor.

Constructors

RevokeToken' 

Fields

Instances

Instances details
Eq RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Show RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Generic RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Associated Types

type Rep RevokeToken :: Type -> Type #

NFData RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Methods

rnf :: RevokeToken -> () #

Hashable RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

ToJSON RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

AWSRequest RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Associated Types

type AWSResponse RevokeToken #

ToHeaders RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Methods

toHeaders :: RevokeToken -> [Header] #

ToPath RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

ToQuery RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

type Rep RevokeToken Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

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

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

newRevokeToken Source #

Create a value of RevokeToken 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:clientSecret:RevokeToken', revokeToken_clientSecret - The secret for the client ID. This is required only if the client ID has a secret.

$sel:token:RevokeToken', revokeToken_token - The token that you want to revoke.

$sel:clientId:RevokeToken', revokeToken_clientId - The client ID for the token that you want to revoke.

Request Lenses

revokeToken_clientSecret :: Lens' RevokeToken (Maybe Text) Source #

The secret for the client ID. This is required only if the client ID has a secret.

revokeToken_token :: Lens' RevokeToken Text Source #

The token that you want to revoke.

revokeToken_clientId :: Lens' RevokeToken Text Source #

The client ID for the token that you want to revoke.

Destructuring the Response

data RevokeTokenResponse Source #

See: newRevokeTokenResponse smart constructor.

Constructors

RevokeTokenResponse' 

Fields

Instances

Instances details
Eq RevokeTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Read RevokeTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Show RevokeTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Generic RevokeTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Associated Types

type Rep RevokeTokenResponse :: Type -> Type #

NFData RevokeTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

Methods

rnf :: RevokeTokenResponse -> () #

type Rep RevokeTokenResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.RevokeToken

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

newRevokeTokenResponse Source #

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

Response Lenses