Method: Fog::AWS::STS::Real#get_federation_token

Defined in:
lib/fog/aws/requests/sts/get_federation_token.rb

#get_federation_token(name, policy, duration = 43200) ⇒ Object

[View source]

8
9
10
11
12
13
14
15
16
17
# File 'lib/fog/aws/requests/sts/get_federation_token.rb', line 8

def get_federation_token(name, policy, duration=43200)
  request({
    'Action'          => 'GetFederationToken',
    'Name'            => name,
    'Policy'          => Fog::JSON.encode(policy),
    'DurationSeconds' => duration,
    :idempotent       => true,
    :parser           => Fog::Parsers::AWS::STS::GetSessionToken.new
  })
end