aws-sdk-batch 1.107.0 → 1.109.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-batch/client.rb +1 -1
- data/lib/aws-sdk-batch/endpoint_provider.rb +15 -19
- data/lib/aws-sdk-batch/types.rb +37 -12
- data/lib/aws-sdk-batch.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2e4b1c25d4baee9dc1b33e7767ff931c5b8d85f7a3f7fb88a895f0bec85f703
|
4
|
+
data.tar.gz: 951b7e0f5927d5f37860478070f35bfc5e42426ee7215206a2991c2e7ae79e9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20368926782e0f589925539bc230da2727f29a0b4274b366e7860934d40888c66bebf0ac2fabf721437b6291854881890017f4d71107dd532753eb06ff16c18b
|
7
|
+
data.tar.gz: 525f843bb1fc7dfd327a0458455a2be80c609ac4af70a2bb8fe83ce1f3a9864d2780284b72c7854c8cc5f3f6cc0d00f7bdc22211087ffe29650092613b8cdc29
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.109.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.108.0 (2025-01-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Documentation-only update: clarified the description of the shareDecaySeconds parameter of the FairsharePolicy data type, clarified the description of the priority parameter of the JobQueueDetail data type.
|
13
|
+
|
4
14
|
1.107.0 (2025-01-15)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.109.0
|
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -10,46 +10,42 @@
|
|
10
10
|
module Aws::Batch
|
11
11
|
class EndpointProvider
|
12
12
|
def resolve_endpoint(parameters)
|
13
|
-
|
14
|
-
|
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://batch-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch-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")
|
37
|
-
return Aws::Endpoints::Endpoint.new(url: "https://fips.batch.#{region}.amazonaws.com", headers: {}, properties: {})
|
33
|
+
return Aws::Endpoints::Endpoint.new(url: "https://fips.batch.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
|
38
34
|
end
|
39
35
|
if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
|
40
|
-
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.amazonaws.com", headers: {}, properties: {})
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
|
41
37
|
end
|
42
|
-
return Aws::Endpoints::Endpoint.new(url: "https://batch-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
43
39
|
end
|
44
40
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
45
41
|
end
|
46
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
42
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
47
43
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
48
|
-
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
44
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
45
|
end
|
50
46
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
51
47
|
end
|
52
|
-
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://batch.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
53
49
|
end
|
54
50
|
end
|
55
51
|
raise ArgumentError, "Invalid Configuration: Missing Region"
|
data/lib/aws-sdk-batch/types.rb
CHANGED
@@ -4687,9 +4687,14 @@ module Aws::Batch
|
|
4687
4687
|
# @!attribute [rw] share_decay_seconds
|
4688
4688
|
# The amount of time (in seconds) to use to calculate a fair share
|
4689
4689
|
# percentage for each fair share identifier in use. A value of zero
|
4690
|
-
# (0) indicates
|
4691
|
-
#
|
4692
|
-
#
|
4690
|
+
# (0) indicates the default minimum time window (600 seconds). The
|
4691
|
+
# maximum supported value is 604800 (1 week).
|
4692
|
+
#
|
4693
|
+
# The decay allows for more recently run jobs to have more weight than
|
4694
|
+
# jobs that ran earlier. Consider adjusting this number if you have
|
4695
|
+
# jobs that (on average) run longer than ten minutes, or a large
|
4696
|
+
# difference in job count or job run times between share identifiers,
|
4697
|
+
# and the allocation of resources doesn’t meet your needs.
|
4693
4698
|
# @return [Integer]
|
4694
4699
|
#
|
4695
4700
|
# @!attribute [rw] compute_reservation
|
@@ -5289,15 +5294,35 @@ module Aws::Batch
|
|
5289
5294
|
# @return [String]
|
5290
5295
|
#
|
5291
5296
|
# @!attribute [rw] priority
|
5292
|
-
# The priority of the job queue. Job
|
5293
|
-
#
|
5294
|
-
#
|
5295
|
-
#
|
5296
|
-
#
|
5297
|
-
#
|
5298
|
-
#
|
5297
|
+
# The priority of the job queue. Job queue priority determines the
|
5298
|
+
# order that job queues are evaluated when multiple queues dispatch
|
5299
|
+
# jobs within a shared compute environment. A higher value for
|
5300
|
+
# `priority` indicates a higher priority. Queues are evaluated in
|
5301
|
+
# cycles, in descending order by priority. For example, a job queue
|
5302
|
+
# with a priority value of `10` is evaluated before a queue with a
|
5303
|
+
# priority value of `1`. All of the compute environments must be
|
5304
|
+
# either Amazon EC2 (`EC2` or `SPOT`) or Fargate (`FARGATE` or
|
5299
5305
|
# `FARGATE_SPOT`). Amazon EC2 and Fargate compute environments can't
|
5300
5306
|
# be mixed.
|
5307
|
+
#
|
5308
|
+
# <note markdown="1"> Job queue priority doesn't guarantee that a particular job executes
|
5309
|
+
# before a job in a lower priority queue. Jobs added to higher
|
5310
|
+
# priority queues during the queue evaluation cycle might not be
|
5311
|
+
# evaluated until the next cycle. A job is dispatched from a queue
|
5312
|
+
# only if resources are available when the queue is evaluated. If
|
5313
|
+
# there are insufficient resources available at that time, the cycle
|
5314
|
+
# proceeds to the next queue. This means that jobs added to higher
|
5315
|
+
# priority queues might have to wait for jobs in multiple lower
|
5316
|
+
# priority queues to complete before they are dispatched. You can use
|
5317
|
+
# job dependencies to control the order for jobs from queues with
|
5318
|
+
# different priorities. For more information, see [Job
|
5319
|
+
# Dependencies][1] in the *Batch User Guide*.
|
5320
|
+
#
|
5321
|
+
# </note>
|
5322
|
+
#
|
5323
|
+
#
|
5324
|
+
#
|
5325
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/job_dependencies.html
|
5301
5326
|
# @return [Integer]
|
5302
5327
|
#
|
5303
5328
|
# @!attribute [rw] compute_environment_order
|
@@ -5682,7 +5707,7 @@ module Aws::Batch
|
|
5682
5707
|
# @return [String]
|
5683
5708
|
#
|
5684
5709
|
# @!attribute [rw] target_instance_types
|
5685
|
-
# The instance type or family that this
|
5710
|
+
# The instance type or family that this override launch template
|
5686
5711
|
# should be applied to.
|
5687
5712
|
#
|
5688
5713
|
# This parameter is required when defining a launch template override.
|
@@ -7822,7 +7847,7 @@ module Aws::Batch
|
|
7822
7847
|
#
|
7823
7848
|
# @!attribute [rw] environment
|
7824
7849
|
# The environment variables to pass to a container. This parameter
|
7825
|
-
# maps to Env
|
7850
|
+
# maps to Env in the [Create a container][1] section of the [Docker
|
7826
7851
|
# Remote API][2] and the `--env` parameter to [docker run][3].
|
7827
7852
|
#
|
7828
7853
|
# We don't recommend using plaintext environment variables for
|
data/lib/aws-sdk-batch.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.109.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-
|
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
|