aws-sdk-ec2 1.339.0 → 1.341.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 864fb739dd2a653e2c502ee962b63156a5ae7d79c672b8aa41d7e4ea8cad650e
4
- data.tar.gz: 14a9b6f3853c34ce7150ff397c84d7f08f6252eec8eeac28d183f5a0c0764c4b
3
+ metadata.gz: d5ada8a68cd6af96c2d1d8ea7217be5f033612a31086ab51ff6daba16791f144
4
+ data.tar.gz: b807f2830467388553e4edfb388de5ca403511ca9ae4940996ee2dc9dd93815b
5
5
  SHA512:
6
- metadata.gz: c53d11ecaa0b03e4057bbc93717033c3ab7325ce44ea8720fd55ee9b484928d28218a7c83d7b276dd15f32616c5a48ab087b8b65fe9b984438bdf24853b86f02
7
- data.tar.gz: 47e7b68514bd25f0b9d33d171e9c603d6a4721875de933f69a3788a9c18c144fa30ab584aa5fa019ca0872bd03d0cebd1ccae8627310b074e365386b34494b93
6
+ metadata.gz: ac50c79961f8fbdb6c77ffa6f6a42c9593d956aef2267d2941f31afbc5f7614e5a1058424dbe967e23bd2f04ea8e1acaf9cf652a23fd73e5f114493c1eea82e3
7
+ data.tar.gz: 57db2cff28208b1630b491570113137985e34c629b2f9e0182e1d441cf66397dcd8112b95bc76e36ca44cf71c106b23c723a3bfd8e778731b4ef6ed8a8699b78
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.341.0 (2022-10-04)
5
+ ------------------
6
+
7
+ * Feature - Added EnableNetworkAddressUsageMetrics flag for ModifyVpcAttribute, DescribeVpcAttribute APIs.
8
+
9
+ 1.340.0 (2022-10-03)
10
+ ------------------
11
+
12
+ * Feature - Adding an imdsSupport attribute to EC2 AMIs
13
+
4
14
  1.339.0 (2022-09-29)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.339.0
1
+ 1.341.0
@@ -21096,6 +21096,7 @@ module Aws::EC2
21096
21096
  # * {Types::ImageAttribute#tpm_support #tpm_support} => Types::AttributeValue
21097
21097
  # * {Types::ImageAttribute#uefi_data #uefi_data} => Types::AttributeValue
21098
21098
  # * {Types::ImageAttribute#last_launched_time #last_launched_time} => Types::AttributeValue
21099
+ # * {Types::ImageAttribute#imds_support #imds_support} => Types::AttributeValue
21099
21100
  #
21100
21101
  #
21101
21102
  # @example Example: To describe the launch permissions for an AMI
@@ -21120,7 +21121,7 @@ module Aws::EC2
21120
21121
  # @example Request syntax with placeholder values
21121
21122
  #
21122
21123
  # resp = client.describe_image_attribute({
21123
- # attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime
21124
+ # attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport
21124
21125
  # image_id: "ImageId", # required
21125
21126
  # dry_run: false,
21126
21127
  # })
@@ -21157,6 +21158,7 @@ module Aws::EC2
21157
21158
  # resp.tpm_support #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
21158
21159
  # resp.uefi_data #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
21159
21160
  # resp.last_launched_time #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
21161
+ # resp.imds_support #=> <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
21160
21162
  #
21161
21163
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeImageAttribute AWS API Documentation
21162
21164
  #
@@ -21437,6 +21439,7 @@ module Aws::EC2
21437
21439
  # resp.images[0].boot_mode #=> String, one of "legacy-bios", "uefi"
21438
21440
  # resp.images[0].tpm_support #=> String, one of "v2.0"
21439
21441
  # resp.images[0].deprecation_time #=> String
21442
+ # resp.images[0].imds_support #=> String, one of "v2.0"
21440
21443
  #
21441
21444
  #
21442
21445
  # The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
@@ -32528,6 +32531,7 @@ module Aws::EC2
32528
32531
  # * {Types::DescribeVpcAttributeResult#vpc_id #vpc_id} => String
32529
32532
  # * {Types::DescribeVpcAttributeResult#enable_dns_hostnames #enable_dns_hostnames} => Types::AttributeBooleanValue
32530
32533
  # * {Types::DescribeVpcAttributeResult#enable_dns_support #enable_dns_support} => Types::AttributeBooleanValue
32534
+ # * {Types::DescribeVpcAttributeResult#enable_network_address_usage_metrics #enable_network_address_usage_metrics} => Types::AttributeBooleanValue
32531
32535
  #
32532
32536
  #
32533
32537
  # @example Example: To describe the enableDnsSupport attribute
@@ -32570,7 +32574,7 @@ module Aws::EC2
32570
32574
  # @example Request syntax with placeholder values
32571
32575
  #
32572
32576
  # resp = client.describe_vpc_attribute({
32573
- # attribute: "enableDnsSupport", # required, accepts enableDnsSupport, enableDnsHostnames
32577
+ # attribute: "enableDnsSupport", # required, accepts enableDnsSupport, enableDnsHostnames, enableNetworkAddressUsageMetrics
32574
32578
  # vpc_id: "VpcId", # required
32575
32579
  # dry_run: false,
32576
32580
  # })
@@ -32580,6 +32584,7 @@ module Aws::EC2
32580
32584
  # resp.vpc_id #=> String
32581
32585
  # resp.enable_dns_hostnames.value #=> Boolean
32582
32586
  # resp.enable_dns_support.value #=> Boolean
32587
+ # resp.enable_network_address_usage_metrics.value #=> Boolean
32583
32588
  #
32584
32589
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttribute AWS API Documentation
32585
32590
  #
@@ -43991,6 +43996,10 @@ module Aws::EC2
43991
43996
  # @option params [required, String] :vpc_id
43992
43997
  # The ID of the VPC.
43993
43998
  #
43999
+ # @option params [Types::AttributeBooleanValue] :enable_network_address_usage_metrics
44000
+ # Indicates whether Network Address Usage metrics are enabled for your
44001
+ # VPC.
44002
+ #
43994
44003
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
43995
44004
  #
43996
44005
  #
@@ -44029,6 +44038,9 @@ module Aws::EC2
44029
44038
  # value: false,
44030
44039
  # },
44031
44040
  # vpc_id: "VpcId", # required
44041
+ # enable_network_address_usage_metrics: {
44042
+ # value: false,
44043
+ # },
44032
44044
  # })
44033
44045
  #
44034
44046
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttribute AWS API Documentation
@@ -46003,6 +46015,24 @@ module Aws::EC2
46003
46015
  # [2]: https://github.com/awslabs/python-uefivars
46004
46016
  # [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
46005
46017
  #
46018
+ # @option params [String] :imds_support
46019
+ # Set to `v2.0` to indicate that IMDSv2 is specified in the AMI.
46020
+ # Instances launched from this AMI will have `HttpTokens` automatically
46021
+ # set to `required` so that, by default, the instance requires that
46022
+ # IMDSv2 is used when requesting instance metadata. In addition,
46023
+ # `HttpPutResponseHopLimit` is set to `2`. For more information, see
46024
+ # [Configure the AMI][1] in the *Amazon Elastic Compute Cloud User
46025
+ # Guide*.
46026
+ #
46027
+ # <note markdown="1"> If you set the value to `v2.0`, make sure that your AMI software can
46028
+ # support IMDSv2.
46029
+ #
46030
+ # </note>
46031
+ #
46032
+ #
46033
+ #
46034
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
46035
+ #
46006
46036
  # @return [Types::RegisterImageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
46007
46037
  #
46008
46038
  # * {Types::RegisterImageResult#image_id #image_id} => String
@@ -46043,6 +46073,7 @@ module Aws::EC2
46043
46073
  # boot_mode: "legacy-bios", # accepts legacy-bios, uefi
46044
46074
  # tpm_support: "v2.0", # accepts v2.0
46045
46075
  # uefi_data: "StringType",
46076
+ # imds_support: "v2.0", # accepts v2.0
46046
46077
  # })
46047
46078
  #
46048
46079
  # @example Response structure
@@ -52133,7 +52164,7 @@ module Aws::EC2
52133
52164
  params: params,
52134
52165
  config: config)
52135
52166
  context[:gem_name] = 'aws-sdk-ec2'
52136
- context[:gem_version] = '1.339.0'
52167
+ context[:gem_version] = '1.341.0'
52137
52168
  Seahorse::Client::Request.new(handlers, context)
52138
52169
  end
52139
52170
 
@@ -1404,6 +1404,7 @@ module Aws::EC2
1404
1404
  ImageRecycleBinInfoList = Shapes::ListShape.new(name: 'ImageRecycleBinInfoList')
1405
1405
  ImageState = Shapes::StringShape.new(name: 'ImageState')
1406
1406
  ImageTypeValues = Shapes::StringShape.new(name: 'ImageTypeValues')
1407
+ ImdsSupportValues = Shapes::StringShape.new(name: 'ImdsSupportValues')
1407
1408
  ImportClientVpnClientCertificateRevocationListRequest = Shapes::StructureShape.new(name: 'ImportClientVpnClientCertificateRevocationListRequest')
1408
1409
  ImportClientVpnClientCertificateRevocationListResult = Shapes::StructureShape.new(name: 'ImportClientVpnClientCertificateRevocationListResult')
1409
1410
  ImportImageLicenseConfigurationRequest = Shapes::StructureShape.new(name: 'ImportImageLicenseConfigurationRequest')
@@ -6755,6 +6756,7 @@ module Aws::EC2
6755
6756
  DescribeVpcAttributeResult.add_member(:vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "vpcId"))
6756
6757
  DescribeVpcAttributeResult.add_member(:enable_dns_hostnames, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "enableDnsHostnames"))
6757
6758
  DescribeVpcAttributeResult.add_member(:enable_dns_support, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "enableDnsSupport"))
6759
+ DescribeVpcAttributeResult.add_member(:enable_network_address_usage_metrics, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "enableNetworkAddressUsageMetrics"))
6758
6760
  DescribeVpcAttributeResult.struct_class = Types::DescribeVpcAttributeResult
6759
6761
 
6760
6762
  DescribeVpcClassicLinkDnsSupportRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeVpcClassicLinkDnsSupportMaxResults, location_name: "maxResults"))
@@ -8351,6 +8353,7 @@ module Aws::EC2
8351
8353
  Image.add_member(:boot_mode, Shapes::ShapeRef.new(shape: BootModeValues, location_name: "bootMode"))
8352
8354
  Image.add_member(:tpm_support, Shapes::ShapeRef.new(shape: TpmSupportValues, location_name: "tpmSupport"))
8353
8355
  Image.add_member(:deprecation_time, Shapes::ShapeRef.new(shape: String, location_name: "deprecationTime"))
8356
+ Image.add_member(:imds_support, Shapes::ShapeRef.new(shape: ImdsSupportValues, location_name: "imdsSupport"))
8354
8357
  Image.struct_class = Types::Image
8355
8358
 
8356
8359
  ImageAttribute.add_member(:block_device_mappings, Shapes::ShapeRef.new(shape: BlockDeviceMappingList, location_name: "blockDeviceMapping"))
@@ -8365,6 +8368,7 @@ module Aws::EC2
8365
8368
  ImageAttribute.add_member(:tpm_support, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "tpmSupport"))
8366
8369
  ImageAttribute.add_member(:uefi_data, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "uefiData"))
8367
8370
  ImageAttribute.add_member(:last_launched_time, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "lastLaunchedTime"))
8371
+ ImageAttribute.add_member(:imds_support, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "imdsSupport"))
8368
8372
  ImageAttribute.struct_class = Types::ImageAttribute
8369
8373
 
8370
8374
  ImageDiskContainer.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
@@ -10269,6 +10273,7 @@ module Aws::EC2
10269
10273
  ModifyVpcAttributeRequest.add_member(:enable_dns_hostnames, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "EnableDnsHostnames"))
10270
10274
  ModifyVpcAttributeRequest.add_member(:enable_dns_support, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "EnableDnsSupport"))
10271
10275
  ModifyVpcAttributeRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "vpcId"))
10276
+ ModifyVpcAttributeRequest.add_member(:enable_network_address_usage_metrics, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "EnableNetworkAddressUsageMetrics"))
10272
10277
  ModifyVpcAttributeRequest.struct_class = Types::ModifyVpcAttributeRequest
10273
10278
 
10274
10279
  ModifyVpcEndpointConnectionNotificationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
@@ -11170,6 +11175,7 @@ module Aws::EC2
11170
11175
  RegisterImageRequest.add_member(:boot_mode, Shapes::ShapeRef.new(shape: BootModeValues, location_name: "BootMode"))
11171
11176
  RegisterImageRequest.add_member(:tpm_support, Shapes::ShapeRef.new(shape: TpmSupportValues, location_name: "TpmSupport"))
11172
11177
  RegisterImageRequest.add_member(:uefi_data, Shapes::ShapeRef.new(shape: StringType, location_name: "UefiData"))
11178
+ RegisterImageRequest.add_member(:imds_support, Shapes::ShapeRef.new(shape: ImdsSupportValues, location_name: "ImdsSupport"))
11173
11179
  RegisterImageRequest.struct_class = Types::RegisterImageRequest
11174
11180
 
11175
11181
  RegisterImageResult.add_member(:image_id, Shapes::ShapeRef.new(shape: String, location_name: "imageId"))
@@ -245,6 +245,22 @@ module Aws::EC2
245
245
  data[:deprecation_time]
246
246
  end
247
247
 
248
+ # If `v2.0`, it indicates that IMDSv2 is specified in the AMI. Instances
249
+ # launched from this AMI will have `HttpTokens` automatically set to
250
+ # `required` so that, by default, the instance requires that IMDSv2 is
251
+ # used when requesting instance metadata. In addition,
252
+ # `HttpPutResponseHopLimit` is set to `2`. For more information, see
253
+ # [Configure the AMI][1] in the *Amazon Elastic Compute Cloud User
254
+ # Guide*.
255
+ #
256
+ #
257
+ #
258
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
259
+ # @return [String]
260
+ def imds_support
261
+ data[:imds_support]
262
+ end
263
+
248
264
  # @!endgroup
249
265
 
250
266
  # @return [Client]
@@ -514,7 +530,7 @@ module Aws::EC2
514
530
  # @example Request syntax with placeholder values
515
531
  #
516
532
  # image.describe_attribute({
517
- # attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime
533
+ # attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport
518
534
  # dry_run: false,
519
535
  # })
520
536
  # @param [Hash] options ({})
@@ -1737,6 +1737,7 @@ module Aws::EC2
1737
1737
  # boot_mode: "legacy-bios", # accepts legacy-bios, uefi
1738
1738
  # tpm_support: "v2.0", # accepts v2.0
1739
1739
  # uefi_data: "StringType",
1740
+ # imds_support: "v2.0", # accepts v2.0
1740
1741
  # })
1741
1742
  # @param [Hash] options ({})
1742
1743
  # @option options [String] :image_location
@@ -1838,6 +1839,23 @@ module Aws::EC2
1838
1839
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceUefiData
1839
1840
  # [2]: https://github.com/awslabs/python-uefivars
1840
1841
  # [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
1842
+ # @option options [String] :imds_support
1843
+ # Set to `v2.0` to indicate that IMDSv2 is specified in the AMI.
1844
+ # Instances launched from this AMI will have `HttpTokens` automatically
1845
+ # set to `required` so that, by default, the instance requires that
1846
+ # IMDSv2 is used when requesting instance metadata. In addition,
1847
+ # `HttpPutResponseHopLimit` is set to `2`. For more information, see
1848
+ # [Configure the AMI][1] in the *Amazon Elastic Compute Cloud User
1849
+ # Guide*.
1850
+ #
1851
+ # <note markdown="1"> If you set the value to `v2.0`, make sure that your AMI software can
1852
+ # support IMDSv2.
1853
+ #
1854
+ # </note>
1855
+ #
1856
+ #
1857
+ #
1858
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
1841
1859
  # @return [Image]
1842
1860
  def register_image(options = {})
1843
1861
  resp = @client.register_image(options)
@@ -21301,7 +21301,7 @@ module Aws::EC2
21301
21301
  # data as a hash:
21302
21302
  #
21303
21303
  # {
21304
- # attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime
21304
+ # attribute: "description", # required, accepts description, kernel, ramdisk, launchPermission, productCodes, blockDeviceMapping, sriovNetSupport, bootMode, tpmSupport, uefiData, lastLaunchedTime, imdsSupport
21305
21305
  # image_id: "ImageId", # required
21306
21306
  # dry_run: false,
21307
21307
  # }
@@ -29464,7 +29464,7 @@ module Aws::EC2
29464
29464
  # data as a hash:
29465
29465
  #
29466
29466
  # {
29467
- # attribute: "enableDnsSupport", # required, accepts enableDnsSupport, enableDnsHostnames
29467
+ # attribute: "enableDnsSupport", # required, accepts enableDnsSupport, enableDnsHostnames, enableNetworkAddressUsageMetrics
29468
29468
  # vpc_id: "VpcId", # required
29469
29469
  # dry_run: false,
29470
29470
  # }
@@ -29511,12 +29511,18 @@ module Aws::EC2
29511
29511
  # it does not.
29512
29512
  # @return [Types::AttributeBooleanValue]
29513
29513
  #
29514
+ # @!attribute [rw] enable_network_address_usage_metrics
29515
+ # Indicates whether Network Address Usage metrics are enabled for your
29516
+ # VPC.
29517
+ # @return [Types::AttributeBooleanValue]
29518
+ #
29514
29519
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcAttributeResult AWS API Documentation
29515
29520
  #
29516
29521
  class DescribeVpcAttributeResult < Struct.new(
29517
29522
  :vpc_id,
29518
29523
  :enable_dns_hostnames,
29519
- :enable_dns_support)
29524
+ :enable_dns_support,
29525
+ :enable_network_address_usage_metrics)
29520
29526
  SENSITIVE = []
29521
29527
  include Aws::Structure
29522
29528
  end
@@ -39431,6 +39437,20 @@ module Aws::EC2
39431
39437
  # for seconds, Amazon EC2 rounds the seconds to the nearest minute.
39432
39438
  # @return [String]
39433
39439
  #
39440
+ # @!attribute [rw] imds_support
39441
+ # If `v2.0`, it indicates that IMDSv2 is specified in the AMI.
39442
+ # Instances launched from this AMI will have `HttpTokens`
39443
+ # automatically set to `required` so that, by default, the instance
39444
+ # requires that IMDSv2 is used when requesting instance metadata. In
39445
+ # addition, `HttpPutResponseHopLimit` is set to `2`. For more
39446
+ # information, see [Configure the AMI][1] in the *Amazon Elastic
39447
+ # Compute Cloud User Guide*.
39448
+ #
39449
+ #
39450
+ #
39451
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
39452
+ # @return [String]
39453
+ #
39434
39454
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Image AWS API Documentation
39435
39455
  #
39436
39456
  class Image < Struct.new(
@@ -39462,7 +39482,8 @@ module Aws::EC2
39462
39482
  :virtualization_type,
39463
39483
  :boot_mode,
39464
39484
  :tpm_support,
39465
- :deprecation_time)
39485
+ :deprecation_time,
39486
+ :imds_support)
39466
39487
  SENSITIVE = []
39467
39488
  include Aws::Structure
39468
39489
  end
@@ -39540,6 +39561,20 @@ module Aws::EC2
39540
39561
  # [1]: http://www.iso.org/iso/iso8601
39541
39562
  # @return [Types::AttributeValue]
39542
39563
  #
39564
+ # @!attribute [rw] imds_support
39565
+ # If `v2.0`, it indicates that IMDSv2 is specified in the AMI.
39566
+ # Instances launched from this AMI will have `HttpTokens`
39567
+ # automatically set to `required` so that, by default, the instance
39568
+ # requires that IMDSv2 is used when requesting instance metadata. In
39569
+ # addition, `HttpPutResponseHopLimit` is set to `2`. For more
39570
+ # information, see [Configure the AMI][1] in the *Amazon Elastic
39571
+ # Compute Cloud User Guide*.
39572
+ #
39573
+ #
39574
+ #
39575
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
39576
+ # @return [Types::AttributeValue]
39577
+ #
39543
39578
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImageAttribute AWS API Documentation
39544
39579
  #
39545
39580
  class ImageAttribute < Struct.new(
@@ -39554,7 +39589,8 @@ module Aws::EC2
39554
39589
  :boot_mode,
39555
39590
  :tpm_support,
39556
39591
  :uefi_data,
39557
- :last_launched_time)
39592
+ :last_launched_time,
39593
+ :imds_support)
39558
39594
  SENSITIVE = []
39559
39595
  include Aws::Structure
39560
39596
  end
@@ -51835,6 +51871,9 @@ module Aws::EC2
51835
51871
  # value: false,
51836
51872
  # },
51837
51873
  # vpc_id: "VpcId", # required
51874
+ # enable_network_address_usage_metrics: {
51875
+ # value: false,
51876
+ # },
51838
51877
  # }
51839
51878
  #
51840
51879
  # @!attribute [rw] enable_dns_hostnames
@@ -51863,12 +51902,18 @@ module Aws::EC2
51863
51902
  # The ID of the VPC.
51864
51903
  # @return [String]
51865
51904
  #
51905
+ # @!attribute [rw] enable_network_address_usage_metrics
51906
+ # Indicates whether Network Address Usage metrics are enabled for your
51907
+ # VPC.
51908
+ # @return [Types::AttributeBooleanValue]
51909
+ #
51866
51910
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyVpcAttributeRequest AWS API Documentation
51867
51911
  #
51868
51912
  class ModifyVpcAttributeRequest < Struct.new(
51869
51913
  :enable_dns_hostnames,
51870
51914
  :enable_dns_support,
51871
- :vpc_id)
51915
+ :vpc_id,
51916
+ :enable_network_address_usage_metrics)
51872
51917
  SENSITIVE = []
51873
51918
  include Aws::Structure
51874
51919
  end
@@ -56507,6 +56552,7 @@ module Aws::EC2
56507
56552
  # boot_mode: "legacy-bios", # accepts legacy-bios, uefi
56508
56553
  # tpm_support: "v2.0", # accepts v2.0
56509
56554
  # uefi_data: "StringType",
56555
+ # imds_support: "v2.0", # accepts v2.0
56510
56556
  # }
56511
56557
  #
56512
56558
  # @!attribute [rw] image_location
@@ -56642,6 +56688,25 @@ module Aws::EC2
56642
56688
  # [3]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/uefi-secure-boot.html
56643
56689
  # @return [String]
56644
56690
  #
56691
+ # @!attribute [rw] imds_support
56692
+ # Set to `v2.0` to indicate that IMDSv2 is specified in the AMI.
56693
+ # Instances launched from this AMI will have `HttpTokens`
56694
+ # automatically set to `required` so that, by default, the instance
56695
+ # requires that IMDSv2 is used when requesting instance metadata. In
56696
+ # addition, `HttpPutResponseHopLimit` is set to `2`. For more
56697
+ # information, see [Configure the AMI][1] in the *Amazon Elastic
56698
+ # Compute Cloud User Guide*.
56699
+ #
56700
+ # <note markdown="1"> If you set the value to `v2.0`, make sure that your AMI software can
56701
+ # support IMDSv2.
56702
+ #
56703
+ # </note>
56704
+ #
56705
+ #
56706
+ #
56707
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
56708
+ # @return [String]
56709
+ #
56645
56710
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RegisterImageRequest AWS API Documentation
56646
56711
  #
56647
56712
  class RegisterImageRequest < Struct.new(
@@ -56660,7 +56725,8 @@ module Aws::EC2
56660
56725
  :virtualization_type,
56661
56726
  :boot_mode,
56662
56727
  :tpm_support,
56663
- :uefi_data)
56728
+ :uefi_data,
56729
+ :imds_support)
56664
56730
  SENSITIVE = []
56665
56731
  include Aws::Structure
56666
56732
  end
@@ -646,7 +646,7 @@ module Aws::EC2
646
646
  # @example Request syntax with placeholder values
647
647
  #
648
648
  # vpc.describe_attribute({
649
- # attribute: "enableDnsSupport", # required, accepts enableDnsSupport, enableDnsHostnames
649
+ # attribute: "enableDnsSupport", # required, accepts enableDnsSupport, enableDnsHostnames, enableNetworkAddressUsageMetrics
650
650
  # dry_run: false,
651
651
  # })
652
652
  # @param [Hash] options ({})
@@ -751,6 +751,9 @@ module Aws::EC2
751
751
  # enable_dns_support: {
752
752
  # value: false,
753
753
  # },
754
+ # enable_network_address_usage_metrics: {
755
+ # value: false,
756
+ # },
754
757
  # })
755
758
  # @param [Hash] options ({})
756
759
  # @option options [Types::AttributeBooleanValue] :enable_dns_hostnames
@@ -771,6 +774,9 @@ module Aws::EC2
771
774
  #
772
775
  # You cannot modify the DNS resolution and DNS hostnames attributes in
773
776
  # the same request. Use separate requests for each attribute.
777
+ # @option options [Types::AttributeBooleanValue] :enable_network_address_usage_metrics
778
+ # Indicates whether Network Address Usage metrics are enabled for your
779
+ # VPC.
774
780
  # @return [EmptyStructure]
775
781
  def modify_attribute(options = {})
776
782
  options = options.merge(vpc_id: @id)
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.339.0'
75
+ GEM_VERSION = '1.341.0'
76
76
 
77
77
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ec2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.339.0
4
+ version: 1.341.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-29 00:00:00.000000000 Z
11
+ date: 2022-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4