aws-sdk-ec2 1.380.0 → 1.381.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -103,7 +103,9 @@ module Aws::EC2
103
103
  #
104
104
  # @return [self]
105
105
  def load
106
- resp = @client.describe_vpcs(vpc_ids: [@id])
106
+ resp = Aws::Plugins::UserAgent.feature('resource') do
107
+ @client.describe_vpcs(vpc_ids: [@id])
108
+ end
107
109
  @data = resp.vpcs[0]
108
110
  self
109
111
  end
@@ -148,7 +150,9 @@ module Aws::EC2
148
150
  options, params = separate_params_and_options(options)
149
151
  waiter = Waiters::VpcAvailable.new(options)
150
152
  yield_waiter_and_warn(waiter, &block) if block_given?
151
- waiter.wait(params.merge(vpc_ids: [@id]))
153
+ Aws::Plugins::UserAgent.feature('resource') do
154
+ waiter.wait(params.merge(vpc_ids: [@id]))
155
+ end
152
156
  Vpc.new({
153
157
  id: @id,
154
158
  client: @client
@@ -165,7 +169,9 @@ module Aws::EC2
165
169
  options, params = separate_params_and_options(options)
166
170
  waiter = Waiters::VpcExists.new(options)
167
171
  yield_waiter_and_warn(waiter, &block) if block_given?
168
- waiter.wait(params.merge(vpc_ids: [@id]))
172
+ Aws::Plugins::UserAgent.feature('resource') do
173
+ waiter.wait(params.merge(vpc_ids: [@id]))
174
+ end
169
175
  Vpc.new({
170
176
  id: @id,
171
177
  client: @client
@@ -266,7 +272,9 @@ module Aws::EC2
266
272
  :retry
267
273
  end
268
274
  end
269
- Aws::Waiters::Waiter.new(options).wait({})
275
+ Aws::Plugins::UserAgent.feature('resource') do
276
+ Aws::Waiters::Waiter.new(options).wait({})
277
+ end
270
278
  end
271
279
 
272
280
  # @!group Actions
@@ -289,7 +297,9 @@ module Aws::EC2
289
297
  # @return [EmptyStructure]
290
298
  def associate_dhcp_options(options = {})
291
299
  options = options.merge(vpc_id: @id)
292
- resp = @client.associate_dhcp_options(options)
300
+ resp = Aws::Plugins::UserAgent.feature('resource') do
301
+ @client.associate_dhcp_options(options)
302
+ end
293
303
  resp.data
294
304
  end
295
305
 
@@ -315,7 +325,9 @@ module Aws::EC2
315
325
  # @return [Types::AttachClassicLinkVpcResult]
316
326
  def attach_classic_link_instance(options = {})
317
327
  options = options.merge(vpc_id: @id)
318
- resp = @client.attach_classic_link_vpc(options)
328
+ resp = Aws::Plugins::UserAgent.feature('resource') do
329
+ @client.attach_classic_link_vpc(options)
330
+ end
319
331
  resp.data
320
332
  end
321
333
 
@@ -336,7 +348,9 @@ module Aws::EC2
336
348
  # @return [EmptyStructure]
337
349
  def attach_internet_gateway(options = {})
338
350
  options = options.merge(vpc_id: @id)
339
- resp = @client.attach_internet_gateway(options)
351
+ resp = Aws::Plugins::UserAgent.feature('resource') do
352
+ @client.attach_internet_gateway(options)
353
+ end
340
354
  resp.data
341
355
  end
342
356
 
@@ -367,7 +381,9 @@ module Aws::EC2
367
381
  # @return [NetworkAcl]
368
382
  def create_network_acl(options = {})
369
383
  options = options.merge(vpc_id: @id)
370
- resp = @client.create_network_acl(options)
384
+ resp = Aws::Plugins::UserAgent.feature('resource') do
385
+ @client.create_network_acl(options)
386
+ end
371
387
  NetworkAcl.new(
372
388
  id: resp.data.network_acl.network_acl_id,
373
389
  data: resp.data.network_acl,
@@ -402,7 +418,9 @@ module Aws::EC2
402
418
  # @return [RouteTable]
403
419
  def create_route_table(options = {})
404
420
  options = options.merge(vpc_id: @id)
405
- resp = @client.create_route_table(options)
421
+ resp = Aws::Plugins::UserAgent.feature('resource') do
422
+ @client.create_route_table(options)
423
+ end
406
424
  RouteTable.new(
407
425
  id: resp.data.route_table.route_table_id,
408
426
  data: resp.data.route_table,
@@ -457,7 +475,9 @@ module Aws::EC2
457
475
  # @return [SecurityGroup]
458
476
  def create_security_group(options = {})
459
477
  options = options.merge(vpc_id: @id)
460
- resp = @client.create_security_group(options)
478
+ resp = Aws::Plugins::UserAgent.feature('resource') do
479
+ @client.create_security_group(options)
480
+ end
461
481
  SecurityGroup.new(
462
482
  id: resp.data.group_id,
463
483
  client: @client
@@ -535,7 +555,9 @@ module Aws::EC2
535
555
  # @return [Subnet]
536
556
  def create_subnet(options = {})
537
557
  options = options.merge(vpc_id: @id)
538
- resp = @client.create_subnet(options)
558
+ resp = Aws::Plugins::UserAgent.feature('resource') do
559
+ @client.create_subnet(options)
560
+ end
539
561
  Subnet.new(
540
562
  id: resp.data.subnet.subnet_id,
541
563
  data: resp.data.subnet,
@@ -568,7 +590,9 @@ module Aws::EC2
568
590
  def create_tags(options = {})
569
591
  batch = []
570
592
  options = Aws::Util.deep_merge(options, resources: [@id])
571
- resp = @client.create_tags(options)
593
+ resp = Aws::Plugins::UserAgent.feature('resource') do
594
+ @client.create_tags(options)
595
+ end
572
596
  options[:tags].each do |t|
573
597
  batch << Tag.new(
574
598
  resource_id: @id,
@@ -613,7 +637,9 @@ module Aws::EC2
613
637
  def delete_tags(options = {})
614
638
  batch = []
615
639
  options = Aws::Util.deep_merge(options, resources: [@id])
616
- resp = @client.delete_tags(options)
640
+ resp = Aws::Plugins::UserAgent.feature('resource') do
641
+ @client.delete_tags(options)
642
+ end
617
643
  options[:tags].each do |t|
618
644
  batch << Tag.new(
619
645
  resource_id: @id,
@@ -639,7 +665,9 @@ module Aws::EC2
639
665
  # @return [EmptyStructure]
640
666
  def delete(options = {})
641
667
  options = options.merge(vpc_id: @id)
642
- resp = @client.delete_vpc(options)
668
+ resp = Aws::Plugins::UserAgent.feature('resource') do
669
+ @client.delete_vpc(options)
670
+ end
643
671
  resp.data
644
672
  end
645
673
 
@@ -660,7 +688,9 @@ module Aws::EC2
660
688
  # @return [Types::DescribeVpcAttributeResult]
661
689
  def describe_attribute(options = {})
662
690
  options = options.merge(vpc_id: @id)
663
- resp = @client.describe_vpc_attribute(options)
691
+ resp = Aws::Plugins::UserAgent.feature('resource') do
692
+ @client.describe_vpc_attribute(options)
693
+ end
664
694
  resp.data
665
695
  end
666
696
 
@@ -681,7 +711,9 @@ module Aws::EC2
681
711
  # @return [Types::DetachClassicLinkVpcResult]
682
712
  def detach_classic_link_instance(options = {})
683
713
  options = options.merge(vpc_id: @id)
684
- resp = @client.detach_classic_link_vpc(options)
714
+ resp = Aws::Plugins::UserAgent.feature('resource') do
715
+ @client.detach_classic_link_vpc(options)
716
+ end
685
717
  resp.data
686
718
  end
687
719
 
@@ -702,7 +734,9 @@ module Aws::EC2
702
734
  # @return [EmptyStructure]
703
735
  def detach_internet_gateway(options = {})
704
736
  options = options.merge(vpc_id: @id)
705
- resp = @client.detach_internet_gateway(options)
737
+ resp = Aws::Plugins::UserAgent.feature('resource') do
738
+ @client.detach_internet_gateway(options)
739
+ end
706
740
  resp.data
707
741
  end
708
742
 
@@ -720,7 +754,9 @@ module Aws::EC2
720
754
  # @return [Types::DisableVpcClassicLinkResult]
721
755
  def disable_classic_link(options = {})
722
756
  options = options.merge(vpc_id: @id)
723
- resp = @client.disable_vpc_classic_link(options)
757
+ resp = Aws::Plugins::UserAgent.feature('resource') do
758
+ @client.disable_vpc_classic_link(options)
759
+ end
724
760
  resp.data
725
761
  end
726
762
 
@@ -738,7 +774,9 @@ module Aws::EC2
738
774
  # @return [Types::EnableVpcClassicLinkResult]
739
775
  def enable_classic_link(options = {})
740
776
  options = options.merge(vpc_id: @id)
741
- resp = @client.enable_vpc_classic_link(options)
777
+ resp = Aws::Plugins::UserAgent.feature('resource') do
778
+ @client.enable_vpc_classic_link(options)
779
+ end
742
780
  resp.data
743
781
  end
744
782
 
@@ -780,7 +818,9 @@ module Aws::EC2
780
818
  # @return [EmptyStructure]
781
819
  def modify_attribute(options = {})
782
820
  options = options.merge(vpc_id: @id)
783
- resp = @client.modify_vpc_attribute(options)
821
+ resp = Aws::Plugins::UserAgent.feature('resource') do
822
+ @client.modify_vpc_attribute(options)
823
+ end
784
824
  resp.data
785
825
  end
786
826
 
@@ -826,7 +866,9 @@ module Aws::EC2
826
866
  # @return [VpcPeeringConnection]
827
867
  def request_vpc_peering_connection(options = {})
828
868
  options = options.merge(vpc_id: @id)
829
- resp = @client.create_vpc_peering_connection(options)
869
+ resp = Aws::Plugins::UserAgent.feature('resource') do
870
+ @client.create_vpc_peering_connection(options)
871
+ end
830
872
  VpcPeeringConnection.new(
831
873
  id: resp.data.vpc_peering_connection.vpc_peering_connection_id,
832
874
  data: resp.data.vpc_peering_connection,
@@ -905,7 +947,9 @@ module Aws::EC2
905
947
  name: "accepter-vpc-info.vpc-id",
906
948
  values: [@id]
907
949
  }])
908
- resp = @client.describe_vpc_peering_connections(options)
950
+ resp = Aws::Plugins::UserAgent.feature('resource') do
951
+ @client.describe_vpc_peering_connections(options)
952
+ end
909
953
  resp.each_page do |page|
910
954
  batch = []
911
955
  page.data.vpc_peering_connections.each do |v|
@@ -1242,7 +1286,9 @@ module Aws::EC2
1242
1286
  name: "vpc-id",
1243
1287
  values: [@id]
1244
1288
  }])
1245
- resp = @client.describe_instances(options)
1289
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1290
+ @client.describe_instances(options)
1291
+ end
1246
1292
  resp.each_page do |page|
1247
1293
  batch = []
1248
1294
  page.data.reservations.each do |r|
@@ -1312,7 +1358,9 @@ module Aws::EC2
1312
1358
  name: "attachment.vpc-id",
1313
1359
  values: [@id]
1314
1360
  }])
1315
- resp = @client.describe_internet_gateways(options)
1361
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1362
+ @client.describe_internet_gateways(options)
1363
+ end
1316
1364
  resp.each_page do |page|
1317
1365
  batch = []
1318
1366
  page.data.internet_gateways.each do |i|
@@ -1414,7 +1462,9 @@ module Aws::EC2
1414
1462
  name: "vpc-id",
1415
1463
  values: [@id]
1416
1464
  }])
1417
- resp = @client.describe_network_acls(options)
1465
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1466
+ @client.describe_network_acls(options)
1467
+ end
1418
1468
  resp.each_page do |page|
1419
1469
  batch = []
1420
1470
  page.data.network_acls.each do |n|
@@ -1576,7 +1626,9 @@ module Aws::EC2
1576
1626
  name: "vpc-id",
1577
1627
  values: [@id]
1578
1628
  }])
1579
- resp = @client.describe_network_interfaces(options)
1629
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1630
+ @client.describe_network_interfaces(options)
1631
+ end
1580
1632
  resp.each_page do |page|
1581
1633
  batch = []
1582
1634
  page.data.network_interfaces.each do |n|
@@ -1661,7 +1713,9 @@ module Aws::EC2
1661
1713
  name: "requester-vpc-info.vpc-id",
1662
1714
  values: [@id]
1663
1715
  }])
1664
- resp = @client.describe_vpc_peering_connections(options)
1716
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1717
+ @client.describe_vpc_peering_connections(options)
1718
+ end
1665
1719
  resp.each_page do |page|
1666
1720
  batch = []
1667
1721
  page.data.vpc_peering_connections.each do |v|
@@ -1776,7 +1830,9 @@ module Aws::EC2
1776
1830
  name: "vpc-id",
1777
1831
  values: [@id]
1778
1832
  }])
1779
- resp = @client.describe_route_tables(options)
1833
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1834
+ @client.describe_route_tables(options)
1835
+ end
1780
1836
  resp.each_page do |page|
1781
1837
  batch = []
1782
1838
  page.data.route_tables.each do |r|
@@ -1912,7 +1968,9 @@ module Aws::EC2
1912
1968
  name: "vpc-id",
1913
1969
  values: [@id]
1914
1970
  }])
1915
- resp = @client.describe_security_groups(options)
1971
+ resp = Aws::Plugins::UserAgent.feature('resource') do
1972
+ @client.describe_security_groups(options)
1973
+ end
1916
1974
  resp.each_page do |page|
1917
1975
  batch = []
1918
1976
  page.data.security_groups.each do |s|
@@ -2046,7 +2104,9 @@ module Aws::EC2
2046
2104
  name: "vpc-id",
2047
2105
  values: [@id]
2048
2106
  }])
2049
- resp = @client.describe_subnets(options)
2107
+ resp = Aws::Plugins::UserAgent.feature('resource') do
2108
+ @client.describe_subnets(options)
2109
+ end
2050
2110
  resp.each_page do |page|
2051
2111
  batch = []
2052
2112
  page.data.subnets.each do |s|
@@ -133,7 +133,9 @@ module Aws::EC2
133
133
  #
134
134
  # @return [self]
135
135
  def load
136
- resp = @client.describe_addresses(allocation_ids: [@allocation_id])
136
+ resp = Aws::Plugins::UserAgent.feature('resource') do
137
+ @client.describe_addresses(allocation_ids: [@allocation_id])
138
+ end
137
139
  @data = resp.addresses[0]
138
140
  self
139
141
  end
@@ -248,7 +250,9 @@ module Aws::EC2
248
250
  :retry
249
251
  end
250
252
  end
251
- Aws::Waiters::Waiter.new(options).wait({})
253
+ Aws::Plugins::UserAgent.feature('resource') do
254
+ Aws::Waiters::Waiter.new(options).wait({})
255
+ end
252
256
  end
253
257
 
254
258
  # @!group Actions
@@ -299,7 +303,9 @@ module Aws::EC2
299
303
  # @return [Types::AssociateAddressResult]
300
304
  def associate(options = {})
301
305
  options = options.merge(allocation_id: @allocation_id)
302
- resp = @client.associate_address(options)
306
+ resp = Aws::Plugins::UserAgent.feature('resource') do
307
+ @client.associate_address(options)
308
+ end
303
309
  resp.data
304
310
  end
305
311
 
@@ -331,7 +337,9 @@ module Aws::EC2
331
337
  # @return [EmptyStructure]
332
338
  def release(options = {})
333
339
  options = options.merge(allocation_id: data[:allocation_id])
334
- resp = @client.release_address(options)
340
+ resp = Aws::Plugins::UserAgent.feature('resource') do
341
+ @client.release_address(options)
342
+ end
335
343
  resp.data
336
344
  end
337
345
 
@@ -81,7 +81,9 @@ module Aws::EC2
81
81
  #
82
82
  # @return [self]
83
83
  def load
84
- resp = @client.describe_vpc_peering_connections(vpc_peering_connection_ids: [@id])
84
+ resp = Aws::Plugins::UserAgent.feature('resource') do
85
+ @client.describe_vpc_peering_connections(vpc_peering_connection_ids: [@id])
86
+ end
85
87
  @data = resp.vpc_peering_connections[0]
86
88
  self
87
89
  end
@@ -126,7 +128,9 @@ module Aws::EC2
126
128
  options, params = separate_params_and_options(options)
127
129
  waiter = Waiters::VpcPeeringConnectionExists.new(options)
128
130
  yield_waiter_and_warn(waiter, &block) if block_given?
129
- resp = waiter.wait(params.merge(vpc_peering_connection_ids: [@id]))
131
+ resp = Aws::Plugins::UserAgent.feature('resource') do
132
+ waiter.wait(params.merge(vpc_peering_connection_ids: [@id]))
133
+ end
130
134
  VpcPeeringConnection.new({
131
135
  id: @id,
132
136
  data: resp.data.vpc_peering_connections[0],
@@ -228,7 +232,9 @@ module Aws::EC2
228
232
  :retry
229
233
  end
230
234
  end
231
- Aws::Waiters::Waiter.new(options).wait({})
235
+ Aws::Plugins::UserAgent.feature('resource') do
236
+ Aws::Waiters::Waiter.new(options).wait({})
237
+ end
232
238
  end
233
239
 
234
240
  # @!group Actions
@@ -247,7 +253,9 @@ module Aws::EC2
247
253
  # @return [Types::AcceptVpcPeeringConnectionResult]
248
254
  def accept(options = {})
249
255
  options = options.merge(vpc_peering_connection_id: @id)
250
- resp = @client.accept_vpc_peering_connection(options)
256
+ resp = Aws::Plugins::UserAgent.feature('resource') do
257
+ @client.accept_vpc_peering_connection(options)
258
+ end
251
259
  resp.data
252
260
  end
253
261
 
@@ -265,7 +273,9 @@ module Aws::EC2
265
273
  # @return [Types::DeleteVpcPeeringConnectionResult]
266
274
  def delete(options = {})
267
275
  options = options.merge(vpc_peering_connection_id: @id)
268
- resp = @client.delete_vpc_peering_connection(options)
276
+ resp = Aws::Plugins::UserAgent.feature('resource') do
277
+ @client.delete_vpc_peering_connection(options)
278
+ end
269
279
  resp.data
270
280
  end
271
281
 
@@ -283,7 +293,9 @@ module Aws::EC2
283
293
  # @return [Types::RejectVpcPeeringConnectionResult]
284
294
  def reject(options = {})
285
295
  options = options.merge(vpc_peering_connection_id: @id)
286
- resp = @client.reject_vpc_peering_connection(options)
296
+ resp = Aws::Plugins::UserAgent.feature('resource') do
297
+ @client.reject_vpc_peering_connection(options)
298
+ end
287
299
  resp.data
288
300
  end
289
301
 
data/lib/aws-sdk-ec2.rb CHANGED
@@ -76,6 +76,6 @@ require_relative 'aws-sdk-ec2/customizations'
76
76
  # @!group service
77
77
  module Aws::EC2
78
78
 
79
- GEM_VERSION = '1.380.0'
79
+ GEM_VERSION = '1.381.0'
80
80
 
81
81
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.380.0
4
+ version: 1.381.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: 2023-05-18 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '3'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 3.165.0
36
+ version: 3.174.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 3.165.0
46
+ version: 3.174.0
47
47
  description: Official AWS Ruby gem for Amazon Elastic Compute Cloud (Amazon EC2).
48
48
  This gem is part of the AWS SDK for Ruby.
49
49
  email: