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, as an administrator. 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.
Calling this action requires developer credentials.
Synopsis
- data AdminUserGlobalSignOut = AdminUserGlobalSignOut' {
- userPoolId :: Text
- username :: Sensitive Text
- newAdminUserGlobalSignOut :: Text -> Text -> AdminUserGlobalSignOut
- adminUserGlobalSignOut_userPoolId :: Lens' AdminUserGlobalSignOut Text
- adminUserGlobalSignOut_username :: Lens' AdminUserGlobalSignOut Text
- data AdminUserGlobalSignOutResponse = AdminUserGlobalSignOutResponse' {
- httpStatus :: Int
- newAdminUserGlobalSignOutResponse :: Int -> AdminUserGlobalSignOutResponse
- adminUserGlobalSignOutResponse_httpStatus :: Lens' AdminUserGlobalSignOutResponse Int
Creating a Request
data AdminUserGlobalSignOut Source #
The request to sign out of all devices, as an administrator.
See: newAdminUserGlobalSignOut
smart constructor.
AdminUserGlobalSignOut' | |
|
Instances
newAdminUserGlobalSignOut Source #
:: Text | |
-> Text | |
-> AdminUserGlobalSignOut |
Create a value of AdminUserGlobalSignOut
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:userPoolId:AdminUserGlobalSignOut'
, adminUserGlobalSignOut_userPoolId
- The user pool ID.
$sel:username:AdminUserGlobalSignOut'
, adminUserGlobalSignOut_username
- The user name.
Request Lenses
adminUserGlobalSignOut_userPoolId :: Lens' AdminUserGlobalSignOut Text Source #
The user pool ID.
adminUserGlobalSignOut_username :: Lens' AdminUserGlobalSignOut Text Source #
The user name.
Destructuring the Response
data AdminUserGlobalSignOutResponse Source #
The global sign-out response, as an administrator.
See: newAdminUserGlobalSignOutResponse
smart constructor.
AdminUserGlobalSignOutResponse' | |
|
Instances
Eq AdminUserGlobalSignOutResponse Source # | |
Read AdminUserGlobalSignOutResponse Source # | |
Show AdminUserGlobalSignOutResponse Source # | |
Generic AdminUserGlobalSignOutResponse Source # | |
NFData AdminUserGlobalSignOutResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.AdminUserGlobalSignOut rnf :: AdminUserGlobalSignOutResponse -> () # | |
type Rep AdminUserGlobalSignOutResponse Source # | |
Defined in Amazonka.CognitoIdentityProvider.AdminUserGlobalSignOut type Rep AdminUserGlobalSignOutResponse = D1 ('MetaData "AdminUserGlobalSignOutResponse" "Amazonka.CognitoIdentityProvider.AdminUserGlobalSignOut" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "AdminUserGlobalSignOutResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newAdminUserGlobalSignOutResponse Source #
Create a value of AdminUserGlobalSignOutResponse
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:AdminUserGlobalSignOutResponse'
, adminUserGlobalSignOutResponse_httpStatus
- The response's http status code.
Response Lenses
adminUserGlobalSignOutResponse_httpStatus :: Lens' AdminUserGlobalSignOutResponse Int Source #
The response's http status code.