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 |
Signs out users from all devices. It also invalidates all refresh tokens issued to a user. The user's current access and Id tokens remain valid until their expiry. Access and Id tokens expire one hour after they are issued.
Synopsis
- data GlobalSignOut = GlobalSignOut' {}
- newGlobalSignOut :: Text -> GlobalSignOut
- globalSignOut_accessToken :: Lens' GlobalSignOut Text
- data GlobalSignOutResponse = GlobalSignOutResponse' {
- httpStatus :: Int
- newGlobalSignOutResponse :: Int -> GlobalSignOutResponse
- globalSignOutResponse_httpStatus :: Lens' GlobalSignOutResponse Int
Creating a Request
data GlobalSignOut Source #
Represents the request to sign out all devices.
See: newGlobalSignOut
smart constructor.
GlobalSignOut' | |
|
Instances
Create a value of GlobalSignOut
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:accessToken:GlobalSignOut'
, globalSignOut_accessToken
- The access token.
Request Lenses
globalSignOut_accessToken :: Lens' GlobalSignOut Text Source #
The access token.
Destructuring the Response
data GlobalSignOutResponse Source #
The response to the request to sign out all devices.
See: newGlobalSignOutResponse
smart constructor.
GlobalSignOutResponse' | |
|
Instances
newGlobalSignOutResponse Source #
Create a value of GlobalSignOutResponse
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:GlobalSignOutResponse'
, globalSignOutResponse_httpStatus
- The response's http status code.
Response Lenses
globalSignOutResponse_httpStatus :: Lens' GlobalSignOutResponse Int Source #
The response's http status code.