aws-sdk 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -67,7 +67,12 @@ module AWS
67
67
  # account owners are restricted to a maximum of 3600s (one
68
68
  # hour).
69
69
  #
70
+ # @option opts [String] :serial_number
71
+ #
72
+ # @option opts [String] :token_code
73
+ #
70
74
  # @return [Session]
75
+ #
71
76
  def new_session(opts = {})
72
77
  get_session(:get_session_token, opts) do |resp, session_opts|
73
78
  Session.new(session_opts)
@@ -132,8 +137,7 @@ module AWS
132
137
  # @private
133
138
  protected
134
139
  def get_session(method, opts = {})
135
- opts[:duration_seconds] = opts.delete(:duration) if
136
- opts[:duration]
140
+ opts[:duration_seconds] = opts.delete(:duration) if opts[:duration]
137
141
  resp = client.send(method, opts)
138
142
  credentials = resp[:credentials].dup
139
143
  session_opts = {
@@ -43,18 +43,19 @@ module AWS
43
43
  # === Options:
44
44
  #
45
45
  # * +:name+ - *required* - (String) The name of the federated user
46
- # associated with the session.
47
- # * +:policy+ - (String) A policy specifying the permissions associated
48
- # with the session. The caller can delegate their own permissions by
49
- # specifying a policy for the session, and both policies will be
50
- # checked when a service call is made. In other words, permissions of
51
- # the session credentials are the intersection of the policy specified
52
- # in the API and the policies associated with the user who issued the
53
- # session.
46
+ # associated with the credentials. For information about limitations on
47
+ # user names, go to Limitations on IAM Entities in Using AWS Identity
48
+ # and Access Management.
49
+ # * +:policy+ - (String) A policy specifying the permissions to associate
50
+ # with the credentials. The caller can delegate their own permissions
51
+ # by specifying a policy, and both policies will be checked when a
52
+ # service call is made. For more information about how permissions work
53
+ # in the context of temporary credentials, see Controlling Permissions
54
+ # in Temporary Credentials in Using AWS Identity and Access Management.
54
55
  # * +:duration_seconds+ - (Integer) The duration, in seconds, that the
55
56
  # session should last. Acceptable durations for federation sessions
56
- # range from 3600s (1 hour) to 129600s (36 hours), with 43200 as the
57
- # default.
57
+ # range from 3600s (one hour) to 129600s (36 hours), with 43200s (12
58
+ # hours) as the default.
58
59
  #
59
60
  # === Response Structure:
60
61
  #
@@ -78,10 +79,12 @@ module AWS
78
79
  # === Options:
79
80
  #
80
81
  # * +:duration_seconds+ - (Integer) The duration, in seconds, that the
81
- # session should last. Acceptable durations for IAM user sessions range
82
- # from 3600s (1 hour) to 129600s (36 hours), with 43200 as the default.
83
- # Sessions started for AWS Account owners are restricted to a maximum
84
- # 3600s.
82
+ # credentials should remain valid. Acceptable durations for IAM user
83
+ # sessions range from 3600s (one hour) to 129600s (36 hours), with
84
+ # 43200s (12 hours) as the default. Sessions for AWS account owners are
85
+ # restricted to a maximum of 3600s (one hour).
86
+ # * +:serial_number+ - (String)
87
+ # * +:token_code+ - (String)
85
88
  #
86
89
  # === Response Structure:
87
90
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-09 00:00:00.000000000 Z
12
+ date: 2012-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: uuidtools
@@ -394,6 +394,8 @@ files:
394
394
  - lib/aws/simple_email_service/config.rb
395
395
  - lib/aws/simple_email_service/email_address_collection.rb
396
396
  - lib/aws/simple_email_service/errors.rb
397
+ - lib/aws/simple_email_service/identity.rb
398
+ - lib/aws/simple_email_service/identity_collection.rb
397
399
  - lib/aws/simple_email_service/quotas.rb
398
400
  - lib/aws/simple_email_service/request.rb
399
401
  - lib/aws/simple_email_service.rb
@@ -461,6 +463,7 @@ files:
461
463
  - lib/aws/api_config/CloudFormation-2010-05-15.yml
462
464
  - lib/aws/api_config/DynamoDB-2011-12-05.yml
463
465
  - lib/aws/api_config/EC2-2011-12-15.yml
466
+ - lib/aws/api_config/EC2-2012-04-01.yml
464
467
  - lib/aws/api_config/ELB-2011-08-15.yml
465
468
  - lib/aws/api_config/IAM-2010-05-08.yml
466
469
  - lib/aws/api_config/SimpleDB-2009-04-15.yml
@@ -489,7 +492,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
489
492
  version: '0'
490
493
  segments:
491
494
  - 0
492
- hash: -2435489462364326557
495
+ hash: 2608412966865873950
493
496
  required_rubygems_version: !ruby/object:Gem::Requirement
494
497
  none: false
495
498
  requirements: