aws-sdk-ec2 1.432.0 → 1.437.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +169 -68
- data/lib/aws-sdk-ec2/client_api.rb +10 -0
- data/lib/aws-sdk-ec2/instance.rb +10 -2
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +1 -0
- data/lib/aws-sdk-ec2/resource.rb +27 -9
- data/lib/aws-sdk-ec2/subnet.rb +14 -8
- data/lib/aws-sdk-ec2/types.rb +420 -168
- data/lib/aws-sdk-ec2/vpc.rb +21 -0
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/classic_address.rbs +102 -0
- data/sig/client.rbs +13229 -0
- data/sig/dhcp_options.rbs +84 -0
- data/sig/errors.rbs +16 -0
- data/sig/image.rbs +213 -0
- data/sig/instance.rbs +557 -0
- data/sig/internet_gateway.rbs +91 -0
- data/sig/key_pair.rbs +54 -0
- data/sig/key_pair_info.rbs +63 -0
- data/sig/nat_gateway.rbs +107 -0
- data/sig/network_acl.rbs +144 -0
- data/sig/network_interface.rbs +232 -0
- data/sig/network_interface_association.rbs +62 -0
- data/sig/placement_group.rbs +78 -0
- data/sig/resource.rbs +1009 -0
- data/sig/route.rbs +113 -0
- data/sig/route_table.rbs +117 -0
- data/sig/route_table_association.rbs +69 -0
- data/sig/security_group.rbs +308 -0
- data/sig/snapshot.rbs +188 -0
- data/sig/subnet.rbs +422 -0
- data/sig/tag.rbs +63 -0
- data/sig/types.rbs +15049 -0
- data/sig/volume.rbs +203 -0
- data/sig/vpc.rbs +398 -0
- data/sig/vpc_address.rbs +98 -0
- data/sig/vpc_peering_connection.rbs +84 -0
- data/sig/waiters.rbs +664 -0
- metadata +36 -8
@@ -4898,9 +4898,11 @@ module Aws::EC2
|
|
4898
4898
|
CreateNetworkAclRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
4899
4899
|
CreateNetworkAclRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "vpcId"))
|
4900
4900
|
CreateNetworkAclRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
4901
|
+
CreateNetworkAclRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
4901
4902
|
CreateNetworkAclRequest.struct_class = Types::CreateNetworkAclRequest
|
4902
4903
|
|
4903
4904
|
CreateNetworkAclResult.add_member(:network_acl, Shapes::ShapeRef.new(shape: NetworkAcl, location_name: "networkAcl"))
|
4905
|
+
CreateNetworkAclResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
|
4904
4906
|
CreateNetworkAclResult.struct_class = Types::CreateNetworkAclResult
|
4905
4907
|
|
4906
4908
|
CreateNetworkInsightsAccessScopeRequest.add_member(:match_paths, Shapes::ShapeRef.new(shape: AccessScopePathListRequest, location_name: "MatchPath"))
|
@@ -5037,9 +5039,11 @@ module Aws::EC2
|
|
5037
5039
|
CreateRouteTableRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
5038
5040
|
CreateRouteTableRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "vpcId"))
|
5039
5041
|
CreateRouteTableRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
5042
|
+
CreateRouteTableRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
5040
5043
|
CreateRouteTableRequest.struct_class = Types::CreateRouteTableRequest
|
5041
5044
|
|
5042
5045
|
CreateRouteTableResult.add_member(:route_table, Shapes::ShapeRef.new(shape: RouteTable, location_name: "routeTable"))
|
5046
|
+
CreateRouteTableResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
|
5043
5047
|
CreateRouteTableResult.struct_class = Types::CreateRouteTableResult
|
5044
5048
|
|
5045
5049
|
CreateSecurityGroupRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, required: true, location_name: "GroupDescription"))
|
@@ -8201,6 +8205,8 @@ module Aws::EC2
|
|
8201
8205
|
EbsInstanceBlockDevice.add_member(:delete_on_termination, Shapes::ShapeRef.new(shape: Boolean, location_name: "deleteOnTermination"))
|
8202
8206
|
EbsInstanceBlockDevice.add_member(:status, Shapes::ShapeRef.new(shape: AttachmentStatus, location_name: "status"))
|
8203
8207
|
EbsInstanceBlockDevice.add_member(:volume_id, Shapes::ShapeRef.new(shape: String, location_name: "volumeId"))
|
8208
|
+
EbsInstanceBlockDevice.add_member(:associated_resource, Shapes::ShapeRef.new(shape: String, location_name: "associatedResource"))
|
8209
|
+
EbsInstanceBlockDevice.add_member(:volume_owner_id, Shapes::ShapeRef.new(shape: String, location_name: "volumeOwnerId"))
|
8204
8210
|
EbsInstanceBlockDevice.struct_class = Types::EbsInstanceBlockDevice
|
8205
8211
|
|
8206
8212
|
EbsInstanceBlockDeviceSpecification.add_member(:delete_on_termination, Shapes::ShapeRef.new(shape: Boolean, location_name: "deleteOnTermination"))
|
@@ -10130,6 +10136,7 @@ module Aws::EC2
|
|
10130
10136
|
InstanceRequirements.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiB, location_name: "acceleratorTotalMemoryMiB"))
|
10131
10137
|
InstanceRequirements.add_member(:network_bandwidth_gbps, Shapes::ShapeRef.new(shape: NetworkBandwidthGbps, location_name: "networkBandwidthGbps"))
|
10132
10138
|
InstanceRequirements.add_member(:allowed_instance_types, Shapes::ShapeRef.new(shape: AllowedInstanceTypeSet, location_name: "allowedInstanceTypeSet"))
|
10139
|
+
InstanceRequirements.add_member(:max_spot_price_as_percentage_of_optimal_on_demand_price, Shapes::ShapeRef.new(shape: Integer, location_name: "maxSpotPriceAsPercentageOfOptimalOnDemandPrice"))
|
10133
10140
|
InstanceRequirements.struct_class = Types::InstanceRequirements
|
10134
10141
|
|
10135
10142
|
InstanceRequirementsRequest.add_member(:v_cpu_count, Shapes::ShapeRef.new(shape: VCpuCountRangeRequest, required: true, location_name: "VCpuCount"))
|
@@ -10155,6 +10162,7 @@ module Aws::EC2
|
|
10155
10162
|
InstanceRequirementsRequest.add_member(:accelerator_total_memory_mi_b, Shapes::ShapeRef.new(shape: AcceleratorTotalMemoryMiBRequest, location_name: "AcceleratorTotalMemoryMiB"))
|
10156
10163
|
InstanceRequirementsRequest.add_member(:network_bandwidth_gbps, Shapes::ShapeRef.new(shape: NetworkBandwidthGbpsRequest, location_name: "NetworkBandwidthGbps"))
|
10157
10164
|
InstanceRequirementsRequest.add_member(:allowed_instance_types, Shapes::ShapeRef.new(shape: AllowedInstanceTypeSet, location_name: "AllowedInstanceType"))
|
10165
|
+
InstanceRequirementsRequest.add_member(:max_spot_price_as_percentage_of_optimal_on_demand_price, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxSpotPriceAsPercentageOfOptimalOnDemandPrice"))
|
10158
10166
|
InstanceRequirementsRequest.struct_class = Types::InstanceRequirementsRequest
|
10159
10167
|
|
10160
10168
|
InstanceRequirementsWithMetadataRequest.add_member(:architecture_types, Shapes::ShapeRef.new(shape: ArchitectureTypeSet, location_name: "ArchitectureType"))
|
@@ -15216,6 +15224,8 @@ module Aws::EC2
|
|
15216
15224
|
VolumeAttachment.add_member(:state, Shapes::ShapeRef.new(shape: VolumeAttachmentState, location_name: "status"))
|
15217
15225
|
VolumeAttachment.add_member(:volume_id, Shapes::ShapeRef.new(shape: String, location_name: "volumeId"))
|
15218
15226
|
VolumeAttachment.add_member(:delete_on_termination, Shapes::ShapeRef.new(shape: Boolean, location_name: "deleteOnTermination"))
|
15227
|
+
VolumeAttachment.add_member(:associated_resource, Shapes::ShapeRef.new(shape: String, location_name: "associatedResource"))
|
15228
|
+
VolumeAttachment.add_member(:instance_owning_service, Shapes::ShapeRef.new(shape: String, location_name: "instanceOwningService"))
|
15219
15229
|
VolumeAttachment.struct_class = Types::VolumeAttachment
|
15220
15230
|
|
15221
15231
|
VolumeAttachmentList.member = Shapes::ShapeRef.new(shape: VolumeAttachment, location_name: "item")
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -221,7 +221,13 @@ module Aws::EC2
|
|
221
221
|
data[:instance_lifecycle]
|
222
222
|
end
|
223
223
|
|
224
|
-
#
|
224
|
+
# Deprecated.
|
225
|
+
#
|
226
|
+
# <note markdown="1"> Amazon Elastic Graphics reached end of life on January 8, 2024. For
|
227
|
+
# workloads that require graphics acceleration, we recommend that you
|
228
|
+
# use Amazon EC2 G4ad, G4dn, or G5 instances.
|
229
|
+
#
|
230
|
+
# </note>
|
225
231
|
# @return [Array<Types::ElasticGpuAssociation>]
|
226
232
|
def elastic_gpu_associations
|
227
233
|
data[:elastic_gpu_associations]
|
@@ -1088,7 +1094,9 @@ module Aws::EC2
|
|
1088
1094
|
# Modifies the `DeleteOnTermination` attribute for volumes that are
|
1089
1095
|
# currently attached. The volume must be owned by the caller. If no
|
1090
1096
|
# value is specified for `DeleteOnTermination`, the default is `true`
|
1091
|
-
# and the volume is deleted when the instance is terminated.
|
1097
|
+
# and the volume is deleted when the instance is terminated. You can't
|
1098
|
+
# modify the `DeleteOnTermination` attribute for volumes that are
|
1099
|
+
# attached to Fargate tasks.
|
1092
1100
|
#
|
1093
1101
|
# To add instance store volumes to an Amazon EBS-backed instance, you
|
1094
1102
|
# must add them when you launch the instance. For more information, see
|
@@ -14,6 +14,7 @@ module Aws::EC2
|
|
14
14
|
option(
|
15
15
|
:endpoint_provider,
|
16
16
|
doc_type: 'Aws::EC2::EndpointProvider',
|
17
|
+
rbs_type: 'untyped',
|
17
18
|
docstring: 'The endpoint provider used to resolve endpoints. Any '\
|
18
19
|
'object that responds to `#resolve_endpoint(parameters)` '\
|
19
20
|
'where `parameters` is a Struct similar to '\
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -481,14 +481,13 @@ module Aws::EC2
|
|
481
481
|
# You cannot specify this option and the network interfaces option in
|
482
482
|
# the same request.
|
483
483
|
# @option options [Array<Types::ElasticGpuSpecification>] :elastic_gpu_specification
|
484
|
-
#
|
485
|
-
# resource that you can attach to your Windows instance to accelerate
|
486
|
-
# the graphics performance of your applications. For more information,
|
487
|
-
# see [Amazon EC2 Elastic GPUs][1] in the *Amazon EC2 User Guide*.
|
484
|
+
# Deprecated.
|
488
485
|
#
|
486
|
+
# <note markdown="1"> Amazon Elastic Graphics reached end of life on January 8, 2024. For
|
487
|
+
# workloads that require graphics acceleration, we recommend that you
|
488
|
+
# use Amazon EC2 G4ad, G4dn, or G5 instances.
|
489
489
|
#
|
490
|
-
#
|
491
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html
|
490
|
+
# </note>
|
492
491
|
# @option options [Array<Types::ElasticInferenceAccelerator>] :elastic_inference_accelerators
|
493
492
|
# An elastic inference accelerator to associate with the instance.
|
494
493
|
# Elastic inference accelerators are a resource you can attach to your
|
@@ -518,8 +517,6 @@ module Aws::EC2
|
|
518
517
|
#
|
519
518
|
# * Volumes
|
520
519
|
#
|
521
|
-
# * Elastic graphics
|
522
|
-
#
|
523
520
|
# * Spot Instance requests
|
524
521
|
#
|
525
522
|
# * Network interfaces
|
@@ -769,7 +766,7 @@ module Aws::EC2
|
|
769
766
|
# disassociate it.
|
770
767
|
# @option options [String] :client_token
|
771
768
|
# Unique, case-sensitive identifier that you provide to ensure the
|
772
|
-
# idempotency of the request. For more information, see [
|
769
|
+
# idempotency of the request. For more information, see [Ensuring
|
773
770
|
# idempotency][1].
|
774
771
|
#
|
775
772
|
# Constraint: Maximum 64 ASCII characters.
|
@@ -845,6 +842,7 @@ module Aws::EC2
|
|
845
842
|
# ],
|
846
843
|
# },
|
847
844
|
# ],
|
845
|
+
# client_token: "String",
|
848
846
|
# })
|
849
847
|
# @param [Hash] options ({})
|
850
848
|
# @option options [Boolean] :dry_run
|
@@ -856,6 +854,14 @@ module Aws::EC2
|
|
856
854
|
# The ID of the VPC.
|
857
855
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
858
856
|
# The tags to assign to the network ACL.
|
857
|
+
# @option options [String] :client_token
|
858
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
859
|
+
# idempotency of the request. For more information, see [Ensuring
|
860
|
+
# idempotency][1].
|
861
|
+
#
|
862
|
+
#
|
863
|
+
#
|
864
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html
|
859
865
|
# @return [NetworkAcl]
|
860
866
|
def create_network_acl(options = {})
|
861
867
|
resp = Aws::Plugins::UserAgent.feature('resource') do
|
@@ -1114,6 +1120,7 @@ module Aws::EC2
|
|
1114
1120
|
# ],
|
1115
1121
|
# },
|
1116
1122
|
# ],
|
1123
|
+
# client_token: "String",
|
1117
1124
|
# })
|
1118
1125
|
# @param [Hash] options ({})
|
1119
1126
|
# @option options [Boolean] :dry_run
|
@@ -1125,6 +1132,14 @@ module Aws::EC2
|
|
1125
1132
|
# The ID of the VPC.
|
1126
1133
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
1127
1134
|
# The tags to assign to the route table.
|
1135
|
+
# @option options [String] :client_token
|
1136
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
1137
|
+
# idempotency of the request. For more information, see [Ensuring
|
1138
|
+
# idempotency][1].
|
1139
|
+
#
|
1140
|
+
#
|
1141
|
+
#
|
1142
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html
|
1128
1143
|
# @return [RouteTable]
|
1129
1144
|
def create_route_table(options = {})
|
1130
1145
|
resp = Aws::Plugins::UserAgent.feature('resource') do
|
@@ -3475,6 +3490,9 @@ module Aws::EC2
|
|
3475
3490
|
# @option options [Array<Types::Filter>] :filters
|
3476
3491
|
# The filters.
|
3477
3492
|
#
|
3493
|
+
# * `association.gateway-id` - The ID of the gateway involved in the
|
3494
|
+
# association.
|
3495
|
+
#
|
3478
3496
|
# * `association.route-table-association-id` - The ID of an association
|
3479
3497
|
# ID for the route table.
|
3480
3498
|
#
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -77,6 +77,15 @@ module Aws::EC2
|
|
77
77
|
|
78
78
|
# Indicates whether instances launched in this subnet receive a public
|
79
79
|
# IPv4 address.
|
80
|
+
#
|
81
|
+
# Starting on February 1, 2024, Amazon Web Services will charge for all
|
82
|
+
# public IPv4 addresses, including public IPv4 addresses associated with
|
83
|
+
# running instances and Elastic IP addresses. For more information, see
|
84
|
+
# the *Public IPv4 Address* tab on the [Amazon VPC pricing page][1].
|
85
|
+
#
|
86
|
+
#
|
87
|
+
#
|
88
|
+
# [1]: http://aws.amazon.com/vpc/pricing/
|
80
89
|
# @return [Boolean]
|
81
90
|
def map_public_ip_on_launch
|
82
91
|
data[:map_public_ip_on_launch]
|
@@ -702,14 +711,13 @@ module Aws::EC2
|
|
702
711
|
# You cannot specify this option and the network interfaces option in
|
703
712
|
# the same request.
|
704
713
|
# @option options [Array<Types::ElasticGpuSpecification>] :elastic_gpu_specification
|
705
|
-
#
|
706
|
-
# resource that you can attach to your Windows instance to accelerate
|
707
|
-
# the graphics performance of your applications. For more information,
|
708
|
-
# see [Amazon EC2 Elastic GPUs][1] in the *Amazon EC2 User Guide*.
|
714
|
+
# Deprecated.
|
709
715
|
#
|
716
|
+
# <note markdown="1"> Amazon Elastic Graphics reached end of life on January 8, 2024. For
|
717
|
+
# workloads that require graphics acceleration, we recommend that you
|
718
|
+
# use Amazon EC2 G4ad, G4dn, or G5 instances.
|
710
719
|
#
|
711
|
-
#
|
712
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/elastic-graphics.html
|
720
|
+
# </note>
|
713
721
|
# @option options [Array<Types::ElasticInferenceAccelerator>] :elastic_inference_accelerators
|
714
722
|
# An elastic inference accelerator to associate with the instance.
|
715
723
|
# Elastic inference accelerators are a resource you can attach to your
|
@@ -739,8 +747,6 @@ module Aws::EC2
|
|
739
747
|
#
|
740
748
|
# * Volumes
|
741
749
|
#
|
742
|
-
# * Elastic graphics
|
743
|
-
#
|
744
750
|
# * Spot Instance requests
|
745
751
|
#
|
746
752
|
# * Network interfaces
|