aws-sdk-ec2 1.366.0 → 1.367.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +217 -125
- data/lib/aws-sdk-ec2/client_api.rb +4 -2
- data/lib/aws-sdk-ec2/image.rb +18 -2
- data/lib/aws-sdk-ec2/network_interface_association.rb +1 -1
- data/lib/aws-sdk-ec2/types.rb +245 -137
- data/lib/aws-sdk-ec2/vpc_address.rb +1 -1
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
@@ -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')
|
@@ -3344,7 +3345,7 @@ module Aws::EC2
|
|
3344
3345
|
|
3345
3346
|
AssociateAddressRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, location_name: "AllocationId"))
|
3346
3347
|
AssociateAddressRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, location_name: "InstanceId"))
|
3347
|
-
AssociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape:
|
3348
|
+
AssociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: EipAllocationPublicIp, location_name: "PublicIp"))
|
3348
3349
|
AssociateAddressRequest.add_member(:allow_reassociation, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowReassociation"))
|
3349
3350
|
AssociateAddressRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
3350
3351
|
AssociateAddressRequest.add_member(:network_interface_id, Shapes::ShapeRef.new(shape: NetworkInterfaceId, location_name: "networkInterfaceId"))
|
@@ -7635,7 +7636,7 @@ module Aws::EC2
|
|
7635
7636
|
DisableVpcClassicLinkResult.struct_class = Types::DisableVpcClassicLinkResult
|
7636
7637
|
|
7637
7638
|
DisassociateAddressRequest.add_member(:association_id, Shapes::ShapeRef.new(shape: ElasticIpAssociationId, location_name: "AssociationId"))
|
7638
|
-
DisassociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape:
|
7639
|
+
DisassociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: EipAllocationPublicIp, location_name: "PublicIp"))
|
7639
7640
|
DisassociateAddressRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
7640
7641
|
DisassociateAddressRequest.struct_class = Types::DisassociateAddressRequest
|
7641
7642
|
|
@@ -10689,6 +10690,7 @@ module Aws::EC2
|
|
10689
10690
|
ModifyImageAttributeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
10690
10691
|
ModifyImageAttributeRequest.add_member(:organization_arns, Shapes::ShapeRef.new(shape: OrganizationArnStringList, location_name: "OrganizationArn"))
|
10691
10692
|
ModifyImageAttributeRequest.add_member(:organizational_unit_arns, Shapes::ShapeRef.new(shape: OrganizationalUnitArnStringList, location_name: "OrganizationalUnitArn"))
|
10693
|
+
ModifyImageAttributeRequest.add_member(:imds_support, Shapes::ShapeRef.new(shape: AttributeValue, location_name: "ImdsSupport"))
|
10692
10694
|
ModifyImageAttributeRequest.struct_class = Types::ModifyImageAttributeRequest
|
10693
10695
|
|
10694
10696
|
ModifyInstanceAttributeRequest.add_member(:source_dest_check, Shapes::ShapeRef.new(shape: AttributeBooleanValue, location_name: "SourceDestCheck"))
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -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)
|
@@ -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: "
|
208
|
+
# public_ip: "EipAllocationPublicIp",
|
209
209
|
# dry_run: false,
|
210
210
|
# })
|
211
211
|
# @param [Hash] options ({})
|