aws-sdk 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/aws/api_config/EC2-2012-04-01.yml +3739 -0
- data/lib/aws/api_config/IAM-2010-05-08.yml +307 -0
- data/lib/aws/api_config/STS-2011-06-15.yml +4 -0
- data/lib/aws/api_config/SimpleEmailService-2010-12-01.yml +70 -0
- data/lib/aws/core.rb +1 -1
- data/lib/aws/ec2/client.rb +111 -7
- data/lib/aws/ec2/network_interface.rb +55 -0
- data/lib/aws/ec2/volume.rb +1 -0
- data/lib/aws/iam/client.rb +400 -4
- data/lib/aws/simple_email_service.rb +55 -12
- data/lib/aws/simple_email_service/client.rb +88 -3
- data/lib/aws/simple_email_service/email_address_collection.rb +6 -0
- data/lib/aws/simple_email_service/identity.rb +91 -0
- data/lib/aws/simple_email_service/identity_collection.rb +81 -0
- data/lib/aws/sts.rb +6 -2
- data/lib/aws/sts/client.rb +17 -14
- metadata +6 -3
data/lib/aws/sts.rb
CHANGED
@@ -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 = {
|
data/lib/aws/sts/client.rb
CHANGED
@@ -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
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
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 (
|
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
|
-
#
|
82
|
-
# from 3600s (
|
83
|
-
# Sessions
|
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.
|
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-
|
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:
|
495
|
+
hash: 2608412966865873950
|
493
496
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
494
497
|
none: false
|
495
498
|
requirements:
|