Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data RevokeToken = RevokeToken' {}
- newRevokeToken :: Text -> Text -> RevokeToken
- revokeToken_clientSecret :: Lens' RevokeToken (Maybe Text)
- revokeToken_token :: Lens' RevokeToken Text
- revokeToken_clientId :: Lens' RevokeToken Text
- data RevokeTokenResponse = RevokeTokenResponse' {
- httpStatus :: Int
- newRevokeTokenResponse :: Int -> RevokeTokenResponse
- revokeTokenResponse_httpStatus :: Lens' RevokeTokenResponse Int
Creating a Request
data RevokeToken Source #
See: newRevokeToken
smart constructor.
Instances
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.
RevokeTokenResponse' | |
|
Instances
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
revokeTokenResponse_httpStatus :: Lens' RevokeTokenResponse Int Source #
The response's http status code.