aws-sdk-ec2 1.459.0 → 1.461.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +5 -5
- data/lib/aws-sdk-ec2/client.rb +575 -483
- data/lib/aws-sdk-ec2/client_api.rb +31 -0
- data/lib/aws-sdk-ec2/customizations/instance.rb +1 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +1 -1
- data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
- data/lib/aws-sdk-ec2/endpoints.rb +14 -0
- data/lib/aws-sdk-ec2/image.rb +9 -9
- data/lib/aws-sdk-ec2/instance.rb +41 -41
- data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
- data/lib/aws-sdk-ec2/key_pair.rb +2 -2
- data/lib/aws-sdk-ec2/key_pair_info.rb +3 -3
- data/lib/aws-sdk-ec2/nat_gateway.rb +7 -8
- data/lib/aws-sdk-ec2/network_acl.rb +10 -10
- data/lib/aws-sdk-ec2/network_interface.rb +13 -13
- data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
- data/lib/aws-sdk-ec2/placement_group.rb +8 -4
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ec2/resource.rb +97 -105
- data/lib/aws-sdk-ec2/route.rb +3 -3
- data/lib/aws-sdk-ec2/route_table.rb +7 -7
- data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
- data/lib/aws-sdk-ec2/security_group.rb +11 -11
- data/lib/aws-sdk-ec2/snapshot.rb +24 -27
- data/lib/aws-sdk-ec2/subnet.rb +42 -41
- data/lib/aws-sdk-ec2/tag.rb +4 -4
- data/lib/aws-sdk-ec2/types.rb +421 -395
- data/lib/aws-sdk-ec2/volume.rb +17 -21
- data/lib/aws-sdk-ec2/vpc.rb +43 -43
- data/lib/aws-sdk-ec2/vpc_address.rb +4 -4
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +121 -89
- data/sig/instance.rbs +1 -1
- data/sig/resource.rbs +17 -17
- data/sig/security_group.rbs +2 -2
- data/sig/snapshot.rbs +1 -1
- data/sig/subnet.rbs +2 -2
- data/sig/tag.rbs +1 -1
- data/sig/types.rbs +23 -5
- data/sig/volume.rbs +1 -1
- data/sig/vpc.rbs +5 -5
- metadata +4 -4
@@ -1042,6 +1042,8 @@ module Aws::EC2
|
|
1042
1042
|
DescribeSubnetsResult = Shapes::StructureShape.new(name: 'DescribeSubnetsResult')
|
1043
1043
|
DescribeTagsRequest = Shapes::StructureShape.new(name: 'DescribeTagsRequest')
|
1044
1044
|
DescribeTagsResult = Shapes::StructureShape.new(name: 'DescribeTagsResult')
|
1045
|
+
DescribeTrafficMirrorFilterRulesRequest = Shapes::StructureShape.new(name: 'DescribeTrafficMirrorFilterRulesRequest')
|
1046
|
+
DescribeTrafficMirrorFilterRulesResult = Shapes::StructureShape.new(name: 'DescribeTrafficMirrorFilterRulesResult')
|
1045
1047
|
DescribeTrafficMirrorFiltersRequest = Shapes::StructureShape.new(name: 'DescribeTrafficMirrorFiltersRequest')
|
1046
1048
|
DescribeTrafficMirrorFiltersResult = Shapes::StructureShape.new(name: 'DescribeTrafficMirrorFiltersResult')
|
1047
1049
|
DescribeTrafficMirrorSessionsRequest = Shapes::StructureShape.new(name: 'DescribeTrafficMirrorSessionsRequest')
|
@@ -2875,8 +2877,10 @@ module Aws::EC2
|
|
2875
2877
|
TrafficMirrorFilterRule = Shapes::StructureShape.new(name: 'TrafficMirrorFilterRule')
|
2876
2878
|
TrafficMirrorFilterRuleField = Shapes::StringShape.new(name: 'TrafficMirrorFilterRuleField')
|
2877
2879
|
TrafficMirrorFilterRuleFieldList = Shapes::ListShape.new(name: 'TrafficMirrorFilterRuleFieldList')
|
2880
|
+
TrafficMirrorFilterRuleIdList = Shapes::ListShape.new(name: 'TrafficMirrorFilterRuleIdList')
|
2878
2881
|
TrafficMirrorFilterRuleIdWithResolver = Shapes::StringShape.new(name: 'TrafficMirrorFilterRuleIdWithResolver')
|
2879
2882
|
TrafficMirrorFilterRuleList = Shapes::ListShape.new(name: 'TrafficMirrorFilterRuleList')
|
2883
|
+
TrafficMirrorFilterRuleSet = Shapes::ListShape.new(name: 'TrafficMirrorFilterRuleSet')
|
2880
2884
|
TrafficMirrorFilterSet = Shapes::ListShape.new(name: 'TrafficMirrorFilterSet')
|
2881
2885
|
TrafficMirrorNetworkService = Shapes::StringShape.new(name: 'TrafficMirrorNetworkService')
|
2882
2886
|
TrafficMirrorNetworkServiceList = Shapes::ListShape.new(name: 'TrafficMirrorNetworkServiceList')
|
@@ -5196,6 +5200,7 @@ module Aws::EC2
|
|
5196
5200
|
CreateTrafficMirrorFilterRuleRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
|
5197
5201
|
CreateTrafficMirrorFilterRuleRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
5198
5202
|
CreateTrafficMirrorFilterRuleRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
5203
|
+
CreateTrafficMirrorFilterRuleRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
5199
5204
|
CreateTrafficMirrorFilterRuleRequest.struct_class = Types::CreateTrafficMirrorFilterRuleRequest
|
5200
5205
|
|
5201
5206
|
CreateTrafficMirrorFilterRuleResult.add_member(:traffic_mirror_filter_rule, Shapes::ShapeRef.new(shape: TrafficMirrorFilterRule, location_name: "trafficMirrorFilterRule"))
|
@@ -7473,6 +7478,18 @@ module Aws::EC2
|
|
7473
7478
|
DescribeTagsResult.add_member(:tags, Shapes::ShapeRef.new(shape: TagDescriptionList, location_name: "tagSet"))
|
7474
7479
|
DescribeTagsResult.struct_class = Types::DescribeTagsResult
|
7475
7480
|
|
7481
|
+
DescribeTrafficMirrorFilterRulesRequest.add_member(:traffic_mirror_filter_rule_ids, Shapes::ShapeRef.new(shape: TrafficMirrorFilterRuleIdList, location_name: "TrafficMirrorFilterRuleId"))
|
7482
|
+
DescribeTrafficMirrorFilterRulesRequest.add_member(:traffic_mirror_filter_id, Shapes::ShapeRef.new(shape: TrafficMirrorFilterId, location_name: "TrafficMirrorFilterId"))
|
7483
|
+
DescribeTrafficMirrorFilterRulesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
7484
|
+
DescribeTrafficMirrorFilterRulesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
7485
|
+
DescribeTrafficMirrorFilterRulesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: TrafficMirroringMaxResults, location_name: "MaxResults"))
|
7486
|
+
DescribeTrafficMirrorFilterRulesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "NextToken"))
|
7487
|
+
DescribeTrafficMirrorFilterRulesRequest.struct_class = Types::DescribeTrafficMirrorFilterRulesRequest
|
7488
|
+
|
7489
|
+
DescribeTrafficMirrorFilterRulesResult.add_member(:traffic_mirror_filter_rules, Shapes::ShapeRef.new(shape: TrafficMirrorFilterRuleSet, location_name: "trafficMirrorFilterRuleSet"))
|
7490
|
+
DescribeTrafficMirrorFilterRulesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
7491
|
+
DescribeTrafficMirrorFilterRulesResult.struct_class = Types::DescribeTrafficMirrorFilterRulesResult
|
7492
|
+
|
7476
7493
|
DescribeTrafficMirrorFiltersRequest.add_member(:traffic_mirror_filter_ids, Shapes::ShapeRef.new(shape: TrafficMirrorFilterIdList, location_name: "TrafficMirrorFilterId"))
|
7477
7494
|
DescribeTrafficMirrorFiltersRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
7478
7495
|
DescribeTrafficMirrorFiltersRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
@@ -14595,12 +14612,17 @@ module Aws::EC2
|
|
14595
14612
|
TrafficMirrorFilterRule.add_member(:destination_cidr_block, Shapes::ShapeRef.new(shape: String, location_name: "destinationCidrBlock"))
|
14596
14613
|
TrafficMirrorFilterRule.add_member(:source_cidr_block, Shapes::ShapeRef.new(shape: String, location_name: "sourceCidrBlock"))
|
14597
14614
|
TrafficMirrorFilterRule.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
14615
|
+
TrafficMirrorFilterRule.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
14598
14616
|
TrafficMirrorFilterRule.struct_class = Types::TrafficMirrorFilterRule
|
14599
14617
|
|
14600
14618
|
TrafficMirrorFilterRuleFieldList.member = Shapes::ShapeRef.new(shape: TrafficMirrorFilterRuleField)
|
14601
14619
|
|
14620
|
+
TrafficMirrorFilterRuleIdList.member = Shapes::ShapeRef.new(shape: TrafficMirrorFilterRuleIdWithResolver, location_name: "item")
|
14621
|
+
|
14602
14622
|
TrafficMirrorFilterRuleList.member = Shapes::ShapeRef.new(shape: TrafficMirrorFilterRule, location_name: "item")
|
14603
14623
|
|
14624
|
+
TrafficMirrorFilterRuleSet.member = Shapes::ShapeRef.new(shape: TrafficMirrorFilterRule, location_name: "item")
|
14625
|
+
|
14604
14626
|
TrafficMirrorFilterSet.member = Shapes::ShapeRef.new(shape: TrafficMirrorFilter, location_name: "item")
|
14605
14627
|
|
14606
14628
|
TrafficMirrorNetworkServiceList.member = Shapes::ShapeRef.new(shape: TrafficMirrorNetworkService, location_name: "item")
|
@@ -15714,6 +15736,7 @@ module Aws::EC2
|
|
15714
15736
|
|
15715
15737
|
api.metadata = {
|
15716
15738
|
"apiVersion" => "2016-11-15",
|
15739
|
+
"auth" => ["aws.auth#sigv4"],
|
15717
15740
|
"endpointPrefix" => "ec2",
|
15718
15741
|
"protocol" => "ec2",
|
15719
15742
|
"protocols" => ["query"],
|
@@ -18892,6 +18915,14 @@ module Aws::EC2
|
|
18892
18915
|
)
|
18893
18916
|
end)
|
18894
18917
|
|
18918
|
+
api.add_operation(:describe_traffic_mirror_filter_rules, Seahorse::Model::Operation.new.tap do |o|
|
18919
|
+
o.name = "DescribeTrafficMirrorFilterRules"
|
18920
|
+
o.http_method = "POST"
|
18921
|
+
o.http_request_uri = "/"
|
18922
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeTrafficMirrorFilterRulesRequest)
|
18923
|
+
o.output = Shapes::ShapeRef.new(shape: DescribeTrafficMirrorFilterRulesResult)
|
18924
|
+
end)
|
18925
|
+
|
18895
18926
|
api.add_operation(:describe_traffic_mirror_filters, Seahorse::Model::Operation.new.tap do |o|
|
18896
18927
|
o.name = "DescribeTrafficMirrorFilters"
|
18897
18928
|
o.http_method = "POST"
|
@@ -48,7 +48,7 @@ module Aws
|
|
48
48
|
class Resource
|
49
49
|
prepend ResourcePaginationFix
|
50
50
|
def create_tags(options)
|
51
|
-
resp = Aws::Plugins::UserAgent.
|
51
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
52
52
|
@client.create_tags(options)
|
53
53
|
end
|
54
54
|
tags = []
|
@@ -68,7 +68,7 @@ module Aws::EC2
|
|
68
68
|
#
|
69
69
|
# @return [self]
|
70
70
|
def load
|
71
|
-
resp = Aws::Plugins::UserAgent.
|
71
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
72
72
|
@client.describe_dhcp_options(dhcp_options_ids: [@id])
|
73
73
|
end
|
74
74
|
@data = resp.dhcp_options[0]
|
@@ -185,7 +185,7 @@ module Aws::EC2
|
|
185
185
|
:retry
|
186
186
|
end
|
187
187
|
end
|
188
|
-
Aws::Plugins::UserAgent.
|
188
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
189
189
|
Aws::Waiters::Waiter.new(options).wait({})
|
190
190
|
end
|
191
191
|
end
|
@@ -209,7 +209,7 @@ module Aws::EC2
|
|
209
209
|
# @return [EmptyStructure]
|
210
210
|
def associate_with_vpc(options = {})
|
211
211
|
options = options.merge(dhcp_options_id: @id)
|
212
|
-
resp = Aws::Plugins::UserAgent.
|
212
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
213
213
|
@client.associate_dhcp_options(options)
|
214
214
|
end
|
215
215
|
resp.data
|
@@ -240,7 +240,7 @@ module Aws::EC2
|
|
240
240
|
def create_tags(options = {})
|
241
241
|
batch = []
|
242
242
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
243
|
-
resp = Aws::Plugins::UserAgent.
|
243
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
244
244
|
@client.create_tags(options)
|
245
245
|
end
|
246
246
|
options[:tags].each do |t|
|
@@ -287,7 +287,7 @@ module Aws::EC2
|
|
287
287
|
def delete_tags(options = {})
|
288
288
|
batch = []
|
289
289
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
290
|
-
resp = Aws::Plugins::UserAgent.
|
290
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
291
291
|
@client.delete_tags(options)
|
292
292
|
end
|
293
293
|
options[:tags].each do |t|
|
@@ -315,7 +315,7 @@ module Aws::EC2
|
|
315
315
|
# @return [EmptyStructure]
|
316
316
|
def delete(options = {})
|
317
317
|
options = options.merge(dhcp_options_id: @id)
|
318
|
-
resp = Aws::Plugins::UserAgent.
|
318
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
319
319
|
@client.delete_dhcp_options(options)
|
320
320
|
end
|
321
321
|
resp.data
|
@@ -4674,6 +4674,20 @@ module Aws::EC2
|
|
4674
4674
|
end
|
4675
4675
|
end
|
4676
4676
|
|
4677
|
+
class DescribeTrafficMirrorFilterRules
|
4678
|
+
def self.build(context)
|
4679
|
+
unless context.config.regional_endpoint
|
4680
|
+
endpoint = context.config.endpoint.to_s
|
4681
|
+
end
|
4682
|
+
Aws::EC2::EndpointParameters.new(
|
4683
|
+
region: context.config.region,
|
4684
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
4685
|
+
use_fips: context.config.use_fips_endpoint,
|
4686
|
+
endpoint: endpoint,
|
4687
|
+
)
|
4688
|
+
end
|
4689
|
+
end
|
4690
|
+
|
4677
4691
|
class DescribeTrafficMirrorFilters
|
4678
4692
|
def self.build(context)
|
4679
4693
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -308,7 +308,7 @@ module Aws::EC2
|
|
308
308
|
#
|
309
309
|
# @return [self]
|
310
310
|
def load
|
311
|
-
resp = Aws::Plugins::UserAgent.
|
311
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
312
312
|
@client.describe_images(image_ids: [@id])
|
313
313
|
end
|
314
314
|
@data = resp.images[0]
|
@@ -355,7 +355,7 @@ module Aws::EC2
|
|
355
355
|
options, params = separate_params_and_options(options)
|
356
356
|
waiter = Waiters::ImageExists.new(options)
|
357
357
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
358
|
-
resp = Aws::Plugins::UserAgent.
|
358
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
359
359
|
waiter.wait(params.merge(image_ids: [@id]))
|
360
360
|
end
|
361
361
|
Image.new({
|
@@ -459,7 +459,7 @@ module Aws::EC2
|
|
459
459
|
:retry
|
460
460
|
end
|
461
461
|
end
|
462
|
-
Aws::Plugins::UserAgent.
|
462
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
463
463
|
Aws::Waiters::Waiter.new(options).wait({})
|
464
464
|
end
|
465
465
|
end
|
@@ -491,7 +491,7 @@ module Aws::EC2
|
|
491
491
|
def create_tags(options = {})
|
492
492
|
batch = []
|
493
493
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
494
|
-
resp = Aws::Plugins::UserAgent.
|
494
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
495
495
|
@client.create_tags(options)
|
496
496
|
end
|
497
497
|
options[:tags].each do |t|
|
@@ -538,7 +538,7 @@ module Aws::EC2
|
|
538
538
|
def delete_tags(options = {})
|
539
539
|
batch = []
|
540
540
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
541
|
-
resp = Aws::Plugins::UserAgent.
|
541
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
542
542
|
@client.delete_tags(options)
|
543
543
|
end
|
544
544
|
options[:tags].each do |t|
|
@@ -566,7 +566,7 @@ module Aws::EC2
|
|
566
566
|
# @return [EmptyStructure]
|
567
567
|
def deregister(options = {})
|
568
568
|
options = options.merge(image_id: @id)
|
569
|
-
resp = Aws::Plugins::UserAgent.
|
569
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
570
570
|
@client.deregister_image(options)
|
571
571
|
end
|
572
572
|
resp.data
|
@@ -594,7 +594,7 @@ module Aws::EC2
|
|
594
594
|
# @return [Types::ImageAttribute]
|
595
595
|
def describe_attribute(options = {})
|
596
596
|
options = options.merge(image_id: @id)
|
597
|
-
resp = Aws::Plugins::UserAgent.
|
597
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
598
598
|
@client.describe_image_attribute(options)
|
599
599
|
end
|
600
600
|
resp.data
|
@@ -686,7 +686,7 @@ module Aws::EC2
|
|
686
686
|
# @return [EmptyStructure]
|
687
687
|
def modify_attribute(options = {})
|
688
688
|
options = options.merge(image_id: @id)
|
689
|
-
resp = Aws::Plugins::UserAgent.
|
689
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
690
690
|
@client.modify_image_attribute(options)
|
691
691
|
end
|
692
692
|
resp.data
|
@@ -710,7 +710,7 @@ module Aws::EC2
|
|
710
710
|
# @return [EmptyStructure]
|
711
711
|
def reset_attribute(options = {})
|
712
712
|
options = options.merge(image_id: @id)
|
713
|
-
resp = Aws::Plugins::UserAgent.
|
713
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
714
714
|
@client.reset_image_attribute(options)
|
715
715
|
end
|
716
716
|
resp.data
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -450,7 +450,7 @@ module Aws::EC2
|
|
450
450
|
#
|
451
451
|
# @return [self]
|
452
452
|
def load
|
453
|
-
resp = Aws::Plugins::UserAgent.
|
453
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
454
454
|
@client.describe_instances(instance_ids: [@id])
|
455
455
|
end
|
456
456
|
@data = resp.reservations[0].instances[0]
|
@@ -497,7 +497,7 @@ module Aws::EC2
|
|
497
497
|
options, params = separate_params_and_options(options)
|
498
498
|
waiter = Waiters::InstanceExists.new(options)
|
499
499
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
500
|
-
resp = Aws::Plugins::UserAgent.
|
500
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
501
501
|
waiter.wait(params.merge(instance_ids: [@id]))
|
502
502
|
end
|
503
503
|
Instance.new({
|
@@ -517,7 +517,7 @@ module Aws::EC2
|
|
517
517
|
options, params = separate_params_and_options(options)
|
518
518
|
waiter = Waiters::InstanceRunning.new(options)
|
519
519
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
520
|
-
resp = Aws::Plugins::UserAgent.
|
520
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
521
521
|
waiter.wait(params.merge(instance_ids: [@id]))
|
522
522
|
end
|
523
523
|
Instance.new({
|
@@ -537,7 +537,7 @@ module Aws::EC2
|
|
537
537
|
options, params = separate_params_and_options(options)
|
538
538
|
waiter = Waiters::InstanceStopped.new(options)
|
539
539
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
540
|
-
resp = Aws::Plugins::UserAgent.
|
540
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
541
541
|
waiter.wait(params.merge(instance_ids: [@id]))
|
542
542
|
end
|
543
543
|
Instance.new({
|
@@ -557,7 +557,7 @@ module Aws::EC2
|
|
557
557
|
options, params = separate_params_and_options(options)
|
558
558
|
waiter = Waiters::InstanceTerminated.new(options)
|
559
559
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
560
|
-
resp = Aws::Plugins::UserAgent.
|
560
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
561
561
|
waiter.wait(params.merge(instance_ids: [@id]))
|
562
562
|
end
|
563
563
|
Instance.new({
|
@@ -661,7 +661,7 @@ module Aws::EC2
|
|
661
661
|
:retry
|
662
662
|
end
|
663
663
|
end
|
664
|
-
Aws::Plugins::UserAgent.
|
664
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
665
665
|
Aws::Waiters::Waiter.new(options).wait({})
|
666
666
|
end
|
667
667
|
end
|
@@ -689,7 +689,7 @@ module Aws::EC2
|
|
689
689
|
# @return [Types::AttachClassicLinkVpcResult]
|
690
690
|
def attach_classic_link_vpc(options = {})
|
691
691
|
options = options.merge(instance_id: @id)
|
692
|
-
resp = Aws::Plugins::UserAgent.
|
692
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
693
693
|
@client.attach_classic_link_vpc(options)
|
694
694
|
end
|
695
695
|
resp.data
|
@@ -716,7 +716,7 @@ module Aws::EC2
|
|
716
716
|
# @return [Types::VolumeAttachment]
|
717
717
|
def attach_volume(options = {})
|
718
718
|
options = options.merge(instance_id: @id)
|
719
|
-
resp = Aws::Plugins::UserAgent.
|
719
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
720
720
|
@client.attach_volume(options)
|
721
721
|
end
|
722
722
|
resp.data
|
@@ -741,7 +741,7 @@ module Aws::EC2
|
|
741
741
|
# @return [Types::GetConsoleOutputResult]
|
742
742
|
def console_output(options = {})
|
743
743
|
options = options.merge(instance_id: @id)
|
744
|
-
resp = Aws::Plugins::UserAgent.
|
744
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
745
745
|
@client.get_console_output(options)
|
746
746
|
end
|
747
747
|
resp.data
|
@@ -774,7 +774,7 @@ module Aws::EC2
|
|
774
774
|
# no_reboot: false,
|
775
775
|
# tag_specifications: [
|
776
776
|
# {
|
777
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
777
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
778
778
|
# tags: [
|
779
779
|
# {
|
780
780
|
# key: "String",
|
@@ -852,7 +852,7 @@ module Aws::EC2
|
|
852
852
|
# @return [Image]
|
853
853
|
def create_image(options = {})
|
854
854
|
options = options.merge(instance_id: @id)
|
855
|
-
resp = Aws::Plugins::UserAgent.
|
855
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
856
856
|
@client.create_image(options)
|
857
857
|
end
|
858
858
|
Image.new(
|
@@ -886,7 +886,7 @@ module Aws::EC2
|
|
886
886
|
def create_tags(options = {})
|
887
887
|
batch = []
|
888
888
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
889
|
-
resp = Aws::Plugins::UserAgent.
|
889
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
890
890
|
@client.create_tags(options)
|
891
891
|
end
|
892
892
|
options[:tags].each do |t|
|
@@ -933,7 +933,7 @@ module Aws::EC2
|
|
933
933
|
def delete_tags(options = {})
|
934
934
|
batch = []
|
935
935
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
936
|
-
resp = Aws::Plugins::UserAgent.
|
936
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
937
937
|
@client.delete_tags(options)
|
938
938
|
end
|
939
939
|
options[:tags].each do |t|
|
@@ -966,7 +966,7 @@ module Aws::EC2
|
|
966
966
|
# @return [Types::InstanceAttribute]
|
967
967
|
def describe_attribute(options = {})
|
968
968
|
options = options.merge(instance_id: @id)
|
969
|
-
resp = Aws::Plugins::UserAgent.
|
969
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
970
970
|
@client.describe_instance_attribute(options)
|
971
971
|
end
|
972
972
|
resp.data
|
@@ -989,7 +989,7 @@ module Aws::EC2
|
|
989
989
|
# @return [Types::DetachClassicLinkVpcResult]
|
990
990
|
def detach_classic_link_vpc(options = {})
|
991
991
|
options = options.merge(instance_id: @id)
|
992
|
-
resp = Aws::Plugins::UserAgent.
|
992
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
993
993
|
@client.detach_classic_link_vpc(options)
|
994
994
|
end
|
995
995
|
resp.data
|
@@ -1025,7 +1025,7 @@ module Aws::EC2
|
|
1025
1025
|
# @return [Types::VolumeAttachment]
|
1026
1026
|
def detach_volume(options = {})
|
1027
1027
|
options = options.merge(instance_id: @id)
|
1028
|
-
resp = Aws::Plugins::UserAgent.
|
1028
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1029
1029
|
@client.detach_volume(options)
|
1030
1030
|
end
|
1031
1031
|
resp.data
|
@@ -1179,17 +1179,17 @@ module Aws::EC2
|
|
1179
1179
|
# `instanceInitiatedShutdownBehavior` attribute.
|
1180
1180
|
# @option options [Types::AttributeBooleanValue] :disable_api_stop
|
1181
1181
|
# Indicates whether an instance is enabled for stop protection. For more
|
1182
|
-
# information, see [
|
1182
|
+
# information, see [Enable stop protection for your instance][1].
|
1183
1183
|
#
|
1184
1184
|
#
|
1185
1185
|
#
|
1186
1186
|
#
|
1187
1187
|
#
|
1188
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/
|
1188
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-stop-protection.html
|
1189
1189
|
# @return [EmptyStructure]
|
1190
1190
|
def modify_attribute(options = {})
|
1191
1191
|
options = options.merge(instance_id: @id)
|
1192
|
-
resp = Aws::Plugins::UserAgent.
|
1192
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1193
1193
|
@client.modify_instance_attribute(options)
|
1194
1194
|
end
|
1195
1195
|
resp.data
|
@@ -1209,7 +1209,7 @@ module Aws::EC2
|
|
1209
1209
|
# @return [Types::MonitorInstancesResult]
|
1210
1210
|
def monitor(options = {})
|
1211
1211
|
options = Aws::Util.deep_merge(options, instance_ids: [@id])
|
1212
|
-
resp = Aws::Plugins::UserAgent.
|
1212
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1213
1213
|
@client.monitor_instances(options)
|
1214
1214
|
end
|
1215
1215
|
resp.data
|
@@ -1229,7 +1229,7 @@ module Aws::EC2
|
|
1229
1229
|
# @return [Types::GetPasswordDataResult]
|
1230
1230
|
def password_data(options = {})
|
1231
1231
|
options = options.merge(instance_id: @id)
|
1232
|
-
resp = Aws::Plugins::UserAgent.
|
1232
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1233
1233
|
@client.get_password_data(options)
|
1234
1234
|
end
|
1235
1235
|
resp.data
|
@@ -1249,7 +1249,7 @@ module Aws::EC2
|
|
1249
1249
|
# @return [EmptyStructure]
|
1250
1250
|
def reboot(options = {})
|
1251
1251
|
options = Aws::Util.deep_merge(options, instance_ids: [@id])
|
1252
|
-
resp = Aws::Plugins::UserAgent.
|
1252
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1253
1253
|
@client.reboot_instances(options)
|
1254
1254
|
end
|
1255
1255
|
resp.data
|
@@ -1309,7 +1309,7 @@ module Aws::EC2
|
|
1309
1309
|
# @return [EmptyStructure]
|
1310
1310
|
def report_status(options = {})
|
1311
1311
|
options = Aws::Util.deep_merge(options, instances: [@id])
|
1312
|
-
resp = Aws::Plugins::UserAgent.
|
1312
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1313
1313
|
@client.report_instance_status(options)
|
1314
1314
|
end
|
1315
1315
|
resp.data
|
@@ -1335,7 +1335,7 @@ module Aws::EC2
|
|
1335
1335
|
# @return [EmptyStructure]
|
1336
1336
|
def reset_attribute(options = {})
|
1337
1337
|
options = options.merge(instance_id: @id)
|
1338
|
-
resp = Aws::Plugins::UserAgent.
|
1338
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1339
1339
|
@client.reset_instance_attribute(options)
|
1340
1340
|
end
|
1341
1341
|
resp.data
|
@@ -1358,7 +1358,7 @@ module Aws::EC2
|
|
1358
1358
|
instance_id: @id,
|
1359
1359
|
attribute: "kernel"
|
1360
1360
|
)
|
1361
|
-
resp = Aws::Plugins::UserAgent.
|
1361
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1362
1362
|
@client.reset_instance_attribute(options)
|
1363
1363
|
end
|
1364
1364
|
resp.data
|
@@ -1381,7 +1381,7 @@ module Aws::EC2
|
|
1381
1381
|
instance_id: @id,
|
1382
1382
|
attribute: "ramdisk"
|
1383
1383
|
)
|
1384
|
-
resp = Aws::Plugins::UserAgent.
|
1384
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1385
1385
|
@client.reset_instance_attribute(options)
|
1386
1386
|
end
|
1387
1387
|
resp.data
|
@@ -1404,7 +1404,7 @@ module Aws::EC2
|
|
1404
1404
|
instance_id: @id,
|
1405
1405
|
attribute: "sourceDestCheck"
|
1406
1406
|
)
|
1407
|
-
resp = Aws::Plugins::UserAgent.
|
1407
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1408
1408
|
@client.reset_instance_attribute(options)
|
1409
1409
|
end
|
1410
1410
|
resp.data
|
@@ -1427,7 +1427,7 @@ module Aws::EC2
|
|
1427
1427
|
# @return [Types::StartInstancesResult]
|
1428
1428
|
def start(options = {})
|
1429
1429
|
options = Aws::Util.deep_merge(options, instance_ids: [@id])
|
1430
|
-
resp = Aws::Plugins::UserAgent.
|
1430
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1431
1431
|
@client.start_instances(options)
|
1432
1432
|
end
|
1433
1433
|
resp.data
|
@@ -1467,7 +1467,7 @@ module Aws::EC2
|
|
1467
1467
|
# @return [Types::StopInstancesResult]
|
1468
1468
|
def stop(options = {})
|
1469
1469
|
options = Aws::Util.deep_merge(options, instance_ids: [@id])
|
1470
|
-
resp = Aws::Plugins::UserAgent.
|
1470
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1471
1471
|
@client.stop_instances(options)
|
1472
1472
|
end
|
1473
1473
|
resp.data
|
@@ -1487,7 +1487,7 @@ module Aws::EC2
|
|
1487
1487
|
# @return [Types::TerminateInstancesResult]
|
1488
1488
|
def terminate(options = {})
|
1489
1489
|
options = Aws::Util.deep_merge(options, instance_ids: [@id])
|
1490
|
-
resp = Aws::Plugins::UserAgent.
|
1490
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1491
1491
|
@client.terminate_instances(options)
|
1492
1492
|
end
|
1493
1493
|
resp.data
|
@@ -1507,7 +1507,7 @@ module Aws::EC2
|
|
1507
1507
|
# @return [Types::UnmonitorInstancesResult]
|
1508
1508
|
def unmonitor(options = {})
|
1509
1509
|
options = Aws::Util.deep_merge(options, instance_ids: [@id])
|
1510
|
-
resp = Aws::Plugins::UserAgent.
|
1510
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1511
1511
|
@client.unmonitor_instances(options)
|
1512
1512
|
end
|
1513
1513
|
resp.data
|
@@ -1669,7 +1669,7 @@ module Aws::EC2
|
|
1669
1669
|
name: "attachment.instance-id",
|
1670
1670
|
values: [@id]
|
1671
1671
|
}])
|
1672
|
-
resp = Aws::Plugins::UserAgent.
|
1672
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1673
1673
|
@client.describe_volumes(options)
|
1674
1674
|
end
|
1675
1675
|
resp.each_page do |page|
|
@@ -1766,7 +1766,7 @@ module Aws::EC2
|
|
1766
1766
|
name: "instance-id",
|
1767
1767
|
values: [@id]
|
1768
1768
|
}])
|
1769
|
-
resp = Aws::Plugins::UserAgent.
|
1769
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1770
1770
|
@client.describe_addresses(options)
|
1771
1771
|
end
|
1772
1772
|
resp.data.addresses.each do |a|
|
@@ -1861,7 +1861,7 @@ module Aws::EC2
|
|
1861
1861
|
batch.each do |item|
|
1862
1862
|
params[:resources] << item.id
|
1863
1863
|
end
|
1864
|
-
Aws::Plugins::UserAgent.
|
1864
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1865
1865
|
batch[0].client.create_tags(params)
|
1866
1866
|
end
|
1867
1867
|
end
|
@@ -1905,7 +1905,7 @@ module Aws::EC2
|
|
1905
1905
|
batch.each do |item|
|
1906
1906
|
params[:resources] << item.id
|
1907
1907
|
end
|
1908
|
-
Aws::Plugins::UserAgent.
|
1908
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1909
1909
|
batch[0].client.delete_tags(params)
|
1910
1910
|
end
|
1911
1911
|
end
|
@@ -1931,7 +1931,7 @@ module Aws::EC2
|
|
1931
1931
|
batch.each do |item|
|
1932
1932
|
params[:instance_ids] << item.id
|
1933
1933
|
end
|
1934
|
-
Aws::Plugins::UserAgent.
|
1934
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1935
1935
|
batch[0].client.monitor_instances(params)
|
1936
1936
|
end
|
1937
1937
|
end
|
@@ -1957,7 +1957,7 @@ module Aws::EC2
|
|
1957
1957
|
batch.each do |item|
|
1958
1958
|
params[:instance_ids] << item.id
|
1959
1959
|
end
|
1960
|
-
Aws::Plugins::UserAgent.
|
1960
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1961
1961
|
batch[0].client.reboot_instances(params)
|
1962
1962
|
end
|
1963
1963
|
end
|
@@ -1986,7 +1986,7 @@ module Aws::EC2
|
|
1986
1986
|
batch.each do |item|
|
1987
1987
|
params[:instance_ids] << item.id
|
1988
1988
|
end
|
1989
|
-
Aws::Plugins::UserAgent.
|
1989
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1990
1990
|
batch[0].client.start_instances(params)
|
1991
1991
|
end
|
1992
1992
|
end
|
@@ -2032,7 +2032,7 @@ module Aws::EC2
|
|
2032
2032
|
batch.each do |item|
|
2033
2033
|
params[:instance_ids] << item.id
|
2034
2034
|
end
|
2035
|
-
Aws::Plugins::UserAgent.
|
2035
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2036
2036
|
batch[0].client.stop_instances(params)
|
2037
2037
|
end
|
2038
2038
|
end
|
@@ -2058,7 +2058,7 @@ module Aws::EC2
|
|
2058
2058
|
batch.each do |item|
|
2059
2059
|
params[:instance_ids] << item.id
|
2060
2060
|
end
|
2061
|
-
Aws::Plugins::UserAgent.
|
2061
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2062
2062
|
batch[0].client.terminate_instances(params)
|
2063
2063
|
end
|
2064
2064
|
end
|
@@ -2084,7 +2084,7 @@ module Aws::EC2
|
|
2084
2084
|
batch.each do |item|
|
2085
2085
|
params[:instance_ids] << item.id
|
2086
2086
|
end
|
2087
|
-
Aws::Plugins::UserAgent.
|
2087
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
2088
2088
|
batch[0].client.unmonitor_instances(params)
|
2089
2089
|
end
|
2090
2090
|
end
|