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.
Profile (Default)
Invoke-AWSSSOLogin-Force <SwitchParameter>-UseDeviceCode <SwitchParameter>-ExecutionTimeout <Int32>Session
Invoke-AWSSSOLogin-SessionName <String>-Force <SwitchParameter>-UseDeviceCode <SwitchParameter>-ExecutionTimeout <Int32>
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | 1 |
| Accept pipeline input? | True (ByValue, ByPropertyName) |
Invoke-AWSSSOLogin -ProfileName "sso-test-profile"
Get-S3Bucket -ProfileName "sso-test-profile"Initiates the SSO login flow for the profile "sso-test-profile". The command will attempt to automatically open the SSO authorization page in the default web browser. Once the authentication process is complete, an AWS SSO access token is retrieved and cached, and can be exchanged for AWS credentials by passing the profile name to service cmdlets.
AWS Tools for PowerShell: 2.x.y.z