aws-sdk-batch 1.39.0 → 1.40.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/lib/aws-sdk-batch.rb +1 -1
- data/lib/aws-sdk-batch/client.rb +27 -1
- data/lib/aws-sdk-batch/client_api.rb +12 -0
- data/lib/aws-sdk-batch/types.rb +88 -2
- 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: 36addf6b2f87fc50b90b815bde8467754bc105f327671194cc51c07ebaad32dd
|
4
|
+
data.tar.gz: 815ea6e5c8144e1ecd12d3a03e171bef5160ed4581dc966ecd793891f2349500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 583d4c3a6926f9bf9e79327893e7f285764e71f9e5d453d9f1974a0231ced5a38c921b08f6b5a984c16e92bdafae408c5b730446b77ef6adcbede910300cbad5
|
7
|
+
data.tar.gz: 123559d810b0e5256e9eb74a6675b4a16756f2e5dc18885a037c5d008b1b72c0ed77fcafa226b47d2c3fc08e11d1b9b6383363061d34a06f6b12e73337443f29
|
data/lib/aws-sdk-batch.rb
CHANGED
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -1127,6 +1127,11 @@ module Aws::Batch
|
|
1127
1127
|
# resp.job_definitions[0].parameters #=> Hash
|
1128
1128
|
# resp.job_definitions[0].parameters["String"] #=> String
|
1129
1129
|
# resp.job_definitions[0].retry_strategy.attempts #=> Integer
|
1130
|
+
# resp.job_definitions[0].retry_strategy.evaluate_on_exit #=> Array
|
1131
|
+
# resp.job_definitions[0].retry_strategy.evaluate_on_exit[0].on_status_reason #=> String
|
1132
|
+
# resp.job_definitions[0].retry_strategy.evaluate_on_exit[0].on_reason #=> String
|
1133
|
+
# resp.job_definitions[0].retry_strategy.evaluate_on_exit[0].on_exit_code #=> String
|
1134
|
+
# resp.job_definitions[0].retry_strategy.evaluate_on_exit[0].action #=> String, one of "RETRY", "EXIT"
|
1130
1135
|
# resp.job_definitions[0].container_properties.image #=> String
|
1131
1136
|
# resp.job_definitions[0].container_properties.vcpus #=> Integer
|
1132
1137
|
# resp.job_definitions[0].container_properties.memory #=> Integer
|
@@ -1436,6 +1441,11 @@ module Aws::Batch
|
|
1436
1441
|
# resp.jobs[0].status_reason #=> String
|
1437
1442
|
# resp.jobs[0].created_at #=> Integer
|
1438
1443
|
# resp.jobs[0].retry_strategy.attempts #=> Integer
|
1444
|
+
# resp.jobs[0].retry_strategy.evaluate_on_exit #=> Array
|
1445
|
+
# resp.jobs[0].retry_strategy.evaluate_on_exit[0].on_status_reason #=> String
|
1446
|
+
# resp.jobs[0].retry_strategy.evaluate_on_exit[0].on_reason #=> String
|
1447
|
+
# resp.jobs[0].retry_strategy.evaluate_on_exit[0].on_exit_code #=> String
|
1448
|
+
# resp.jobs[0].retry_strategy.evaluate_on_exit[0].action #=> String, one of "RETRY", "EXIT"
|
1439
1449
|
# resp.jobs[0].started_at #=> Integer
|
1440
1450
|
# resp.jobs[0].stopped_at #=> Integer
|
1441
1451
|
# resp.jobs[0].depends_on #=> Array
|
@@ -2082,6 +2092,14 @@ module Aws::Batch
|
|
2082
2092
|
# },
|
2083
2093
|
# retry_strategy: {
|
2084
2094
|
# attempts: 1,
|
2095
|
+
# evaluate_on_exit: [
|
2096
|
+
# {
|
2097
|
+
# on_status_reason: "String",
|
2098
|
+
# on_reason: "String",
|
2099
|
+
# on_exit_code: "String",
|
2100
|
+
# action: "RETRY", # required, accepts RETRY, EXIT
|
2101
|
+
# },
|
2102
|
+
# ],
|
2085
2103
|
# },
|
2086
2104
|
# timeout: {
|
2087
2105
|
# attempt_duration_seconds: 1,
|
@@ -2281,6 +2299,14 @@ module Aws::Batch
|
|
2281
2299
|
# },
|
2282
2300
|
# retry_strategy: {
|
2283
2301
|
# attempts: 1,
|
2302
|
+
# evaluate_on_exit: [
|
2303
|
+
# {
|
2304
|
+
# on_status_reason: "String",
|
2305
|
+
# on_reason: "String",
|
2306
|
+
# on_exit_code: "String",
|
2307
|
+
# action: "RETRY", # required, accepts RETRY, EXIT
|
2308
|
+
# },
|
2309
|
+
# ],
|
2284
2310
|
# },
|
2285
2311
|
# timeout: {
|
2286
2312
|
# attempt_duration_seconds: 1,
|
@@ -2622,7 +2648,7 @@ module Aws::Batch
|
|
2622
2648
|
params: params,
|
2623
2649
|
config: config)
|
2624
2650
|
context[:gem_name] = 'aws-sdk-batch'
|
2625
|
-
context[:gem_version] = '1.
|
2651
|
+
context[:gem_version] = '1.40.0'
|
2626
2652
|
Seahorse::Client::Request.new(handlers, context)
|
2627
2653
|
end
|
2628
2654
|
|
@@ -63,6 +63,8 @@ module Aws::Batch
|
|
63
63
|
DeviceCgroupPermissions = Shapes::ListShape.new(name: 'DeviceCgroupPermissions')
|
64
64
|
DevicesList = Shapes::ListShape.new(name: 'DevicesList')
|
65
65
|
EnvironmentVariables = Shapes::ListShape.new(name: 'EnvironmentVariables')
|
66
|
+
EvaluateOnExit = Shapes::StructureShape.new(name: 'EvaluateOnExit')
|
67
|
+
EvaluateOnExitList = Shapes::ListShape.new(name: 'EvaluateOnExitList')
|
66
68
|
Host = Shapes::StructureShape.new(name: 'Host')
|
67
69
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
68
70
|
JQState = Shapes::StringShape.new(name: 'JQState')
|
@@ -109,6 +111,7 @@ module Aws::Batch
|
|
109
111
|
ResourceRequirement = Shapes::StructureShape.new(name: 'ResourceRequirement')
|
110
112
|
ResourceRequirements = Shapes::ListShape.new(name: 'ResourceRequirements')
|
111
113
|
ResourceType = Shapes::StringShape.new(name: 'ResourceType')
|
114
|
+
RetryAction = Shapes::StringShape.new(name: 'RetryAction')
|
112
115
|
RetryStrategy = Shapes::StructureShape.new(name: 'RetryStrategy')
|
113
116
|
Secret = Shapes::StructureShape.new(name: 'Secret')
|
114
117
|
SecretList = Shapes::ListShape.new(name: 'SecretList')
|
@@ -364,6 +367,14 @@ module Aws::Batch
|
|
364
367
|
|
365
368
|
EnvironmentVariables.member = Shapes::ShapeRef.new(shape: KeyValuePair)
|
366
369
|
|
370
|
+
EvaluateOnExit.add_member(:on_status_reason, Shapes::ShapeRef.new(shape: String, location_name: "onStatusReason"))
|
371
|
+
EvaluateOnExit.add_member(:on_reason, Shapes::ShapeRef.new(shape: String, location_name: "onReason"))
|
372
|
+
EvaluateOnExit.add_member(:on_exit_code, Shapes::ShapeRef.new(shape: String, location_name: "onExitCode"))
|
373
|
+
EvaluateOnExit.add_member(:action, Shapes::ShapeRef.new(shape: RetryAction, required: true, location_name: "action"))
|
374
|
+
EvaluateOnExit.struct_class = Types::EvaluateOnExit
|
375
|
+
|
376
|
+
EvaluateOnExitList.member = Shapes::ShapeRef.new(shape: EvaluateOnExit)
|
377
|
+
|
367
378
|
Host.add_member(:source_path, Shapes::ShapeRef.new(shape: String, location_name: "sourcePath"))
|
368
379
|
Host.struct_class = Types::Host
|
369
380
|
|
@@ -554,6 +565,7 @@ module Aws::Batch
|
|
554
565
|
ResourceRequirements.member = Shapes::ShapeRef.new(shape: ResourceRequirement)
|
555
566
|
|
556
567
|
RetryStrategy.add_member(:attempts, Shapes::ShapeRef.new(shape: Integer, location_name: "attempts"))
|
568
|
+
RetryStrategy.add_member(:evaluate_on_exit, Shapes::ShapeRef.new(shape: EvaluateOnExitList, location_name: "evaluateOnExit"))
|
557
569
|
RetryStrategy.struct_class = Types::RetryStrategy
|
558
570
|
|
559
571
|
Secret.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
data/lib/aws-sdk-batch/types.rb
CHANGED
@@ -1830,6 +1830,59 @@ module Aws::Batch
|
|
1830
1830
|
include Aws::Structure
|
1831
1831
|
end
|
1832
1832
|
|
1833
|
+
# Specifies a set of conditions to be met, and an action to take
|
1834
|
+
# (`RETRY` or `EXIT`) if all conditions are met.
|
1835
|
+
#
|
1836
|
+
# @note When making an API call, you may pass EvaluateOnExit
|
1837
|
+
# data as a hash:
|
1838
|
+
#
|
1839
|
+
# {
|
1840
|
+
# on_status_reason: "String",
|
1841
|
+
# on_reason: "String",
|
1842
|
+
# on_exit_code: "String",
|
1843
|
+
# action: "RETRY", # required, accepts RETRY, EXIT
|
1844
|
+
# }
|
1845
|
+
#
|
1846
|
+
# @!attribute [rw] on_status_reason
|
1847
|
+
# Contains a glob pattern to match against the `StatusReason` returned
|
1848
|
+
# for a job. The patten can be up to 512 characters long, can contain
|
1849
|
+
# letters, numbers, periods (.), colons (:), and whitespace (spaces,
|
1850
|
+
# tabs). and can optionally end with an asterisk (*) so that only the
|
1851
|
+
# start of the string needs to be an exact match.
|
1852
|
+
# @return [String]
|
1853
|
+
#
|
1854
|
+
# @!attribute [rw] on_reason
|
1855
|
+
# Contains a glob pattern to match against the `Reason` returned for a
|
1856
|
+
# job. The patten can be up to 512 characters long, can contain
|
1857
|
+
# letters, numbers, periods (.), colons (:), and whitespace (spaces,
|
1858
|
+
# tabs), and can optionally end with an asterisk (*) so that only the
|
1859
|
+
# start of the string needs to be an exact match.
|
1860
|
+
# @return [String]
|
1861
|
+
#
|
1862
|
+
# @!attribute [rw] on_exit_code
|
1863
|
+
# Contains a glob pattern to match against the decimal representation
|
1864
|
+
# of the `ExitCode` returned for a job. The patten can be up to 512
|
1865
|
+
# characters long, can contain only numbers, and can optionally end
|
1866
|
+
# with an asterisk (*) so that only the start of the string needs to
|
1867
|
+
# be an exact match.
|
1868
|
+
# @return [String]
|
1869
|
+
#
|
1870
|
+
# @!attribute [rw] action
|
1871
|
+
# Specifies the action to take if all of the specified conditions
|
1872
|
+
# (`onStatusReason`, `onReason`, and `onExitCode`) are met.
|
1873
|
+
# @return [String]
|
1874
|
+
#
|
1875
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EvaluateOnExit AWS API Documentation
|
1876
|
+
#
|
1877
|
+
class EvaluateOnExit < Struct.new(
|
1878
|
+
:on_status_reason,
|
1879
|
+
:on_reason,
|
1880
|
+
:on_exit_code,
|
1881
|
+
:action)
|
1882
|
+
SENSITIVE = []
|
1883
|
+
include Aws::Structure
|
1884
|
+
end
|
1885
|
+
|
1833
1886
|
# Determine whether your data volume persists on the host container
|
1834
1887
|
# instance and where it is stored. If this parameter is empty, then the
|
1835
1888
|
# Docker daemon assigns a host path for your data volume, but the data
|
@@ -2398,7 +2451,8 @@ module Aws::Batch
|
|
2398
2451
|
# The total amount of swap memory (in MiB) a container can use. This
|
2399
2452
|
# parameter will be translated to the `--memory-swap` option to
|
2400
2453
|
# [docker run][1] where the value would be the sum of the container
|
2401
|
-
# memory plus the `maxSwap` value.
|
2454
|
+
# memory plus the `maxSwap` value. For more information, see [
|
2455
|
+
# `--memory-swap` details][2] in the Docker documentation.
|
2402
2456
|
#
|
2403
2457
|
# If a `maxSwap` value of `0` is specified, the container will not use
|
2404
2458
|
# swap. Accepted values are `0` or any positive integer. If the
|
@@ -2410,6 +2464,7 @@ module Aws::Batch
|
|
2410
2464
|
#
|
2411
2465
|
#
|
2412
2466
|
# [1]: https://docs.docker.com/engine/reference/run/
|
2467
|
+
# [2]: https://docs.docker.com/config/containers/resource_constraints/#--memory-swap-details
|
2413
2468
|
# @return [Integer]
|
2414
2469
|
#
|
2415
2470
|
# @!attribute [rw] swappiness
|
@@ -3351,6 +3406,14 @@ module Aws::Batch
|
|
3351
3406
|
# },
|
3352
3407
|
# retry_strategy: {
|
3353
3408
|
# attempts: 1,
|
3409
|
+
# evaluate_on_exit: [
|
3410
|
+
# {
|
3411
|
+
# on_status_reason: "String",
|
3412
|
+
# on_reason: "String",
|
3413
|
+
# on_exit_code: "String",
|
3414
|
+
# action: "RETRY", # required, accepts RETRY, EXIT
|
3415
|
+
# },
|
3416
|
+
# ],
|
3354
3417
|
# },
|
3355
3418
|
# timeout: {
|
3356
3419
|
# attempt_duration_seconds: 1,
|
@@ -3506,6 +3569,14 @@ module Aws::Batch
|
|
3506
3569
|
#
|
3507
3570
|
# {
|
3508
3571
|
# attempts: 1,
|
3572
|
+
# evaluate_on_exit: [
|
3573
|
+
# {
|
3574
|
+
# on_status_reason: "String",
|
3575
|
+
# on_reason: "String",
|
3576
|
+
# on_exit_code: "String",
|
3577
|
+
# action: "RETRY", # required, accepts RETRY, EXIT
|
3578
|
+
# },
|
3579
|
+
# ],
|
3509
3580
|
# }
|
3510
3581
|
#
|
3511
3582
|
# @!attribute [rw] attempts
|
@@ -3515,10 +3586,17 @@ module Aws::Batch
|
|
3515
3586
|
# attempts as the value.
|
3516
3587
|
# @return [Integer]
|
3517
3588
|
#
|
3589
|
+
# @!attribute [rw] evaluate_on_exit
|
3590
|
+
# Array of up to 5 objects that specify conditions under which the job
|
3591
|
+
# should be retried or failed. If this parameter is specified, then
|
3592
|
+
# the `attempts` parameter must also be specified.
|
3593
|
+
# @return [Array<Types::EvaluateOnExit>]
|
3594
|
+
#
|
3518
3595
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/RetryStrategy AWS API Documentation
|
3519
3596
|
#
|
3520
3597
|
class RetryStrategy < Struct.new(
|
3521
|
-
:attempts
|
3598
|
+
:attempts,
|
3599
|
+
:evaluate_on_exit)
|
3522
3600
|
SENSITIVE = []
|
3523
3601
|
include Aws::Structure
|
3524
3602
|
end
|
@@ -3651,6 +3729,14 @@ module Aws::Batch
|
|
3651
3729
|
# },
|
3652
3730
|
# retry_strategy: {
|
3653
3731
|
# attempts: 1,
|
3732
|
+
# evaluate_on_exit: [
|
3733
|
+
# {
|
3734
|
+
# on_status_reason: "String",
|
3735
|
+
# on_reason: "String",
|
3736
|
+
# on_exit_code: "String",
|
3737
|
+
# action: "RETRY", # required, accepts RETRY, EXIT
|
3738
|
+
# },
|
3739
|
+
# ],
|
3654
3740
|
# },
|
3655
3741
|
# timeout: {
|
3656
3742
|
# attempt_duration_seconds: 1,
|
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.40.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: 2020-10-
|
11
|
+
date: 2020-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|