Class: Aws::SSO::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::SSO::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-sso/client.rb
Overview
An API client for SSO. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::SSO::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#get_role_credentials(params = {}) ⇒ Types::GetRoleCredentialsResponse
Returns the STS short-term credentials for a given role name that is assigned to the user.
-
#list_account_roles(params = {}) ⇒ Types::ListAccountRolesResponse
Lists all roles that are assigned to the user for a given AWS account.
-
#list_accounts(params = {}) ⇒ Types::ListAccountsResponse
Lists all AWS accounts assigned to the user.
-
#logout(params = {}) ⇒ Struct
Removes the client- and server-side session that is associated with the user.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
309 310 311 |
# File 'lib/aws-sdk-sso/client.rb', line 309 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
522 523 524 |
# File 'lib/aws-sdk-sso/client.rb', line 522 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
525 526 527 |
# File 'lib/aws-sdk-sso/client.rb', line 525 def errors_module Errors end |
Instance Method Details
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
500 501 502 503 504 505 506 507 508 509 510 511 |
# File 'lib/aws-sdk-sso/client.rb', line 500 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config) context[:gem_name] = 'aws-sdk-sso' context[:gem_version] = '1.5.1' Seahorse::Client::Request.new(handlers, context) end |
#get_role_credentials(params = {}) ⇒ Types::GetRoleCredentialsResponse
Returns the STS short-term credentials for a given role name that is assigned to the user.
355 356 357 358 |
# File 'lib/aws-sdk-sso/client.rb', line 355 def get_role_credentials(params = {}, = {}) req = build_request(:get_role_credentials, params) req.send_request() end |
#list_account_roles(params = {}) ⇒ Types::ListAccountRolesResponse
Lists all roles that are assigned to the user for a given AWS account.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
407 408 409 410 |
# File 'lib/aws-sdk-sso/client.rb', line 407 def list_account_roles(params = {}, = {}) req = build_request(:list_account_roles, params) req.send_request() end |
#list_accounts(params = {}) ⇒ Types::ListAccountsResponse
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.
[1]: docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
463 464 465 466 |
# File 'lib/aws-sdk-sso/client.rb', line 463 def list_accounts(params = {}, = {}) req = build_request(:list_accounts, params) req.send_request() end |
#logout(params = {}) ⇒ Struct
Removes the client- and server-side session that is associated with the user.
491 492 493 494 |
# File 'lib/aws-sdk-sso/client.rb', line 491 def logout(params = {}, = {}) req = build_request(:logout, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
515 516 517 |
# File 'lib/aws-sdk-sso/client.rb', line 515 def waiter_names [] end |