amazonka-sso-2.0: Amazon Single Sign-On SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SSO.Logout

Description

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

Creating a Request

data Logout Source #

See: newLogout smart constructor.

Constructors

Logout' 

Fields

Instances

Instances details
ToJSON Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

ToHeaders Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

Methods

toHeaders :: Logout -> [Header] #

ToPath Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

Methods

toPath :: Logout -> ByteString #

ToQuery Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

AWSRequest Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

Associated Types

type AWSResponse Logout #

Generic Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

Associated Types

type Rep Logout :: Type -> Type #

Methods

from :: Logout -> Rep Logout x #

to :: Rep Logout x -> Logout #

Show Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

NFData Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

Methods

rnf :: Logout -> () #

Eq Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

Methods

(==) :: Logout -> Logout -> Bool #

(/=) :: Logout -> Logout -> Bool #

Hashable Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

Methods

hashWithSalt :: Int -> Logout -> Int #

hash :: Logout -> Int #

type AWSResponse Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

type Rep Logout Source # 
Instance details

Defined in Amazonka.SSO.Logout

type Rep Logout = D1 ('MetaData "Logout" "Amazonka.SSO.Logout" "amazonka-sso-2.0-B4gMJoZyEheG3SJYxPhDjE" 'False) (C1 ('MetaCons "Logout'" 'PrefixI 'True) (S1 ('MetaSel ('Just "accessToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Sensitive Text))))

newLogout Source #

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.

Constructors

LogoutResponse' 

Instances

Instances details
Generic LogoutResponse Source # 
Instance details

Defined in Amazonka.SSO.Logout

Associated Types

type Rep LogoutResponse :: Type -> Type #

Read LogoutResponse Source # 
Instance details

Defined in Amazonka.SSO.Logout

Show LogoutResponse Source # 
Instance details

Defined in Amazonka.SSO.Logout

NFData LogoutResponse Source # 
Instance details

Defined in Amazonka.SSO.Logout

Methods

rnf :: LogoutResponse -> () #

Eq LogoutResponse Source # 
Instance details

Defined in Amazonka.SSO.Logout

type Rep LogoutResponse Source # 
Instance details

Defined in Amazonka.SSO.Logout

type Rep LogoutResponse = D1 ('MetaData "LogoutResponse" "Amazonka.SSO.Logout" "amazonka-sso-2.0-B4gMJoZyEheG3SJYxPhDjE" 'False) (C1 ('MetaCons "LogoutResponse'" 'PrefixI 'False) (U1 :: Type -> Type))

newLogoutResponse :: LogoutResponse Source #

Create a value of LogoutResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.