aws-sdk 1.29.0 → 1.29.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -62,6 +62,8 @@ module AWS
62
62
 
63
63
  define_attribute_type :template
64
64
 
65
+ define_attribute_type :list
66
+
65
67
  define_attribute_type :describe
66
68
 
67
69
  # returned by GetTemplate
@@ -70,17 +72,19 @@ module AWS
70
72
 
71
73
  alias_method :template_body, :template
72
74
 
73
- # returned by DescribeStacks
75
+ # returned by ListStacks & DescribeStacks
74
76
 
75
- describe_attribute :creation_time, :static => true
77
+ list_attribute :creation_time, :static => true
76
78
 
77
- describe_attribute :last_updated_time
79
+ list_attribute :last_updated_time
78
80
 
79
- describe_attribute :stack_id, :static => true
81
+ list_attribute :stack_id, :static => true
80
82
 
81
- describe_attribute :status, :from => :stack_status
83
+ list_attribute :status, :from => :stack_status
82
84
 
83
- describe_attribute :status_reason, :from => :stack_status_reason
85
+ list_attribute :status_reason, :from => :stack_status_reason
86
+
87
+ # returned by DescribeStacks
84
88
 
85
89
  describe_attribute :capabilities
86
90
 
@@ -114,7 +118,14 @@ module AWS
114
118
  provider.find do |resp|
115
119
  resp.data[:stacks].find{|stack| stack[:stack_name] == name }
116
120
  end
117
- provider.provides *describe_attributes.keys
121
+ provider.provides(*(list_attributes.keys + describe_attributes.keys))
122
+ end
123
+
124
+ provider(:list_stacks) do |provider|
125
+ provider.find do |resp|
126
+ resp.data[:stack_summaries].find{|stack| stack[:stack_name] == name }
127
+ end
128
+ provider.provides *list_attributes.keys
118
129
  end
119
130
 
120
131
  provider(:get_template) do |provider|
@@ -192,14 +192,24 @@ module AWS
192
192
 
193
193
  def _each_item next_token, options = {}
194
194
  options[:next_token] = next_token if next_token
195
- options[:stack_status_filter] = @status_filters unless @status_filters.empty?
196
- resp = client.list_stacks(options)
197
- resp[:stack_summaries].each do |summary|
195
+
196
+ if @status_filters.empty?
197
+ api_method = :describe_stacks
198
+ resp_key = :stacks
199
+ else
200
+ api_method = :list_stacks
201
+ resp_key = :stack_summaries
202
+ options[:stack_status_filter] = @status_filters
203
+ end
204
+
205
+ resp = client.send(api_method, options)
206
+
207
+ resp[resp_key].each do |data|
198
208
 
199
209
  stack = Stack.new_from(
200
- :list_stacks,
201
- summary,
202
- summary[:stack_name],
210
+ api_method,
211
+ data,
212
+ data[:stack_name],
203
213
  :config => config)
204
214
 
205
215
  yield(stack)
@@ -17,7 +17,7 @@ module AWS
17
17
  # Client class for Amazon Elastic Compute Cloud (EC2).
18
18
  class Client < Core::QueryClient
19
19
 
20
- API_VERSION = '2013-10-01'
20
+ API_VERSION = '2013-10-15'
21
21
 
22
22
  # @api private
23
23
  CACHEABLE_REQUESTS = Set[
@@ -68,5 +68,9 @@ module AWS
68
68
  define_client_methods('2013-10-01')
69
69
  end
70
70
 
71
+ class Client::V20131015 < Client
72
+ define_client_methods('2013-10-15')
73
+ end
74
+
71
75
  end
72
76
  end
@@ -274,7 +274,7 @@ module AWS
274
274
  network_interface[:private_ip_address] = private_ip_address
275
275
  end
276
276
  if security_group_ids = options.delete(:security_group_ids)
277
- network_interface[:groups] = security_group_ids
277
+ network_interface[:groups] = Array(security_group_ids)
278
278
  end
279
279
  network_interface[:associate_public_ip_address] = true
280
280
  network_interface[:device_index] = 0
@@ -149,7 +149,7 @@ module AWS
149
149
  # @api private
150
150
  private
151
151
  def dynamo_db_item
152
- dynamo_db_table.items[id]
152
+ dynamo_db_table.items[hash_key]
153
153
  end
154
154
 
155
155
  # @return [SimpleDB::Domain] Returns the domain this record is
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.29.0'
16
+ VERSION = '1.29.1'
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.29.0
4
+ version: 1.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-27 00:00:00.000000000 Z
11
+ date: 2013-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uuidtools
@@ -601,6 +601,7 @@ files:
601
601
  - lib/aws/api_config/DynamoDB-2012-08-10.yml
602
602
  - lib/aws/api_config/EC2-2013-08-15.yml
603
603
  - lib/aws/api_config/EC2-2013-10-01.yml
604
+ - lib/aws/api_config/EC2-2013-10-15.yml
604
605
  - lib/aws/api_config/ElastiCache-2013-06-15.yml
605
606
  - lib/aws/api_config/ElasticBeanstalk-2010-12-01.yml
606
607
  - lib/aws/api_config/ElasticTranscoder-2012-09-25.yml
@@ -644,7 +645,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
644
645
  version: '0'
645
646
  requirements: []
646
647
  rubyforge_project:
647
- rubygems_version: 2.0.3
648
+ rubygems_version: 2.1.11
648
649
  signing_key:
649
650
  specification_version: 4
650
651
  summary: AWS SDK for Ruby