aws-sdk-ec2 1.366.0 → 1.368.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.
@@ -1187,6 +1187,7 @@ module Aws::EC2
1187
1187
  EgressOnlyInternetGatewayId = Shapes::StringShape.new(name: 'EgressOnlyInternetGatewayId')
1188
1188
  EgressOnlyInternetGatewayIdList = Shapes::ListShape.new(name: 'EgressOnlyInternetGatewayIdList')
1189
1189
  EgressOnlyInternetGatewayList = Shapes::ListShape.new(name: 'EgressOnlyInternetGatewayList')
1190
+ EipAllocationPublicIp = Shapes::StringShape.new(name: 'EipAllocationPublicIp')
1190
1191
  EipAssociationIdList = Shapes::ListShape.new(name: 'EipAssociationIdList')
1191
1192
  ElasticGpuAssociation = Shapes::StructureShape.new(name: 'ElasticGpuAssociation')
1192
1193
  ElasticGpuAssociationList = Shapes::ListShape.new(name: 'ElasticGpuAssociationList')
@@ -1559,6 +1560,7 @@ module Aws::EC2
1559
1560
  InstanceBlockDeviceMappingList = Shapes::ListShape.new(name: 'InstanceBlockDeviceMappingList')
1560
1561
  InstanceBlockDeviceMappingSpecification = Shapes::StructureShape.new(name: 'InstanceBlockDeviceMappingSpecification')
1561
1562
  InstanceBlockDeviceMappingSpecificationList = Shapes::ListShape.new(name: 'InstanceBlockDeviceMappingSpecificationList')
1563
+ InstanceBootModeValues = Shapes::StringShape.new(name: 'InstanceBootModeValues')
1562
1564
  InstanceCapacity = Shapes::StructureShape.new(name: 'InstanceCapacity')
1563
1565
  InstanceCount = Shapes::StructureShape.new(name: 'InstanceCount')
1564
1566
  InstanceCountList = Shapes::ListShape.new(name: 'InstanceCountList')
@@ -3344,7 +3346,7 @@ module Aws::EC2
3344
3346
 
3345
3347
  AssociateAddressRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, location_name: "AllocationId"))
3346
3348
  AssociateAddressRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, location_name: "InstanceId"))
3347
- AssociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: String, location_name: "PublicIp"))
3349
+ AssociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: EipAllocationPublicIp, location_name: "PublicIp"))
3348
3350
  AssociateAddressRequest.add_member(:allow_reassociation, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowReassociation"))
3349
3351
  AssociateAddressRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
3350
3352
  AssociateAddressRequest.add_member(:network_interface_id, Shapes::ShapeRef.new(shape: NetworkInterfaceId, location_name: "networkInterfaceId"))
@@ -4309,7 +4311,7 @@ module Aws::EC2
4309
4311
  CreateCoipPoolResult.add_member(:coip_pool, Shapes::ShapeRef.new(shape: CoipPool, location_name: "coipPool"))
4310
4312
  CreateCoipPoolResult.struct_class = Types::CreateCoipPoolResult
4311
4313
 
4312
- CreateCustomerGatewayRequest.add_member(:bgp_asn, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "BgpAsn"))
4314
+ CreateCustomerGatewayRequest.add_member(:bgp_asn, Shapes::ShapeRef.new(shape: Integer, location_name: "BgpAsn"))
4313
4315
  CreateCustomerGatewayRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: String, location_name: "PublicIp"))
4314
4316
  CreateCustomerGatewayRequest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: String, location_name: "CertificateArn"))
4315
4317
  CreateCustomerGatewayRequest.add_member(:type, Shapes::ShapeRef.new(shape: GatewayType, required: true, location_name: "Type"))
@@ -7635,7 +7637,7 @@ module Aws::EC2
7635
7637
  DisableVpcClassicLinkResult.struct_class = Types::DisableVpcClassicLinkResult
7636
7638
 
7637
7639
  DisassociateAddressRequest.add_member(:association_id, Shapes::ShapeRef.new(shape: ElasticIpAssociationId, location_name: "AssociationId"))
7638
- DisassociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: String, location_name: "PublicIp"))
7640
+ DisassociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: EipAllocationPublicIp, location_name: "PublicIp"))
7639
7641
  DisassociateAddressRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
7640
7642
  DisassociateAddressRequest.struct_class = Types::DisassociateAddressRequest
7641
7643
 
@@ -9322,6 +9324,7 @@ module Aws::EC2
9322
9324
  Instance.add_member(:ipv_6_address, Shapes::ShapeRef.new(shape: String, location_name: "ipv6Address"))
9323
9325
  Instance.add_member(:tpm_support, Shapes::ShapeRef.new(shape: String, location_name: "tpmSupport"))
9324
9326
  Instance.add_member(:maintenance_options, Shapes::ShapeRef.new(shape: InstanceMaintenanceOptions, location_name: "maintenanceOptions"))
9327
+ Instance.add_member(:current_instance_boot_mode, Shapes::ShapeRef.new(shape: InstanceBootModeValues, location_name: "currentInstanceBootMode"))
9325
9328
  Instance.struct_class = Types::Instance
9326
9329
 
9327
9330
  InstanceAttribute.add_member(:groups, Shapes::ShapeRef.new(shape: GroupIdentifierList, location_name: "groupSet"))
@@ -10689,6 +10692,7 @@ module Aws::EC2
10689
10692
  ModifyImageAttributeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
10690
10693
  ModifyImageAttributeRequest.add_member(:organization_arns, Shapes::ShapeRef.new(shape: OrganizationArnStringList, location_name: "OrganizationArn"))
10691
10694
  ModifyImageAttributeRequest.add_member(:organizational_unit_arns, Shapes::ShapeRef.new(shape: OrganizationalUnitArnStringList, location_name: "OrganizationalUnitArn"))
10695
+ ModifyImageAttributeRequest.add_member(:imds_support, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "ImdsSupport"))
10692
10696
  ModifyImageAttributeRequest.struct_class = Types::ModifyImageAttributeRequest
10693
10697
 
10694
10698
  ModifyInstanceAttributeRequest.add_member(:source_dest_check, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "SourceDestCheck"))
@@ -583,12 +583,13 @@ module Aws::EC2
583
583
  # dry_run: false,
584
584
  # organization_arns: ["String"],
585
585
  # organizational_unit_arns: ["String"],
586
+ # imds_support: "value", # value <Hash,Array,String,Numeric,Boolean,IO,Set,nil>
586
587
  # })
587
588
  # @param [Hash] options ({})
588
589
  # @option options [String] :attribute
589
590
  # The name of the attribute to modify.
590
591
  #
591
- # Valid values: `description` \| `launchPermission`
592
+ # Valid values: `description` \| `imdsSupport` \| `launchPermission`
592
593
  # @option options [Types::AttributeValue] :description
593
594
  # A new description for the AMI.
594
595
  # @option options [Types::LaunchPermissionModifications] :launch_permission
@@ -606,7 +607,7 @@ module Aws::EC2
606
607
  # when the `Attribute` parameter is `launchPermission`.
607
608
  # @option options [String] :value
608
609
  # The value of the attribute being modified. This parameter can be used
609
- # only when the `Attribute` parameter is `description`.
610
+ # only when the `Attribute` parameter is `description` or `imdsSupport`.
610
611
  # @option options [Boolean] :dry_run
611
612
  # Checks whether you have the required permissions for the action,
612
613
  # without actually making the request, and provides an error response.
@@ -619,6 +620,21 @@ module Aws::EC2
619
620
  # The Amazon Resource Name (ARN) of an organizational unit (OU). This
620
621
  # parameter can be used only when the `Attribute` parameter is
621
622
  # `launchPermission`.
623
+ # @option options [Types::AttributeValue] :imds_support
624
+ # Set to `v2.0` to indicate that IMDSv2 is specified in the AMI.
625
+ # Instances launched from this AMI will have `HttpTokens` automatically
626
+ # set to `required` so that, by default, the instance requires that
627
+ # IMDSv2 is used when requesting instance metadata. In addition,
628
+ # `HttpPutResponseHopLimit` is set to `2`. For more information, see
629
+ # [Configure the AMI][1] in the *Amazon EC2 User Guide*.
630
+ #
631
+ # Do not use this parameter unless your AMI software supports IMDSv2.
632
+ # After you set the value to `v2.0`, you can't undo it. The only way to
633
+ # “reset” your AMI is to create a new AMI from the underlying snapshot.
634
+ #
635
+ #
636
+ #
637
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-IMDS-new-instances.html#configure-IMDS-new-instances-ami-configuration
622
638
  # @return [EmptyStructure]
623
639
  def modify_attribute(options = {})
624
640
  options = options.merge(image_id: @id)
@@ -338,8 +338,18 @@ module Aws::EC2
338
338
  data[:enclave_options]
339
339
  end
340
340
 
341
- # The boot mode of the instance. For more information, see [Boot
342
- # modes][1] in the *Amazon EC2 User Guide*.
341
+ # The boot mode that was specified by the AMI. If the value is
342
+ # `uefi-preferred`, the AMI supports both UEFI and Legacy BIOS. The
343
+ # `currentInstanceBootMode` parameter is the boot mode that is used to
344
+ # boot the instance at launch or start.
345
+ #
346
+ # <note markdown="1"> The operating system contained in the AMI must be configured to
347
+ # support the specified boot mode.
348
+ #
349
+ # </note>
350
+ #
351
+ # For more information, see [Boot modes][1] in the *Amazon EC2 User
352
+ # Guide*.
343
353
  #
344
354
  #
345
355
  #
@@ -408,6 +418,18 @@ module Aws::EC2
408
418
  data[:maintenance_options]
409
419
  end
410
420
 
421
+ # The boot mode that is used to boot the instance at launch or start.
422
+ # For more information, see [Boot modes][1] in the *Amazon EC2 User
423
+ # Guide*.
424
+ #
425
+ #
426
+ #
427
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html
428
+ # @return [String]
429
+ def current_instance_boot_mode
430
+ data[:current_instance_boot_mode]
431
+ end
432
+
411
433
  # @!endgroup
412
434
 
413
435
  # @return [Client]
@@ -205,7 +205,7 @@ module Aws::EC2
205
205
  # @example Request syntax with placeholder values
206
206
  #
207
207
  # network_interface_association.delete({
208
- # public_ip: "String",
208
+ # public_ip: "EipAllocationPublicIp",
209
209
  # dry_run: false,
210
210
  # })
211
211
  # @param [Hash] options ({})
@@ -1770,7 +1770,7 @@ module Aws::EC2
1770
1770
  # root_device_name: "String",
1771
1771
  # sriov_net_support: "String",
1772
1772
  # virtualization_type: "String",
1773
- # boot_mode: "legacy-bios", # accepts legacy-bios, uefi
1773
+ # boot_mode: "legacy-bios", # accepts legacy-bios, uefi, uefi-preferred
1774
1774
  # tpm_support: "v2.0", # accepts v2.0
1775
1775
  # uefi_data: "StringType",
1776
1776
  # imds_support: "v2.0", # accepts v2.0
@@ -1859,8 +1859,16 @@ module Aws::EC2
1859
1859
  #
1860
1860
  # Default: `paravirtual`
1861
1861
  # @option options [String] :boot_mode
1862
- # The boot mode of the AMI. For more information, see [Boot modes][1] in
1863
- # the *Amazon EC2 User Guide*.
1862
+ # The boot mode of the AMI. A value of `uefi-preferred` indicates that
1863
+ # the AMI supports both UEFI and Legacy BIOS.
1864
+ #
1865
+ # <note markdown="1"> The operating system contained in the AMI must be configured to
1866
+ # support the specified boot mode.
1867
+ #
1868
+ # </note>
1869
+ #
1870
+ # For more information, see [Boot modes][1] in the *Amazon EC2 User
1871
+ # Guide*.
1864
1872
  #
1865
1873
  #
1866
1874
  #