class Aws::STS::Client

def assume_role(params = {}, options = {})

Parameters:
  • 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) --
  • :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

def assume_role_with_saml(params = {}, options = {})

Parameters:
  • params (Hash) -- ({})

Overloads:
  • assume_role_with_saml(params = {})

Other tags:
    See: http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAML - AWS API Documentation

Other tags:
    Example: Response structure -
    Example: Request syntax with placeholder values -

Returns:
  • (Types::AssumeRoleWithSAMLResponse) - Returns a {Seahorse::Client::Response response} object which responds to the following methods:

Options Hash: (**params)
  • :duration_seconds (Integer) --
  • :policy (String) --
  • :saml_assertion (required, String) --
  • :principal_arn (required, String) --
  • :role_arn (required, String) --
def assume_role_with_saml(params = {}, options = {})
  req = build_request(:assume_role_with_saml, params)
  req.send_request(options)
end

def assume_role_with_web_identity(params = {}, options = {})

Parameters:
  • params (Hash) -- ({})

Overloads:
  • assume_role_with_web_identity(params = {})

Other tags:
    See: http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentity - AWS API Documentation

Other tags:
    Example: Response structure -
    Example: Request syntax with placeholder values -
    Example: Example: To assume a role as an OpenID Connect-federated user -

Returns:
  • (Types::AssumeRoleWithWebIdentityResponse) - Returns a {Seahorse::Client::Response response} object which responds to the following methods:

Options Hash: (**params)
  • :duration_seconds (Integer) --
  • :policy (String) --
  • :provider_id (String) --
  • :web_identity_token (required, String) --
  • :role_session_name (required, String) --
  • :role_arn (required, String) --
def assume_role_with_web_identity(params = {}, options = {})
  req = build_request(:assume_role_with_web_identity, params)
  req.send_request(options)
end

def build_request(operation_name, params = {})

Other tags:
    Api: - private

Parameters:
  • params ({}) --
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-core'
  context[:gem_version] = '3.10.0'
  Seahorse::Client::Request.new(handlers, context)
end

def decode_authorization_message(params = {}, options = {})

Parameters:
  • params (Hash) -- ({})

Overloads:
  • decode_authorization_message(params = {})

Other tags:
    See: http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/DecodeAuthorizationMessage - AWS API Documentation

Other tags:
    Example: Response structure -
    Example: Request syntax with placeholder values -
    Example: Example: To decode information about an authorization status of a request -

Returns:
  • (Types::DecodeAuthorizationMessageResponse) - Returns a {Seahorse::Client::Response response} object which responds to the following methods:

Options Hash: (**params)
  • :encoded_message (required, String) --
def decode_authorization_message(params = {}, options = {})
  req = build_request(:decode_authorization_message, params)
  req.send_request(options)
end

def errors_module

Other tags:
    Api: - private
def errors_module
  Errors
end

def get_caller_identity(params = {}, options = {})

Parameters:
  • params (Hash) -- ({})

Overloads:
  • get_caller_identity(params = {})

Other tags:
    See: http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetCallerIdentity - AWS API Documentation

Other tags:
    Example: Response structure -
    Example: Example: To get details about a calling user federated with GetFederationToken -
    Example: Example: To get details about a calling user federated with AssumeRole -
    Example: Example: To get details about a calling IAM user -

Returns:
  • (Types::GetCallerIdentityResponse) - Returns a {Seahorse::Client::Response response} object which responds to the following methods:
def get_caller_identity(params = {}, options = {})
  req = build_request(:get_caller_identity, params)
  req.send_request(options)
end

def get_federation_token(params = {}, options = {})

Parameters:
  • params (Hash) -- ({})

Overloads:
  • get_federation_token(params = {})

Other tags:
    See: http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetFederationToken - AWS API Documentation

Other tags:
    Example: Response structure -
    Example: Request syntax with placeholder values -
    Example: Example: To get temporary credentials for a role by using GetFederationToken -

Returns:
  • (Types::GetFederationTokenResponse) - Returns a {Seahorse::Client::Response response} object which responds to the following methods:

Options Hash: (**params)
  • :duration_seconds (Integer) --
  • :policy (String) --
  • :name (required, String) --
def get_federation_token(params = {}, options = {})
  req = build_request(:get_federation_token, params)
  req.send_request(options)
end

def get_session_token(params = {}, options = {})

Parameters:
  • params (Hash) -- ({})

Overloads:
  • get_session_token(params = {})

Other tags:
    See: http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetSessionToken - AWS API Documentation

Other tags:
    Example: Response structure -
    Example: Request syntax with placeholder values -
    Example: Example: To get temporary credentials for an IAM user or an AWS account -

Returns:
  • (Types::GetSessionTokenResponse) - Returns a {Seahorse::Client::Response response} object which responds to the following methods:

Options Hash: (**params)
  • :token_code (String) --
  • :serial_number (String) --
  • :duration_seconds (Integer) --
def get_session_token(params = {}, options = {})
  req = build_request(:get_session_token, params)
  req.send_request(options)
end

def initialize(*args)

Options Hash: (**options)
  • :validate_params (Boolean) --
  • :stub_responses (Boolean) --
  • :session_token (String) --
  • :secret_access_key (String) --
  • :retry_limit (Integer) --
  • :profile (String) --
  • :logger (Logger) --
  • :log_level (Symbol) --
  • :log_formatter (Aws::Log::Formatter) --
  • :endpoint (String) --
  • :convert_params (Boolean) --
  • :access_key_id (String) --
  • :region (required, String) --
  • :credentials (required, Aws::CredentialProvider) --
def initialize(*args)
  super
end

def waiter_names

Deprecated:

Other tags:
    Api: - private
def waiter_names
  []
end