aws-sdk-ec2 1.271.0 → 1.296.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.
@@ -273,6 +273,8 @@ module Aws::EC2
273
273
  # If you omit this parameter, we delete all user-defined tags for the
274
274
  # specified resources. We do not delete Amazon Web Services-generated
275
275
  # tags (tags that have the `aws:` prefix).
276
+ #
277
+ # Constraints: Up to 1000 tags.
276
278
  # @return [Tag::Collection]
277
279
  def delete_tags(options = {})
278
280
  batch = []
@@ -463,6 +463,8 @@ module Aws::EC2
463
463
  # If you omit this parameter, we delete all user-defined tags for the
464
464
  # specified resources. We do not delete Amazon Web Services-generated
465
465
  # tags (tags that have the `aws:` prefix).
466
+ #
467
+ # Constraints: Up to 1000 tags.
466
468
  # @return [Tag::Collection]
467
469
  def delete_tags(options = {})
468
470
  batch = []
@@ -533,12 +535,16 @@ module Aws::EC2
533
535
  # {
534
536
  # group: "all", # accepts all
535
537
  # user_id: "String",
538
+ # organization_arn: "String",
539
+ # organizational_unit_arn: "String",
536
540
  # },
537
541
  # ],
538
542
  # remove: [
539
543
  # {
540
544
  # group: "all", # accepts all
541
545
  # user_id: "String",
546
+ # organization_arn: "String",
547
+ # organizational_unit_arn: "String",
542
548
  # },
543
549
  # ],
544
550
  # },
@@ -548,11 +554,14 @@ module Aws::EC2
548
554
  # user_ids: ["String"],
549
555
  # value: "String",
550
556
  # dry_run: false,
557
+ # organization_arns: ["String"],
558
+ # organizational_unit_arns: ["String"],
551
559
  # })
552
560
  # @param [Hash] options ({})
553
561
  # @option options [String] :attribute
554
- # The name of the attribute to modify. The valid values are
555
- # `description` and `launchPermission`.
562
+ # The name of the attribute to modify.
563
+ #
564
+ # Valid values: `description` \| `launchPermission`
556
565
  # @option options [Types::AttributeValue] :description
557
566
  # A new description for the AMI.
558
567
  # @option options [Types::LaunchPermissionModifications] :launch_permission
@@ -576,6 +585,13 @@ module Aws::EC2
576
585
  # without actually making the request, and provides an error response.
577
586
  # If you have the required permissions, the error response is
578
587
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
588
+ # @option options [Array<String>] :organization_arns
589
+ # The Amazon Resource Name (ARN) of an organization. This parameter can
590
+ # be used only when the `Attribute` parameter is `launchPermission`.
591
+ # @option options [Array<String>] :organizational_unit_arns
592
+ # The Amazon Resource Name (ARN) of an organizational unit (OU). This
593
+ # parameter can be used only when the `Attribute` parameter is
594
+ # `launchPermission`.
579
595
  # @return [EmptyStructure]
580
596
  def modify_attribute(options = {})
581
597
  options = options.merge(image_id: @id)
@@ -377,6 +377,18 @@ module Aws::EC2
377
377
  data[:usage_operation_update_time]
378
378
  end
379
379
 
380
+ # The options for the instance hostname.
381
+ # @return [Types::PrivateDnsNameOptionsResponse]
382
+ def private_dns_name_options
383
+ data[:private_dns_name_options]
384
+ end
385
+
386
+ # The IPv6 address assigned to the instance.
387
+ # @return [String]
388
+ def ipv_6_address
389
+ data[:ipv_6_address]
390
+ end
391
+
380
392
  # @!endgroup
381
393
 
382
394
  # @return [Client]
@@ -697,7 +709,7 @@ module Aws::EC2
697
709
  # no_reboot: false,
698
710
  # tag_specifications: [
699
711
  # {
700
- # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, 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, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
712
+ # resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, 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, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-endpoint, vpc-endpoint-service, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
701
713
  # tags: [
702
714
  # {
703
715
  # key: "String",
@@ -826,6 +838,8 @@ module Aws::EC2
826
838
  # If you omit this parameter, we delete all user-defined tags for the
827
839
  # specified resources. We do not delete Amazon Web Services-generated
828
840
  # tags (tags that have the `aws:` prefix).
841
+ #
842
+ # Constraints: Up to 1000 tags.
829
843
  # @return [Tag::Collection]
830
844
  def delete_tags(options = {})
831
845
  batch = []
@@ -977,8 +991,8 @@ module Aws::EC2
977
991
  #
978
992
  # To add instance store volumes to an Amazon EBS-backed instance, you
979
993
  # must add them when you launch the instance. For more information, see
980
- # [Updating the block device mapping when launching an instance][1] in
981
- # the *Amazon EC2 User Guide*.
994
+ # [Update the block device mapping when launching an instance][1] in the
995
+ # *Amazon EC2 User Guide*.
982
996
  #
983
997
  #
984
998
  #
@@ -1736,6 +1750,8 @@ module Aws::EC2
1736
1750
  # If you omit this parameter, we delete all user-defined tags for the
1737
1751
  # specified resources. We do not delete Amazon Web Services-generated
1738
1752
  # tags (tags that have the `aws:` prefix).
1753
+ #
1754
+ # Constraints: Up to 1000 tags.
1739
1755
  # @return [void]
1740
1756
  def batch_delete_tags!(options = {})
1741
1757
  batch_enum.each do |batch|
@@ -273,6 +273,8 @@ module Aws::EC2
273
273
  # If you omit this parameter, we delete all user-defined tags for the
274
274
  # specified resources. We do not delete Amazon Web Services-generated
275
275
  # tags (tags that have the `aws:` prefix).
276
+ #
277
+ # Constraints: Up to 1000 tags.
276
278
  # @return [Tag::Collection]
277
279
  def delete_tags(options = {})
278
280
  batch = []
@@ -347,6 +347,8 @@ module Aws::EC2
347
347
  # If you omit this parameter, we delete all user-defined tags for the
348
348
  # specified resources. We do not delete Amazon Web Services-generated
349
349
  # tags (tags that have the `aws:` prefix).
350
+ #
351
+ # Constraints: Up to 1000 tags.
350
352
  # @return [Tag::Collection]
351
353
  def delete_tags(options = {})
352
354
  batch = []
@@ -336,6 +336,8 @@ module Aws::EC2
336
336
  # If you omit this parameter, we delete all user-defined tags for the
337
337
  # specified resources. We do not delete Amazon Web Services-generated
338
338
  # tags (tags that have the `aws:` prefix).
339
+ #
340
+ # Constraints: Up to 1000 tags.
339
341
  # @return [Tag::Collection]
340
342
  def delete_tags(options = {})
341
343
  batch = []
@@ -164,6 +164,30 @@ module Aws::EC2
164
164
  data[:vpc_id]
165
165
  end
166
166
 
167
+ # Indicates whether a network interface with an IPv6 address is
168
+ # unreachable from the public internet. If the value is `true`, inbound
169
+ # traffic from the internet is dropped and you cannot assign an elastic
170
+ # IP address to the network interface. The network interface is
171
+ # reachable from peered VPCs and resources connected through a transit
172
+ # gateway, including on-premises networks.
173
+ # @return [Boolean]
174
+ def deny_all_igw_traffic
175
+ data[:deny_all_igw_traffic]
176
+ end
177
+
178
+ # Indicates whether this is an IPv6 only network interface.
179
+ # @return [Boolean]
180
+ def ipv_6_native
181
+ data[:ipv_6_native]
182
+ end
183
+
184
+ # The IPv6 globally unique address associated with the network
185
+ # interface.
186
+ # @return [String]
187
+ def ipv_6_address
188
+ data[:ipv_6_address]
189
+ end
190
+
167
191
  # @!endgroup
168
192
 
169
193
  # @return [Client]
@@ -430,6 +454,8 @@ module Aws::EC2
430
454
  # If you omit this parameter, we delete all user-defined tags for the
431
455
  # specified resources. We do not delete Amazon Web Services-generated
432
456
  # tags (tags that have the `aws:` prefix).
457
+ #
458
+ # Constraints: Up to 1000 tags.
433
459
  # @return [Tag::Collection]
434
460
  def delete_tags(options = {})
435
461
  batch = []
@@ -40,6 +40,12 @@ module Aws::EC2
40
40
  data[:carrier_ip]
41
41
  end
42
42
 
43
+ # The customer-owned IP address associated with the network interface.
44
+ # @return [String]
45
+ def customer_owned_ip
46
+ data[:customer_owned_ip]
47
+ end
48
+
43
49
  # The ID of the owner of the Elastic IP address.
44
50
  # @return [String]
45
51
  def ip_owner_id
@@ -66,6 +66,12 @@ module Aws::EC2
66
66
  data[:tags]
67
67
  end
68
68
 
69
+ # The Amazon Resource Name (ARN) of the placement group.
70
+ # @return [String]
71
+ def group_arn
72
+ data[:group_arn]
73
+ end
74
+
69
75
  # @!endgroup
70
76
 
71
77
  # @return [Client]
@@ -318,7 +324,10 @@ module Aws::EC2
318
324
  # index for the instance in the launch group (for example, 0, 1, 2,
319
325
  # and so on).
320
326
  #
321
- # * `launch-time` - The time when the instance was launched.
327
+ # * `launch-time` - The time when the instance was launched, in the ISO
328
+ # 8601 format in the UTC time zone (YYYY-MM-DDThh:mm:ss.sssZ), for
329
+ # example, `2021-09-29T11:04:43.305Z`. You can use a wildcard (`*`),
330
+ # for example, `2021-09-29T*`, which matches an entire day.
322
331
  #
323
332
  # * `metadata-options.http-tokens` - The metadata request authorization
324
333
  # state (`optional` \| `required`)
@@ -40,7 +40,13 @@ module Aws
40
40
  region: params[:source_region],
41
41
  credentials_provider: context.config.credentials
42
42
  )
43
- url = Aws::Partitions::EndpointProvider.resolve(signer.region, 'ec2')
43
+ url = Aws::Partitions::EndpointProvider.resolve(
44
+ signer.region, 'ec2', 'regional',
45
+ {
46
+ dualstack: context.config.use_dualstack_endpoint,
47
+ fips: context.config.use_fips_endpoint
48
+ }
49
+ )
44
50
  url += "?#{param_list.to_s}"
45
51
 
46
52
  signer.presign_url(