aws-sdk-ec2 1.479.0 → 1.480.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +5 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-sdk-ec2/classic_address.rb +11 -11
  5. data/lib/aws-sdk-ec2/client.rb +2723 -2713
  6. data/lib/aws-sdk-ec2/client_api.rb +438 -436
  7. data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
  8. data/lib/aws-sdk-ec2/image.rb +82 -82
  9. data/lib/aws-sdk-ec2/instance.rb +285 -285
  10. data/lib/aws-sdk-ec2/key_pair.rb +12 -12
  11. data/lib/aws-sdk-ec2/key_pair_info.rb +27 -27
  12. data/lib/aws-sdk-ec2/network_acl.rb +60 -60
  13. data/lib/aws-sdk-ec2/network_interface.rb +65 -65
  14. data/lib/aws-sdk-ec2/placement_group.rb +11 -11
  15. data/lib/aws-sdk-ec2/resource.rb +597 -597
  16. data/lib/aws-sdk-ec2/route.rb +30 -30
  17. data/lib/aws-sdk-ec2/route_table.rb +37 -37
  18. data/lib/aws-sdk-ec2/security_group.rb +137 -137
  19. data/lib/aws-sdk-ec2/snapshot.rb +77 -77
  20. data/lib/aws-sdk-ec2/subnet.rb +276 -276
  21. data/lib/aws-sdk-ec2/types.rb +3284 -3291
  22. data/lib/aws-sdk-ec2/volume.rb +93 -93
  23. data/lib/aws-sdk-ec2/vpc.rb +143 -143
  24. data/lib/aws-sdk-ec2/vpc_address.rb +17 -17
  25. data/lib/aws-sdk-ec2.rb +1 -1
  26. data/sig/classic_address.rbs +5 -5
  27. data/sig/client.rbs +872 -872
  28. data/sig/dhcp_options.rbs +3 -3
  29. data/sig/image.rbs +41 -41
  30. data/sig/instance.rbs +108 -108
  31. data/sig/key_pair.rbs +6 -6
  32. data/sig/key_pair_info.rbs +3 -3
  33. data/sig/network_acl.rbs +16 -16
  34. data/sig/network_interface.rbs +22 -22
  35. data/sig/placement_group.rbs +3 -3
  36. data/sig/resource.rbs +201 -201
  37. data/sig/route.rbs +9 -9
  38. data/sig/route_table.rbs +10 -10
  39. data/sig/security_group.rbs +110 -110
  40. data/sig/snapshot.rbs +34 -34
  41. data/sig/subnet.rbs +116 -116
  42. data/sig/types.rbs +438 -437
  43. data/sig/volume.rbs +33 -33
  44. data/sig/vpc.rbs +46 -46
  45. data/sig/vpc_address.rbs +8 -8
  46. data/sig/waiters.rbs +113 -113
  47. metadata +2 -2
@@ -35,6 +35,18 @@ module Aws::EC2
35
35
  end
36
36
  alias :key_name :name
37
37
 
38
+ # The ID of the key pair.
39
+ # @return [String]
40
+ def key_pair_id
41
+ data[:key_pair_id]
42
+ end
43
+
44
+ # Any tags applied to the key pair.
45
+ # @return [Array<Types::Tag>]
46
+ def tags
47
+ data[:tags]
48
+ end
49
+
38
50
  # * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
39
51
  # DER encoded private key.
40
52
  #
@@ -52,18 +64,6 @@ module Aws::EC2
52
64
  data[:key_material]
53
65
  end
54
66
 
55
- # The ID of the key pair.
56
- # @return [String]
57
- def key_pair_id
58
- data[:key_pair_id]
59
- end
60
-
61
- # Any tags applied to the key pair.
62
- # @return [Array<Types::Tag>]
63
- def tags
64
- data[:tags]
65
- end
66
-
67
67
  # @!endgroup
68
68
 
69
69
  # @return [Client]
@@ -41,33 +41,6 @@ module Aws::EC2
41
41
  data[:key_pair_id]
42
42
  end
43
43
 
44
- # If you used CreateKeyPair to create the key pair:
45
- #
46
- # * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
47
- # DER encoded private key.
48
- #
49
- # * For ED25519 key pairs, the key fingerprint is the base64-encoded
50
- # SHA-256 digest, which is the default for OpenSSH, starting with
51
- # [OpenSSH 6.8][1].
52
- #
53
- # If you used ImportKeyPair to provide Amazon Web Services the public
54
- # key:
55
- #
56
- # * For RSA key pairs, the key fingerprint is the MD5 public key
57
- # fingerprint as specified in section 4 of RFC4716.
58
- #
59
- # * For ED25519 key pairs, the key fingerprint is the base64-encoded
60
- # SHA-256 digest, which is the default for OpenSSH, starting with
61
- # [OpenSSH 6.8][1].
62
- #
63
- #
64
- #
65
- # [1]: http://www.openssh.com/txt/release-6.8
66
- # @return [String]
67
- def key_fingerprint
68
- data[:key_fingerprint]
69
- end
70
-
71
44
  # The type of key pair.
72
45
  # @return [String]
73
46
  def key_type
@@ -102,6 +75,33 @@ module Aws::EC2
102
75
  data[:create_time]
103
76
  end
104
77
 
78
+ # If you used CreateKeyPair to create the key pair:
79
+ #
80
+ # * For RSA key pairs, the key fingerprint is the SHA-1 digest of the
81
+ # DER encoded private key.
82
+ #
83
+ # * For ED25519 key pairs, the key fingerprint is the base64-encoded
84
+ # SHA-256 digest, which is the default for OpenSSH, starting with
85
+ # [OpenSSH 6.8][1].
86
+ #
87
+ # If you used ImportKeyPair to provide Amazon Web Services the public
88
+ # key:
89
+ #
90
+ # * For RSA key pairs, the key fingerprint is the MD5 public key
91
+ # fingerprint as specified in section 4 of RFC4716.
92
+ #
93
+ # * For ED25519 key pairs, the key fingerprint is the base64-encoded
94
+ # SHA-256 digest, which is the default for OpenSSH, starting with
95
+ # [OpenSSH 6.8][1].
96
+ #
97
+ #
98
+ #
99
+ # [1]: http://www.openssh.com/txt/release-6.8
100
+ # @return [String]
101
+ def key_fingerprint
102
+ data[:key_fingerprint]
103
+ end
104
+
105
105
  # @!endgroup
106
106
 
107
107
  # @return [Client]
@@ -212,46 +212,34 @@ module Aws::EC2
212
212
  # @example Request syntax with placeholder values
213
213
  #
214
214
  # network_acl.create_entry({
215
- # cidr_block: "String",
216
215
  # dry_run: false,
216
+ # rule_number: 1, # required
217
+ # protocol: "String", # required
218
+ # rule_action: "allow", # required, accepts allow, deny
217
219
  # egress: false, # required
220
+ # cidr_block: "String",
221
+ # ipv_6_cidr_block: "String",
218
222
  # icmp_type_code: {
219
223
  # code: 1,
220
224
  # type: 1,
221
225
  # },
222
- # ipv_6_cidr_block: "String",
223
226
  # port_range: {
224
227
  # from: 1,
225
228
  # to: 1,
226
229
  # },
227
- # protocol: "String", # required
228
- # rule_action: "allow", # required, accepts allow, deny
229
- # rule_number: 1, # required
230
230
  # })
231
231
  # @param [Hash] options ({})
232
- # @option options [String] :cidr_block
233
- # The IPv4 network range to allow or deny, in CIDR notation (for example
234
- # `172.16.0.0/24`). We modify the specified CIDR block to its canonical
235
- # form; for example, if you specify `100.68.0.18/18`, we modify it to
236
- # `100.68.0.0/18`.
237
232
  # @option options [Boolean] :dry_run
238
233
  # Checks whether you have the required permissions for the action,
239
234
  # without actually making the request, and provides an error response.
240
235
  # If you have the required permissions, the error response is
241
236
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
242
- # @option options [required, Boolean] :egress
243
- # Indicates whether this is an egress rule (rule is applied to traffic
244
- # leaving the subnet).
245
- # @option options [Types::IcmpTypeCode] :icmp_type_code
246
- # ICMP protocol: The ICMP or ICMPv6 type and code. Required if
247
- # specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR
248
- # block.
249
- # @option options [String] :ipv_6_cidr_block
250
- # The IPv6 network range to allow or deny, in CIDR notation (for example
251
- # `2001:db8:1234:1a00::/64`).
252
- # @option options [Types::PortRange] :port_range
253
- # TCP or UDP protocols: The range of ports the rule applies to. Required
254
- # if specifying protocol 6 (TCP) or 17 (UDP).
237
+ # @option options [required, Integer] :rule_number
238
+ # The rule number for the entry (for example, 100). ACL entries are
239
+ # processed in ascending order by rule number.
240
+ #
241
+ # Constraints: Positive integer from 1 to 32766. The range 32767 to
242
+ # 65535 is reserved for internal use.
255
243
  # @option options [required, String] :protocol
256
244
  # The protocol number. A value of "-1" means all protocols. If you
257
245
  # specify "-1" or a protocol number other than "6" (TCP), "17"
@@ -263,12 +251,24 @@ module Aws::EC2
263
251
  # block, you must specify an ICMP type and code.
264
252
  # @option options [required, String] :rule_action
265
253
  # Indicates whether to allow or deny the traffic that matches the rule.
266
- # @option options [required, Integer] :rule_number
267
- # The rule number for the entry (for example, 100). ACL entries are
268
- # processed in ascending order by rule number.
269
- #
270
- # Constraints: Positive integer from 1 to 32766. The range 32767 to
271
- # 65535 is reserved for internal use.
254
+ # @option options [required, Boolean] :egress
255
+ # Indicates whether this is an egress rule (rule is applied to traffic
256
+ # leaving the subnet).
257
+ # @option options [String] :cidr_block
258
+ # The IPv4 network range to allow or deny, in CIDR notation (for example
259
+ # `172.16.0.0/24`). We modify the specified CIDR block to its canonical
260
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
261
+ # `100.68.0.0/18`.
262
+ # @option options [String] :ipv_6_cidr_block
263
+ # The IPv6 network range to allow or deny, in CIDR notation (for example
264
+ # `2001:db8:1234:1a00::/64`).
265
+ # @option options [Types::IcmpTypeCode] :icmp_type_code
266
+ # ICMP protocol: The ICMP or ICMPv6 type and code. Required if
267
+ # specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR
268
+ # block.
269
+ # @option options [Types::PortRange] :port_range
270
+ # TCP or UDP protocols: The range of ports the rule applies to. Required
271
+ # if specifying protocol 6 (TCP) or 17 (UDP).
272
272
  # @return [EmptyStructure]
273
273
  def create_entry(options = {})
274
274
  options = options.merge(network_acl_id: @id)
@@ -388,8 +388,8 @@ module Aws::EC2
388
388
  #
389
389
  # network_acl.delete_entry({
390
390
  # dry_run: false,
391
- # egress: false, # required
392
391
  # rule_number: 1, # required
392
+ # egress: false, # required
393
393
  # })
394
394
  # @param [Hash] options ({})
395
395
  # @option options [Boolean] :dry_run
@@ -397,10 +397,10 @@ module Aws::EC2
397
397
  # without actually making the request, and provides an error response.
398
398
  # If you have the required permissions, the error response is
399
399
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
400
- # @option options [required, Boolean] :egress
401
- # Indicates whether the rule is an egress rule.
402
400
  # @option options [required, Integer] :rule_number
403
401
  # The rule number of the entry to delete.
402
+ # @option options [required, Boolean] :egress
403
+ # Indicates whether the rule is an egress rule.
404
404
  # @return [EmptyStructure]
405
405
  def delete_entry(options = {})
406
406
  options = options.merge(network_acl_id: @id)
@@ -413,18 +413,18 @@ module Aws::EC2
413
413
  # @example Request syntax with placeholder values
414
414
  #
415
415
  # network_acl.replace_association({
416
- # association_id: "NetworkAclAssociationId", # required
417
416
  # dry_run: false,
417
+ # association_id: "NetworkAclAssociationId", # required
418
418
  # })
419
419
  # @param [Hash] options ({})
420
- # @option options [required, String] :association_id
421
- # The ID of the current association between the original network ACL and
422
- # the subnet.
423
420
  # @option options [Boolean] :dry_run
424
421
  # Checks whether you have the required permissions for the action,
425
422
  # without actually making the request, and provides an error response.
426
423
  # If you have the required permissions, the error response is
427
424
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
425
+ # @option options [required, String] :association_id
426
+ # The ID of the current association between the original network ACL and
427
+ # the subnet.
428
428
  # @return [Types::ReplaceNetworkAclAssociationResult]
429
429
  def replace_association(options = {})
430
430
  options = options.merge(network_acl_id: @id)
@@ -437,45 +437,30 @@ module Aws::EC2
437
437
  # @example Request syntax with placeholder values
438
438
  #
439
439
  # network_acl.replace_entry({
440
- # cidr_block: "String",
441
440
  # dry_run: false,
441
+ # rule_number: 1, # required
442
+ # protocol: "String", # required
443
+ # rule_action: "allow", # required, accepts allow, deny
442
444
  # egress: false, # required
445
+ # cidr_block: "String",
446
+ # ipv_6_cidr_block: "String",
443
447
  # icmp_type_code: {
444
448
  # code: 1,
445
449
  # type: 1,
446
450
  # },
447
- # ipv_6_cidr_block: "String",
448
451
  # port_range: {
449
452
  # from: 1,
450
453
  # to: 1,
451
454
  # },
452
- # protocol: "String", # required
453
- # rule_action: "allow", # required, accepts allow, deny
454
- # rule_number: 1, # required
455
455
  # })
456
456
  # @param [Hash] options ({})
457
- # @option options [String] :cidr_block
458
- # The IPv4 network range to allow or deny, in CIDR notation (for example
459
- # `172.16.0.0/24`).
460
457
  # @option options [Boolean] :dry_run
461
458
  # Checks whether you have the required permissions for the action,
462
459
  # without actually making the request, and provides an error response.
463
460
  # If you have the required permissions, the error response is
464
461
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
465
- # @option options [required, Boolean] :egress
466
- # Indicates whether to replace the egress rule.
467
- #
468
- # Default: If no value is specified, we replace the ingress rule.
469
- # @option options [Types::IcmpTypeCode] :icmp_type_code
470
- # ICMP protocol: The ICMP or ICMPv6 type and code. Required if
471
- # specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR
472
- # block.
473
- # @option options [String] :ipv_6_cidr_block
474
- # The IPv6 network range to allow or deny, in CIDR notation (for example
475
- # `2001:bd8:1234:1a00::/64`).
476
- # @option options [Types::PortRange] :port_range
477
- # TCP or UDP protocols: The range of ports the rule applies to. Required
478
- # if specifying protocol 6 (TCP) or 17 (UDP).
462
+ # @option options [required, Integer] :rule_number
463
+ # The rule number of the entry to replace.
479
464
  # @option options [required, String] :protocol
480
465
  # The protocol number. A value of "-1" means all protocols. If you
481
466
  # specify "-1" or a protocol number other than "6" (TCP), "17"
@@ -487,8 +472,23 @@ module Aws::EC2
487
472
  # block, you must specify an ICMP type and code.
488
473
  # @option options [required, String] :rule_action
489
474
  # Indicates whether to allow or deny the traffic that matches the rule.
490
- # @option options [required, Integer] :rule_number
491
- # The rule number of the entry to replace.
475
+ # @option options [required, Boolean] :egress
476
+ # Indicates whether to replace the egress rule.
477
+ #
478
+ # Default: If no value is specified, we replace the ingress rule.
479
+ # @option options [String] :cidr_block
480
+ # The IPv4 network range to allow or deny, in CIDR notation (for example
481
+ # `172.16.0.0/24`).
482
+ # @option options [String] :ipv_6_cidr_block
483
+ # The IPv6 network range to allow or deny, in CIDR notation (for example
484
+ # `2001:bd8:1234:1a00::/64`).
485
+ # @option options [Types::IcmpTypeCode] :icmp_type_code
486
+ # ICMP protocol: The ICMP or ICMPv6 type and code. Required if
487
+ # specifying protocol 1 (ICMP) or protocol 58 (ICMPv6) with an IPv6 CIDR
488
+ # block.
489
+ # @option options [Types::PortRange] :port_range
490
+ # TCP or UDP protocols: The range of ports the rule applies to. Required
491
+ # if specifying protocol 6 (TCP) or 17 (UDP).
492
492
  # @return [EmptyStructure]
493
493
  def replace_entry(options = {})
494
494
  options = options.merge(network_acl_id: @id)
@@ -342,17 +342,20 @@ module Aws::EC2
342
342
  # @example Request syntax with placeholder values
343
343
  #
344
344
  # network_interface.assign_private_ip_addresses({
345
- # allow_reassignment: false,
346
- # private_ip_addresses: ["String"],
347
- # secondary_private_ip_address_count: 1,
348
345
  # ipv_4_prefixes: ["String"],
349
346
  # ipv_4_prefix_count: 1,
347
+ # private_ip_addresses: ["String"],
348
+ # secondary_private_ip_address_count: 1,
349
+ # allow_reassignment: false,
350
350
  # })
351
351
  # @param [Hash] options ({})
352
- # @option options [Boolean] :allow_reassignment
353
- # Indicates whether to allow an IP address that is already assigned to
354
- # another network interface or instance to be reassigned to the
355
- # specified network interface.
352
+ # @option options [Array<String>] :ipv_4_prefixes
353
+ # One or more IPv4 prefixes assigned to the network interface. You
354
+ # cannot use this option if you use the `Ipv4PrefixCount` option.
355
+ # @option options [Integer] :ipv_4_prefix_count
356
+ # The number of IPv4 prefixes that Amazon Web Services automatically
357
+ # assigns to the network interface. You cannot use this option if you
358
+ # use the `Ipv4 Prefixes` option.
356
359
  # @option options [Array<String>] :private_ip_addresses
357
360
  # The IP addresses to be assigned as a secondary private IP address to
358
361
  # the network interface. You can't specify this parameter when also
@@ -364,13 +367,10 @@ module Aws::EC2
364
367
  # The number of secondary IP addresses to assign to the network
365
368
  # interface. You can't specify this parameter when also specifying
366
369
  # private IP addresses.
367
- # @option options [Array<String>] :ipv_4_prefixes
368
- # One or more IPv4 prefixes assigned to the network interface. You
369
- # cannot use this option if you use the `Ipv4PrefixCount` option.
370
- # @option options [Integer] :ipv_4_prefix_count
371
- # The number of IPv4 prefixes that Amazon Web Services automatically
372
- # assigns to the network interface. You cannot use this option if you
373
- # use the `Ipv4 Prefixes` option.
370
+ # @option options [Boolean] :allow_reassignment
371
+ # Indicates whether to allow an IP address that is already assigned to
372
+ # another network interface or instance to be reassigned to the
373
+ # specified network interface.
374
374
  # @return [Types::AssignPrivateIpAddressesResult]
375
375
  def assign_private_ip_addresses(options = {})
376
376
  options = options.merge(network_interface_id: @id)
@@ -383,9 +383,6 @@ module Aws::EC2
383
383
  # @example Request syntax with placeholder values
384
384
  #
385
385
  # network_interface.attach({
386
- # device_index: 1, # required
387
- # dry_run: false,
388
- # instance_id: "InstanceId", # required
389
386
  # network_card_index: 1,
390
387
  # ena_srd_specification: {
391
388
  # ena_srd_enabled: false,
@@ -393,17 +390,11 @@ module Aws::EC2
393
390
  # ena_srd_udp_enabled: false,
394
391
  # },
395
392
  # },
393
+ # dry_run: false,
394
+ # instance_id: "InstanceId", # required
395
+ # device_index: 1, # required
396
396
  # })
397
397
  # @param [Hash] options ({})
398
- # @option options [required, Integer] :device_index
399
- # The index of the device for the network interface attachment.
400
- # @option options [Boolean] :dry_run
401
- # Checks whether you have the required permissions for the action,
402
- # without actually making the request, and provides an error response.
403
- # If you have the required permissions, the error response is
404
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
405
- # @option options [required, String] :instance_id
406
- # The ID of the instance.
407
398
  # @option options [Integer] :network_card_index
408
399
  # The index of the network card. Some instance types support multiple
409
400
  # network cards. The primary network interface must be assigned to
@@ -411,6 +402,15 @@ module Aws::EC2
411
402
  # @option options [Types::EnaSrdSpecification] :ena_srd_specification
412
403
  # Configures ENA Express for the network interface that this action
413
404
  # attaches to the instance.
405
+ # @option options [Boolean] :dry_run
406
+ # Checks whether you have the required permissions for the action,
407
+ # without actually making the request, and provides an error response.
408
+ # If you have the required permissions, the error response is
409
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
410
+ # @option options [required, String] :instance_id
411
+ # The ID of the instance.
412
+ # @option options [required, Integer] :device_index
413
+ # The index of the device for the network interface attachment.
414
414
  # @return [Types::AttachNetworkInterfaceResult]
415
415
  def attach(options = {})
416
416
  options = options.merge(network_interface_id: @id)
@@ -529,17 +529,17 @@ module Aws::EC2
529
529
  # @example Request syntax with placeholder values
530
530
  #
531
531
  # network_interface.describe_attribute({
532
- # attribute: "description", # accepts description, groupSet, sourceDestCheck, attachment, associatePublicIpAddress
533
532
  # dry_run: false,
533
+ # attribute: "description", # accepts description, groupSet, sourceDestCheck, attachment, associatePublicIpAddress
534
534
  # })
535
535
  # @param [Hash] options ({})
536
- # @option options [String] :attribute
537
- # The attribute of the network interface. This parameter is required.
538
536
  # @option options [Boolean] :dry_run
539
537
  # Checks whether you have the required permissions for the action,
540
538
  # without actually making the request, and provides an error response.
541
539
  # If you have the required permissions, the error response is
542
540
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
541
+ # @option options [String] :attribute
542
+ # The attribute of the network interface. This parameter is required.
543
543
  # @return [Types::DescribeNetworkInterfaceAttributeResult]
544
544
  def describe_attribute(options = {})
545
545
  options = options.merge(network_interface_id: @id)
@@ -595,16 +595,6 @@ module Aws::EC2
595
595
  # @example Request syntax with placeholder values
596
596
  #
597
597
  # network_interface.modify_attribute({
598
- # attachment: {
599
- # attachment_id: "NetworkInterfaceAttachmentId",
600
- # delete_on_termination: false,
601
- # },
602
- # description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
603
- # dry_run: false,
604
- # groups: ["SecurityGroupId"],
605
- # source_dest_check: {
606
- # value: false,
607
- # },
608
598
  # ena_srd_specification: {
609
599
  # ena_srd_enabled: false,
610
600
  # ena_srd_udp_specification: {
@@ -618,31 +608,18 @@ module Aws::EC2
618
608
  # udp_timeout: 1,
619
609
  # },
620
610
  # associate_public_ip_address: false,
611
+ # dry_run: false,
612
+ # description: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
613
+ # source_dest_check: {
614
+ # value: false,
615
+ # },
616
+ # groups: ["SecurityGroupId"],
617
+ # attachment: {
618
+ # attachment_id: "NetworkInterfaceAttachmentId",
619
+ # delete_on_termination: false,
620
+ # },
621
621
  # })
622
622
  # @param [Hash] options ({})
623
- # @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
624
- # Information about the interface attachment. If modifying the `delete
625
- # on termination` attribute, you must specify the ID of the interface
626
- # attachment.
627
- # @option options [Types::AttributeValue] :description
628
- # A description for the network interface.
629
- # @option options [Boolean] :dry_run
630
- # Checks whether you have the required permissions for the action,
631
- # without actually making the request, and provides an error response.
632
- # If you have the required permissions, the error response is
633
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
634
- # @option options [Array<String>] :groups
635
- # Changes the security groups for the network interface. The new set of
636
- # groups you specify replaces the current set. You must specify at least
637
- # one group, even if it's just the default security group in the VPC.
638
- # You must specify the ID of the security group, not the name.
639
- # @option options [Types::AttributeBooleanValue] :source_dest_check
640
- # Enable or disable source/destination checks, which ensure that the
641
- # instance is either the source or the destination of any traffic that
642
- # it receives. If the value is `true`, source/destination checks are
643
- # enabled; otherwise, they are disabled. The default value is `true`.
644
- # You must disable source/destination checks if the instance runs
645
- # services such as network address translation, routing, or firewalls.
646
623
  # @option options [Types::EnaSrdSpecification] :ena_srd_specification
647
624
  # Updates the ENA Express configuration for the network interface that’s
648
625
  # attached to the instance.
@@ -668,6 +645,29 @@ module Aws::EC2
668
645
  # Indicates whether to assign a public IPv4 address to a network
669
646
  # interface. This option can be enabled for any network interface but
670
647
  # will only apply to the primary network interface (eth0).
648
+ # @option options [Boolean] :dry_run
649
+ # Checks whether you have the required permissions for the action,
650
+ # without actually making the request, and provides an error response.
651
+ # If you have the required permissions, the error response is
652
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
653
+ # @option options [Types::AttributeValue] :description
654
+ # A description for the network interface.
655
+ # @option options [Types::AttributeBooleanValue] :source_dest_check
656
+ # Enable or disable source/destination checks, which ensure that the
657
+ # instance is either the source or the destination of any traffic that
658
+ # it receives. If the value is `true`, source/destination checks are
659
+ # enabled; otherwise, they are disabled. The default value is `true`.
660
+ # You must disable source/destination checks if the instance runs
661
+ # services such as network address translation, routing, or firewalls.
662
+ # @option options [Array<String>] :groups
663
+ # Changes the security groups for the network interface. The new set of
664
+ # groups you specify replaces the current set. You must specify at least
665
+ # one group, even if it's just the default security group in the VPC.
666
+ # You must specify the ID of the security group, not the name.
667
+ # @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
668
+ # Information about the interface attachment. If modifying the `delete
669
+ # on termination` attribute, you must specify the ID of the interface
670
+ # attachment.
671
671
  # @return [EmptyStructure]
672
672
  def modify_attribute(options = {})
673
673
  options = options.merge(network_interface_id: @id)
@@ -703,16 +703,16 @@ module Aws::EC2
703
703
  # @example Request syntax with placeholder values
704
704
  #
705
705
  # network_interface.unassign_private_ip_addresses({
706
- # private_ip_addresses: ["String"],
707
706
  # ipv_4_prefixes: ["String"],
707
+ # private_ip_addresses: ["String"],
708
708
  # })
709
709
  # @param [Hash] options ({})
710
+ # @option options [Array<String>] :ipv_4_prefixes
711
+ # The IPv4 prefixes to unassign from the network interface.
710
712
  # @option options [Array<String>] :private_ip_addresses
711
713
  # The secondary private IP addresses to unassign from the network
712
714
  # interface. You can specify this option multiple times to unassign more
713
715
  # than one IP address.
714
- # @option options [Array<String>] :ipv_4_prefixes
715
- # The IPv4 prefixes to unassign from the network interface.
716
716
  # @return [EmptyStructure]
717
717
  def unassign_private_ip_addresses(options = {})
718
718
  options = options.merge(network_interface_id: @id)
@@ -242,16 +242,25 @@ module Aws::EC2
242
242
  # @example Request syntax with placeholder values
243
243
  #
244
244
  # instances = placement_group.instances({
245
+ # instance_ids: ["InstanceId"],
246
+ # dry_run: false,
245
247
  # filters: [
246
248
  # {
247
249
  # name: "String",
248
250
  # values: ["String"],
249
251
  # },
250
252
  # ],
251
- # instance_ids: ["InstanceId"],
252
- # dry_run: false,
253
253
  # })
254
254
  # @param [Hash] options ({})
255
+ # @option options [Array<String>] :instance_ids
256
+ # The instance IDs.
257
+ #
258
+ # Default: Describes all your instances.
259
+ # @option options [Boolean] :dry_run
260
+ # Checks whether you have the required permissions for the operation,
261
+ # without actually making the request, and provides an error response.
262
+ # If you have the required permissions, the error response is
263
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
255
264
  # @option options [Array<Types::Filter>] :filters
256
265
  # The filters.
257
266
  #
@@ -681,15 +690,6 @@ module Aws::EC2
681
690
  # (`paravirtual` \| `hvm`).
682
691
  #
683
692
  # * `vpc-id` - The ID of the VPC that the instance is running in.
684
- # @option options [Array<String>] :instance_ids
685
- # The instance IDs.
686
- #
687
- # Default: Describes all your instances.
688
- # @option options [Boolean] :dry_run
689
- # Checks whether you have the required permissions for the operation,
690
- # without actually making the request, and provides an error response.
691
- # If you have the required permissions, the error response is
692
- # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
693
693
  # @return [Instance::Collection]
694
694
  def instances(options = {})
695
695
  batches = Enumerator.new do |y|