aws-sdk-ec2 1.380.0 → 1.382.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +15 -5
- data/lib/aws-sdk-ec2/client.rb +10 -5
- data/lib/aws-sdk-ec2/client_api.rb +2 -2
- 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: 39ec103af60f907ea0760746280002ff41ee1b8cf0453716e1cdcf4fdeee8b9e
|
4
|
+
data.tar.gz: 627c2dfda6fb8b146c938c27669dc19d109fa0551c5fec12c78e67b2ceaf4d7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f8f811991af5de804f27c57990bcd1715a79ed536af8d76c6e9d7248559e902cd8cf685b1070bca9a937eec96f3821516e3d801addbbe362ab9f42bbe2f4f0e
|
7
|
+
data.tar.gz: 22af94741265bfe3071b101a51b258f90c994c1fdb590b9cb174960be9ec9185f826b520502baef0cb9241259760731517b75fc99f7a7eed48aed66b3daf36eb
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.382.0 (2023-06-05)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Making InstanceTagAttribute as the required parameter for the DeregisterInstanceEventNotificationAttributes and RegisterInstanceEventNotificationAttributes APIs.
|
8
|
+
|
9
|
+
1.381.0 (2023-05-31)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.380.0 (2023-05-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.382.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
|
@@ -18693,7 +18698,7 @@ module Aws::EC2
|
|
18693
18698
|
# If you have the required permissions, the error response is
|
18694
18699
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
18695
18700
|
#
|
18696
|
-
# @option params [Types::DeregisterInstanceTagAttributeRequest] :instance_tag_attribute
|
18701
|
+
# @option params [required, Types::DeregisterInstanceTagAttributeRequest] :instance_tag_attribute
|
18697
18702
|
# Information about the tag keys to deregister.
|
18698
18703
|
#
|
18699
18704
|
# @return [Types::DeregisterInstanceEventNotificationAttributesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -18704,7 +18709,7 @@ module Aws::EC2
|
|
18704
18709
|
#
|
18705
18710
|
# resp = client.deregister_instance_event_notification_attributes({
|
18706
18711
|
# dry_run: false,
|
18707
|
-
# instance_tag_attribute: {
|
18712
|
+
# instance_tag_attribute: { # required
|
18708
18713
|
# include_all_tags_of_instance: false,
|
18709
18714
|
# instance_tag_keys: ["String"],
|
18710
18715
|
# },
|
@@ -50382,7 +50387,7 @@ module Aws::EC2
|
|
50382
50387
|
# If you have the required permissions, the error response is
|
50383
50388
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
50384
50389
|
#
|
50385
|
-
# @option params [Types::RegisterInstanceTagAttributeRequest] :instance_tag_attribute
|
50390
|
+
# @option params [required, Types::RegisterInstanceTagAttributeRequest] :instance_tag_attribute
|
50386
50391
|
# Information about the tag keys to register.
|
50387
50392
|
#
|
50388
50393
|
# @return [Types::RegisterInstanceEventNotificationAttributesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -50393,7 +50398,7 @@ module Aws::EC2
|
|
50393
50398
|
#
|
50394
50399
|
# resp = client.register_instance_event_notification_attributes({
|
50395
50400
|
# dry_run: false,
|
50396
|
-
# instance_tag_attribute: {
|
50401
|
+
# instance_tag_attribute: { # required
|
50397
50402
|
# include_all_tags_of_instance: false,
|
50398
50403
|
# instance_tag_keys: ["String"],
|
50399
50404
|
# },
|
@@ -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.382.0'
|
56785
56790
|
Seahorse::Client::Request.new(handlers, context)
|
56786
56791
|
end
|
56787
56792
|
|
@@ -5862,7 +5862,7 @@ module Aws::EC2
|
|
5862
5862
|
DeregisterImageRequest.struct_class = Types::DeregisterImageRequest
|
5863
5863
|
|
5864
5864
|
DeregisterInstanceEventNotificationAttributesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
5865
|
-
DeregisterInstanceEventNotificationAttributesRequest.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: DeregisterInstanceTagAttributeRequest, location_name: "InstanceTagAttribute"))
|
5865
|
+
DeregisterInstanceEventNotificationAttributesRequest.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: DeregisterInstanceTagAttributeRequest, required: true, location_name: "InstanceTagAttribute"))
|
5866
5866
|
DeregisterInstanceEventNotificationAttributesRequest.struct_class = Types::DeregisterInstanceEventNotificationAttributesRequest
|
5867
5867
|
|
5868
5868
|
DeregisterInstanceEventNotificationAttributesResult.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: InstanceTagNotificationAttribute, location_name: "instanceTagAttribute"))
|
@@ -12197,7 +12197,7 @@ module Aws::EC2
|
|
12197
12197
|
RegisterImageResult.struct_class = Types::RegisterImageResult
|
12198
12198
|
|
12199
12199
|
RegisterInstanceEventNotificationAttributesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
12200
|
-
RegisterInstanceEventNotificationAttributesRequest.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: RegisterInstanceTagAttributeRequest, location_name: "InstanceTagAttribute"))
|
12200
|
+
RegisterInstanceEventNotificationAttributesRequest.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: RegisterInstanceTagAttributeRequest, required: true, location_name: "InstanceTagAttribute"))
|
12201
12201
|
RegisterInstanceEventNotificationAttributesRequest.struct_class = Types::RegisterInstanceEventNotificationAttributesRequest
|
12202
12202
|
|
12203
12203
|
RegisterInstanceEventNotificationAttributesResult.add_member(:instance_tag_attribute, Shapes::ShapeRef.new(shape: InstanceTagNotificationAttribute, location_name: "instanceTagAttribute"))
|
@@ -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
|
|