aws-sdk-ec2 1.402.0 → 1.547.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 +735 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +32 -20
- data/lib/aws-sdk-ec2/client.rb +14212 -4429
- data/lib/aws-sdk-ec2/client_api.rb +4004 -515
- data/lib/aws-sdk-ec2/customizations/instance.rb +18 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +46 -3
- data/lib/aws-sdk-ec2/customizations/tag.rb +13 -0
- data/lib/aws-sdk-ec2/customizations.rb +0 -22
- data/lib/aws-sdk-ec2/dhcp_options.rb +12 -12
- data/lib/aws-sdk-ec2/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-ec2/endpoint_provider.rb +16 -20
- data/lib/aws-sdk-ec2/endpoints.rb +2 -8314
- data/lib/aws-sdk-ec2/image.rb +207 -98
- data/lib/aws-sdk-ec2/instance.rb +514 -348
- data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
- data/lib/aws-sdk-ec2/key_pair.rb +14 -14
- data/lib/aws-sdk-ec2/key_pair_info.rb +30 -30
- data/lib/aws-sdk-ec2/nat_gateway.rb +7 -8
- data/lib/aws-sdk-ec2/network_acl.rb +70 -70
- data/lib/aws-sdk-ec2/network_interface.rb +150 -78
- data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
- data/lib/aws-sdk-ec2/placement_group.rb +123 -42
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +23 -1202
- data/lib/aws-sdk-ec2/resource.rb +1118 -864
- data/lib/aws-sdk-ec2/route.rb +50 -34
- data/lib/aws-sdk-ec2/route_table.rb +47 -44
- data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
- data/lib/aws-sdk-ec2/security_group.rb +212 -201
- data/lib/aws-sdk-ec2/snapshot.rb +169 -105
- data/lib/aws-sdk-ec2/subnet.rb +534 -406
- data/lib/aws-sdk-ec2/tag.rb +7 -4
- data/lib/aws-sdk-ec2/types.rb +18252 -4766
- data/lib/aws-sdk-ec2/volume.rb +160 -116
- data/lib/aws-sdk-ec2/vpc.rb +387 -262
- data/lib/aws-sdk-ec2/vpc_address.rb +37 -25
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
- data/lib/aws-sdk-ec2/waiters.rb +146 -38
- data/lib/aws-sdk-ec2.rb +40 -36
- data/sig/classic_address.rbs +108 -0
- data/sig/client.rbs +14833 -0
- data/sig/dhcp_options.rbs +84 -0
- data/sig/errors.rbs +16 -0
- data/sig/image.rbs +232 -0
- data/sig/instance.rbs +576 -0
- data/sig/internet_gateway.rbs +91 -0
- data/sig/key_pair.rbs +54 -0
- data/sig/key_pair_info.rbs +63 -0
- data/sig/nat_gateway.rbs +107 -0
- data/sig/network_acl.rbs +144 -0
- data/sig/network_interface.rbs +249 -0
- data/sig/network_interface_association.rbs +62 -0
- data/sig/placement_group.rbs +78 -0
- data/sig/resource.rbs +1049 -0
- data/sig/route.rbs +120 -0
- data/sig/route_table.rbs +118 -0
- data/sig/route_table_association.rbs +69 -0
- data/sig/security_group.rbs +311 -0
- data/sig/snapshot.rbs +204 -0
- data/sig/subnet.rbs +442 -0
- data/sig/tag.rbs +63 -0
- data/sig/types.rbs +17078 -0
- data/sig/volume.rbs +213 -0
- data/sig/vpc.rbs +404 -0
- data/sig/vpc_address.rbs +104 -0
- data/sig/vpc_peering_connection.rbs +84 -0
- data/sig/waiters.rbs +700 -0
- metadata +45 -19
|
@@ -47,6 +47,19 @@ module Aws::EC2
|
|
|
47
47
|
data[:availability_zone]
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# A security group connection tracking configuration that enables you to
|
|
51
|
+
# set the timeout for connection tracking on an Elastic network
|
|
52
|
+
# interface. For more information, see [Connection tracking timeouts][1]
|
|
53
|
+
# in the *Amazon EC2 User Guide*.
|
|
54
|
+
#
|
|
55
|
+
#
|
|
56
|
+
#
|
|
57
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts
|
|
58
|
+
# @return [Types::ConnectionTrackingConfiguration]
|
|
59
|
+
def connection_tracking_configuration
|
|
60
|
+
data[:connection_tracking_configuration]
|
|
61
|
+
end
|
|
62
|
+
|
|
50
63
|
# A description.
|
|
51
64
|
# @return [String]
|
|
52
65
|
def description
|
|
@@ -90,12 +103,39 @@ module Aws::EC2
|
|
|
90
103
|
data[:owner_id]
|
|
91
104
|
end
|
|
92
105
|
|
|
93
|
-
# The private
|
|
106
|
+
# The private hostname. For more information, see [EC2 instance
|
|
107
|
+
# hostnames, DNS names, and domains][1] in the *Amazon EC2 User Guide*.
|
|
108
|
+
#
|
|
109
|
+
#
|
|
110
|
+
#
|
|
111
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html
|
|
94
112
|
# @return [String]
|
|
95
113
|
def private_dns_name
|
|
96
114
|
data[:private_dns_name]
|
|
97
115
|
end
|
|
98
116
|
|
|
117
|
+
# A public hostname. For more information, see [EC2 instance hostnames,
|
|
118
|
+
# DNS names, and domains][1] in the *Amazon EC2 User Guide*.
|
|
119
|
+
#
|
|
120
|
+
#
|
|
121
|
+
#
|
|
122
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html
|
|
123
|
+
# @return [String]
|
|
124
|
+
def public_dns_name
|
|
125
|
+
data[:public_dns_name]
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Public hostname type options. For more information, see [EC2 instance
|
|
129
|
+
# hostnames, DNS names, and domains][1] in the *Amazon EC2 User Guide*.
|
|
130
|
+
#
|
|
131
|
+
#
|
|
132
|
+
#
|
|
133
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html
|
|
134
|
+
# @return [Types::PublicIpDnsNameOptions]
|
|
135
|
+
def public_ip_dns_name_options
|
|
136
|
+
data[:public_ip_dns_name_options]
|
|
137
|
+
end
|
|
138
|
+
|
|
99
139
|
# The IPv4 address of the network interface within the subnet.
|
|
100
140
|
# @return [String]
|
|
101
141
|
def private_ip_address
|
|
@@ -188,6 +228,18 @@ module Aws::EC2
|
|
|
188
228
|
data[:ipv_6_address]
|
|
189
229
|
end
|
|
190
230
|
|
|
231
|
+
# The service provider that manages the network interface.
|
|
232
|
+
# @return [Types::OperatorResponse]
|
|
233
|
+
def operator
|
|
234
|
+
data[:operator]
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
# The subnets associated with this network interface.
|
|
238
|
+
# @return [Array<String>]
|
|
239
|
+
def associated_subnets
|
|
240
|
+
data[:associated_subnets]
|
|
241
|
+
end
|
|
242
|
+
|
|
191
243
|
# @!endgroup
|
|
192
244
|
|
|
193
245
|
# @return [Client]
|
|
@@ -202,7 +254,7 @@ module Aws::EC2
|
|
|
202
254
|
#
|
|
203
255
|
# @return [self]
|
|
204
256
|
def load
|
|
205
|
-
resp = Aws::Plugins::UserAgent.
|
|
257
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
206
258
|
@client.describe_network_interfaces(network_interface_ids: [@id])
|
|
207
259
|
end
|
|
208
260
|
@data = resp.network_interfaces[0]
|
|
@@ -319,7 +371,7 @@ module Aws::EC2
|
|
|
319
371
|
:retry
|
|
320
372
|
end
|
|
321
373
|
end
|
|
322
|
-
Aws::Plugins::UserAgent.
|
|
374
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
323
375
|
Aws::Waiters::Waiter.new(options).wait({})
|
|
324
376
|
end
|
|
325
377
|
end
|
|
@@ -329,17 +381,20 @@ module Aws::EC2
|
|
|
329
381
|
# @example Request syntax with placeholder values
|
|
330
382
|
#
|
|
331
383
|
# network_interface.assign_private_ip_addresses({
|
|
332
|
-
# allow_reassignment: false,
|
|
333
|
-
# private_ip_addresses: ["String"],
|
|
334
|
-
# secondary_private_ip_address_count: 1,
|
|
335
384
|
# ipv_4_prefixes: ["String"],
|
|
336
385
|
# ipv_4_prefix_count: 1,
|
|
386
|
+
# private_ip_addresses: ["String"],
|
|
387
|
+
# secondary_private_ip_address_count: 1,
|
|
388
|
+
# allow_reassignment: false,
|
|
337
389
|
# })
|
|
338
390
|
# @param [Hash] options ({})
|
|
339
|
-
# @option options [
|
|
340
|
-
#
|
|
341
|
-
#
|
|
342
|
-
#
|
|
391
|
+
# @option options [Array<String>] :ipv_4_prefixes
|
|
392
|
+
# One or more IPv4 prefixes assigned to the network interface. You
|
|
393
|
+
# can't use this option if you use the `Ipv4PrefixCount` option.
|
|
394
|
+
# @option options [Integer] :ipv_4_prefix_count
|
|
395
|
+
# The number of IPv4 prefixes that Amazon Web Services automatically
|
|
396
|
+
# assigns to the network interface. You can't use this option if you
|
|
397
|
+
# use the `Ipv4 Prefixes` option.
|
|
343
398
|
# @option options [Array<String>] :private_ip_addresses
|
|
344
399
|
# The IP addresses to be assigned as a secondary private IP address to
|
|
345
400
|
# the network interface. You can't specify this parameter when also
|
|
@@ -351,17 +406,14 @@ module Aws::EC2
|
|
|
351
406
|
# The number of secondary IP addresses to assign to the network
|
|
352
407
|
# interface. You can't specify this parameter when also specifying
|
|
353
408
|
# private IP addresses.
|
|
354
|
-
# @option options [
|
|
355
|
-
#
|
|
356
|
-
#
|
|
357
|
-
#
|
|
358
|
-
# The number of IPv4 prefixes that Amazon Web Services automatically
|
|
359
|
-
# assigns to the network interface. You cannot use this option if you
|
|
360
|
-
# use the `Ipv4 Prefixes` option.
|
|
409
|
+
# @option options [Boolean] :allow_reassignment
|
|
410
|
+
# Indicates whether to allow an IP address that is already assigned to
|
|
411
|
+
# another network interface or instance to be reassigned to the
|
|
412
|
+
# specified network interface.
|
|
361
413
|
# @return [Types::AssignPrivateIpAddressesResult]
|
|
362
414
|
def assign_private_ip_addresses(options = {})
|
|
363
415
|
options = options.merge(network_interface_id: @id)
|
|
364
|
-
resp = Aws::Plugins::UserAgent.
|
|
416
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
365
417
|
@client.assign_private_ip_addresses(options)
|
|
366
418
|
end
|
|
367
419
|
resp.data
|
|
@@ -370,9 +422,6 @@ module Aws::EC2
|
|
|
370
422
|
# @example Request syntax with placeholder values
|
|
371
423
|
#
|
|
372
424
|
# network_interface.attach({
|
|
373
|
-
# device_index: 1, # required
|
|
374
|
-
# dry_run: false,
|
|
375
|
-
# instance_id: "InstanceId", # required
|
|
376
425
|
# network_card_index: 1,
|
|
377
426
|
# ena_srd_specification: {
|
|
378
427
|
# ena_srd_enabled: false,
|
|
@@ -380,17 +429,12 @@ module Aws::EC2
|
|
|
380
429
|
# ena_srd_udp_enabled: false,
|
|
381
430
|
# },
|
|
382
431
|
# },
|
|
432
|
+
# ena_queue_count: 1,
|
|
433
|
+
# dry_run: false,
|
|
434
|
+
# instance_id: "InstanceId", # required
|
|
435
|
+
# device_index: 1, # required
|
|
383
436
|
# })
|
|
384
437
|
# @param [Hash] options ({})
|
|
385
|
-
# @option options [required, Integer] :device_index
|
|
386
|
-
# The index of the device for the network interface attachment.
|
|
387
|
-
# @option options [Boolean] :dry_run
|
|
388
|
-
# Checks whether you have the required permissions for the action,
|
|
389
|
-
# without actually making the request, and provides an error response.
|
|
390
|
-
# If you have the required permissions, the error response is
|
|
391
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
392
|
-
# @option options [required, String] :instance_id
|
|
393
|
-
# The ID of the instance.
|
|
394
438
|
# @option options [Integer] :network_card_index
|
|
395
439
|
# The index of the network card. Some instance types support multiple
|
|
396
440
|
# network cards. The primary network interface must be assigned to
|
|
@@ -398,10 +442,21 @@ module Aws::EC2
|
|
|
398
442
|
# @option options [Types::EnaSrdSpecification] :ena_srd_specification
|
|
399
443
|
# Configures ENA Express for the network interface that this action
|
|
400
444
|
# attaches to the instance.
|
|
445
|
+
# @option options [Integer] :ena_queue_count
|
|
446
|
+
# The number of ENA queues to be created with the instance.
|
|
447
|
+
# @option options [Boolean] :dry_run
|
|
448
|
+
# Checks whether you have the required permissions for the action,
|
|
449
|
+
# without actually making the request, and provides an error response.
|
|
450
|
+
# If you have the required permissions, the error response is
|
|
451
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
452
|
+
# @option options [required, String] :instance_id
|
|
453
|
+
# The ID of the instance.
|
|
454
|
+
# @option options [required, Integer] :device_index
|
|
455
|
+
# The index of the device for the network interface attachment.
|
|
401
456
|
# @return [Types::AttachNetworkInterfaceResult]
|
|
402
457
|
def attach(options = {})
|
|
403
458
|
options = options.merge(network_interface_id: @id)
|
|
404
|
-
resp = Aws::Plugins::UserAgent.
|
|
459
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
405
460
|
@client.attach_network_interface(options)
|
|
406
461
|
end
|
|
407
462
|
resp.data
|
|
@@ -432,7 +487,7 @@ module Aws::EC2
|
|
|
432
487
|
def create_tags(options = {})
|
|
433
488
|
batch = []
|
|
434
489
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
|
435
|
-
resp = Aws::Plugins::UserAgent.
|
|
490
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
436
491
|
@client.create_tags(options)
|
|
437
492
|
end
|
|
438
493
|
options[:tags].each do |t|
|
|
@@ -479,7 +534,7 @@ module Aws::EC2
|
|
|
479
534
|
def delete_tags(options = {})
|
|
480
535
|
batch = []
|
|
481
536
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
|
482
|
-
resp = Aws::Plugins::UserAgent.
|
|
537
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
483
538
|
@client.delete_tags(options)
|
|
484
539
|
end
|
|
485
540
|
options[:tags].each do |t|
|
|
@@ -507,7 +562,7 @@ module Aws::EC2
|
|
|
507
562
|
# @return [EmptyStructure]
|
|
508
563
|
def delete(options = {})
|
|
509
564
|
options = options.merge(network_interface_id: @id)
|
|
510
|
-
resp = Aws::Plugins::UserAgent.
|
|
565
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
511
566
|
@client.delete_network_interface(options)
|
|
512
567
|
end
|
|
513
568
|
resp.data
|
|
@@ -516,21 +571,21 @@ module Aws::EC2
|
|
|
516
571
|
# @example Request syntax with placeholder values
|
|
517
572
|
#
|
|
518
573
|
# network_interface.describe_attribute({
|
|
519
|
-
# attribute: "description", # accepts description, groupSet, sourceDestCheck, attachment
|
|
520
574
|
# dry_run: false,
|
|
575
|
+
# attribute: "description", # accepts description, groupSet, sourceDestCheck, attachment, associatePublicIpAddress
|
|
521
576
|
# })
|
|
522
577
|
# @param [Hash] options ({})
|
|
523
|
-
# @option options [String] :attribute
|
|
524
|
-
# The attribute of the network interface. This parameter is required.
|
|
525
578
|
# @option options [Boolean] :dry_run
|
|
526
579
|
# Checks whether you have the required permissions for the action,
|
|
527
580
|
# without actually making the request, and provides an error response.
|
|
528
581
|
# If you have the required permissions, the error response is
|
|
529
582
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
583
|
+
# @option options [String] :attribute
|
|
584
|
+
# The attribute of the network interface. This parameter is required.
|
|
530
585
|
# @return [Types::DescribeNetworkInterfaceAttributeResult]
|
|
531
586
|
def describe_attribute(options = {})
|
|
532
587
|
options = options.merge(network_interface_id: @id)
|
|
533
|
-
resp = Aws::Plugins::UserAgent.
|
|
588
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
534
589
|
@client.describe_network_interface_attribute(options)
|
|
535
590
|
end
|
|
536
591
|
resp.data
|
|
@@ -573,7 +628,7 @@ module Aws::EC2
|
|
|
573
628
|
# @return [EmptyStructure]
|
|
574
629
|
def detach(options = {})
|
|
575
630
|
options = options.merge(attachment_id: data[:attachment][:attachment_id])
|
|
576
|
-
resp = Aws::Plugins::UserAgent.
|
|
631
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
577
632
|
@client.detach_network_interface(options)
|
|
578
633
|
end
|
|
579
634
|
resp.data
|
|
@@ -582,16 +637,6 @@ module Aws::EC2
|
|
|
582
637
|
# @example Request syntax with placeholder values
|
|
583
638
|
#
|
|
584
639
|
# network_interface.modify_attribute({
|
|
585
|
-
# attachment: {
|
|
586
|
-
# attachment_id: "NetworkInterfaceAttachmentId",
|
|
587
|
-
# delete_on_termination: false,
|
|
588
|
-
# },
|
|
589
|
-
# description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
|
590
|
-
# dry_run: false,
|
|
591
|
-
# groups: ["SecurityGroupId"],
|
|
592
|
-
# source_dest_check: {
|
|
593
|
-
# value: false,
|
|
594
|
-
# },
|
|
595
640
|
# ena_srd_specification: {
|
|
596
641
|
# ena_srd_enabled: false,
|
|
597
642
|
# ena_srd_udp_specification: {
|
|
@@ -599,31 +644,27 @@ module Aws::EC2
|
|
|
599
644
|
# },
|
|
600
645
|
# },
|
|
601
646
|
# enable_primary_ipv_6: false,
|
|
647
|
+
# connection_tracking_specification: {
|
|
648
|
+
# tcp_established_timeout: 1,
|
|
649
|
+
# udp_stream_timeout: 1,
|
|
650
|
+
# udp_timeout: 1,
|
|
651
|
+
# },
|
|
652
|
+
# associate_public_ip_address: false,
|
|
653
|
+
# associated_subnet_ids: ["SubnetId"],
|
|
654
|
+
# dry_run: false,
|
|
655
|
+
# description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
|
|
656
|
+
# source_dest_check: {
|
|
657
|
+
# value: false,
|
|
658
|
+
# },
|
|
659
|
+
# groups: ["SecurityGroupId"],
|
|
660
|
+
# attachment: {
|
|
661
|
+
# default_ena_queue_count: false,
|
|
662
|
+
# ena_queue_count: 1,
|
|
663
|
+
# attachment_id: "NetworkInterfaceAttachmentId",
|
|
664
|
+
# delete_on_termination: false,
|
|
665
|
+
# },
|
|
602
666
|
# })
|
|
603
667
|
# @param [Hash] options ({})
|
|
604
|
-
# @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
|
|
605
|
-
# Information about the interface attachment. If modifying the `delete
|
|
606
|
-
# on termination` attribute, you must specify the ID of the interface
|
|
607
|
-
# attachment.
|
|
608
|
-
# @option options [Types::AttributeValue] :description
|
|
609
|
-
# A description for the network interface.
|
|
610
|
-
# @option options [Boolean] :dry_run
|
|
611
|
-
# Checks whether you have the required permissions for the action,
|
|
612
|
-
# without actually making the request, and provides an error response.
|
|
613
|
-
# If you have the required permissions, the error response is
|
|
614
|
-
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
615
|
-
# @option options [Array<String>] :groups
|
|
616
|
-
# Changes the security groups for the network interface. The new set of
|
|
617
|
-
# groups you specify replaces the current set. You must specify at least
|
|
618
|
-
# one group, even if it's just the default security group in the VPC.
|
|
619
|
-
# You must specify the ID of the security group, not the name.
|
|
620
|
-
# @option options [Types::AttributeBooleanValue] :source_dest_check
|
|
621
|
-
# Enable or disable source/destination checks, which ensure that the
|
|
622
|
-
# instance is either the source or the destination of any traffic that
|
|
623
|
-
# it receives. If the value is `true`, source/destination checks are
|
|
624
|
-
# enabled; otherwise, they are disabled. The default value is `true`.
|
|
625
|
-
# You must disable source/destination checks if the instance runs
|
|
626
|
-
# services such as network address translation, routing, or firewalls.
|
|
627
668
|
# @option options [Types::EnaSrdSpecification] :ena_srd_specification
|
|
628
669
|
# Updates the ENA Express configuration for the network interface that’s
|
|
629
670
|
# attached to the instance.
|
|
@@ -643,10 +684,41 @@ module Aws::EC2
|
|
|
643
684
|
# with an ENI attached to your instance and you enable a primary IPv6
|
|
644
685
|
# address, the first IPv6 GUA address associated with the ENI becomes
|
|
645
686
|
# the primary IPv6 address.
|
|
687
|
+
# @option options [Types::ConnectionTrackingSpecificationRequest] :connection_tracking_specification
|
|
688
|
+
# A connection tracking specification.
|
|
689
|
+
# @option options [Boolean] :associate_public_ip_address
|
|
690
|
+
# Indicates whether to assign a public IPv4 address to a network
|
|
691
|
+
# interface. This option can be enabled for any network interface but
|
|
692
|
+
# will only apply to the primary network interface (eth0).
|
|
693
|
+
# @option options [Array<String>] :associated_subnet_ids
|
|
694
|
+
# A list of subnet IDs to associate with the network interface.
|
|
695
|
+
# @option options [Boolean] :dry_run
|
|
696
|
+
# Checks whether you have the required permissions for the action,
|
|
697
|
+
# without actually making the request, and provides an error response.
|
|
698
|
+
# If you have the required permissions, the error response is
|
|
699
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
|
700
|
+
# @option options [Types::AttributeValue] :description
|
|
701
|
+
# A description for the network interface.
|
|
702
|
+
# @option options [Types::AttributeBooleanValue] :source_dest_check
|
|
703
|
+
# Enable or disable source/destination checks, which ensure that the
|
|
704
|
+
# instance is either the source or the destination of any traffic that
|
|
705
|
+
# it receives. If the value is `true`, source/destination checks are
|
|
706
|
+
# enabled; otherwise, they are disabled. The default value is `true`.
|
|
707
|
+
# You must disable source/destination checks if the instance runs
|
|
708
|
+
# services such as network address translation, routing, or firewalls.
|
|
709
|
+
# @option options [Array<String>] :groups
|
|
710
|
+
# Changes the security groups for the network interface. The new set of
|
|
711
|
+
# groups you specify replaces the current set. You must specify at least
|
|
712
|
+
# one group, even if it's just the default security group in the VPC.
|
|
713
|
+
# You must specify the ID of the security group, not the name.
|
|
714
|
+
# @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
|
|
715
|
+
# Information about the interface attachment. If modifying the `delete
|
|
716
|
+
# on termination` attribute, you must specify the ID of the interface
|
|
717
|
+
# attachment.
|
|
646
718
|
# @return [EmptyStructure]
|
|
647
719
|
def modify_attribute(options = {})
|
|
648
720
|
options = options.merge(network_interface_id: @id)
|
|
649
|
-
resp = Aws::Plugins::UserAgent.
|
|
721
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
650
722
|
@client.modify_network_interface_attribute(options)
|
|
651
723
|
end
|
|
652
724
|
resp.data
|
|
@@ -669,7 +741,7 @@ module Aws::EC2
|
|
|
669
741
|
# @return [EmptyStructure]
|
|
670
742
|
def reset_attribute(options = {})
|
|
671
743
|
options = options.merge(network_interface_id: @id)
|
|
672
|
-
resp = Aws::Plugins::UserAgent.
|
|
744
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
673
745
|
@client.reset_network_interface_attribute(options)
|
|
674
746
|
end
|
|
675
747
|
resp.data
|
|
@@ -678,20 +750,20 @@ module Aws::EC2
|
|
|
678
750
|
# @example Request syntax with placeholder values
|
|
679
751
|
#
|
|
680
752
|
# network_interface.unassign_private_ip_addresses({
|
|
681
|
-
# private_ip_addresses: ["String"],
|
|
682
753
|
# ipv_4_prefixes: ["String"],
|
|
754
|
+
# private_ip_addresses: ["String"],
|
|
683
755
|
# })
|
|
684
756
|
# @param [Hash] options ({})
|
|
757
|
+
# @option options [Array<String>] :ipv_4_prefixes
|
|
758
|
+
# The IPv4 prefixes to unassign from the network interface.
|
|
685
759
|
# @option options [Array<String>] :private_ip_addresses
|
|
686
760
|
# The secondary private IP addresses to unassign from the network
|
|
687
761
|
# interface. You can specify this option multiple times to unassign more
|
|
688
762
|
# than one IP address.
|
|
689
|
-
# @option options [Array<String>] :ipv_4_prefixes
|
|
690
|
-
# The IPv4 prefixes to unassign from the network interface.
|
|
691
763
|
# @return [EmptyStructure]
|
|
692
764
|
def unassign_private_ip_addresses(options = {})
|
|
693
765
|
options = options.merge(network_interface_id: @id)
|
|
694
|
-
resp = Aws::Plugins::UserAgent.
|
|
766
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
695
767
|
@client.unassign_private_ip_addresses(options)
|
|
696
768
|
end
|
|
697
769
|
resp.data
|
|
@@ -79,7 +79,7 @@ module Aws::EC2
|
|
|
79
79
|
#
|
|
80
80
|
# @return [self]
|
|
81
81
|
def load
|
|
82
|
-
resp = Aws::Plugins::UserAgent.
|
|
82
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
83
83
|
@client.describe_network_interfaces(filters: [{
|
|
84
84
|
name: "association.association-id",
|
|
85
85
|
values: [@id]
|
|
@@ -199,7 +199,7 @@ module Aws::EC2
|
|
|
199
199
|
:retry
|
|
200
200
|
end
|
|
201
201
|
end
|
|
202
|
-
Aws::Plugins::UserAgent.
|
|
202
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
203
203
|
Aws::Waiters::Waiter.new(options).wait({})
|
|
204
204
|
end
|
|
205
205
|
end
|
|
@@ -223,7 +223,7 @@ module Aws::EC2
|
|
|
223
223
|
# @return [EmptyStructure]
|
|
224
224
|
def delete(options = {})
|
|
225
225
|
options = options.merge(association_id: @id)
|
|
226
|
-
resp = Aws::Plugins::UserAgent.
|
|
226
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
|
227
227
|
@client.disassociate_address(options)
|
|
228
228
|
end
|
|
229
229
|
resp.data
|