aws-sdk-ec2 1.355.0 → 1.357.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.
@@ -1560,6 +1560,7 @@ module Aws::EC2
1560
1560
  InstanceGenerationSet = Shapes::ListShape.new(name: 'InstanceGenerationSet')
1561
1561
  InstanceHealthStatus = Shapes::StringShape.new(name: 'InstanceHealthStatus')
1562
1562
  InstanceId = Shapes::StringShape.new(name: 'InstanceId')
1563
+ InstanceIdForResolver = Shapes::StringShape.new(name: 'InstanceIdForResolver')
1563
1564
  InstanceIdList = Shapes::ListShape.new(name: 'InstanceIdList')
1564
1565
  InstanceIdSet = Shapes::ListShape.new(name: 'InstanceIdSet')
1565
1566
  InstanceIdStringList = Shapes::ListShape.new(name: 'InstanceIdStringList')
@@ -2830,6 +2831,7 @@ module Aws::EC2
2830
2831
  VolumeDetail = Shapes::StructureShape.new(name: 'VolumeDetail')
2831
2832
  VolumeId = Shapes::StringShape.new(name: 'VolumeId')
2832
2833
  VolumeIdStringList = Shapes::ListShape.new(name: 'VolumeIdStringList')
2834
+ VolumeIdWithResolver = Shapes::StringShape.new(name: 'VolumeIdWithResolver')
2833
2835
  VolumeList = Shapes::ListShape.new(name: 'VolumeList')
2834
2836
  VolumeModification = Shapes::StructureShape.new(name: 'VolumeModification')
2835
2837
  VolumeModificationList = Shapes::ListShape.new(name: 'VolumeModificationList')
@@ -6200,9 +6202,12 @@ module Aws::EC2
6200
6202
  DescribeImagesRequest.add_member(:owners, Shapes::ShapeRef.new(shape: OwnerStringList, location_name: "Owner"))
6201
6203
  DescribeImagesRequest.add_member(:include_deprecated, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeDeprecated"))
6202
6204
  DescribeImagesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
6205
+ DescribeImagesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
6206
+ DescribeImagesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
6203
6207
  DescribeImagesRequest.struct_class = Types::DescribeImagesRequest
6204
6208
 
6205
6209
  DescribeImagesResult.add_member(:images, Shapes::ShapeRef.new(shape: ImageList, location_name: "imagesSet"))
6210
+ DescribeImagesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
6206
6211
  DescribeImagesResult.struct_class = Types::DescribeImagesResult
6207
6212
 
6208
6213
  DescribeImportImageTasksRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
@@ -7335,8 +7340,8 @@ module Aws::EC2
7335
7340
 
7336
7341
  DetachVolumeRequest.add_member(:device, Shapes::ShapeRef.new(shape: String, location_name: "Device"))
7337
7342
  DetachVolumeRequest.add_member(:force, Shapes::ShapeRef.new(shape: Boolean, location_name: "Force"))
7338
- DetachVolumeRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, location_name: "InstanceId"))
7339
- DetachVolumeRequest.add_member(:volume_id, Shapes::ShapeRef.new(shape: VolumeId, required: true, location_name: "VolumeId"))
7343
+ DetachVolumeRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceIdForResolver, location_name: "InstanceId"))
7344
+ DetachVolumeRequest.add_member(:volume_id, Shapes::ShapeRef.new(shape: VolumeIdWithResolver, required: true, location_name: "VolumeId"))
7340
7345
  DetachVolumeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
7341
7346
  DetachVolumeRequest.struct_class = Types::DetachVolumeRequest
7342
7347
 
@@ -16629,6 +16634,12 @@ module Aws::EC2
16629
16634
  o.http_request_uri = "/"
16630
16635
  o.input = Shapes::ShapeRef.new(shape: DescribeImagesRequest)
16631
16636
  o.output = Shapes::ShapeRef.new(shape: DescribeImagesResult)
16637
+ o[:pager] = Aws::Pager.new(
16638
+ limit_key: "max_results",
16639
+ tokens: {
16640
+ "next_token" => "next_token"
16641
+ }
16642
+ )
16632
16643
  end)
16633
16644
 
16634
16645
  api.add_operation(:describe_import_image_tasks, Seahorse::Model::Operation.new.tap do |o|
@@ -89,7 +89,7 @@ module Aws::EC2
89
89
 
90
90
  # The platform details associated with the billing code of the AMI. For
91
91
  # more information, see [Understand AMI billing information][1] in the
92
- # *Amazon Elastic Compute Cloud User Guide*.
92
+ # *Amazon EC2 User Guide*.
93
93
  #
94
94
  #
95
95
  #
@@ -215,7 +215,7 @@ module Aws::EC2
215
215
  end
216
216
 
217
217
  # The boot mode of the image. For more information, see [Boot modes][1]
218
- # in the *Amazon Elastic Compute Cloud User Guide*.
218
+ # in the *Amazon EC2 User Guide*.
219
219
  #
220
220
  #
221
221
  #
@@ -226,8 +226,8 @@ module Aws::EC2
226
226
  end
227
227
 
228
228
  # If the image is configured for NitroTPM support, the value is `v2.0`.
229
- # For more information, see [NitroTPM][1] in the *Amazon Elastic Compute
230
- # Cloud User Guide*.
229
+ # For more information, see [NitroTPM][1] in the *Amazon EC2 User
230
+ # Guide*.
231
231
  #
232
232
  #
233
233
  #
@@ -250,8 +250,7 @@ module Aws::EC2
250
250
  # `required` so that, by default, the instance requires that IMDSv2 is
251
251
  # used when requesting instance metadata. In addition,
252
252
  # `HttpPutResponseHopLimit` is set to `2`. For more information, see
253
- # [Configure the AMI][1] in the *Amazon Elastic Compute Cloud User
254
- # Guide*.
253
+ # [Configure the AMI][1] in the *Amazon EC2 User Guide*.
255
254
  #
256
255
  #
257
256
  #
@@ -930,7 +930,7 @@ module Aws::EC2
930
930
  # instance.detach_volume({
931
931
  # device: "String",
932
932
  # force: false,
933
- # volume_id: "VolumeId", # required
933
+ # volume_id: "VolumeIdWithResolver", # required
934
934
  # dry_run: false,
935
935
  # })
936
936
  # @param [Hash] options ({})
@@ -342,12 +342,15 @@ module Aws::EC2
342
342
  # * `metadata-options.http-tokens` - The metadata request authorization
343
343
  # state (`optional` \| `required`)
344
344
  #
345
- # * `metadata-options.http-put-response-hop-limit` - The http metadata
345
+ # * `metadata-options.http-put-response-hop-limit` - The HTTP metadata
346
346
  # request put response hop limit (integer, possible values `1` to
347
347
  # `64`)
348
348
  #
349
- # * `metadata-options.http-endpoint` - Enable or disable metadata access
350
- # on http endpoint (`enabled` \| `disabled`)
349
+ # * `metadata-options.http-endpoint` - The status of access to the HTTP
350
+ # metadata endpoint on your instance (`enabled` \| `disabled`)
351
+ #
352
+ # * `metadata-options.instance-metadata-tags` - The status of access to
353
+ # instance tags from the instance metadata (`enabled` \| `disabled`)
351
354
  #
352
355
  # * `monitoring-state` - Indicates whether detailed monitoring is
353
356
  # enabled (`disabled` \| `enabled`).
@@ -376,8 +376,7 @@ module Aws::EC2
376
376
  #
377
377
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html
378
378
  # @option options [Array<String>] :security_groups
379
- # \[EC2-Classic, default VPC\] The names of the security groups. For a
380
- # nondefault VPC, you must use security group IDs instead.
379
+ # \[EC2-Classic, default VPC\] The names of the security groups.
381
380
  #
382
381
  # If you specify a network interface, you must specify any security
383
382
  # groups as part of the network interface.
@@ -1769,9 +1768,8 @@ module Aws::EC2
1769
1768
  # If you create an AMI on an Outpost, then all backing snapshots must be
1770
1769
  # on the same Outpost or in the Region of that Outpost. AMIs on an
1771
1770
  # Outpost that include local snapshots can be used to launch instances
1772
- # on the same Outpost only. For more information, [ Amazon EBS local
1773
- # snapshots on Outposts][1] in the *Amazon Elastic Compute Cloud User
1774
- # Guide*.
1771
+ # on the same Outpost only. For more information, [Amazon EBS local
1772
+ # snapshots on Outposts][1] in the *Amazon EC2 User Guide*.
1775
1773
  #
1776
1774
  #
1777
1775
  #
@@ -1799,8 +1797,19 @@ module Aws::EC2
1799
1797
  # single quotes ('), at-signs (@), or underscores(\_)
1800
1798
  # @option options [Array<String>] :billing_products
1801
1799
  # The billing product codes. Your account must be authorized to specify
1802
- # billing product codes. Otherwise, you can use the Amazon Web Services
1803
- # Marketplace to bill for the use of an AMI.
1800
+ # billing product codes.
1801
+ #
1802
+ # If your account is not authorized to specify billing product codes,
1803
+ # you can publish AMIs that include billable software and list them on
1804
+ # the Amazon Web Services Marketplace. You must first register as a
1805
+ # seller on the Amazon Web Services Marketplace. For more information,
1806
+ # see [Getting started as a seller][1] and [AMI-based products][2] in
1807
+ # the *Amazon Web Services Marketplace Seller Guide*.
1808
+ #
1809
+ #
1810
+ #
1811
+ # [1]: https://docs.aws.amazon.com/marketplace/latest/userguide/user-guide-for-sellers.html
1812
+ # [2]: https://docs.aws.amazon.com/marketplace/latest/userguide/ami-products.html
1804
1813
  # @option options [String] :ramdisk_id
1805
1814
  # The ID of the RAM disk.
1806
1815
  # @option options [String] :root_device_name
@@ -1820,15 +1829,14 @@ module Aws::EC2
1820
1829
  # Default: `paravirtual`
1821
1830
  # @option options [String] :boot_mode
1822
1831
  # The boot mode of the AMI. For more information, see [Boot modes][1] in
1823
- # the *Amazon Elastic Compute Cloud User Guide*.
1832
+ # the *Amazon EC2 User Guide*.
1824
1833
  #
1825
1834
  #
1826
1835
  #
1827
1836
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html
1828
1837
  # @option options [String] :tpm_support
1829
1838
  # Set to `v2.0` to enable Trusted Platform Module (TPM) support. For
1830
- # more information, see [NitroTPM][1] in the *Amazon Elastic Compute
1831
- # Cloud User Guide*.
1839
+ # more information, see [NitroTPM][1] in the *Amazon EC2 User Guide*.
1832
1840
  #
1833
1841
  #
1834
1842
  #
@@ -1838,7 +1846,7 @@ module Aws::EC2
1838
1846
  # retrieve the UEFI data, use the [GetInstanceUefiData][1] command. You
1839
1847
  # can inspect and modify the UEFI data by using the [python-uefivars
1840
1848
  # tool][2] on GitHub. For more information, see [UEFI Secure Boot][3] in
1841
- # the *Amazon Elastic Compute Cloud User Guide*.
1849
+ # the *Amazon EC2 User Guide*.
1842
1850
  #
1843
1851
  #
1844
1852
  #
@@ -1851,8 +1859,7 @@ module Aws::EC2
1851
1859
  # set to `required` so that, by default, the instance requires that
1852
1860
  # IMDSv2 is used when requesting instance metadata. In addition,
1853
1861
  # `HttpPutResponseHopLimit` is set to `2`. For more information, see
1854
- # [Configure the AMI][1] in the *Amazon Elastic Compute Cloud User
1855
- # Guide*.
1862
+ # [Configure the AMI][1] in the *Amazon EC2 User Guide*.
1856
1863
  #
1857
1864
  # <note markdown="1"> If you set the value to `v2.0`, make sure that your AMI software can
1858
1865
  # support IMDSv2.
@@ -2192,16 +2199,18 @@ module Aws::EC2
2192
2199
  # @return [Image::Collection]
2193
2200
  def images(options = {})
2194
2201
  batches = Enumerator.new do |y|
2195
- batch = []
2196
2202
  resp = @client.describe_images(options)
2197
- resp.data.images.each do |i|
2198
- batch << Image.new(
2199
- id: i.image_id,
2200
- data: i,
2201
- client: @client
2202
- )
2203
+ resp.each_page do |page|
2204
+ batch = []
2205
+ page.data.images.each do |i|
2206
+ batch << Image.new(
2207
+ id: i.image_id,
2208
+ data: i,
2209
+ client: @client
2210
+ )
2211
+ end
2212
+ y.yield(batch)
2203
2213
  end
2204
- y.yield(batch)
2205
2214
  end
2206
2215
  Image::Collection.new(batches)
2207
2216
  end
@@ -2324,12 +2333,15 @@ module Aws::EC2
2324
2333
  # * `metadata-options.http-tokens` - The metadata request authorization
2325
2334
  # state (`optional` \| `required`)
2326
2335
  #
2327
- # * `metadata-options.http-put-response-hop-limit` - The http metadata
2336
+ # * `metadata-options.http-put-response-hop-limit` - The HTTP metadata
2328
2337
  # request put response hop limit (integer, possible values `1` to
2329
2338
  # `64`)
2330
2339
  #
2331
- # * `metadata-options.http-endpoint` - Enable or disable metadata access
2332
- # on http endpoint (`enabled` \| `disabled`)
2340
+ # * `metadata-options.http-endpoint` - The status of access to the HTTP
2341
+ # metadata endpoint on your instance (`enabled` \| `disabled`)
2342
+ #
2343
+ # * `metadata-options.instance-metadata-tags` - The status of access to
2344
+ # instance tags from the instance metadata (`enabled` \| `disabled`)
2333
2345
  #
2334
2346
  # * `monitoring-state` - Indicates whether detailed monitoring is
2335
2347
  # enabled (`disabled` \| `enabled`).
@@ -370,9 +370,10 @@ module Aws::EC2
370
370
  # Alternatively, use a set of IP permissions to specify multiple rules
371
371
  # and a description for the rule.
372
372
  # @option options [Integer] :from_port
373
- # The start of port range for the TCP and UDP protocols, or an ICMP type
374
- # number. For the ICMP type number, use `-1` to specify all types. If
375
- # you specify all ICMP types, you must specify all codes.
373
+ # If the protocol is TCP or UDP, this is the start of the port range. If
374
+ # the protocol is ICMP, this is the type number. A value of -1 indicates
375
+ # all ICMP types. If you specify all ICMP types, you must specify all
376
+ # ICMP codes.
376
377
  #
377
378
  # Alternatively, use a set of IP permissions to specify multiple rules
378
379
  # and a description for the rule.
@@ -415,9 +416,10 @@ module Aws::EC2
415
416
  # specific IP protocol and port range, use a set of IP permissions
416
417
  # instead.
417
418
  # @option options [Integer] :to_port
418
- # The end of port range for the TCP and UDP protocols, or an ICMP code
419
- # number. For the ICMP code number, use `-1` to specify all codes. If
420
- # you specify all ICMP types, you must specify all codes.
419
+ # If the protocol is TCP or UDP, this is the end of the port range. If
420
+ # the protocol is ICMP, this is the code. A value of -1 indicates all
421
+ # ICMP codes. If you specify all ICMP types, you must specify all ICMP
422
+ # codes.
421
423
  #
422
424
  # Alternatively, use a set of IP permissions to specify multiple rules
423
425
  # and a description for the rule.
@@ -676,8 +678,9 @@ module Aws::EC2
676
678
  # The CIDR IP address range. You can't specify this parameter when
677
679
  # specifying a source security group.
678
680
  # @option options [Integer] :from_port
679
- # The start of port range for the TCP and UDP protocols, or an ICMP type
680
- # number. For the ICMP type number, use `-1` to specify all ICMP types.
681
+ # If the protocol is TCP or UDP, this is the start of the port range. If
682
+ # the protocol is ICMP, this is the type number. A value of -1 indicates
683
+ # all ICMP types.
681
684
  # @option options [String] :group_name
682
685
  # \[EC2-Classic, default VPC\] The name of the security group. You must
683
686
  # specify either the security group ID or the security group name in the
@@ -710,9 +713,9 @@ module Aws::EC2
710
713
  # specific rule for an IP protocol and port range, use a set of IP
711
714
  # permissions instead.
712
715
  # @option options [Integer] :to_port
713
- # The end of port range for the TCP and UDP protocols, or an ICMP code
714
- # number. For the ICMP code number, use `-1` to specify all ICMP codes
715
- # for the ICMP type.
716
+ # If the protocol is TCP or UDP, this is the end of the port range. If
717
+ # the protocol is ICMP, this is the code. A value of -1 indicates all
718
+ # ICMP codes.
716
719
  # @option options [Boolean] :dry_run
717
720
  # Checks whether you have the required permissions for the action,
718
721
  # without actually making the request, and provides an error response.
@@ -600,8 +600,7 @@ module Aws::EC2
600
600
  #
601
601
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateSecurityGroup.html
602
602
  # @option options [Array<String>] :security_groups
603
- # \[EC2-Classic, default VPC\] The names of the security groups. For a
604
- # nondefault VPC, you must use security group IDs instead.
603
+ # \[EC2-Classic, default VPC\] The names of the security groups.
605
604
  #
606
605
  # If you specify a network interface, you must specify any security
607
606
  # groups as part of the network interface.
@@ -1179,12 +1178,15 @@ module Aws::EC2
1179
1178
  # * `metadata-options.http-tokens` - The metadata request authorization
1180
1179
  # state (`optional` \| `required`)
1181
1180
  #
1182
- # * `metadata-options.http-put-response-hop-limit` - The http metadata
1181
+ # * `metadata-options.http-put-response-hop-limit` - The HTTP metadata
1183
1182
  # request put response hop limit (integer, possible values `1` to
1184
1183
  # `64`)
1185
1184
  #
1186
- # * `metadata-options.http-endpoint` - Enable or disable metadata access
1187
- # on http endpoint (`enabled` \| `disabled`)
1185
+ # * `metadata-options.http-endpoint` - The status of access to the HTTP
1186
+ # metadata endpoint on your instance (`enabled` \| `disabled`)
1187
+ #
1188
+ # * `metadata-options.instance-metadata-tags` - The status of access to
1189
+ # instance tags from the instance metadata (`enabled` \| `disabled`)
1188
1190
  #
1189
1191
  # * `monitoring-state` - Indicates whether detailed monitoring is
1190
1192
  # enabled (`disabled` \| `enabled`).