View on GitHub

aws-sdk-swift

SsoClient

public class SsoClient 

Inheritance

SsoClientProtocol

Initializers

init(config:)

public init(config: AWSClientRuntime.AWSClientConfiguration) 

init(region:)

public convenience init(region: Swift.String? = nil) throws 

Properties

clientName

public static let clientName = "SsoClient"

Methods

getRoleCredentials(input:completion:)

Returns the STS short-term credentials for a given role name that is assigned to the user.

public func getRoleCredentials(input: GetRoleCredentialsInput, completion: @escaping (ClientRuntime.SdkResult<GetRoleCredentialsOutputResponse, GetRoleCredentialsOutputError>) -> Void)

listAccountRoles(input:completion:)

Lists all roles that are assigned to the user for a given AWS account.

public func listAccountRoles(input: ListAccountRolesInput, completion: @escaping (ClientRuntime.SdkResult<ListAccountRolesOutputResponse, ListAccountRolesOutputError>) -> Void)

listAccounts(input:completion:)

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 AWS SSO User Guide. This operation returns a paginated response.

public func listAccounts(input: ListAccountsInput, completion: @escaping (ClientRuntime.SdkResult<ListAccountsOutputResponse, ListAccountsOutputError>) -> Void)

logout(input:completion:)

Removes the client- and server-side session that is associated with the user.

public func logout(input: LogoutInput, completion: @escaping (ClientRuntime.SdkResult<LogoutOutputResponse, LogoutOutputError>) -> Void)