aws-sdk 1.49.0 → 1.50.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -78,18 +78,35 @@
78
78
  :name: Region
79
79
  :type: :string
80
80
  :position: 4
81
+ :geo_location:
82
+ :name: GeoLocation
83
+ :type: :hash
84
+ :position: 5
85
+ :members:
86
+ :continent_code:
87
+ :name: ContinentCode
88
+ :type: :string
89
+ :position: 0
90
+ :country_code:
91
+ :name: CountryCode
92
+ :type: :string
93
+ :position: 1
94
+ :subdivision_code:
95
+ :name: SubdivisionCode
96
+ :type: :string
97
+ :position: 2
81
98
  :failover:
82
99
  :name: Failover
83
100
  :type: :string
84
- :position: 5
101
+ :position: 6
85
102
  :ttl:
86
103
  :name: TTL
87
104
  :type: :integer
88
- :position: 6
105
+ :position: 7
89
106
  :resource_records:
90
107
  :name: ResourceRecords
91
108
  :type: :array
92
- :position: 7
109
+ :position: 8
93
110
  :members:
94
111
  :name: ResourceRecord
95
112
  :type: :hash
@@ -102,7 +119,7 @@
102
119
  :alias_target:
103
120
  :name: AliasTarget
104
121
  :type: :hash
105
- :position: 8
122
+ :position: 9
106
123
  :members:
107
124
  :hosted_zone_id:
108
125
  :name: HostedZoneId
@@ -123,7 +140,7 @@
123
140
  :health_check_id:
124
141
  :name: HealthCheckId
125
142
  :type: :string
126
- :position: 9
143
+ :position: 10
127
144
  :outputs:
128
145
  :children:
129
146
  ChangeInfo:
@@ -388,6 +405,37 @@
388
405
  :rename: :checker_ip_ranges
389
406
  :list: true
390
407
  :type: :string
408
+ - :name: GetGeoLocation
409
+ :method: :get_geo_location
410
+ :http:
411
+ :verb: GET
412
+ :uri: /2013-04-01/geolocation?continentcode=:continent_code&countrycode=:country_code&subdivisioncode=:subdivision_code
413
+ :inputs:
414
+ :continent_code:
415
+ :type: :string
416
+ :position: 0
417
+ :country_code:
418
+ :type: :string
419
+ :position: 1
420
+ :subdivision_code:
421
+ :type: :string
422
+ :position: 2
423
+ :outputs:
424
+ :children:
425
+ GeoLocationDetails:
426
+ :children:
427
+ ContinentCode:
428
+ :type: :string
429
+ ContinentName:
430
+ :type: :string
431
+ CountryCode:
432
+ :type: :string
433
+ CountryName:
434
+ :type: :string
435
+ SubdivisionCode:
436
+ :type: :string
437
+ SubdivisionName:
438
+ :type: :string
391
439
  - :name: GetHealthCheck
392
440
  :method: :get_health_check
393
441
  :http:
@@ -472,6 +520,55 @@
472
520
  :rename: :name_servers
473
521
  :list: true
474
522
  :type: :string
523
+ - :name: ListGeoLocations
524
+ :method: :list_geo_locations
525
+ :http:
526
+ :verb: GET
527
+ :uri: /2013-04-01/geolocations?startcontinentcode=:start_continent_code&startcountrycode=:start_country_code&startsubdivisioncode=:start_subdivision_code&maxitems=:max_items
528
+ :inputs:
529
+ :start_continent_code:
530
+ :type: :string
531
+ :position: 0
532
+ :start_country_code:
533
+ :type: :string
534
+ :position: 1
535
+ :start_subdivision_code:
536
+ :type: :string
537
+ :position: 2
538
+ :max_items:
539
+ :type: :integer
540
+ :position: 3
541
+ :outputs:
542
+ :children:
543
+ GeoLocationDetailsList:
544
+ :ignore: true
545
+ :children:
546
+ GeoLocationDetails:
547
+ :rename: :geo_location_details_list
548
+ :list: true
549
+ :children:
550
+ ContinentCode:
551
+ :type: :string
552
+ ContinentName:
553
+ :type: :string
554
+ CountryCode:
555
+ :type: :string
556
+ CountryName:
557
+ :type: :string
558
+ SubdivisionCode:
559
+ :type: :string
560
+ SubdivisionName:
561
+ :type: :string
562
+ IsTruncated:
563
+ :type: :boolean
564
+ NextContinentCode:
565
+ :type: :string
566
+ NextCountryCode:
567
+ :type: :string
568
+ NextSubdivisionCode:
569
+ :type: :string
570
+ MaxItems:
571
+ :type: :string
475
572
  - :name: ListHealthChecks
476
573
  :method: :list_health_checks
477
574
  :http:
@@ -608,6 +705,14 @@
608
705
  :type: :integer
609
706
  Region:
610
707
  :type: :string
708
+ GeoLocation:
709
+ :children:
710
+ ContinentCode:
711
+ :type: :string
712
+ CountryCode:
713
+ :type: :string
714
+ SubdivisionCode:
715
+ :type: :string
611
716
  Failover:
612
717
  :type: :string
613
718
  TTL:
@@ -76,6 +76,10 @@ module AWS
76
76
  #
77
77
  # @option options [String] :volume_type
78
78
  #
79
+ # @option options [Boolean] :encrypted (false)
80
+ # When true, the volume will be encrypted.
81
+ # For more information, refer to [Amazon EBS Encryption](http://http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html)
82
+ #
79
83
  # @return [Volume]
80
84
  #
81
85
  def create options = {}
@@ -17,7 +17,7 @@ module AWS
17
17
  # Client class for Amazon ElastiCache.
18
18
  class Client < Core::QueryClient
19
19
 
20
- API_VERSION = '2014-03-24'
20
+ API_VERSION = '2014-07-15'
21
21
 
22
22
  signature_version :Version4, 'elasticache'
23
23
 
@@ -34,5 +34,8 @@ module AWS
34
34
  define_client_methods('2014-03-24')
35
35
  end
36
36
 
37
+ class Client::V20140715 < Client
38
+ define_client_methods('2014-07-15')
39
+ end
37
40
  end
38
41
  end
@@ -16,6 +16,8 @@ require 'json'
16
16
  require 'net/http'
17
17
  require 'net/https'
18
18
  require 'openssl'
19
+ require 'uri'
20
+
19
21
  Dir.glob("#{File.dirname __FILE__}/originators/*.rb").each { |rb| require rb }
20
22
 
21
23
  module AWS
@@ -166,7 +168,15 @@ module AWS
166
168
  end
167
169
 
168
170
  def download url
169
- raise MessageWasNotAuthenticError, "cert is not hosted at AWS URL (https): #{url}" unless url =~ /^https.*amazonaws\.com\/.*$/i
171
+ uri = URI.parse(url)
172
+ unless
173
+ uri.scheme == 'https' &&
174
+ uri.host.match(/^sns\.[a-zA-Z0-9\-]{3,}\.amazonaws\.com(\.cn)?$/) &&
175
+ File.extname(uri.path) == '.pem'
176
+ then
177
+ msg = "cert is not hosted at AWS URL (https): #{url}"
178
+ raise MessageWasNotAuthenticError, msg
179
+ end
170
180
  tries = 0
171
181
  begin
172
182
  resp = https_get(url)
@@ -188,6 +188,10 @@ module AWS
188
188
  # See {ReceivedMessage} for documentation on each
189
189
  # attribute's meaning.
190
190
  #
191
+ # @option opts [Array<String>] :message_attribute_names A list of
192
+ # message attribute names to receive. These will be available on
193
+ # the {ReceivedMessage} as `#message_attributes`.
194
+ #
191
195
  # @yieldparam [ReceivedMessage] message Each message that was received.
192
196
  #
193
197
  # @return [ReceivedMessage] Returns the received message (or messages)
@@ -204,7 +208,8 @@ module AWS
204
208
  ReceivedMessage.new(self, m[:message_id], m[:receipt_handle],
205
209
  :body => m[:body],
206
210
  :md5 => m[:md5_of_body],
207
- :attributes => m[:attributes])
211
+ :attributes => m[:attributes],
212
+ :message_attributes => m[:message_attributes])
208
213
  end
209
214
 
210
215
  if block
@@ -543,11 +548,11 @@ module AWS
543
548
  client_opts[:entries] = entries
544
549
 
545
550
  response = client.send_message_batch(client_opts)
546
-
551
+
547
552
  failed = batch_failures(entries, response, true)
548
553
 
549
554
  checksum_failed = verify_send_message_batch_checksum entries, response
550
-
555
+
551
556
  sent = response[:successful].collect do |sent|
552
557
  msg = SentMessage.new
553
558
  msg.message_id = sent[:message_id]
@@ -700,11 +705,11 @@ module AWS
700
705
  if include_batch_index
701
706
  details[:batch_index] = failure[:id].to_i
702
707
  end
703
-
708
+
704
709
  if message_body = entry[:message_body]
705
710
  details[:message_body] = message_body
706
711
  end
707
-
712
+
708
713
  if handle = entry[:receipt_handle]
709
714
  details[:receipt_handle] = handle
710
715
  end
@@ -741,6 +746,8 @@ module AWS
741
746
  opts[:limit]
742
747
  receive_opts[:wait_time_seconds] = opts[:wait_time_seconds] if
743
748
  opts[:wait_time_seconds]
749
+ receive_opts[:message_attribute_names] = opts[:message_attribute_names] if
750
+ opts[:message_attribute_names]
744
751
 
745
752
  if names = opts[:attributes]
746
753
  receive_opts[:attribute_names] = names.map do |name|
@@ -750,6 +757,7 @@ module AWS
750
757
  name
751
758
  end
752
759
  end
760
+
753
761
  receive_opts
754
762
  end
755
763
 
@@ -39,6 +39,9 @@ module AWS
39
39
  # @api private
40
40
  attr_reader :attributes
41
41
 
42
+ # @return [String] The message attributes attached to the message.
43
+ attr_reader :message_attributes
44
+
42
45
  # @api private
43
46
  ATTRIBUTE_ALIASES = {
44
47
  :sent_at => :sent_timestamp,
@@ -54,6 +57,7 @@ module AWS
54
57
  @body = opts[:body]
55
58
  @md5 = opts[:md5]
56
59
  @attributes = opts[:attributes] || {}
60
+ @message_attributes = opts[:message_attributes] || {}
57
61
  super
58
62
  end
59
63
 
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.49.0'
16
+ VERSION = '1.50.0'
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.49.0
4
+ version: 1.50.0
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: 2014-07-24 00:00:00.000000000 Z
11
+ date: 2014-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -79,6 +79,7 @@ files:
79
79
  - lib/aws/api_config/EMR-2009-03-31.yml
80
80
  - lib/aws/api_config/ElastiCache-2013-06-15.yml
81
81
  - lib/aws/api_config/ElastiCache-2014-03-24.yml
82
+ - lib/aws/api_config/ElastiCache-2014-07-15.yml
82
83
  - lib/aws/api_config/ElasticBeanstalk-2010-12-01.yml
83
84
  - lib/aws/api_config/ElasticTranscoder-2012-09-25.yml
84
85
  - lib/aws/api_config/Glacier-2012-06-01.yml