aws sso get-role-credentials
Returns the STS short-term credentials for a given role name that is assigned to the user. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--access-tokenThe token issued by the CreateToken API call.--account-idThe identifier for the AWS account that is assigned to the user.--role-nameThe friendly name of the role that is assigned to the user.