Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Removes the locally stored SSO tokens from the client-side cache and sends an API call to the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in session.
If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM Identity Center sign in session is used to obtain an IAM session, as specified in the corresponding IAM Identity Center permission set. More specifically, IAM Identity Center assumes an IAM role in the target account on behalf of the user, and the corresponding temporary AWS credentials are returned to the client.
After user logout, any existing IAM role sessions that were created by using IAM Identity Center permission sets continue based on the duration configured in the permission set. For more information, see User authentications in the IAM Identity Center User Guide.
Synopsis
- data Logout = Logout' {}
- newLogout :: Text -> Logout
- logout_accessToken :: Lens' Logout Text
- data LogoutResponse = LogoutResponse' {
- newLogoutResponse :: LogoutResponse
Creating a Request
See: newLogout
smart constructor.
Logout' | |
|
Instances
ToJSON Logout Source # | |
Defined in Amazonka.SSO.Logout | |
ToHeaders Logout Source # | |
Defined in Amazonka.SSO.Logout | |
ToPath Logout Source # | |
Defined in Amazonka.SSO.Logout toPath :: Logout -> ByteString # | |
ToQuery Logout Source # | |
Defined in Amazonka.SSO.Logout toQuery :: Logout -> QueryString # | |
AWSRequest Logout Source # | |
Defined in Amazonka.SSO.Logout type AWSResponse Logout # request :: (Service -> Service) -> Logout -> Request Logout # response :: MonadResource m => (ByteStringLazy -> IO ByteStringLazy) -> Service -> Proxy Logout -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse Logout))) # | |
Generic Logout Source # | |
Show Logout Source # | |
NFData Logout Source # | |
Defined in Amazonka.SSO.Logout | |
Eq Logout Source # | |
Hashable Logout Source # | |
Defined in Amazonka.SSO.Logout | |
type AWSResponse Logout Source # | |
Defined in Amazonka.SSO.Logout | |
type Rep Logout Source # | |
Defined in Amazonka.SSO.Logout |
Create a value of Logout
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:Logout'
, logout_accessToken
- The token issued by the CreateToken
API call. For more information,
see
CreateToken
in the IAM Identity Center OIDC API Reference Guide.
Request Lenses
logout_accessToken :: Lens' Logout Text Source #
The token issued by the CreateToken
API call. For more information,
see
CreateToken
in the IAM Identity Center OIDC API Reference Guide.
Destructuring the Response
data LogoutResponse Source #
See: newLogoutResponse
smart constructor.
Instances
Generic LogoutResponse Source # | |
Defined in Amazonka.SSO.Logout type Rep LogoutResponse :: Type -> Type # from :: LogoutResponse -> Rep LogoutResponse x # to :: Rep LogoutResponse x -> LogoutResponse # | |
Read LogoutResponse Source # | |
Defined in Amazonka.SSO.Logout readsPrec :: Int -> ReadS LogoutResponse # readList :: ReadS [LogoutResponse] # | |
Show LogoutResponse Source # | |
Defined in Amazonka.SSO.Logout showsPrec :: Int -> LogoutResponse -> ShowS # show :: LogoutResponse -> String # showList :: [LogoutResponse] -> ShowS # | |
NFData LogoutResponse Source # | |
Defined in Amazonka.SSO.Logout rnf :: LogoutResponse -> () # | |
Eq LogoutResponse Source # | |
Defined in Amazonka.SSO.Logout (==) :: LogoutResponse -> LogoutResponse -> Bool # (/=) :: LogoutResponse -> LogoutResponse -> Bool # | |
type Rep LogoutResponse Source # | |
newLogoutResponse :: LogoutResponse Source #
Create a value of LogoutResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.