Sso
This page documents function available when using the Sso
module, created with @service Sso
.
Index
Documentation
Main.Sso.get_role_credentials
— Methodget_role_credentials(account_id, role_name, x-amz-sso_bearer_token)
get_role_credentials(account_id, role_name, x-amz-sso_bearer_token, params::Dict{String,<:Any})
Returns the STS short-term credentials for a given role name that is assigned to the user.
Arguments
account_id
: The identifier for the AWS account that is assigned to the user.role_name
: The friendly name of the role that is assigned to the user.x-amz-sso_bearer_token
: The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Main.Sso.list_account_roles
— Methodlist_account_roles(account_id, x-amz-sso_bearer_token)
list_account_roles(account_id, x-amz-sso_bearer_token, params::Dict{String,<:Any})
Lists all roles that are assigned to the user for a given AWS account.
Arguments
account_id
: The identifier for the AWS account that is assigned to the user.x-amz-sso_bearer_token
: The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"max_result"
: The number of items that clients can request per page."next_token"
: The page token from the previous response output when you request subsequent pages.
Main.Sso.list_accounts
— Methodlist_accounts(x-amz-sso_bearer_token)
list_accounts(x-amz-sso_bearer_token, params::Dict{String,<:Any})
Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the IAM Identity Center User Guide. This operation returns a paginated response.
Arguments
x-amz-sso_bearer_token
: The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Optional Parameters
Optional parameters can be passed as a params::Dict{String,<:Any}
. Valid keys are:
"max_result"
: This is the number of items clients can request per page."next_token"
: (Optional) When requesting subsequent pages, this is the page token from the previous response output.
Main.Sso.logout
— Methodlogout(x-amz-sso_bearer_token)
logout(x-amz-sso_bearer_token, params::Dict{String,<:Any})
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.
Arguments
x-amz-sso_bearer_token
: The token issued by the CreateToken API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.