aws-sdk 1.46.0 → 1.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 525683a6c92f9c82474857702d7bef034fa96853
4
- data.tar.gz: eee16ca565aba73173532024001d14eb5785a1cc
3
+ metadata.gz: 8f68deea1c7c2e7c7e5ad27c2387f2f02cac07e4
4
+ data.tar.gz: 18e98e85be4b6abe4ac45e88d3a6e369f3f3289f
5
5
  SHA512:
6
- metadata.gz: 27ba2633c3829528ef8fa4c04d3c03aa8f42f93e170d5e86c71af5e3dfe64d967434ca984661b4e1a5a3b4e57b2847f09afe0d81f8187ba4dad4132a87a11a39
7
- data.tar.gz: 121f3246a140b4217360bff7df4620e5986e1a2fcb6bd94c91efe68bda9db75e98f79125952e60e192d988f28291ea1b390fd3d341d94da80e024c2928a879d3
6
+ metadata.gz: 6478b3c83b70c5f7ad2749d0678b72df0d5586433cdac7a6c39fe4320fb9b9ce54ec18bcbe37044ada7b84c7dcd26142d359c4fb2fae8bae8e055ab97d8c11c6
7
+ data.tar.gz: c29f4022ddb0f5ef887f15e346abb97adb892b09a10b0b405eb6535fafe7765963999f623cad96e82c49b26eb30f074090aa10cefc7d1512b0583f3b93d5a4d1
@@ -3851,6 +3851,18 @@
3851
3851
  - :string
3852
3852
  - :rename: Group
3853
3853
  :outputs: {}
3854
+ - :name: ModifySubnetAttribute
3855
+ :method: :modify_subnet_attribute
3856
+ :inputs:
3857
+ SubnetId:
3858
+ - :string
3859
+ - :required
3860
+ - :rename: SubnetId
3861
+ MapPublicIpOnLaunch:
3862
+ - :structure:
3863
+ Value:
3864
+ - :boolean
3865
+ :outputs: {}
3854
3866
  - :name: ModifyVolumeAttribute
3855
3867
  :method: :modify_volume_attribute
3856
3868
  :inputs:
@@ -24,23 +24,19 @@
24
24
  :hosted_zone_id:
25
25
  :type: :string
26
26
  :required: true
27
- :position: 0
28
27
  :lstrip: /hostedzone/
29
28
  :change_batch:
30
29
  :name: ChangeBatch
31
30
  :type: :hash
32
31
  :required: true
33
- :position: 1
34
32
  :members:
35
33
  :comment:
36
34
  :name: Comment
37
35
  :type: :string
38
- :position: 0
39
36
  :changes:
40
37
  :name: Changes
41
38
  :type: :array
42
39
  :required: true
43
- :position: 1
44
40
  :members:
45
41
  :name: Change
46
42
  :type: :hash
@@ -49,47 +45,37 @@
49
45
  :name: Action
50
46
  :type: :string
51
47
  :required: true
52
- :position: 0
53
48
  :resource_record_set:
54
49
  :name: ResourceRecordSet
55
50
  :type: :hash
56
51
  :required: true
57
- :position: 1
58
52
  :members:
59
53
  :name:
60
54
  :name: Name
61
55
  :type: :string
62
56
  :required: true
63
- :position: 0
64
57
  :type:
65
58
  :name: Type
66
59
  :type: :string
67
60
  :required: true
68
- :position: 1
69
61
  :set_identifier:
70
62
  :name: SetIdentifier
71
63
  :type: :string
72
- :position: 2
73
64
  :weight:
74
65
  :name: Weight
75
66
  :type: :integer
76
- :position: 3
77
67
  :region:
78
68
  :name: Region
79
69
  :type: :string
80
- :position: 4
81
70
  :failover:
82
71
  :name: Failover
83
72
  :type: :string
84
- :position: 5
85
73
  :ttl:
86
74
  :name: TTL
87
75
  :type: :integer
88
- :position: 6
89
76
  :resource_records:
90
77
  :name: ResourceRecords
91
78
  :type: :array
92
- :position: 7
93
79
  :members:
94
80
  :name: ResourceRecord
95
81
  :type: :hash
@@ -98,32 +84,26 @@
98
84
  :name: Value
99
85
  :type: :string
100
86
  :required: true
101
- :position: 0
102
87
  :alias_target:
103
88
  :name: AliasTarget
104
89
  :type: :hash
105
- :position: 8
106
90
  :members:
107
91
  :hosted_zone_id:
108
92
  :name: HostedZoneId
109
93
  :type: :string
110
94
  :required: true
111
- :position: 0
112
95
  :lstrip: /hostedzone/
113
96
  :dns_name:
114
97
  :name: DNSName
115
98
  :type: :string
116
99
  :required: true
117
- :position: 1
118
100
  :evaluate_target_health:
119
101
  :name: EvaluateTargetHealth
120
102
  :type: :boolean
121
103
  :required: true
122
- :position: 2
123
104
  :health_check_id:
124
105
  :name: HealthCheckId
125
106
  :type: :string
126
- :position: 9
127
107
  :outputs:
128
108
  :children:
129
109
  ChangeInfo:
@@ -136,6 +116,38 @@
136
116
  :type: :time
137
117
  Comment:
138
118
  :type: :string
119
+ - :name: ChangeTagsForResource
120
+ :method: :change_tags_for_resource
121
+ :http:
122
+ :verb: POST
123
+ :uri: /2013-04-01/tags/:resource_type/:resource_id
124
+ :inputs:
125
+ :resource_type:
126
+ :type: :string
127
+ :required: true
128
+ :resource_id:
129
+ :type: :string
130
+ :required: true
131
+ :add_tags:
132
+ :name: AddTags
133
+ :type: :array
134
+ :members:
135
+ :name: Tag
136
+ :type: :hash
137
+ :members:
138
+ :key:
139
+ :name: Key
140
+ :type: :string
141
+ :value:
142
+ :name: Value
143
+ :type: :string
144
+ :remove_tag_keys:
145
+ :name: RemoveTagKeys
146
+ :type: :array
147
+ :members:
148
+ :name: Key
149
+ :type: :string
150
+ :outputs: {}
139
151
  - :name: CreateHealthCheck
140
152
  :method: :create_health_check
141
153
  :http:
@@ -149,47 +161,36 @@
149
161
  :name: CallerReference
150
162
  :type: :string
151
163
  :required: true
152
- :position: 0
153
164
  :health_check_config:
154
165
  :name: HealthCheckConfig
155
166
  :type: :hash
156
167
  :required: true
157
- :position: 1
158
168
  :members:
159
169
  :ip_address:
160
170
  :name: IPAddress
161
171
  :type: :string
162
- :required: false
163
- :position: 0
164
172
  :port:
165
173
  :name: Port
166
174
  :type: :integer
167
- :position: 1
168
175
  :type:
169
176
  :name: Type
170
177
  :type: :string
171
178
  :required: true
172
- :position: 2
173
179
  :resource_path:
174
180
  :name: ResourcePath
175
181
  :type: :string
176
- :position: 3
177
182
  :fully_qualified_domain_name:
178
183
  :name: FullyQualifiedDomainName
179
184
  :type: :string
180
- :position: 4
181
185
  :search_string:
182
186
  :name: SearchString
183
187
  :type: :string
184
- :position: 5
185
188
  :request_interval:
186
189
  :name: RequestInterval
187
190
  :type: :integer
188
- :position: 6
189
191
  :failure_threshold:
190
192
  :name: FailureThreshold
191
193
  :type: :integer
192
- :position: 7
193
194
  :outputs:
194
195
  :children:
195
196
  HealthCheck:
@@ -216,6 +217,8 @@
216
217
  :type: :integer
217
218
  FailureThreshold:
218
219
  :type: :integer
220
+ HealthCheckVersion:
221
+ :type: :integer
219
222
  - :name: CreateHostedZone
220
223
  :method: :create_hosted_zone
221
224
  :http:
@@ -229,21 +232,17 @@
229
232
  :name: Name
230
233
  :type: :string
231
234
  :required: true
232
- :position: 0
233
235
  :caller_reference:
234
236
  :name: CallerReference
235
237
  :type: :string
236
238
  :required: true
237
- :position: 1
238
239
  :hosted_zone_config:
239
240
  :name: HostedZoneConfig
240
241
  :type: :hash
241
- :position: 2
242
242
  :members:
243
243
  :comment:
244
244
  :name: Comment
245
245
  :type: :string
246
- :position: 0
247
246
  :outputs:
248
247
  :children:
249
248
  HostedZone:
@@ -288,7 +287,6 @@
288
287
  :health_check_id:
289
288
  :type: :string
290
289
  :required: true
291
- :position: 0
292
290
  :outputs: {}
293
291
  - :name: DeleteHostedZone
294
292
  :method: :delete_hosted_zone
@@ -299,7 +297,6 @@
299
297
  :id:
300
298
  :type: :string
301
299
  :required: true
302
- :position: 0
303
300
  :lstrip: /hostedzone/
304
301
  :outputs:
305
302
  :children:
@@ -322,7 +319,6 @@
322
319
  :id:
323
320
  :type: :string
324
321
  :required: true
325
- :position: 0
326
322
  :lstrip: /change/
327
323
  :outputs:
328
324
  :children:
@@ -336,6 +332,21 @@
336
332
  :type: :time
337
333
  Comment:
338
334
  :type: :string
335
+ - :name: GetCheckerIpRanges
336
+ :method: :get_checker_ip_ranges
337
+ :http:
338
+ :verb: GET
339
+ :uri: /2013-04-01/checkeripranges
340
+ :inputs: {}
341
+ :outputs:
342
+ :children:
343
+ CheckerIpRanges:
344
+ :ignore: true
345
+ :children:
346
+ member:
347
+ :rename: :checker_ip_ranges
348
+ :list: true
349
+ :type: :string
339
350
  - :name: GetHealthCheck
340
351
  :method: :get_health_check
341
352
  :http:
@@ -345,7 +356,6 @@
345
356
  :health_check_id:
346
357
  :type: :string
347
358
  :required: true
348
- :position: 0
349
359
  :outputs:
350
360
  :children:
351
361
  HealthCheck:
@@ -372,6 +382,18 @@
372
382
  :type: :integer
373
383
  FailureThreshold:
374
384
  :type: :integer
385
+ HealthCheckVersion:
386
+ :type: :integer
387
+ - :name: GetHealthCheckCount
388
+ :method: :get_health_check_count
389
+ :http:
390
+ :verb: GET
391
+ :uri: /2013-04-01/healthcheckcount
392
+ :inputs: {}
393
+ :outputs:
394
+ :children:
395
+ HealthCheckCount:
396
+ :type: :integer
375
397
  - :name: GetHostedZone
376
398
  :method: :get_hosted_zone
377
399
  :http:
@@ -381,7 +403,6 @@
381
403
  :id:
382
404
  :type: :string
383
405
  :required: true
384
- :position: 0
385
406
  :lstrip: /hostedzone/
386
407
  :outputs:
387
408
  :children:
@@ -416,10 +437,8 @@
416
437
  :inputs:
417
438
  :marker:
418
439
  :type: :string
419
- :position: 0
420
440
  :max_items:
421
441
  :type: :integer
422
- :position: 1
423
442
  :outputs:
424
443
  :children:
425
444
  HealthChecks:
@@ -451,6 +470,8 @@
451
470
  :type: :integer
452
471
  FailureThreshold:
453
472
  :type: :integer
473
+ HealthCheckVersion:
474
+ :type: :integer
454
475
  Marker:
455
476
  :type: :string
456
477
  IsTruncated:
@@ -467,10 +488,8 @@
467
488
  :inputs:
468
489
  :marker:
469
490
  :type: :string
470
- :position: 0
471
491
  :max_items:
472
492
  :type: :integer
473
- :position: 1
474
493
  :outputs:
475
494
  :children:
476
495
  HostedZones:
@@ -509,20 +528,15 @@
509
528
  :hosted_zone_id:
510
529
  :type: :string
511
530
  :required: true
512
- :position: 0
513
531
  :lstrip: /hostedzone/
514
532
  :start_record_name:
515
533
  :type: :string
516
- :position: 1
517
534
  :start_record_type:
518
535
  :type: :string
519
- :position: 2
520
536
  :start_record_identifier:
521
537
  :type: :string
522
- :position: 3
523
538
  :max_items:
524
539
  :type: :integer
525
- :position: 4
526
540
  :outputs:
527
541
  :children:
528
542
  ResourceRecordSets:
@@ -575,3 +589,132 @@
575
589
  :type: :string
576
590
  MaxItems:
577
591
  :type: :integer
592
+ - :name: ListTagsForResource
593
+ :method: :list_tags_for_resource
594
+ :http:
595
+ :verb: GET
596
+ :uri: /2013-04-01/tags/:resource_type/:resource_id
597
+ :inputs:
598
+ :resource_type:
599
+ :type: :string
600
+ :required: true
601
+ :resource_id:
602
+ :type: :string
603
+ :required: true
604
+ :outputs:
605
+ :children:
606
+ ResourceTagSet:
607
+ :children:
608
+ ResourceType:
609
+ :type: :string
610
+ ResourceId:
611
+ :type: :string
612
+ Tags:
613
+ :ignore: true
614
+ :children:
615
+ Tag:
616
+ :rename: :tags
617
+ :list: true
618
+ :children:
619
+ Key:
620
+ :type: :string
621
+ Value:
622
+ :type: :string
623
+ - :name: ListTagsForResources
624
+ :method: :list_tags_for_resources
625
+ :http:
626
+ :verb: POST
627
+ :uri: /2013-04-01/tags/:resource_type
628
+ :inputs:
629
+ :resource_type:
630
+ :type: :string
631
+ :required: true
632
+ :resource_ids:
633
+ :name: ResourceIds
634
+ :type: :array
635
+ :required: true
636
+ :members:
637
+ :name: ResourceId
638
+ :type: :string
639
+ :outputs:
640
+ :children:
641
+ ResourceTagSets:
642
+ :ignore: true
643
+ :children:
644
+ ResourceTagSet:
645
+ :rename: :resource_tag_sets
646
+ :list: true
647
+ :children:
648
+ ResourceType:
649
+ :type: :string
650
+ ResourceId:
651
+ :type: :string
652
+ Tags:
653
+ :ignore: true
654
+ :children:
655
+ Tag:
656
+ :rename: :tags
657
+ :list: true
658
+ :children:
659
+ Key:
660
+ :type: :string
661
+ Value:
662
+ :type: :string
663
+ - :name: UpdateHealthCheck
664
+ :method: :update_health_check
665
+ :http:
666
+ :verb: POST
667
+ :uri: /2013-04-01/healthcheck/:health_check_id
668
+ :inputs:
669
+ :health_check_id:
670
+ :type: :string
671
+ :required: true
672
+ :health_check_version:
673
+ :name: HealthCheckVersion
674
+ :type: :integer
675
+ :ip_address:
676
+ :name: IPAddress
677
+ :type: :string
678
+ :port:
679
+ :name: Port
680
+ :type: :integer
681
+ :resource_path:
682
+ :name: ResourcePath
683
+ :type: :string
684
+ :fully_qualified_domain_name:
685
+ :name: FullyQualifiedDomainName
686
+ :type: :string
687
+ :search_string:
688
+ :name: SearchString
689
+ :type: :string
690
+ :failure_threshold:
691
+ :name: FailureThreshold
692
+ :type: :integer
693
+ :outputs:
694
+ :children:
695
+ HealthCheck:
696
+ :children:
697
+ Id:
698
+ :type: :string
699
+ CallerReference:
700
+ :type: :string
701
+ HealthCheckConfig:
702
+ :children:
703
+ IPAddress:
704
+ :type: :string
705
+ Port:
706
+ :type: :integer
707
+ Type:
708
+ :type: :string
709
+ ResourcePath:
710
+ :type: :string
711
+ FullyQualifiedDomainName:
712
+ :type: :string
713
+ SearchString:
714
+ :type: :string
715
+ RequestInterval:
716
+ :type: :integer
717
+ FailureThreshold:
718
+ :type: :integer
719
+ HealthCheckVersion:
720
+ :type: :integer
@@ -193,12 +193,11 @@ module AWS
193
193
 
194
194
  # @return [Boolean] Returns `true` if the db instance exists.
195
195
  def exists?
196
- begin
197
- get_resource
198
- true
199
- rescue AWS::RDS::Errors::DBInstanceNotFound
200
- false
201
- end
196
+ fail AWS::RDS::Errors::DBInstanceNotFound if id.to_s.empty?
197
+ get_resource
198
+ true
199
+ rescue AWS::RDS::Errors::DBInstanceNotFound
200
+ false
202
201
  end
203
202
 
204
203
  protected
@@ -28,6 +28,18 @@ module AWS
28
28
  #
29
29
  class HostedZone < Core::Resource
30
30
 
31
+ S3_HOSTED_ZONE_IDS = {
32
+ 'us-east-1' => 'Z3AQBSTGFYJSTF',
33
+ 'us-west-2' => 'Z3BJ6K6RIION7M',
34
+ 'us-west-1' => 'Z2F56UZL2M1ACD',
35
+ 'eu-west-1' => 'Z1BKCTXD74EZPE',
36
+ 'ap-southeast-1' => 'Z3O0J2DXBE1FTB',
37
+ 'ap-southeast-2' => 'Z1WCIGYICN2BYD',
38
+ 'ap-northeast-1' => 'Z2M4EHUR26P7ZW',
39
+ 'sa-east-1' => 'Z7KQH4QJS55SO',
40
+ 'us-gov-west-1' => 'Z31GFT0UA1I2HV'
41
+ }
42
+
31
43
  # @api private
32
44
  def initialize id, options = {}
33
45
  @id = id.sub(%r!^/hostedzone/!, '')
@@ -242,10 +242,10 @@ module AWS
242
242
  #
243
243
  # @return [nil]
244
244
  #
245
- def update &block
245
+ def update arg = {}, &block
246
246
  begin
247
247
  @batching = true
248
- instance_eval(&block) if block_given?
248
+ instance_exec(arg, &block) if block_given?
249
249
  persist(true)
250
250
  ensure
251
251
  @batching = false
@@ -140,7 +140,10 @@ module AWS
140
140
  def set_metadata request, options
141
141
  if metadata = options[:metadata]
142
142
  Array(metadata).each do |name, value|
143
- request.headers["x-amz-meta-#{name}"] = value
143
+ # Do not add x-amz-meta- prefix to
144
+ # special metadata keys (like x-amz-webiste-redirect)
145
+ key = name.start_with?("x-amz-") ? name : "x-amz-meta-#{name}"
146
+ request.headers[key] = value
144
147
  end
145
148
  end
146
149
  end
@@ -58,6 +58,8 @@ module AWS
58
58
 
59
59
  attribute :dkim_verification_status
60
60
 
61
+ mutable_attribute :delivery_topic_arn, :from => :delivery_topic
62
+
61
63
  mutable_attribute :bounce_topic_arn, :from => :bounce_topic
62
64
 
63
65
  mutable_attribute :complaint_topic_arn, :from => :complaint_topic
@@ -73,6 +75,7 @@ module AWS
73
75
  end
74
76
 
75
77
  provider(:get_identity_notification_attributes) do |provider|
78
+ provider.provides :delivery_topic_arn
76
79
  provider.provides :bounce_topic_arn
77
80
  provider.provides :complaint_topic_arn
78
81
  provider.provides :forwarding_enabled
@@ -96,6 +99,20 @@ module AWS
96
99
  end
97
100
  end
98
101
 
102
+ # @param [String,SNS::Topic] topic The topic (ARN string or topic
103
+ # object) that delivery notifications should be published to.
104
+ def delivery_topic= topic
105
+ arn = topic.respond_to?(:arn) ? topic.arn : topic
106
+ self.delivery_topic_arn = arn
107
+ end
108
+
109
+ # @return [SNS::Topic,nil]
110
+ def delivery_topic
111
+ if arn = delivery_topic_arn
112
+ SNS::Topic.new(arn, :config => config)
113
+ end
114
+ end
115
+
99
116
  # @param [String,SNS::Topic] topic The topic (ARN string or topic
100
117
  # object) that bounce notifications should be published to.
101
118
  def bounce_topic= topic
@@ -185,6 +202,10 @@ module AWS
185
202
  client_opts = {}
186
203
  client_opts[:identity] = identity
187
204
  case attr.name
205
+ when :delivery_topic_arn
206
+ method = :set_identity_notification_topic
207
+ client_opts[:notification_type] = 'Delivery'
208
+ client_opts[:sns_topic] = value if value
188
209
  when :bounce_topic_arn
189
210
  method = :set_identity_notification_topic
190
211
  client_opts[:notification_type] = 'Bounce'
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.46.0'
16
+ VERSION = '1.47.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.46.0
4
+ version: 1.47.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-01 00:00:00.000000000 Z
11
+ date: 2014-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri