aws-sdk-ec2 1.365.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +236 -121
- data/lib/aws-sdk-ec2/client_api.rb +8 -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 +275 -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')
|
@@ -1472,6 +1473,7 @@ module Aws::EC2
|
|
1472
1473
|
HostInstance = Shapes::StructureShape.new(name: 'HostInstance')
|
1473
1474
|
HostInstanceList = Shapes::ListShape.new(name: 'HostInstanceList')
|
1474
1475
|
HostList = Shapes::ListShape.new(name: 'HostList')
|
1476
|
+
HostMaintenance = Shapes::StringShape.new(name: 'HostMaintenance')
|
1475
1477
|
HostOffering = Shapes::StructureShape.new(name: 'HostOffering')
|
1476
1478
|
HostOfferingSet = Shapes::ListShape.new(name: 'HostOfferingSet')
|
1477
1479
|
HostProperties = Shapes::StructureShape.new(name: 'HostProperties')
|
@@ -3193,6 +3195,7 @@ module Aws::EC2
|
|
3193
3195
|
AllocateHostsRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3194
3196
|
AllocateHostsRequest.add_member(:host_recovery, Shapes::ShapeRef.new(shape: HostRecovery, location_name: "HostRecovery"))
|
3195
3197
|
AllocateHostsRequest.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "OutpostArn"))
|
3198
|
+
AllocateHostsRequest.add_member(:host_maintenance, Shapes::ShapeRef.new(shape: HostMaintenance, location_name: "HostMaintenance"))
|
3196
3199
|
AllocateHostsRequest.struct_class = Types::AllocateHostsRequest
|
3197
3200
|
|
3198
3201
|
AllocateHostsResult.add_member(:host_ids, Shapes::ShapeRef.new(shape: ResponseHostIdList, location_name: "hostIdSet"))
|
@@ -3342,7 +3345,7 @@ module Aws::EC2
|
|
3342
3345
|
|
3343
3346
|
AssociateAddressRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, location_name: "AllocationId"))
|
3344
3347
|
AssociateAddressRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceId, location_name: "InstanceId"))
|
3345
|
-
AssociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape:
|
3348
|
+
AssociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: EipAllocationPublicIp, location_name: "PublicIp"))
|
3346
3349
|
AssociateAddressRequest.add_member(:allow_reassociation, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowReassociation"))
|
3347
3350
|
AssociateAddressRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
3348
3351
|
AssociateAddressRequest.add_member(:network_interface_id, Shapes::ShapeRef.new(shape: NetworkInterfaceId, location_name: "networkInterfaceId"))
|
@@ -7633,7 +7636,7 @@ module Aws::EC2
|
|
7633
7636
|
DisableVpcClassicLinkResult.struct_class = Types::DisableVpcClassicLinkResult
|
7634
7637
|
|
7635
7638
|
DisassociateAddressRequest.add_member(:association_id, Shapes::ShapeRef.new(shape: ElasticIpAssociationId, location_name: "AssociationId"))
|
7636
|
-
DisassociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape:
|
7639
|
+
DisassociateAddressRequest.add_member(:public_ip, Shapes::ShapeRef.new(shape: EipAllocationPublicIp, location_name: "PublicIp"))
|
7637
7640
|
DisassociateAddressRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
7638
7641
|
DisassociateAddressRequest.struct_class = Types::DisassociateAddressRequest
|
7639
7642
|
|
@@ -8919,6 +8922,7 @@ module Aws::EC2
|
|
8919
8922
|
Host.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "availabilityZoneId"))
|
8920
8923
|
Host.add_member(:member_of_service_linked_resource_group, Shapes::ShapeRef.new(shape: Boolean, location_name: "memberOfServiceLinkedResourceGroup"))
|
8921
8924
|
Host.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "outpostArn"))
|
8925
|
+
Host.add_member(:host_maintenance, Shapes::ShapeRef.new(shape: HostMaintenance, location_name: "hostMaintenance"))
|
8922
8926
|
Host.struct_class = Types::Host
|
8923
8927
|
|
8924
8928
|
HostInstance.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "instanceId"))
|
@@ -10658,6 +10662,7 @@ module Aws::EC2
|
|
10658
10662
|
ModifyHostsRequest.add_member(:host_recovery, Shapes::ShapeRef.new(shape: HostRecovery, location_name: "HostRecovery"))
|
10659
10663
|
ModifyHostsRequest.add_member(:instance_type, Shapes::ShapeRef.new(shape: String, location_name: "InstanceType"))
|
10660
10664
|
ModifyHostsRequest.add_member(:instance_family, Shapes::ShapeRef.new(shape: String, location_name: "InstanceFamily"))
|
10665
|
+
ModifyHostsRequest.add_member(:host_maintenance, Shapes::ShapeRef.new(shape: HostMaintenance, location_name: "HostMaintenance"))
|
10661
10666
|
ModifyHostsRequest.struct_class = Types::ModifyHostsRequest
|
10662
10667
|
|
10663
10668
|
ModifyHostsResult.add_member(:successful, Shapes::ShapeRef.new(shape: ResponseHostIdList, location_name: "successful"))
|
@@ -10685,6 +10690,7 @@ module Aws::EC2
|
|
10685
10690
|
ModifyImageAttributeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
10686
10691
|
ModifyImageAttributeRequest.add_member(:organization_arns, Shapes::ShapeRef.new(shape: OrganizationArnStringList, location_name: "OrganizationArn"))
|
10687
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"))
|
10688
10694
|
ModifyImageAttributeRequest.struct_class = Types::ModifyImageAttributeRequest
|
10689
10695
|
|
10690
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 ({})
|