aws-sdk-ec2 1.459.0 → 1.460.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -103,7 +103,7 @@ module Aws::EC2
103
103
  #
104
104
  # @return [self]
105
105
  def load
106
- resp = Aws::Plugins::UserAgent.feature('resource') do
106
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
107
107
  @client.describe_vpcs(vpc_ids: [@id])
108
108
  end
109
109
  @data = resp.vpcs[0]
@@ -150,7 +150,7 @@ module Aws::EC2
150
150
  options, params = separate_params_and_options(options)
151
151
  waiter = Waiters::VpcAvailable.new(options)
152
152
  yield_waiter_and_warn(waiter, &block) if block_given?
153
- Aws::Plugins::UserAgent.feature('resource') do
153
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
154
154
  waiter.wait(params.merge(vpc_ids: [@id]))
155
155
  end
156
156
  Vpc.new({
@@ -169,7 +169,7 @@ module Aws::EC2
169
169
  options, params = separate_params_and_options(options)
170
170
  waiter = Waiters::VpcExists.new(options)
171
171
  yield_waiter_and_warn(waiter, &block) if block_given?
172
- Aws::Plugins::UserAgent.feature('resource') do
172
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
173
173
  waiter.wait(params.merge(vpc_ids: [@id]))
174
174
  end
175
175
  Vpc.new({
@@ -272,7 +272,7 @@ module Aws::EC2
272
272
  :retry
273
273
  end
274
274
  end
275
- Aws::Plugins::UserAgent.feature('resource') do
275
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
276
276
  Aws::Waiters::Waiter.new(options).wait({})
277
277
  end
278
278
  end
@@ -297,7 +297,7 @@ module Aws::EC2
297
297
  # @return [EmptyStructure]
298
298
  def associate_dhcp_options(options = {})
299
299
  options = options.merge(vpc_id: @id)
300
- resp = Aws::Plugins::UserAgent.feature('resource') do
300
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
301
301
  @client.associate_dhcp_options(options)
302
302
  end
303
303
  resp.data
@@ -324,7 +324,7 @@ module Aws::EC2
324
324
  # @return [Types::AttachClassicLinkVpcResult]
325
325
  def attach_classic_link_instance(options = {})
326
326
  options = options.merge(vpc_id: @id)
327
- resp = Aws::Plugins::UserAgent.feature('resource') do
327
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
328
328
  @client.attach_classic_link_vpc(options)
329
329
  end
330
330
  resp.data
@@ -347,7 +347,7 @@ module Aws::EC2
347
347
  # @return [EmptyStructure]
348
348
  def attach_internet_gateway(options = {})
349
349
  options = options.merge(vpc_id: @id)
350
- resp = Aws::Plugins::UserAgent.feature('resource') do
350
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
351
351
  @client.attach_internet_gateway(options)
352
352
  end
353
353
  resp.data
@@ -389,7 +389,7 @@ module Aws::EC2
389
389
  # @return [NetworkAcl]
390
390
  def create_network_acl(options = {})
391
391
  options = options.merge(vpc_id: @id)
392
- resp = Aws::Plugins::UserAgent.feature('resource') do
392
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
393
393
  @client.create_network_acl(options)
394
394
  end
395
395
  NetworkAcl.new(
@@ -435,7 +435,7 @@ module Aws::EC2
435
435
  # @return [RouteTable]
436
436
  def create_route_table(options = {})
437
437
  options = options.merge(vpc_id: @id)
438
- resp = Aws::Plugins::UserAgent.feature('resource') do
438
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
439
439
  @client.create_route_table(options)
440
440
  end
441
441
  RouteTable.new(
@@ -488,7 +488,7 @@ module Aws::EC2
488
488
  # @return [SecurityGroup]
489
489
  def create_security_group(options = {})
490
490
  options = options.merge(vpc_id: @id)
491
- resp = Aws::Plugins::UserAgent.feature('resource') do
491
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
492
492
  @client.create_security_group(options)
493
493
  end
494
494
  SecurityGroup.new(
@@ -577,7 +577,7 @@ module Aws::EC2
577
577
  # @return [Subnet]
578
578
  def create_subnet(options = {})
579
579
  options = options.merge(vpc_id: @id)
580
- resp = Aws::Plugins::UserAgent.feature('resource') do
580
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
581
581
  @client.create_subnet(options)
582
582
  end
583
583
  Subnet.new(
@@ -612,7 +612,7 @@ module Aws::EC2
612
612
  def create_tags(options = {})
613
613
  batch = []
614
614
  options = Aws::Util.deep_merge(options, resources: [@id])
615
- resp = Aws::Plugins::UserAgent.feature('resource') do
615
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
616
616
  @client.create_tags(options)
617
617
  end
618
618
  options[:tags].each do |t|
@@ -659,7 +659,7 @@ module Aws::EC2
659
659
  def delete_tags(options = {})
660
660
  batch = []
661
661
  options = Aws::Util.deep_merge(options, resources: [@id])
662
- resp = Aws::Plugins::UserAgent.feature('resource') do
662
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
663
663
  @client.delete_tags(options)
664
664
  end
665
665
  options[:tags].each do |t|
@@ -687,7 +687,7 @@ module Aws::EC2
687
687
  # @return [EmptyStructure]
688
688
  def delete(options = {})
689
689
  options = options.merge(vpc_id: @id)
690
- resp = Aws::Plugins::UserAgent.feature('resource') do
690
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
691
691
  @client.delete_vpc(options)
692
692
  end
693
693
  resp.data
@@ -710,7 +710,7 @@ module Aws::EC2
710
710
  # @return [Types::DescribeVpcAttributeResult]
711
711
  def describe_attribute(options = {})
712
712
  options = options.merge(vpc_id: @id)
713
- resp = Aws::Plugins::UserAgent.feature('resource') do
713
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
714
714
  @client.describe_vpc_attribute(options)
715
715
  end
716
716
  resp.data
@@ -733,7 +733,7 @@ module Aws::EC2
733
733
  # @return [Types::DetachClassicLinkVpcResult]
734
734
  def detach_classic_link_instance(options = {})
735
735
  options = options.merge(vpc_id: @id)
736
- resp = Aws::Plugins::UserAgent.feature('resource') do
736
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
737
737
  @client.detach_classic_link_vpc(options)
738
738
  end
739
739
  resp.data
@@ -756,7 +756,7 @@ module Aws::EC2
756
756
  # @return [EmptyStructure]
757
757
  def detach_internet_gateway(options = {})
758
758
  options = options.merge(vpc_id: @id)
759
- resp = Aws::Plugins::UserAgent.feature('resource') do
759
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
760
760
  @client.detach_internet_gateway(options)
761
761
  end
762
762
  resp.data
@@ -776,7 +776,7 @@ module Aws::EC2
776
776
  # @return [Types::DisableVpcClassicLinkResult]
777
777
  def disable_classic_link(options = {})
778
778
  options = options.merge(vpc_id: @id)
779
- resp = Aws::Plugins::UserAgent.feature('resource') do
779
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
780
780
  @client.disable_vpc_classic_link(options)
781
781
  end
782
782
  resp.data
@@ -796,7 +796,7 @@ module Aws::EC2
796
796
  # @return [Types::EnableVpcClassicLinkResult]
797
797
  def enable_classic_link(options = {})
798
798
  options = options.merge(vpc_id: @id)
799
- resp = Aws::Plugins::UserAgent.feature('resource') do
799
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
800
800
  @client.enable_vpc_classic_link(options)
801
801
  end
802
802
  resp.data
@@ -840,7 +840,7 @@ module Aws::EC2
840
840
  # @return [EmptyStructure]
841
841
  def modify_attribute(options = {})
842
842
  options = options.merge(vpc_id: @id)
843
- resp = Aws::Plugins::UserAgent.feature('resource') do
843
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
844
844
  @client.modify_vpc_attribute(options)
845
845
  end
846
846
  resp.data
@@ -888,7 +888,7 @@ module Aws::EC2
888
888
  # @return [VpcPeeringConnection]
889
889
  def request_vpc_peering_connection(options = {})
890
890
  options = options.merge(vpc_id: @id)
891
- resp = Aws::Plugins::UserAgent.feature('resource') do
891
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
892
892
  @client.create_vpc_peering_connection(options)
893
893
  end
894
894
  VpcPeeringConnection.new(
@@ -969,7 +969,7 @@ module Aws::EC2
969
969
  name: "accepter-vpc-info.vpc-id",
970
970
  values: [@id]
971
971
  }])
972
- resp = Aws::Plugins::UserAgent.feature('resource') do
972
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
973
973
  @client.describe_vpc_peering_connections(options)
974
974
  end
975
975
  resp.each_page do |page|
@@ -1453,7 +1453,7 @@ module Aws::EC2
1453
1453
  name: "vpc-id",
1454
1454
  values: [@id]
1455
1455
  }])
1456
- resp = Aws::Plugins::UserAgent.feature('resource') do
1456
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1457
1457
  @client.describe_instances(options)
1458
1458
  end
1459
1459
  resp.each_page do |page|
@@ -1525,7 +1525,7 @@ module Aws::EC2
1525
1525
  name: "attachment.vpc-id",
1526
1526
  values: [@id]
1527
1527
  }])
1528
- resp = Aws::Plugins::UserAgent.feature('resource') do
1528
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1529
1529
  @client.describe_internet_gateways(options)
1530
1530
  end
1531
1531
  resp.each_page do |page|
@@ -1629,7 +1629,7 @@ module Aws::EC2
1629
1629
  name: "vpc-id",
1630
1630
  values: [@id]
1631
1631
  }])
1632
- resp = Aws::Plugins::UserAgent.feature('resource') do
1632
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1633
1633
  @client.describe_network_acls(options)
1634
1634
  end
1635
1635
  resp.each_page do |page|
@@ -1791,7 +1791,7 @@ module Aws::EC2
1791
1791
  name: "vpc-id",
1792
1792
  values: [@id]
1793
1793
  }])
1794
- resp = Aws::Plugins::UserAgent.feature('resource') do
1794
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1795
1795
  @client.describe_network_interfaces(options)
1796
1796
  end
1797
1797
  resp.each_page do |page|
@@ -1878,7 +1878,7 @@ module Aws::EC2
1878
1878
  name: "requester-vpc-info.vpc-id",
1879
1879
  values: [@id]
1880
1880
  }])
1881
- resp = Aws::Plugins::UserAgent.feature('resource') do
1881
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
1882
1882
  @client.describe_vpc_peering_connections(options)
1883
1883
  end
1884
1884
  resp.each_page do |page|
@@ -1998,7 +1998,7 @@ module Aws::EC2
1998
1998
  name: "vpc-id",
1999
1999
  values: [@id]
2000
2000
  }])
2001
- resp = Aws::Plugins::UserAgent.feature('resource') do
2001
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
2002
2002
  @client.describe_route_tables(options)
2003
2003
  end
2004
2004
  resp.each_page do |page|
@@ -2134,7 +2134,7 @@ module Aws::EC2
2134
2134
  name: "vpc-id",
2135
2135
  values: [@id]
2136
2136
  }])
2137
- resp = Aws::Plugins::UserAgent.feature('resource') do
2137
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
2138
2138
  @client.describe_security_groups(options)
2139
2139
  end
2140
2140
  resp.each_page do |page|
@@ -2270,7 +2270,7 @@ module Aws::EC2
2270
2270
  name: "vpc-id",
2271
2271
  values: [@id]
2272
2272
  }])
2273
- resp = Aws::Plugins::UserAgent.feature('resource') do
2273
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
2274
2274
  @client.describe_subnets(options)
2275
2275
  end
2276
2276
  resp.each_page do |page|
@@ -131,7 +131,7 @@ module Aws::EC2
131
131
  #
132
132
  # @return [self]
133
133
  def load
134
- resp = Aws::Plugins::UserAgent.feature('resource') do
134
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
135
135
  @client.describe_addresses(allocation_ids: [@allocation_id])
136
136
  end
137
137
  @data = resp.addresses[0]
@@ -248,7 +248,7 @@ module Aws::EC2
248
248
  :retry
249
249
  end
250
250
  end
251
- Aws::Plugins::UserAgent.feature('resource') do
251
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
252
252
  Aws::Waiters::Waiter.new(options).wait({})
253
253
  end
254
254
  end
@@ -294,7 +294,7 @@ module Aws::EC2
294
294
  # @return [Types::AssociateAddressResult]
295
295
  def associate(options = {})
296
296
  options = options.merge(allocation_id: @allocation_id)
297
- resp = Aws::Plugins::UserAgent.feature('resource') do
297
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
298
298
  @client.associate_address(options)
299
299
  end
300
300
  resp.data
@@ -324,7 +324,7 @@ module Aws::EC2
324
324
  # @return [EmptyStructure]
325
325
  def release(options = {})
326
326
  options = options.merge(allocation_id: data[:allocation_id])
327
- resp = Aws::Plugins::UserAgent.feature('resource') do
327
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
328
328
  @client.release_address(options)
329
329
  end
330
330
  resp.data
@@ -81,7 +81,7 @@ module Aws::EC2
81
81
  #
82
82
  # @return [self]
83
83
  def load
84
- resp = Aws::Plugins::UserAgent.feature('resource') do
84
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
85
85
  @client.describe_vpc_peering_connections(vpc_peering_connection_ids: [@id])
86
86
  end
87
87
  @data = resp.vpc_peering_connections[0]
@@ -128,7 +128,7 @@ module Aws::EC2
128
128
  options, params = separate_params_and_options(options)
129
129
  waiter = Waiters::VpcPeeringConnectionExists.new(options)
130
130
  yield_waiter_and_warn(waiter, &block) if block_given?
131
- resp = Aws::Plugins::UserAgent.feature('resource') do
131
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
132
132
  waiter.wait(params.merge(vpc_peering_connection_ids: [@id]))
133
133
  end
134
134
  VpcPeeringConnection.new({
@@ -232,7 +232,7 @@ module Aws::EC2
232
232
  :retry
233
233
  end
234
234
  end
235
- Aws::Plugins::UserAgent.feature('resource') do
235
+ Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
236
236
  Aws::Waiters::Waiter.new(options).wait({})
237
237
  end
238
238
  end
@@ -253,7 +253,7 @@ module Aws::EC2
253
253
  # @return [Types::AcceptVpcPeeringConnectionResult]
254
254
  def accept(options = {})
255
255
  options = options.merge(vpc_peering_connection_id: @id)
256
- resp = Aws::Plugins::UserAgent.feature('resource') do
256
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
257
257
  @client.accept_vpc_peering_connection(options)
258
258
  end
259
259
  resp.data
@@ -273,7 +273,7 @@ module Aws::EC2
273
273
  # @return [Types::DeleteVpcPeeringConnectionResult]
274
274
  def delete(options = {})
275
275
  options = options.merge(vpc_peering_connection_id: @id)
276
- resp = Aws::Plugins::UserAgent.feature('resource') do
276
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
277
277
  @client.delete_vpc_peering_connection(options)
278
278
  end
279
279
  resp.data
@@ -293,7 +293,7 @@ module Aws::EC2
293
293
  # @return [Types::RejectVpcPeeringConnectionResult]
294
294
  def reject(options = {})
295
295
  options = options.merge(vpc_peering_connection_id: @id)
296
- resp = Aws::Plugins::UserAgent.feature('resource') do
296
+ resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
297
297
  @client.reject_vpc_peering_connection(options)
298
298
  end
299
299
  resp.data
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.459.0'
79
+ GEM_VERSION = '1.460.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.459.0
4
+ version: 1.460.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: 2024-06-04 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.193.0
22
+ version: 3.197.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.193.0
32
+ version: 3.197.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement