class Aws::STS::Client
def assume_role(params = {}, options = {})
-
params
(Hash
) -- ({})
Overloads:
-
assume_role(params = {})
Other tags:
- See: http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRole - AWS API Documentation
Other tags:
- Example: Response structure -
Example: Request syntax with placeholder values -
Example: Example: To assume a role -
Returns:
-
(Types::AssumeRoleResponse)
- Returns a {Seahorse::Client::Response response} object which responds to the following methods:
Options Hash:
(**params)
-
:token_code
(String
) -- -
:serial_number
(String
) -- -
:external_id
(String
) -- -
:duration_seconds
(Integer
) -- -
:policy
(String
) -- -
:policy_arns
(Array
) -- -
:role_session_name
(required, String
) -- -
:role_arn
(required, String
) --
def assume_role(params = {}, options = {}) req = build_request(:assume_role, params) req.send_request(options) end