Class: AWS::STS::Client
- Inherits:
-
Core::QueryClient
- Object
- Core::Client
- Core::QueryClient
- AWS::STS::Client
- Defined in:
- lib/aws/sts/client.rb
Overview
Client class for AWS Security Token Service (STS).
Constant Summary collapse
- REGION_US_E1 =
'sts.amazonaws.com'
Instance Attribute Summary
Attributes inherited from Core::Client
Instance Method Summary collapse
-
#assume_role(options = {}) ⇒ Core::Response
Calls the AssumeRole API operation.
-
#get_federation_token(options = {}) ⇒ Core::Response
Calls the GetFederationToken API operation.
-
#get_session_token(options = {}) ⇒ Core::Response
Calls the GetSessionToken API operation.
-
#initialize(*args) ⇒ Client
constructor
A new instance of Client.
Methods inherited from Core::Client
#log_warning, operations, #operations, #with_http_handler, #with_options
Constructor Details
#initialize(*args) ⇒ Client
Returns a new instance of Client.
25 26 27 28 29 30 31 32 |
# File 'lib/aws/sts/client.rb', line 25 def initialize *args super unless config.use_ssl? msg = 'AWS Security Token Service (STS) requires ssl but the ' + ':use_ssl option is set to false. Try passing :use_ssl => true' raise ArgumentError, msg end end |
Instance Method Details
#assume_role(options = {}) ⇒ Core::Response
Calls the AssumeRole API operation.
|
# File 'lib/aws/sts/client.rb', line 36
|
#get_federation_token(options = {}) ⇒ Core::Response
Calls the GetFederationToken API operation.
|
# File 'lib/aws/sts/client.rb', line 79
|
#get_session_token(options = {}) ⇒ Core::Response
Calls the GetSessionToken API operation.
|
# File 'lib/aws/sts/client.rb', line 111
|