aws-sdk-ec2 1.502.0 → 1.504.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: ccba7d9936d9b684c79c41ba15e1dfb8204ac4a4a6225ca5bdb57b944ace607c
4
- data.tar.gz: 3bd99ee6e0b6f4e96be41f71fb19f7e697dbcea95d1dc8810e66ceef1e252b7f
3
+ metadata.gz: 71d910ff605187c5793291fdecf85851c68a54bbac18633889a960b0b175793b
4
+ data.tar.gz: 761049e57b641841c2d3cbc3be10b05e7fdfc8dc81a3ed29e0247f19425f736f
5
5
  SHA512:
6
- metadata.gz: 7eac17bfc5854fbd9efe9064268994a74d734cfd2b9d6b5d1759d0402fff32dd0cca0c20423bbce0b8a0a446690f626c0bf09bb3414fe6d16a9be65363aec1e5
7
- data.tar.gz: c5ee0400b14a5f5f73369c17e0a8ad03b8f0e48c475d0f8f2411f9722109c9bddb874538f43b6a215db68beff915c93f9577a45f2e09a0d22b92a6f06289757b
6
+ metadata.gz: cd0f2dd0d42ca6d6249a665fcdc9ef95f0ed4af679c51045f877bfe1c00fcdba680f90a58affaacc3f5dbdd9fafd31e06d6eed6aaf52e9837a9539adeeaab71c
7
+ data.tar.gz: 4bb60e3fde6ca62910e118213995cfc679626a7883cd24c5d98b13c66c0758b6ab4af4ab6615313b1db87edad8e6ee470320a0b3ee04baf24e8cd7f57d1906a1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.504.0 (2025-02-06)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.503.0 (2025-01-28)
10
+ ------------------
11
+
12
+ * Feature - This release changes the CreateFleet CLI and SDK's such that if you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
13
+
4
14
  1.502.0 (2025-01-23)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.502.0
1
+ 1.504.0
@@ -4107,6 +4107,11 @@ module Aws::EC2
4107
4107
  # duration has elapsed. You can't cancel a future-dated Capacity
4108
4108
  # Reservation during the commitment duration.
4109
4109
  #
4110
+ # <note markdown="1"> You can't modify or cancel a Capacity Block. For more information,
4111
+ # see [Capacity Blocks for ML][1].
4112
+ #
4113
+ # </note>
4114
+ #
4110
4115
  # If a future-dated Capacity Reservation enters the `delayed` state, the
4111
4116
  # commitment duration is waived, and you can cancel it as soon as it
4112
4117
  # enters the `active` state.
@@ -4118,6 +4123,10 @@ module Aws::EC2
4118
4123
  # any open Capacity Reservation that has matching attributes and
4119
4124
  # sufficient capacity.
4120
4125
  #
4126
+ #
4127
+ #
4128
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-capacity-blocks.html
4129
+ #
4121
4130
  # @option params [required, String] :capacity_reservation_id
4122
4131
  # The ID of the Capacity Reservation to be cancelled.
4123
4132
  #
@@ -6794,8 +6803,14 @@ module Aws::EC2
6794
6803
  #
6795
6804
  # @option params [String] :client_token
6796
6805
  # Unique, case-sensitive identifier that you provide to ensure the
6797
- # idempotency of the request. For more information, see [Ensuring
6798
- # idempotency][1].
6806
+ # idempotency of the request. If you do not specify a client token, a
6807
+ # randomly generated token is used for the request to ensure
6808
+ # idempotency.
6809
+ #
6810
+ # For more information, see [Ensuring idempotency][1].
6811
+ #
6812
+ # **A suitable default value is auto-generated.** You should normally
6813
+ # not need to pass this option.**
6799
6814
  #
6800
6815
  #
6801
6816
  #
@@ -21566,6 +21581,15 @@ module Aws::EC2
21566
21581
  # Amazon Web Services Region that you're currently using. With Capacity
21567
21582
  # Blocks, you purchase a specific instance type for a period of time.
21568
21583
  #
21584
+ # To search for an available Capacity Block offering, you specify a
21585
+ # reservation duration and instance count. You must select one of the
21586
+ # following options.
21587
+ #
21588
+ # * For reservation durations<b> 1-day increments up 14 days and 7-day
21589
+ # increments up to 182 days total</b>
21590
+ #
21591
+ # * For instance count<b> 1, 2, 4, 8, 16, 32, or 64 instances</b>
21592
+ #
21569
21593
  # @option params [Boolean] :dry_run
21570
21594
  # Checks whether you have the required permissions for the action,
21571
21595
  # without actually making the request, and provides an error response.
@@ -26437,7 +26461,8 @@ module Aws::EC2
26437
26461
  # * `p3dn.24xlarge` \| `p4d.24xlarge` \| `p4de.24xlarge` \|
26438
26462
  # `p5.48xlarge` \| `p5e.48xlarge` \| `p5en.48xlarge`
26439
26463
  #
26440
- # * `trn1.2xlarge` \| `trn1.32xlarge` \| `trn1n.32xlarge`
26464
+ # * `trn1.2xlarge` \| `trn1.32xlarge` \| `trn1n.32xlarge` \|
26465
+ # `trn2.48xlarge` \| `trn2u.48xlarge`
26441
26466
  #
26442
26467
  # For more information, see [Amazon EC2 instance topology][1] in the
26443
26468
  # *Amazon EC2 User Guide*.
@@ -63153,7 +63178,7 @@ module Aws::EC2
63153
63178
  tracer: tracer
63154
63179
  )
63155
63180
  context[:gem_name] = 'aws-sdk-ec2'
63156
- context[:gem_version] = '1.502.0'
63181
+ context[:gem_version] = '1.504.0'
63157
63182
  Seahorse::Client::Request.new(handlers, context)
63158
63183
  end
63159
63184
 
@@ -5030,7 +5030,7 @@ module Aws::EC2
5030
5030
  CreateFleetInstancesSet.member = Shapes::ShapeRef.new(shape: CreateFleetInstance, location_name: "item")
5031
5031
 
5032
5032
  CreateFleetRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
5033
- CreateFleetRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken"))
5033
+ CreateFleetRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
5034
5034
  CreateFleetRequest.add_member(:spot_options, Shapes::ShapeRef.new(shape: SpotOptionsRequest, location_name: "SpotOptions"))
5035
5035
  CreateFleetRequest.add_member(:on_demand_options, Shapes::ShapeRef.new(shape: OnDemandOptionsRequest, location_name: "OnDemandOptions"))
5036
5036
  CreateFleetRequest.add_member(:excess_capacity_termination_policy, Shapes::ShapeRef.new(shape: FleetExcessCapacityTerminationPolicy, location_name: "ExcessCapacityTerminationPolicy"))
@@ -10,43 +10,39 @@
10
10
  module Aws::EC2
11
11
  class EndpointProvider
12
12
  def resolve_endpoint(parameters)
13
- region = parameters.region
14
- use_dual_stack = parameters.use_dual_stack
15
- use_fips = parameters.use_fips
16
- endpoint = parameters.endpoint
17
- if Aws::Endpoints::Matchers.set?(endpoint)
18
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
19
15
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
16
  end
21
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
22
18
  raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
19
  end
24
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
25
21
  end
26
- if Aws::Endpoints::Matchers.set?(region)
27
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
29
25
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
- return Aws::Endpoints::Endpoint.new(url: "https://ec2-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ return Aws::Endpoints::Endpoint.new(url: "https://ec2-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
27
  end
32
28
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
29
  end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
35
31
  if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
36
32
  if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
37
- return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{region}.amazonaws.com", headers: {}, properties: {})
33
+ return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
38
34
  end
39
- return Aws::Endpoints::Endpoint.new(url: "https://ec2-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
35
+ return Aws::Endpoints::Endpoint.new(url: "https://ec2-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
36
  end
41
37
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
38
  end
43
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
39
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
44
40
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
45
- return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
41
+ return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
42
  end
47
43
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
48
44
  end
49
- return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
45
+ return Aws::Endpoints::Endpoint.new(url: "https://ec2.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
50
46
  end
51
47
  end
52
48
  raise ArgumentError, "Invalid Configuration: Missing Region"
@@ -8672,8 +8672,14 @@ module Aws::EC2
8672
8672
  #
8673
8673
  # @!attribute [rw] client_token
8674
8674
  # Unique, case-sensitive identifier that you provide to ensure the
8675
- # idempotency of the request. For more information, see [Ensuring
8676
- # idempotency][1].
8675
+ # idempotency of the request. If you do not specify a client token, a
8676
+ # randomly generated token is used for the request to ensure
8677
+ # idempotency.
8678
+ #
8679
+ # For more information, see [Ensuring idempotency][1].
8680
+ #
8681
+ # **A suitable default value is auto-generated.** You should normally
8682
+ # not need to pass this option.
8677
8683
  #
8678
8684
  #
8679
8685
  #
@@ -34249,8 +34255,14 @@ module Aws::EC2
34249
34255
  # valid and several attempts to launch instances have failed. For
34250
34256
  # more information, see the description of the event.
34251
34257
  #
34252
- # * `launchSpecUnusable` - The price in a launch specification is not
34253
- # valid because it is below the Spot price.
34258
+ # * `launchSpecUnusable` - The price specified in a launch
34259
+ # specification is not valid because it is below the Spot price for
34260
+ # the requested Spot pools.
34261
+ #
34262
+ # Note: Even if a fleet with the `maintain` request type is in the
34263
+ # process of being canceled, it may still publish a
34264
+ # `launchSpecUnusable` event. This does not mean that the canceled
34265
+ # fleet is attempting to launch a new instance.
34254
34266
  #
34255
34267
  # * `registerWithLoadBalancersFailed` - An attempt to register
34256
34268
  # instances with load balancers failed. For more information, see
@@ -42377,7 +42389,8 @@ module Aws::EC2
42377
42389
  # @return [String]
42378
42390
  #
42379
42391
  # @!attribute [rw] no_device
42380
- # suppress the specified device included in the block device mapping.
42392
+ # Suppresses the specified device included in the block device
42393
+ # mapping.
42381
42394
  # @return [String]
42382
42395
  #
42383
42396
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/InstanceBlockDeviceMappingSpecification AWS API Documentation
@@ -43950,9 +43963,12 @@ module Aws::EC2
43950
43963
  # @!attribute [rw] accelerator_types
43951
43964
  # The accelerator types that must be on the instance type.
43952
43965
  #
43966
+ # * For instance types with FPGA accelerators, specify `fpga`.
43967
+ #
43953
43968
  # * For instance types with GPU accelerators, specify `gpu`.
43954
43969
  #
43955
- # * For instance types with FPGA accelerators, specify `fpga`.
43970
+ # * For instance types with Inference accelerators, specify
43971
+ # `inference`.
43956
43972
  #
43957
43973
  # Default: Any accelerator type
43958
43974
  # @return [Array<String>]
@@ -44433,9 +44449,12 @@ module Aws::EC2
44433
44449
  # @!attribute [rw] accelerator_types
44434
44450
  # The accelerator types that must be on the instance type.
44435
44451
  #
44436
- # * To include instance types with GPU hardware, specify `gpu`.
44452
+ # * For instance types with FPGA accelerators, specify `fpga`.
44453
+ #
44454
+ # * For instance types with GPU accelerators, specify `gpu`.
44437
44455
  #
44438
- # * To include instance types with FPGA hardware, specify `fpga`.
44456
+ # * For instance types with Inference accelerators, specify
44457
+ # `inference`.
44439
44458
  #
44440
44459
  # Default: Any accelerator type
44441
44460
  # @return [Array<String>]
@@ -66995,6 +67014,10 @@ module Aws::EC2
66995
67014
  # If you specify a maximum price, your Spot Instances will be
66996
67015
  # interrupted more frequently than if you do not specify this
66997
67016
  # parameter.
67017
+ #
67018
+ # If you specify a maximum price, it must be more than USD $0.001.
67019
+ # Specifying a value below USD $0.001 will result in an
67020
+ # `InvalidParameterValue` error message.
66998
67021
  # @return [String]
66999
67022
  #
67000
67023
  # @!attribute [rw] spot_instance_type
data/lib/aws-sdk-ec2.rb CHANGED
@@ -78,7 +78,7 @@ module Aws::EC2
78
78
  autoload :VpcPeeringConnection, 'aws-sdk-ec2/vpc_peering_connection'
79
79
  autoload :VpcAddress, 'aws-sdk-ec2/vpc_address'
80
80
 
81
- GEM_VERSION = '1.502.0'
81
+ GEM_VERSION = '1.504.0'
82
82
 
83
83
  end
84
84
 
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.502.0
4
+ version: 1.504.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: 2025-01-23 00:00:00.000000000 Z
11
+ date: 2025-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core