aws-sdk-ec2 1.380.0 → 1.381.0
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +15 -5
- data/lib/aws-sdk-ec2/client.rb +6 -1
- data/lib/aws-sdk-ec2/customizations/instance.rb +3 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +3 -1
- data/lib/aws-sdk-ec2/dhcp_options.rb +18 -6
- data/lib/aws-sdk-ec2/image.rb +27 -9
- data/lib/aws-sdk-ec2/instance.rb +114 -38
- data/lib/aws-sdk-ec2/internet_gateway.rb +21 -7
- data/lib/aws-sdk-ec2/key_pair.rb +6 -2
- data/lib/aws-sdk-ec2/key_pair_info.rb +9 -3
- data/lib/aws-sdk-ec2/nat_gateway.rb +15 -5
- data/lib/aws-sdk-ec2/network_acl.rb +27 -9
- data/lib/aws-sdk-ec2/network_interface.rb +36 -12
- data/lib/aws-sdk-ec2/network_interface_association.rb +9 -3
- data/lib/aws-sdk-ec2/placement_group.rb +12 -4
- data/lib/aws-sdk-ec2/resource.rb +114 -38
- data/lib/aws-sdk-ec2/route.rb +9 -3
- data/lib/aws-sdk-ec2/route_table.rb +21 -7
- data/lib/aws-sdk-ec2/route_table_association.rb +9 -3
- data/lib/aws-sdk-ec2/security_group.rb +27 -9
- data/lib/aws-sdk-ec2/snapshot.rb +30 -10
- data/lib/aws-sdk-ec2/subnet.rb +30 -10
- data/lib/aws-sdk-ec2/tag.rb +12 -4
- data/lib/aws-sdk-ec2/volume.rb +39 -13
- data/lib/aws-sdk-ec2/vpc.rb +90 -30
- data/lib/aws-sdk-ec2/vpc_address.rb +12 -4
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +18 -6
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b8227b6cdcd9aea3233c9150cb666d23500ef1c783539a559b30d148dee2e8c
|
4
|
+
data.tar.gz: cf00f59ae7fa9483bf1d919f0b9d937a34360416745232464023d57de8e1b798
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dc2d62ef87d7b7c398cd37df18b75f05f2a6ac8a3fd6c3637134b06e12e782b8ae2a90816e76ffa5ae6098afd67a7d9331d64286371b748467ccb276b3253ca
|
7
|
+
data.tar.gz: 5ca22effff59e66adb27196ea9ec3ec77c6df755acbc4bd2b84eae5e0d1d256147df587ce35e0ed4ca93e85512bdb7f8fd2b5a93d19073599c1ac64608a1d088
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.381.0
|
@@ -134,7 +134,9 @@ module Aws::EC2
|
|
134
134
|
#
|
135
135
|
# @return [self]
|
136
136
|
def load
|
137
|
-
resp =
|
137
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
138
|
+
@client.describe_addresses(public_ips: [@public_ip])
|
139
|
+
end
|
138
140
|
@data = resp.addresses[0]
|
139
141
|
self
|
140
142
|
end
|
@@ -249,7 +251,9 @@ module Aws::EC2
|
|
249
251
|
:retry
|
250
252
|
end
|
251
253
|
end
|
252
|
-
Aws::
|
254
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
255
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
256
|
+
end
|
253
257
|
end
|
254
258
|
|
255
259
|
# @!group Actions
|
@@ -299,7 +303,9 @@ module Aws::EC2
|
|
299
303
|
# @return [Types::AssociateAddressResult]
|
300
304
|
def associate(options = {})
|
301
305
|
options = options.merge(public_ip: @public_ip)
|
302
|
-
resp =
|
306
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
307
|
+
@client.associate_address(options)
|
308
|
+
end
|
303
309
|
resp.data
|
304
310
|
end
|
305
311
|
|
@@ -320,7 +326,9 @@ module Aws::EC2
|
|
320
326
|
# @return [EmptyStructure]
|
321
327
|
def disassociate(options = {})
|
322
328
|
options = options.merge(public_ip: data[:public_ip])
|
323
|
-
resp =
|
329
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
330
|
+
@client.disassociate_address(options)
|
331
|
+
end
|
324
332
|
resp.data
|
325
333
|
end
|
326
334
|
|
@@ -352,7 +360,9 @@ module Aws::EC2
|
|
352
360
|
# @return [EmptyStructure]
|
353
361
|
def release(options = {})
|
354
362
|
options = options.merge(public_ip: data[:public_ip])
|
355
|
-
resp =
|
363
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
364
|
+
@client.release_address(options)
|
365
|
+
end
|
356
366
|
resp.data
|
357
367
|
end
|
358
368
|
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -279,6 +279,11 @@ module Aws::EC2
|
|
279
279
|
# in the future.
|
280
280
|
#
|
281
281
|
#
|
282
|
+
# @option options [String] :sdk_ua_app_id
|
283
|
+
# A unique and opaque application ID that is appended to the
|
284
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
285
|
+
# maximum length of 50.
|
286
|
+
#
|
282
287
|
# @option options [String] :secret_access_key
|
283
288
|
#
|
284
289
|
# @option options [String] :session_token
|
@@ -56781,7 +56786,7 @@ module Aws::EC2
|
|
56781
56786
|
params: params,
|
56782
56787
|
config: config)
|
56783
56788
|
context[:gem_name] = 'aws-sdk-ec2'
|
56784
|
-
context[:gem_version] = '1.
|
56789
|
+
context[:gem_version] = '1.381.0'
|
56785
56790
|
Seahorse::Client::Request.new(handlers, context)
|
56786
56791
|
end
|
56787
56792
|
|
@@ -18,7 +18,9 @@ module Aws
|
|
18
18
|
private
|
19
19
|
|
20
20
|
def encrypted_password
|
21
|
-
bytes =
|
21
|
+
bytes = Aws::Plugins::UserAgent.feature('resource') do
|
22
|
+
client.get_password_data(instance_id: id).password_data
|
23
|
+
end
|
22
24
|
if bytes == ''
|
23
25
|
raise 'password not available yet'
|
24
26
|
else
|
@@ -5,7 +5,9 @@ module Aws
|
|
5
5
|
class Resource
|
6
6
|
|
7
7
|
def create_tags(options)
|
8
|
-
resp =
|
8
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
9
|
+
@client.create_tags(options)
|
10
|
+
end
|
9
11
|
tags = []
|
10
12
|
options[:resources].each do |resource_id|
|
11
13
|
options[:tags].each do |tag|
|
@@ -68,7 +68,9 @@ module Aws::EC2
|
|
68
68
|
#
|
69
69
|
# @return [self]
|
70
70
|
def load
|
71
|
-
resp =
|
71
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
72
|
+
@client.describe_dhcp_options(dhcp_options_ids: [@id])
|
73
|
+
end
|
72
74
|
@data = resp.dhcp_options[0]
|
73
75
|
self
|
74
76
|
end
|
@@ -183,7 +185,9 @@ module Aws::EC2
|
|
183
185
|
:retry
|
184
186
|
end
|
185
187
|
end
|
186
|
-
Aws::
|
188
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
189
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
190
|
+
end
|
187
191
|
end
|
188
192
|
|
189
193
|
# @!group Actions
|
@@ -205,7 +209,9 @@ module Aws::EC2
|
|
205
209
|
# @return [EmptyStructure]
|
206
210
|
def associate_with_vpc(options = {})
|
207
211
|
options = options.merge(dhcp_options_id: @id)
|
208
|
-
resp =
|
212
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
213
|
+
@client.associate_dhcp_options(options)
|
214
|
+
end
|
209
215
|
resp.data
|
210
216
|
end
|
211
217
|
|
@@ -234,7 +240,9 @@ module Aws::EC2
|
|
234
240
|
def create_tags(options = {})
|
235
241
|
batch = []
|
236
242
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
237
|
-
resp =
|
243
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
244
|
+
@client.create_tags(options)
|
245
|
+
end
|
238
246
|
options[:tags].each do |t|
|
239
247
|
batch << Tag.new(
|
240
248
|
resource_id: @id,
|
@@ -279,7 +287,9 @@ module Aws::EC2
|
|
279
287
|
def delete_tags(options = {})
|
280
288
|
batch = []
|
281
289
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
282
|
-
resp =
|
290
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
291
|
+
@client.delete_tags(options)
|
292
|
+
end
|
283
293
|
options[:tags].each do |t|
|
284
294
|
batch << Tag.new(
|
285
295
|
resource_id: @id,
|
@@ -305,7 +315,9 @@ module Aws::EC2
|
|
305
315
|
# @return [EmptyStructure]
|
306
316
|
def delete(options = {})
|
307
317
|
options = options.merge(dhcp_options_id: @id)
|
308
|
-
resp =
|
318
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
319
|
+
@client.delete_dhcp_options(options)
|
320
|
+
end
|
309
321
|
resp.data
|
310
322
|
end
|
311
323
|
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -274,7 +274,9 @@ module Aws::EC2
|
|
274
274
|
#
|
275
275
|
# @return [self]
|
276
276
|
def load
|
277
|
-
resp =
|
277
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
278
|
+
@client.describe_images(image_ids: [@id])
|
279
|
+
end
|
278
280
|
@data = resp.images[0]
|
279
281
|
self
|
280
282
|
end
|
@@ -319,7 +321,9 @@ module Aws::EC2
|
|
319
321
|
options, params = separate_params_and_options(options)
|
320
322
|
waiter = Waiters::ImageExists.new(options)
|
321
323
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
322
|
-
resp =
|
324
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
325
|
+
waiter.wait(params.merge(image_ids: [@id]))
|
326
|
+
end
|
323
327
|
Image.new({
|
324
328
|
id: @id,
|
325
329
|
data: resp.data.images[0],
|
@@ -421,7 +425,9 @@ module Aws::EC2
|
|
421
425
|
:retry
|
422
426
|
end
|
423
427
|
end
|
424
|
-
Aws::
|
428
|
+
Aws::Plugins::UserAgent.feature('resource') do
|
429
|
+
Aws::Waiters::Waiter.new(options).wait({})
|
430
|
+
end
|
425
431
|
end
|
426
432
|
|
427
433
|
# @!group Actions
|
@@ -451,7 +457,9 @@ module Aws::EC2
|
|
451
457
|
def create_tags(options = {})
|
452
458
|
batch = []
|
453
459
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
454
|
-
resp =
|
460
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
461
|
+
@client.create_tags(options)
|
462
|
+
end
|
455
463
|
options[:tags].each do |t|
|
456
464
|
batch << Tag.new(
|
457
465
|
resource_id: @id,
|
@@ -496,7 +504,9 @@ module Aws::EC2
|
|
496
504
|
def delete_tags(options = {})
|
497
505
|
batch = []
|
498
506
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
499
|
-
resp =
|
507
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
508
|
+
@client.delete_tags(options)
|
509
|
+
end
|
500
510
|
options[:tags].each do |t|
|
501
511
|
batch << Tag.new(
|
502
512
|
resource_id: @id,
|
@@ -522,7 +532,9 @@ module Aws::EC2
|
|
522
532
|
# @return [EmptyStructure]
|
523
533
|
def deregister(options = {})
|
524
534
|
options = options.merge(image_id: @id)
|
525
|
-
resp =
|
535
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
536
|
+
@client.deregister_image(options)
|
537
|
+
end
|
526
538
|
resp.data
|
527
539
|
end
|
528
540
|
|
@@ -548,7 +560,9 @@ module Aws::EC2
|
|
548
560
|
# @return [Types::ImageAttribute]
|
549
561
|
def describe_attribute(options = {})
|
550
562
|
options = options.merge(image_id: @id)
|
551
|
-
resp =
|
563
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
564
|
+
@client.describe_image_attribute(options)
|
565
|
+
end
|
552
566
|
resp.data
|
553
567
|
end
|
554
568
|
|
@@ -638,7 +652,9 @@ module Aws::EC2
|
|
638
652
|
# @return [EmptyStructure]
|
639
653
|
def modify_attribute(options = {})
|
640
654
|
options = options.merge(image_id: @id)
|
641
|
-
resp =
|
655
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
656
|
+
@client.modify_image_attribute(options)
|
657
|
+
end
|
642
658
|
resp.data
|
643
659
|
end
|
644
660
|
|
@@ -660,7 +676,9 @@ module Aws::EC2
|
|
660
676
|
# @return [EmptyStructure]
|
661
677
|
def reset_attribute(options = {})
|
662
678
|
options = options.merge(image_id: @id)
|
663
|
-
resp =
|
679
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
680
|
+
@client.reset_image_attribute(options)
|
681
|
+
end
|
664
682
|
resp.data
|
665
683
|
end
|
666
684
|
|