aws-sdk-ec2 1.459.0 → 1.461.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 +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
data/lib/aws-sdk-ec2/route.rb
CHANGED
@@ -267,7 +267,7 @@ module Aws::EC2
|
|
267
267
|
:retry
|
268
268
|
end
|
269
269
|
end
|
270
|
-
Aws::Plugins::UserAgent.
|
270
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
271
271
|
Aws::Waiters::Waiter.new(options).wait({})
|
272
272
|
end
|
273
273
|
end
|
@@ -298,7 +298,7 @@ module Aws::EC2
|
|
298
298
|
route_table_id: @route_table_id,
|
299
299
|
destination_cidr_block: @destination_cidr_block
|
300
300
|
)
|
301
|
-
resp = Aws::Plugins::UserAgent.
|
301
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
302
302
|
@client.delete_route(options)
|
303
303
|
end
|
304
304
|
resp.data
|
@@ -367,7 +367,7 @@ module Aws::EC2
|
|
367
367
|
route_table_id: @route_table_id,
|
368
368
|
destination_cidr_block: @destination_cidr_block
|
369
369
|
)
|
370
|
-
resp = Aws::Plugins::UserAgent.
|
370
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
371
371
|
@client.replace_route(options)
|
372
372
|
end
|
373
373
|
resp.data
|
@@ -73,7 +73,7 @@ module Aws::EC2
|
|
73
73
|
#
|
74
74
|
# @return [self]
|
75
75
|
def load
|
76
|
-
resp = Aws::Plugins::UserAgent.
|
76
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
77
77
|
@client.describe_route_tables(route_table_ids: [@id])
|
78
78
|
end
|
79
79
|
@data = resp.route_tables[0]
|
@@ -190,7 +190,7 @@ module Aws::EC2
|
|
190
190
|
:retry
|
191
191
|
end
|
192
192
|
end
|
193
|
-
Aws::Plugins::UserAgent.
|
193
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
194
194
|
Aws::Waiters::Waiter.new(options).wait({})
|
195
195
|
end
|
196
196
|
end
|
@@ -217,7 +217,7 @@ module Aws::EC2
|
|
217
217
|
# @return [RouteTableAssociation]
|
218
218
|
def associate_with_subnet(options = {})
|
219
219
|
options = options.merge(route_table_id: @id)
|
220
|
-
resp = Aws::Plugins::UserAgent.
|
220
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
221
221
|
@client.associate_route_table(options)
|
222
222
|
end
|
223
223
|
RouteTableAssociation.new(
|
@@ -293,7 +293,7 @@ module Aws::EC2
|
|
293
293
|
# @return [Route]
|
294
294
|
def create_route(options = {})
|
295
295
|
options = options.merge(route_table_id: @id)
|
296
|
-
Aws::Plugins::UserAgent.
|
296
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
297
297
|
@client.create_route(options)
|
298
298
|
end
|
299
299
|
Route.new(
|
@@ -328,7 +328,7 @@ module Aws::EC2
|
|
328
328
|
def create_tags(options = {})
|
329
329
|
batch = []
|
330
330
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
331
|
-
resp = Aws::Plugins::UserAgent.
|
331
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
332
332
|
@client.create_tags(options)
|
333
333
|
end
|
334
334
|
options[:tags].each do |t|
|
@@ -375,7 +375,7 @@ module Aws::EC2
|
|
375
375
|
def delete_tags(options = {})
|
376
376
|
batch = []
|
377
377
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
378
|
-
resp = Aws::Plugins::UserAgent.
|
378
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
379
379
|
@client.delete_tags(options)
|
380
380
|
end
|
381
381
|
options[:tags].each do |t|
|
@@ -403,7 +403,7 @@ module Aws::EC2
|
|
403
403
|
# @return [EmptyStructure]
|
404
404
|
def delete(options = {})
|
405
405
|
options = options.merge(route_table_id: @id)
|
406
|
-
resp = Aws::Plugins::UserAgent.
|
406
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
407
407
|
@client.delete_route_table(options)
|
408
408
|
end
|
409
409
|
resp.data
|
@@ -190,7 +190,7 @@ module Aws::EC2
|
|
190
190
|
:retry
|
191
191
|
end
|
192
192
|
end
|
193
|
-
Aws::Plugins::UserAgent.
|
193
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
194
194
|
Aws::Waiters::Waiter.new(options).wait({})
|
195
195
|
end
|
196
196
|
end
|
@@ -211,7 +211,7 @@ module Aws::EC2
|
|
211
211
|
# @return [EmptyStructure]
|
212
212
|
def delete(options = {})
|
213
213
|
options = options.merge(association_id: @id)
|
214
|
-
resp = Aws::Plugins::UserAgent.
|
214
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
215
215
|
@client.disassociate_route_table(options)
|
216
216
|
end
|
217
217
|
resp.data
|
@@ -234,7 +234,7 @@ module Aws::EC2
|
|
234
234
|
# @return [RouteTableAssociation]
|
235
235
|
def replace_subnet(options = {})
|
236
236
|
options = options.merge(association_id: @id)
|
237
|
-
resp = Aws::Plugins::UserAgent.
|
237
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
238
238
|
@client.replace_route_table_association(options)
|
239
239
|
end
|
240
240
|
RouteTableAssociation.new(
|
@@ -91,7 +91,7 @@ module Aws::EC2
|
|
91
91
|
#
|
92
92
|
# @return [self]
|
93
93
|
def load
|
94
|
-
resp = Aws::Plugins::UserAgent.
|
94
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
95
95
|
@client.describe_security_groups(group_ids: [@id])
|
96
96
|
end
|
97
97
|
@data = resp.security_groups[0]
|
@@ -208,7 +208,7 @@ module Aws::EC2
|
|
208
208
|
:retry
|
209
209
|
end
|
210
210
|
end
|
211
|
-
Aws::Plugins::UserAgent.
|
211
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
212
212
|
Aws::Waiters::Waiter.new(options).wait({})
|
213
213
|
end
|
214
214
|
end
|
@@ -257,7 +257,7 @@ module Aws::EC2
|
|
257
257
|
# ],
|
258
258
|
# tag_specifications: [
|
259
259
|
# {
|
260
|
-
# 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
|
260
|
+
# 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
|
261
261
|
# tags: [
|
262
262
|
# {
|
263
263
|
# key: "String",
|
@@ -298,7 +298,7 @@ module Aws::EC2
|
|
298
298
|
# @return [Types::AuthorizeSecurityGroupEgressResult]
|
299
299
|
def authorize_egress(options = {})
|
300
300
|
options = options.merge(group_id: @id)
|
301
|
-
resp = Aws::Plugins::UserAgent.
|
301
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
302
302
|
@client.authorize_security_group_egress(options)
|
303
303
|
end
|
304
304
|
resp.data
|
@@ -353,7 +353,7 @@ module Aws::EC2
|
|
353
353
|
# dry_run: false,
|
354
354
|
# tag_specifications: [
|
355
355
|
# {
|
356
|
-
# 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
|
356
|
+
# 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
|
357
357
|
# tags: [
|
358
358
|
# {
|
359
359
|
# key: "String",
|
@@ -430,7 +430,7 @@ module Aws::EC2
|
|
430
430
|
# @return [Types::AuthorizeSecurityGroupIngressResult]
|
431
431
|
def authorize_ingress(options = {})
|
432
432
|
options = options.merge(group_id: @id)
|
433
|
-
resp = Aws::Plugins::UserAgent.
|
433
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
434
434
|
@client.authorize_security_group_ingress(options)
|
435
435
|
end
|
436
436
|
resp.data
|
@@ -461,7 +461,7 @@ module Aws::EC2
|
|
461
461
|
def create_tags(options = {})
|
462
462
|
batch = []
|
463
463
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
464
|
-
resp = Aws::Plugins::UserAgent.
|
464
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
465
465
|
@client.create_tags(options)
|
466
466
|
end
|
467
467
|
options[:tags].each do |t|
|
@@ -508,7 +508,7 @@ module Aws::EC2
|
|
508
508
|
def delete_tags(options = {})
|
509
509
|
batch = []
|
510
510
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
511
|
-
resp = Aws::Plugins::UserAgent.
|
511
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
512
512
|
@client.delete_tags(options)
|
513
513
|
end
|
514
514
|
options[:tags].each do |t|
|
@@ -541,7 +541,7 @@ module Aws::EC2
|
|
541
541
|
# @return [EmptyStructure]
|
542
542
|
def delete(options = {})
|
543
543
|
options = options.merge(group_id: @id)
|
544
|
-
resp = Aws::Plugins::UserAgent.
|
544
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
545
545
|
@client.delete_security_group(options)
|
546
546
|
end
|
547
547
|
resp.data
|
@@ -624,7 +624,7 @@ module Aws::EC2
|
|
624
624
|
# @return [Types::RevokeSecurityGroupEgressResult]
|
625
625
|
def revoke_egress(options = {})
|
626
626
|
options = options.merge(group_id: @id)
|
627
|
-
resp = Aws::Plugins::UserAgent.
|
627
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
628
628
|
@client.revoke_security_group_egress(options)
|
629
629
|
end
|
630
630
|
resp.data
|
@@ -723,7 +723,7 @@ module Aws::EC2
|
|
723
723
|
# @return [Types::RevokeSecurityGroupIngressResult]
|
724
724
|
def revoke_ingress(options = {})
|
725
725
|
options = options.merge(group_id: @id)
|
726
|
-
resp = Aws::Plugins::UserAgent.
|
726
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
727
727
|
@client.revoke_security_group_ingress(options)
|
728
728
|
end
|
729
729
|
resp.data
|
data/lib/aws-sdk-ec2/snapshot.rb
CHANGED
@@ -59,9 +59,8 @@ module Aws::EC2
|
|
59
59
|
data[:encrypted]
|
60
60
|
end
|
61
61
|
|
62
|
-
# The Amazon Resource Name (ARN) of the
|
63
|
-
#
|
64
|
-
# volume.
|
62
|
+
# The Amazon Resource Name (ARN) of the KMS key that was used to protect
|
63
|
+
# the volume encryption key for the parent volume.
|
65
64
|
# @return [String]
|
66
65
|
def kms_key_id
|
67
66
|
data[:kms_key_id]
|
@@ -92,10 +91,10 @@ module Aws::EC2
|
|
92
91
|
end
|
93
92
|
|
94
93
|
# Encrypted Amazon EBS snapshots are copied asynchronously. If a
|
95
|
-
# snapshot copy operation fails (for example, if the proper
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
94
|
+
# snapshot copy operation fails (for example, if the proper KMS
|
95
|
+
# permissions are not obtained) this field displays error state details
|
96
|
+
# to help you diagnose why the error occurred. This parameter is only
|
97
|
+
# returned by DescribeSnapshots.
|
99
98
|
# @return [String]
|
100
99
|
def state_message
|
101
100
|
data[:state_message]
|
@@ -178,7 +177,7 @@ module Aws::EC2
|
|
178
177
|
#
|
179
178
|
# @return [self]
|
180
179
|
def load
|
181
|
-
resp = Aws::Plugins::UserAgent.
|
180
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
182
181
|
@client.describe_snapshots(snapshot_ids: [@id])
|
183
182
|
end
|
184
183
|
@data = resp.snapshots[0]
|
@@ -211,7 +210,7 @@ module Aws::EC2
|
|
211
210
|
options, params = separate_params_and_options(options)
|
212
211
|
waiter = Waiters::SnapshotCompleted.new(options)
|
213
212
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
214
|
-
resp = Aws::Plugins::UserAgent.
|
213
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
215
214
|
waiter.wait(params.merge(snapshot_ids: [@id]))
|
216
215
|
end
|
217
216
|
Snapshot.new({
|
@@ -315,7 +314,7 @@ module Aws::EC2
|
|
315
314
|
:retry
|
316
315
|
end
|
317
316
|
end
|
318
|
-
Aws::Plugins::UserAgent.
|
317
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
319
318
|
Aws::Waiters::Waiter.new(options).wait({})
|
320
319
|
end
|
321
320
|
end
|
@@ -334,7 +333,7 @@ module Aws::EC2
|
|
334
333
|
# source_region: "String", # required
|
335
334
|
# tag_specifications: [
|
336
335
|
# {
|
337
|
-
# 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
|
336
|
+
# 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
|
338
337
|
# tags: [
|
339
338
|
# {
|
340
339
|
# key: "String",
|
@@ -384,10 +383,9 @@ module Aws::EC2
|
|
384
383
|
#
|
385
384
|
# [1]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
|
386
385
|
# @option options [String] :kms_key_id
|
387
|
-
# The identifier of the
|
388
|
-
#
|
389
|
-
#
|
390
|
-
# state must be `true`.
|
386
|
+
# The identifier of the KMS key to use for Amazon EBS encryption. If
|
387
|
+
# this parameter is not specified, your KMS key for Amazon EBS is used.
|
388
|
+
# If `KmsKeyId` is specified, the encrypted state must be `true`.
|
391
389
|
#
|
392
390
|
# You can specify the KMS key using any of the following:
|
393
391
|
#
|
@@ -415,11 +413,10 @@ module Aws::EC2
|
|
415
413
|
# `PresignedUrl` must be signed using Amazon Web Services Signature
|
416
414
|
# Version 4. Because EBS snapshots are stored in Amazon S3, the signing
|
417
415
|
# algorithm for this parameter uses the same logic that is described in
|
418
|
-
# [Authenticating Requests: Using Query Parameters (Amazon Web Services
|
419
|
-
# Signature Version 4)][2] in the *Amazon
|
420
|
-
#
|
421
|
-
#
|
422
|
-
# to an `error` state.
|
416
|
+
# [ Authenticating Requests: Using Query Parameters (Amazon Web Services
|
417
|
+
# Signature Version 4)][2] in the *Amazon S3 API Reference*. An invalid
|
418
|
+
# or improperly signed `PresignedUrl` will cause the copy operation to
|
419
|
+
# fail asynchronously, and the snapshot will move to an `error` state.
|
423
420
|
#
|
424
421
|
#
|
425
422
|
#
|
@@ -437,7 +434,7 @@ module Aws::EC2
|
|
437
434
|
# @return [Types::CopySnapshotResult]
|
438
435
|
def copy(options = {})
|
439
436
|
options = options.merge(source_snapshot_id: @id)
|
440
|
-
resp = Aws::Plugins::UserAgent.
|
437
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
441
438
|
@client.copy_snapshot(options)
|
442
439
|
end
|
443
440
|
resp.data
|
@@ -468,7 +465,7 @@ module Aws::EC2
|
|
468
465
|
def create_tags(options = {})
|
469
466
|
batch = []
|
470
467
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
471
|
-
resp = Aws::Plugins::UserAgent.
|
468
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
472
469
|
@client.create_tags(options)
|
473
470
|
end
|
474
471
|
options[:tags].each do |t|
|
@@ -515,7 +512,7 @@ module Aws::EC2
|
|
515
512
|
def delete_tags(options = {})
|
516
513
|
batch = []
|
517
514
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
518
|
-
resp = Aws::Plugins::UserAgent.
|
515
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
519
516
|
@client.delete_tags(options)
|
520
517
|
end
|
521
518
|
options[:tags].each do |t|
|
@@ -543,7 +540,7 @@ module Aws::EC2
|
|
543
540
|
# @return [EmptyStructure]
|
544
541
|
def delete(options = {})
|
545
542
|
options = options.merge(snapshot_id: @id)
|
546
|
-
resp = Aws::Plugins::UserAgent.
|
543
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
547
544
|
@client.delete_snapshot(options)
|
548
545
|
end
|
549
546
|
resp.data
|
@@ -566,7 +563,7 @@ module Aws::EC2
|
|
566
563
|
# @return [Types::DescribeSnapshotAttributeResult]
|
567
564
|
def describe_attribute(options = {})
|
568
565
|
options = options.merge(snapshot_id: @id)
|
569
|
-
resp = Aws::Plugins::UserAgent.
|
566
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
570
567
|
@client.describe_snapshot_attribute(options)
|
571
568
|
end
|
572
569
|
resp.data
|
@@ -615,7 +612,7 @@ module Aws::EC2
|
|
615
612
|
# @return [EmptyStructure]
|
616
613
|
def modify_attribute(options = {})
|
617
614
|
options = options.merge(snapshot_id: @id)
|
618
|
-
resp = Aws::Plugins::UserAgent.
|
615
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
619
616
|
@client.modify_snapshot_attribute(options)
|
620
617
|
end
|
621
618
|
resp.data
|
@@ -639,7 +636,7 @@ module Aws::EC2
|
|
639
636
|
# @return [EmptyStructure]
|
640
637
|
def reset_attribute(options = {})
|
641
638
|
options = options.merge(snapshot_id: @id)
|
642
|
-
resp = Aws::Plugins::UserAgent.
|
639
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
643
640
|
@client.reset_snapshot_attribute(options)
|
644
641
|
end
|
645
642
|
resp.data
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -191,7 +191,7 @@ module Aws::EC2
|
|
191
191
|
#
|
192
192
|
# @return [self]
|
193
193
|
def load
|
194
|
-
resp = Aws::Plugins::UserAgent.
|
194
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
195
195
|
@client.describe_subnets(subnet_ids: [@id])
|
196
196
|
end
|
197
197
|
@data = resp.subnets[0]
|
@@ -308,7 +308,7 @@ module Aws::EC2
|
|
308
308
|
:retry
|
309
309
|
end
|
310
310
|
end
|
311
|
-
Aws::Plugins::UserAgent.
|
311
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
312
312
|
Aws::Waiters::Waiter.new(options).wait({})
|
313
313
|
end
|
314
314
|
end
|
@@ -444,7 +444,7 @@ module Aws::EC2
|
|
444
444
|
# ],
|
445
445
|
# tag_specifications: [
|
446
446
|
# {
|
447
|
-
# 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
|
447
|
+
# 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
|
448
448
|
# tags: [
|
449
449
|
# {
|
450
450
|
# key: "String",
|
@@ -526,8 +526,8 @@ module Aws::EC2
|
|
526
526
|
# The ID of the AMI. An AMI ID is required to launch an instance and
|
527
527
|
# must be specified here or in a launch template.
|
528
528
|
# @option options [String] :instance_type
|
529
|
-
# The instance type. For more information, see [
|
530
|
-
# the *Amazon EC2 User Guide*.
|
529
|
+
# The instance type. For more information, see [Amazon EC2 instance
|
530
|
+
# types][1] in the *Amazon EC2 User Guide*.
|
531
531
|
#
|
532
532
|
#
|
533
533
|
#
|
@@ -572,32 +572,30 @@ module Aws::EC2
|
|
572
572
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html
|
573
573
|
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html
|
574
574
|
# @option options [required, Integer] :max_count
|
575
|
-
# The maximum number of instances to launch. If you specify
|
576
|
-
#
|
577
|
-
# Amazon EC2 launches the largest possible number of instances
|
578
|
-
#
|
575
|
+
# The maximum number of instances to launch. If you specify a value that
|
576
|
+
# is more capacity than Amazon EC2 can launch in the target Availability
|
577
|
+
# Zone, Amazon EC2 launches the largest possible number of instances
|
578
|
+
# above the specified minimum count.
|
579
579
|
#
|
580
|
-
# Constraints: Between 1 and the
|
581
|
-
#
|
582
|
-
#
|
583
|
-
# run in Amazon EC2][1] in the Amazon EC2 FAQ.
|
580
|
+
# Constraints: Between 1 and the quota for the specified instance type
|
581
|
+
# for your account for this Region. For more information, see [Amazon
|
582
|
+
# EC2 instance type quotas][1].
|
584
583
|
#
|
585
584
|
#
|
586
585
|
#
|
587
|
-
# [1]:
|
586
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html
|
588
587
|
# @option options [required, Integer] :min_count
|
589
|
-
# The minimum number of instances to launch. If you specify a
|
590
|
-
#
|
591
|
-
# Availability Zone, Amazon EC2
|
588
|
+
# The minimum number of instances to launch. If you specify a value that
|
589
|
+
# is more capacity than Amazon EC2 can provide in the target
|
590
|
+
# Availability Zone, Amazon EC2 does not launch any instances.
|
592
591
|
#
|
593
|
-
# Constraints: Between 1 and the
|
594
|
-
#
|
595
|
-
#
|
596
|
-
# run in Amazon EC2][1] in the Amazon EC2 General FAQ.
|
592
|
+
# Constraints: Between 1 and the quota for the specified instance type
|
593
|
+
# for your account for this Region. For more information, see [Amazon
|
594
|
+
# EC2 instance type quotas][1].
|
597
595
|
#
|
598
596
|
#
|
599
597
|
#
|
600
|
-
# [1]:
|
598
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html
|
601
599
|
# @option options [Types::RunInstancesMonitoringEnabled] :monitoring
|
602
600
|
# Specifies whether detailed monitoring is enabled for the instance.
|
603
601
|
# @option options [Types::Placement] :placement
|
@@ -636,16 +634,15 @@ module Aws::EC2
|
|
636
634
|
# Default: Amazon EC2 uses the default security group.
|
637
635
|
# @option options [String] :user_data
|
638
636
|
# The user data script to make available to the instance. For more
|
639
|
-
# information, see [Run commands on your
|
640
|
-
#
|
641
|
-
#
|
642
|
-
#
|
643
|
-
#
|
637
|
+
# information, see [Run commands on your Amazon EC2 instance at
|
638
|
+
# launch][1] in the *Amazon EC2 User Guide*. If you are using a command
|
639
|
+
# line tool, base64-encoding is performed for you, and you can load the
|
640
|
+
# text from a file. Otherwise, you must provide base64-encoded text.
|
641
|
+
# User data is limited to 16 KB.
|
644
642
|
#
|
645
643
|
#
|
646
644
|
#
|
647
645
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
|
648
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html
|
649
646
|
# @option options [String] :additional_info
|
650
647
|
# Reserved.
|
651
648
|
# @option options [String] :client_token
|
@@ -788,8 +785,8 @@ module Aws::EC2
|
|
788
785
|
# @option options [Types::HibernationOptionsRequest] :hibernation_options
|
789
786
|
# Indicates whether an instance is enabled for hibernation. This
|
790
787
|
# parameter is valid only if the instance meets the [hibernation
|
791
|
-
# prerequisites][1]. For more information, see [Hibernate your
|
792
|
-
# instance][2] in the *Amazon EC2 User Guide*.
|
788
|
+
# prerequisites][1]. For more information, see [Hibernate your Amazon
|
789
|
+
# EC2 instance][2] in the *Amazon EC2 User Guide*.
|
793
790
|
#
|
794
791
|
# You can't enable hibernation and Amazon Web Services Nitro Enclaves
|
795
792
|
# on the same instance.
|
@@ -852,7 +849,7 @@ module Aws::EC2
|
|
852
849
|
def create_instances(options = {})
|
853
850
|
batch = []
|
854
851
|
options = options.merge(subnet_id: @id)
|
855
|
-
resp = Aws::Plugins::UserAgent.
|
852
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
856
853
|
@client.run_instances(options)
|
857
854
|
end
|
858
855
|
resp.data.instances.each do |i|
|
@@ -901,7 +898,7 @@ module Aws::EC2
|
|
901
898
|
# interface_type: "efa", # accepts efa, branch, trunk
|
902
899
|
# tag_specifications: [
|
903
900
|
# {
|
904
|
-
# 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
|
901
|
+
# 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
|
905
902
|
# tags: [
|
906
903
|
# {
|
907
904
|
# key: "String",
|
@@ -1002,11 +999,11 @@ module Aws::EC2
|
|
1002
999
|
# @option options [String] :client_token
|
1003
1000
|
# Unique, case-sensitive identifier that you provide to ensure the
|
1004
1001
|
# idempotency of the request. For more information, see [Ensuring
|
1005
|
-
#
|
1002
|
+
# idempotency][1].
|
1006
1003
|
#
|
1007
1004
|
#
|
1008
1005
|
#
|
1009
|
-
# [1]: https://docs.aws.amazon.com/
|
1006
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
1010
1007
|
# @option options [Boolean] :enable_primary_ipv_6
|
1011
1008
|
# If you’re creating a network interface in a dual-stack or IPv6-only
|
1012
1009
|
# subnet, you have the option to assign a primary IPv6 IP address. A
|
@@ -1028,7 +1025,7 @@ module Aws::EC2
|
|
1028
1025
|
# @return [NetworkInterface]
|
1029
1026
|
def create_network_interface(options = {})
|
1030
1027
|
options = options.merge(subnet_id: @id)
|
1031
|
-
resp = Aws::Plugins::UserAgent.
|
1028
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1032
1029
|
@client.create_network_interface(options)
|
1033
1030
|
end
|
1034
1031
|
NetworkInterface.new(
|
@@ -1063,7 +1060,7 @@ module Aws::EC2
|
|
1063
1060
|
def create_tags(options = {})
|
1064
1061
|
batch = []
|
1065
1062
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
1066
|
-
resp = Aws::Plugins::UserAgent.
|
1063
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1067
1064
|
@client.create_tags(options)
|
1068
1065
|
end
|
1069
1066
|
options[:tags].each do |t|
|
@@ -1110,7 +1107,7 @@ module Aws::EC2
|
|
1110
1107
|
def delete_tags(options = {})
|
1111
1108
|
batch = []
|
1112
1109
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
1113
|
-
resp = Aws::Plugins::UserAgent.
|
1110
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1114
1111
|
@client.delete_tags(options)
|
1115
1112
|
end
|
1116
1113
|
options[:tags].each do |t|
|
@@ -1138,7 +1135,7 @@ module Aws::EC2
|
|
1138
1135
|
# @return [EmptyStructure]
|
1139
1136
|
def delete(options = {})
|
1140
1137
|
options = options.merge(subnet_id: @id)
|
1141
|
-
resp = Aws::Plugins::UserAgent.
|
1138
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1142
1139
|
@client.delete_subnet(options)
|
1143
1140
|
end
|
1144
1141
|
resp.data
|
@@ -1506,6 +1503,10 @@ module Aws::EC2
|
|
1506
1503
|
# (`ip-name` \| `resource-name`).
|
1507
1504
|
#
|
1508
1505
|
# * `private-ip-address` - The private IPv4 address of the instance.
|
1506
|
+
# This can only be used to filter by the primary IP address of the
|
1507
|
+
# network interface attached to the instance. To filter by additional
|
1508
|
+
# IP addresses assigned to the network interface, use the filter
|
1509
|
+
# `network-interface.addresses.private-ip-address`.
|
1509
1510
|
#
|
1510
1511
|
# * `product-code` - The product code associated with the AMI used to
|
1511
1512
|
# launch the instance.
|
@@ -1600,7 +1601,7 @@ module Aws::EC2
|
|
1600
1601
|
name: "subnet-id",
|
1601
1602
|
values: [@id]
|
1602
1603
|
}])
|
1603
|
-
resp = Aws::Plugins::UserAgent.
|
1604
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1604
1605
|
@client.describe_instances(options)
|
1605
1606
|
end
|
1606
1607
|
resp.each_page do |page|
|
@@ -1668,7 +1669,7 @@ module Aws::EC2
|
|
1668
1669
|
name: "subnet-id",
|
1669
1670
|
values: [@id]
|
1670
1671
|
}])
|
1671
|
-
resp = Aws::Plugins::UserAgent.
|
1672
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1672
1673
|
@client.describe_nat_gateways(options)
|
1673
1674
|
end
|
1674
1675
|
resp.each_page do |page|
|
@@ -1830,7 +1831,7 @@ module Aws::EC2
|
|
1830
1831
|
name: "subnet-id",
|
1831
1832
|
values: [@id]
|
1832
1833
|
}])
|
1833
|
-
resp = Aws::Plugins::UserAgent.
|
1834
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
1834
1835
|
@client.describe_network_interfaces(options)
|
1835
1836
|
end
|
1836
1837
|
resp.each_page do |page|
|
data/lib/aws-sdk-ec2/tag.rb
CHANGED
@@ -70,7 +70,7 @@ module Aws::EC2
|
|
70
70
|
#
|
71
71
|
# @return [self]
|
72
72
|
def load
|
73
|
-
resp = Aws::Plugins::UserAgent.
|
73
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
74
74
|
@client.describe_tags(filters: [
|
75
75
|
{
|
76
76
|
name: "key",
|
@@ -196,7 +196,7 @@ module Aws::EC2
|
|
196
196
|
:retry
|
197
197
|
end
|
198
198
|
end
|
199
|
-
Aws::Plugins::UserAgent.
|
199
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
200
200
|
Aws::Waiters::Waiter.new(options).wait({})
|
201
201
|
end
|
202
202
|
end
|
@@ -241,7 +241,7 @@ module Aws::EC2
|
|
241
241
|
value: @value
|
242
242
|
}]
|
243
243
|
)
|
244
|
-
resp = Aws::Plugins::UserAgent.
|
244
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
245
245
|
@client.delete_tags(options)
|
246
246
|
end
|
247
247
|
resp.data
|
@@ -321,7 +321,7 @@ module Aws::EC2
|
|
321
321
|
value: item.value
|
322
322
|
}
|
323
323
|
end
|
324
|
-
Aws::Plugins::UserAgent.
|
324
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
325
325
|
batch[0].client.delete_tags(params)
|
326
326
|
end
|
327
327
|
end
|