AWS Tools for Windows PowerShell
Command Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Synopsis

By default, removes all cached AWS SSO tokens across all profiles.

Syntax

Invoke-AWSSSOLogout

Description

The Invoke-AWSSSOLogout cmdlet removes cached IAM Identity Center SSO tokens. By default, it removes tokens across all profiles. Optionally, the cached token associated with a particular profile can be removed by using the -ProfileName parameter. To use these profiles again, run the Invoke-AWSSSOLogin cmdlet.

Common Credential and Region Parameters

-ProfileName <String>
Name of the profile in the shared configuration file '~/.aws/config'.
Required?False
Position?Named
Accept pipeline input?True (ByValue, ByPropertyName)

Outputs

None
This cmdlet does not generate any output.

Examples

Example 1

Invoke-AWSSSOLogout
Removes all cached AWS SSO tokens across all profiles.

Example 2

Invoke-AWSSSOLogout -ProfileName "sso-test-profile"
Removes the cached token associated with the profile "sso-test-profile".

Supported Version

AWS Tools for PowerShell: 2.x.y.z