aws-sdk-batch 1.82.0 → 1.84.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-batch/client.rb +47 -1
- data/lib/aws-sdk-batch/client_api.rb +25 -0
- data/lib/aws-sdk-batch/types.rb +119 -5
- data/lib/aws-sdk-batch.rb +1 -1
- data/sig/client.rbs +24 -1
- data/sig/types.rbs +19 -0
- 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: 8a0613ac3ac932d3b66d0d88a70bfde8e7afdebfbd5e6e7e2d609961334a2c89
|
4
|
+
data.tar.gz: af5e559e54d4b00cc5ee5cbbd18280eae9618f3e77524e1f05723055647d58d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b79c8c00c44cf4352593da80c3086ff301c745481b25cccdfb90ce57c97598593ab9c99f27b18e8ed354d1bc3d79dede33a1cd8fee1cc6bc0385c3fe7df0b95
|
7
|
+
data.tar.gz: 69dcb497c172dc0d10df4c03d06db28fb11a3f62ac08ebe35899bbdb69a9447106dbdd7c9cfe920cb954bf39483acbc4dd6b8a23bcabd7747e1662c7077e5f2e
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.84.0 (2024-03-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This feature allows AWS Batch to support configuration of imagePullSecrets and allowPrivilegeEscalation for jobs running on EKS
|
8
|
+
|
9
|
+
1.83.0 (2024-03-08)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release adds JobStateTimeLimitActions setting to the Job Queue API. It allows you to configure an action Batch can take for a blocking job in front of the queue after the defined period of time. The new parameter applies for ECS, EKS, and FARGATE Job Queues.
|
13
|
+
|
4
14
|
1.82.0 (2024-02-28)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.84.0
|
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -897,6 +897,11 @@ module Aws::Batch
|
|
897
897
|
#
|
898
898
|
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html
|
899
899
|
#
|
900
|
+
# @option params [Array<Types::JobStateTimeLimitAction>] :job_state_time_limit_actions
|
901
|
+
# The set of actions that Batch performs on jobs that remain at the head
|
902
|
+
# of the job queue in the specified state longer than specified times.
|
903
|
+
# Batch will perform each action after `maxTimeSeconds` has passed.
|
904
|
+
#
|
900
905
|
# @return [Types::CreateJobQueueResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
901
906
|
#
|
902
907
|
# * {Types::CreateJobQueueResponse#job_queue_name #job_queue_name} => String
|
@@ -968,6 +973,14 @@ module Aws::Batch
|
|
968
973
|
# tags: {
|
969
974
|
# "TagKey" => "TagValue",
|
970
975
|
# },
|
976
|
+
# job_state_time_limit_actions: [
|
977
|
+
# {
|
978
|
+
# reason: "String", # required
|
979
|
+
# state: "RUNNABLE", # required, accepts RUNNABLE
|
980
|
+
# max_time_seconds: 1, # required
|
981
|
+
# action: "CANCEL", # required, accepts CANCEL
|
982
|
+
# },
|
983
|
+
# ],
|
971
984
|
# })
|
972
985
|
#
|
973
986
|
# @example Response structure
|
@@ -1749,6 +1762,8 @@ module Aws::Batch
|
|
1749
1762
|
# resp.job_definitions[0].eks_properties.pod_properties.service_account_name #=> String
|
1750
1763
|
# resp.job_definitions[0].eks_properties.pod_properties.host_network #=> Boolean
|
1751
1764
|
# resp.job_definitions[0].eks_properties.pod_properties.dns_policy #=> String
|
1765
|
+
# resp.job_definitions[0].eks_properties.pod_properties.image_pull_secrets #=> Array
|
1766
|
+
# resp.job_definitions[0].eks_properties.pod_properties.image_pull_secrets[0].name #=> String
|
1752
1767
|
# resp.job_definitions[0].eks_properties.pod_properties.containers #=> Array
|
1753
1768
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].name #=> String
|
1754
1769
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].image #=> String
|
@@ -1771,6 +1786,7 @@ module Aws::Batch
|
|
1771
1786
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_user #=> Integer
|
1772
1787
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_group #=> Integer
|
1773
1788
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.privileged #=> Boolean
|
1789
|
+
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
|
1774
1790
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
|
1775
1791
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
|
1776
1792
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers #=> Array
|
@@ -1795,6 +1811,7 @@ module Aws::Batch
|
|
1795
1811
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_user #=> Integer
|
1796
1812
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_group #=> Integer
|
1797
1813
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.privileged #=> Boolean
|
1814
|
+
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
|
1798
1815
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
|
1799
1816
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
|
1800
1817
|
# resp.job_definitions[0].eks_properties.pod_properties.volumes #=> Array
|
@@ -1908,6 +1925,11 @@ module Aws::Batch
|
|
1908
1925
|
# resp.job_queues[0].compute_environment_order[0].compute_environment #=> String
|
1909
1926
|
# resp.job_queues[0].tags #=> Hash
|
1910
1927
|
# resp.job_queues[0].tags["TagKey"] #=> String
|
1928
|
+
# resp.job_queues[0].job_state_time_limit_actions #=> Array
|
1929
|
+
# resp.job_queues[0].job_state_time_limit_actions[0].reason #=> String
|
1930
|
+
# resp.job_queues[0].job_state_time_limit_actions[0].state #=> String, one of "RUNNABLE"
|
1931
|
+
# resp.job_queues[0].job_state_time_limit_actions[0].max_time_seconds #=> Integer
|
1932
|
+
# resp.job_queues[0].job_state_time_limit_actions[0].action #=> String, one of "CANCEL"
|
1911
1933
|
# resp.next_token #=> String
|
1912
1934
|
#
|
1913
1935
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/DescribeJobQueues AWS API Documentation
|
@@ -2248,6 +2270,8 @@ module Aws::Batch
|
|
2248
2270
|
# resp.jobs[0].eks_properties.pod_properties.service_account_name #=> String
|
2249
2271
|
# resp.jobs[0].eks_properties.pod_properties.host_network #=> Boolean
|
2250
2272
|
# resp.jobs[0].eks_properties.pod_properties.dns_policy #=> String
|
2273
|
+
# resp.jobs[0].eks_properties.pod_properties.image_pull_secrets #=> Array
|
2274
|
+
# resp.jobs[0].eks_properties.pod_properties.image_pull_secrets[0].name #=> String
|
2251
2275
|
# resp.jobs[0].eks_properties.pod_properties.containers #=> Array
|
2252
2276
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].name #=> String
|
2253
2277
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].image #=> String
|
@@ -2272,6 +2296,7 @@ module Aws::Batch
|
|
2272
2296
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_user #=> Integer
|
2273
2297
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_group #=> Integer
|
2274
2298
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.privileged #=> Boolean
|
2299
|
+
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
|
2275
2300
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
|
2276
2301
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
|
2277
2302
|
# resp.jobs[0].eks_properties.pod_properties.init_containers #=> Array
|
@@ -2298,6 +2323,7 @@ module Aws::Batch
|
|
2298
2323
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_user #=> Integer
|
2299
2324
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_group #=> Integer
|
2300
2325
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.privileged #=> Boolean
|
2326
|
+
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
|
2301
2327
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
|
2302
2328
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
|
2303
2329
|
# resp.jobs[0].eks_properties.pod_properties.volumes #=> Array
|
@@ -3352,6 +3378,11 @@ module Aws::Batch
|
|
3352
3378
|
# service_account_name: "String",
|
3353
3379
|
# host_network: false,
|
3354
3380
|
# dns_policy: "String",
|
3381
|
+
# image_pull_secrets: [
|
3382
|
+
# {
|
3383
|
+
# name: "String", # required
|
3384
|
+
# },
|
3385
|
+
# ],
|
3355
3386
|
# containers: [
|
3356
3387
|
# {
|
3357
3388
|
# name: "String",
|
@@ -3384,6 +3415,7 @@ module Aws::Batch
|
|
3384
3415
|
# run_as_user: 1,
|
3385
3416
|
# run_as_group: 1,
|
3386
3417
|
# privileged: false,
|
3418
|
+
# allow_privilege_escalation: false,
|
3387
3419
|
# read_only_root_filesystem: false,
|
3388
3420
|
# run_as_non_root: false,
|
3389
3421
|
# },
|
@@ -3421,6 +3453,7 @@ module Aws::Batch
|
|
3421
3453
|
# run_as_user: 1,
|
3422
3454
|
# run_as_group: 1,
|
3423
3455
|
# privileged: false,
|
3456
|
+
# allow_privilege_escalation: false,
|
3424
3457
|
# read_only_root_filesystem: false,
|
3425
3458
|
# run_as_non_root: false,
|
3426
3459
|
# },
|
@@ -4336,6 +4369,11 @@ module Aws::Batch
|
|
4336
4369
|
#
|
4337
4370
|
# </note>
|
4338
4371
|
#
|
4372
|
+
# @option params [Array<Types::JobStateTimeLimitAction>] :job_state_time_limit_actions
|
4373
|
+
# The set of actions that Batch perform on jobs that remain at the head
|
4374
|
+
# of the job queue in the specified state longer than specified times.
|
4375
|
+
# Batch will perform each action after `maxTimeSeconds` has passed.
|
4376
|
+
#
|
4339
4377
|
# @return [Types::UpdateJobQueueResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4340
4378
|
#
|
4341
4379
|
# * {Types::UpdateJobQueueResponse#job_queue_name #job_queue_name} => String
|
@@ -4370,6 +4408,14 @@ module Aws::Batch
|
|
4370
4408
|
# compute_environment: "String", # required
|
4371
4409
|
# },
|
4372
4410
|
# ],
|
4411
|
+
# job_state_time_limit_actions: [
|
4412
|
+
# {
|
4413
|
+
# reason: "String", # required
|
4414
|
+
# state: "RUNNABLE", # required, accepts RUNNABLE
|
4415
|
+
# max_time_seconds: 1, # required
|
4416
|
+
# action: "CANCEL", # required, accepts CANCEL
|
4417
|
+
# },
|
4418
|
+
# ],
|
4373
4419
|
# })
|
4374
4420
|
#
|
4375
4421
|
# @example Response structure
|
@@ -4434,7 +4480,7 @@ module Aws::Batch
|
|
4434
4480
|
params: params,
|
4435
4481
|
config: config)
|
4436
4482
|
context[:gem_name] = 'aws-sdk-batch'
|
4437
|
-
context[:gem_version] = '1.
|
4483
|
+
context[:gem_version] = '1.84.0'
|
4438
4484
|
Seahorse::Client::Request.new(handlers, context)
|
4439
4485
|
end
|
4440
4486
|
|
@@ -122,6 +122,8 @@ module Aws::Batch
|
|
122
122
|
Float = Shapes::FloatShape.new(name: 'Float')
|
123
123
|
Host = Shapes::StructureShape.new(name: 'Host')
|
124
124
|
ImageIdOverride = Shapes::StringShape.new(name: 'ImageIdOverride')
|
125
|
+
ImagePullSecret = Shapes::StructureShape.new(name: 'ImagePullSecret')
|
126
|
+
ImagePullSecrets = Shapes::ListShape.new(name: 'ImagePullSecrets')
|
125
127
|
ImageType = Shapes::StringShape.new(name: 'ImageType')
|
126
128
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
127
129
|
JQState = Shapes::StringShape.new(name: 'JQState')
|
@@ -136,6 +138,10 @@ module Aws::Batch
|
|
136
138
|
JobExecutionTimeoutMinutes = Shapes::IntegerShape.new(name: 'JobExecutionTimeoutMinutes')
|
137
139
|
JobQueueDetail = Shapes::StructureShape.new(name: 'JobQueueDetail')
|
138
140
|
JobQueueDetailList = Shapes::ListShape.new(name: 'JobQueueDetailList')
|
141
|
+
JobStateTimeLimitAction = Shapes::StructureShape.new(name: 'JobStateTimeLimitAction')
|
142
|
+
JobStateTimeLimitActions = Shapes::ListShape.new(name: 'JobStateTimeLimitActions')
|
143
|
+
JobStateTimeLimitActionsAction = Shapes::StringShape.new(name: 'JobStateTimeLimitActionsAction')
|
144
|
+
JobStateTimeLimitActionsState = Shapes::StringShape.new(name: 'JobStateTimeLimitActionsState')
|
139
145
|
JobStatus = Shapes::StringShape.new(name: 'JobStatus')
|
140
146
|
JobSummary = Shapes::StructureShape.new(name: 'JobSummary')
|
141
147
|
JobSummaryList = Shapes::ListShape.new(name: 'JobSummaryList')
|
@@ -424,6 +430,7 @@ module Aws::Batch
|
|
424
430
|
CreateJobQueueRequest.add_member(:priority, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "priority"))
|
425
431
|
CreateJobQueueRequest.add_member(:compute_environment_order, Shapes::ShapeRef.new(shape: ComputeEnvironmentOrders, required: true, location_name: "computeEnvironmentOrder"))
|
426
432
|
CreateJobQueueRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
|
433
|
+
CreateJobQueueRequest.add_member(:job_state_time_limit_actions, Shapes::ShapeRef.new(shape: JobStateTimeLimitActions, location_name: "jobStateTimeLimitActions"))
|
427
434
|
CreateJobQueueRequest.struct_class = Types::CreateJobQueueRequest
|
428
435
|
|
429
436
|
CreateJobQueueResponse.add_member(:job_queue_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobQueueName"))
|
@@ -632,6 +639,7 @@ module Aws::Batch
|
|
632
639
|
EksContainerSecurityContext.add_member(:run_as_user, Shapes::ShapeRef.new(shape: Long, location_name: "runAsUser"))
|
633
640
|
EksContainerSecurityContext.add_member(:run_as_group, Shapes::ShapeRef.new(shape: Long, location_name: "runAsGroup"))
|
634
641
|
EksContainerSecurityContext.add_member(:privileged, Shapes::ShapeRef.new(shape: Boolean, location_name: "privileged"))
|
642
|
+
EksContainerSecurityContext.add_member(:allow_privilege_escalation, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowPrivilegeEscalation"))
|
635
643
|
EksContainerSecurityContext.add_member(:read_only_root_filesystem, Shapes::ShapeRef.new(shape: Boolean, location_name: "readOnlyRootFilesystem"))
|
636
644
|
EksContainerSecurityContext.add_member(:run_as_non_root, Shapes::ShapeRef.new(shape: Boolean, location_name: "runAsNonRoot"))
|
637
645
|
EksContainerSecurityContext.struct_class = Types::EksContainerSecurityContext
|
@@ -664,6 +672,7 @@ module Aws::Batch
|
|
664
672
|
EksPodProperties.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
|
665
673
|
EksPodProperties.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
|
666
674
|
EksPodProperties.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
|
675
|
+
EksPodProperties.add_member(:image_pull_secrets, Shapes::ShapeRef.new(shape: ImagePullSecrets, location_name: "imagePullSecrets"))
|
667
676
|
EksPodProperties.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainers, location_name: "containers"))
|
668
677
|
EksPodProperties.add_member(:init_containers, Shapes::ShapeRef.new(shape: EksContainers, location_name: "initContainers"))
|
669
678
|
EksPodProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
|
@@ -674,6 +683,7 @@ module Aws::Batch
|
|
674
683
|
EksPodPropertiesDetail.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
|
675
684
|
EksPodPropertiesDetail.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
|
676
685
|
EksPodPropertiesDetail.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
|
686
|
+
EksPodPropertiesDetail.add_member(:image_pull_secrets, Shapes::ShapeRef.new(shape: ImagePullSecrets, location_name: "imagePullSecrets"))
|
677
687
|
EksPodPropertiesDetail.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainerDetails, location_name: "containers"))
|
678
688
|
EksPodPropertiesDetail.add_member(:init_containers, Shapes::ShapeRef.new(shape: EksContainerDetails, location_name: "initContainers"))
|
679
689
|
EksPodPropertiesDetail.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
|
@@ -736,6 +746,11 @@ module Aws::Batch
|
|
736
746
|
Host.add_member(:source_path, Shapes::ShapeRef.new(shape: String, location_name: "sourcePath"))
|
737
747
|
Host.struct_class = Types::Host
|
738
748
|
|
749
|
+
ImagePullSecret.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
750
|
+
ImagePullSecret.struct_class = Types::ImagePullSecret
|
751
|
+
|
752
|
+
ImagePullSecrets.member = Shapes::ShapeRef.new(shape: ImagePullSecret)
|
753
|
+
|
739
754
|
JobDefinition.add_member(:job_definition_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinitionName"))
|
740
755
|
JobDefinition.add_member(:job_definition_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinitionArn"))
|
741
756
|
JobDefinition.add_member(:revision, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "revision"))
|
@@ -805,10 +820,19 @@ module Aws::Batch
|
|
805
820
|
JobQueueDetail.add_member(:priority, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "priority"))
|
806
821
|
JobQueueDetail.add_member(:compute_environment_order, Shapes::ShapeRef.new(shape: ComputeEnvironmentOrders, required: true, location_name: "computeEnvironmentOrder"))
|
807
822
|
JobQueueDetail.add_member(:tags, Shapes::ShapeRef.new(shape: TagrisTagsMap, location_name: "tags"))
|
823
|
+
JobQueueDetail.add_member(:job_state_time_limit_actions, Shapes::ShapeRef.new(shape: JobStateTimeLimitActions, location_name: "jobStateTimeLimitActions"))
|
808
824
|
JobQueueDetail.struct_class = Types::JobQueueDetail
|
809
825
|
|
810
826
|
JobQueueDetailList.member = Shapes::ShapeRef.new(shape: JobQueueDetail)
|
811
827
|
|
828
|
+
JobStateTimeLimitAction.add_member(:reason, Shapes::ShapeRef.new(shape: String, required: true, location_name: "reason"))
|
829
|
+
JobStateTimeLimitAction.add_member(:state, Shapes::ShapeRef.new(shape: JobStateTimeLimitActionsState, required: true, location_name: "state"))
|
830
|
+
JobStateTimeLimitAction.add_member(:max_time_seconds, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "maxTimeSeconds"))
|
831
|
+
JobStateTimeLimitAction.add_member(:action, Shapes::ShapeRef.new(shape: JobStateTimeLimitActionsAction, required: true, location_name: "action"))
|
832
|
+
JobStateTimeLimitAction.struct_class = Types::JobStateTimeLimitAction
|
833
|
+
|
834
|
+
JobStateTimeLimitActions.member = Shapes::ShapeRef.new(shape: JobStateTimeLimitAction)
|
835
|
+
|
812
836
|
JobSummary.add_member(:job_arn, Shapes::ShapeRef.new(shape: String, location_name: "jobArn"))
|
813
837
|
JobSummary.add_member(:job_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobId"))
|
814
838
|
JobSummary.add_member(:job_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobName"))
|
@@ -1156,6 +1180,7 @@ module Aws::Batch
|
|
1156
1180
|
UpdateJobQueueRequest.add_member(:scheduling_policy_arn, Shapes::ShapeRef.new(shape: String, location_name: "schedulingPolicyArn"))
|
1157
1181
|
UpdateJobQueueRequest.add_member(:priority, Shapes::ShapeRef.new(shape: Integer, location_name: "priority"))
|
1158
1182
|
UpdateJobQueueRequest.add_member(:compute_environment_order, Shapes::ShapeRef.new(shape: ComputeEnvironmentOrders, location_name: "computeEnvironmentOrder"))
|
1183
|
+
UpdateJobQueueRequest.add_member(:job_state_time_limit_actions, Shapes::ShapeRef.new(shape: JobStateTimeLimitActions, location_name: "jobStateTimeLimitActions"))
|
1159
1184
|
UpdateJobQueueRequest.struct_class = Types::UpdateJobQueueRequest
|
1160
1185
|
|
1161
1186
|
UpdateJobQueueResponse.add_member(:job_queue_name, Shapes::ShapeRef.new(shape: String, location_name: "jobQueueName"))
|
data/lib/aws-sdk-batch/types.rb
CHANGED
@@ -2243,6 +2243,13 @@ module Aws::Batch
|
|
2243
2243
|
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html
|
2244
2244
|
# @return [Hash<String,String>]
|
2245
2245
|
#
|
2246
|
+
# @!attribute [rw] job_state_time_limit_actions
|
2247
|
+
# The set of actions that Batch performs on jobs that remain at the
|
2248
|
+
# head of the job queue in the specified state longer than specified
|
2249
|
+
# times. Batch will perform each action after `maxTimeSeconds` has
|
2250
|
+
# passed.
|
2251
|
+
# @return [Array<Types::JobStateTimeLimitAction>]
|
2252
|
+
#
|
2246
2253
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CreateJobQueueRequest AWS API Documentation
|
2247
2254
|
#
|
2248
2255
|
class CreateJobQueueRequest < Struct.new(
|
@@ -2251,7 +2258,8 @@ module Aws::Batch
|
|
2251
2258
|
:scheduling_policy_arn,
|
2252
2259
|
:priority,
|
2253
2260
|
:compute_environment_order,
|
2254
|
-
:tags
|
2261
|
+
:tags,
|
2262
|
+
:job_state_time_limit_actions)
|
2255
2263
|
SENSITIVE = []
|
2256
2264
|
include Aws::Structure
|
2257
2265
|
end
|
@@ -3809,6 +3817,12 @@ module Aws::Batch
|
|
3809
3817
|
# [1]: https://kubernetes.io/docs/concepts/security/pod-security-policy/#privileged
|
3810
3818
|
# @return [Boolean]
|
3811
3819
|
#
|
3820
|
+
# @!attribute [rw] allow_privilege_escalation
|
3821
|
+
# Whether or not a container or a Kubernetes pod is allowed to gain
|
3822
|
+
# more privileges than its parent process. The default value is
|
3823
|
+
# `false`.
|
3824
|
+
# @return [Boolean]
|
3825
|
+
#
|
3812
3826
|
# @!attribute [rw] read_only_root_filesystem
|
3813
3827
|
# When this parameter is `true`, the container is given read-only
|
3814
3828
|
# access to its root file system. The default value is `false`. This
|
@@ -3839,6 +3853,7 @@ module Aws::Batch
|
|
3839
3853
|
:run_as_user,
|
3840
3854
|
:run_as_group,
|
3841
3855
|
:privileged,
|
3856
|
+
:allow_privilege_escalation,
|
3842
3857
|
:read_only_root_filesystem,
|
3843
3858
|
:run_as_non_root)
|
3844
3859
|
SENSITIVE = []
|
@@ -4017,6 +4032,15 @@ module Aws::Batch
|
|
4017
4032
|
# [1]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
|
4018
4033
|
# @return [String]
|
4019
4034
|
#
|
4035
|
+
# @!attribute [rw] image_pull_secrets
|
4036
|
+
# References a Kubernetes secret resource. This object must start and
|
4037
|
+
# end with an alphanumeric character, is required to be lowercase, can
|
4038
|
+
# include periods (.) and hyphens (-), and can't contain more than
|
4039
|
+
# 253 characters.
|
4040
|
+
#
|
4041
|
+
# `ImagePullSecret$name` is required when this object is used.
|
4042
|
+
# @return [Array<Types::ImagePullSecret>]
|
4043
|
+
#
|
4020
4044
|
# @!attribute [rw] containers
|
4021
4045
|
# The properties of the container that's used on the Amazon EKS pod.
|
4022
4046
|
# @return [Array<Types::EksContainer>]
|
@@ -4069,6 +4093,7 @@ module Aws::Batch
|
|
4069
4093
|
:service_account_name,
|
4070
4094
|
:host_network,
|
4071
4095
|
:dns_policy,
|
4096
|
+
:image_pull_secrets,
|
4072
4097
|
:containers,
|
4073
4098
|
:init_containers,
|
4074
4099
|
:volumes,
|
@@ -4134,6 +4159,10 @@ module Aws::Batch
|
|
4134
4159
|
# [4]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
|
4135
4160
|
# @return [String]
|
4136
4161
|
#
|
4162
|
+
# @!attribute [rw] image_pull_secrets
|
4163
|
+
# Displays the reference pointer to the Kubernetes secret resource.
|
4164
|
+
# @return [Array<Types::ImagePullSecret>]
|
4165
|
+
#
|
4137
4166
|
# @!attribute [rw] containers
|
4138
4167
|
# The properties of the container that's used on the Amazon EKS pod.
|
4139
4168
|
# @return [Array<Types::EksContainerDetail>]
|
@@ -4184,6 +4213,7 @@ module Aws::Batch
|
|
4184
4213
|
:service_account_name,
|
4185
4214
|
:host_network,
|
4186
4215
|
:dns_policy,
|
4216
|
+
:image_pull_secrets,
|
4187
4217
|
:containers,
|
4188
4218
|
:init_containers,
|
4189
4219
|
:volumes,
|
@@ -4532,6 +4562,23 @@ module Aws::Batch
|
|
4532
4562
|
include Aws::Structure
|
4533
4563
|
end
|
4534
4564
|
|
4565
|
+
# References a Kubernetes configuration resource that holds a list of
|
4566
|
+
# secrets. These secrets help to gain access to pull an image from a
|
4567
|
+
# private registry.
|
4568
|
+
#
|
4569
|
+
# @!attribute [rw] name
|
4570
|
+
# Provides a unique identifier for the `ImagePullSecret`. This object
|
4571
|
+
# is required when `EksPodProperties$imagePullSecrets` is used.
|
4572
|
+
# @return [String]
|
4573
|
+
#
|
4574
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ImagePullSecret AWS API Documentation
|
4575
|
+
#
|
4576
|
+
class ImagePullSecret < Struct.new(
|
4577
|
+
:name)
|
4578
|
+
SENSITIVE = []
|
4579
|
+
include Aws::Structure
|
4580
|
+
end
|
4581
|
+
|
4535
4582
|
# An object that represents an Batch job definition.
|
4536
4583
|
#
|
4537
4584
|
# @!attribute [rw] job_definition_name
|
@@ -4745,6 +4792,20 @@ module Aws::Batch
|
|
4745
4792
|
# @!attribute [rw] status_reason
|
4746
4793
|
# A short, human-readable string to provide more details for the
|
4747
4794
|
# current status of the job.
|
4795
|
+
#
|
4796
|
+
# * `CAPACITY:INSUFFICIENT_INSTANCE_CAPACITY` - All compute
|
4797
|
+
# environments have insufficient capacity to service the job.
|
4798
|
+
#
|
4799
|
+
# * `MISCONFIGURATION:COMPUTE_ENVIRONMENT_MAX_RESOURCE` - All compute
|
4800
|
+
# environments have a `maxVcpu` setting that is smaller than the job
|
4801
|
+
# requirements.
|
4802
|
+
#
|
4803
|
+
# * `MISCONFIGURATION:JOB_RESOURCE_REQUIREMENT` - All compute
|
4804
|
+
# environments have no connected instances that meet the job
|
4805
|
+
# requirements.
|
4806
|
+
#
|
4807
|
+
# * `MISCONFIGURATION:SERVICE_ROLE_PERMISSIONS` - All compute
|
4808
|
+
# environments have problems with the service role permissions.
|
4748
4809
|
# @return [String]
|
4749
4810
|
#
|
4750
4811
|
# @!attribute [rw] created_at
|
@@ -4958,6 +5019,13 @@ module Aws::Batch
|
|
4958
5019
|
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/using-tags.html
|
4959
5020
|
# @return [Hash<String,String>]
|
4960
5021
|
#
|
5022
|
+
# @!attribute [rw] job_state_time_limit_actions
|
5023
|
+
# The set of actions that Batch perform on jobs that remain at the
|
5024
|
+
# head of the job queue in the specified state longer than specified
|
5025
|
+
# times. Batch will perform each action after `maxTimeSeconds` has
|
5026
|
+
# passed.
|
5027
|
+
# @return [Array<Types::JobStateTimeLimitAction>]
|
5028
|
+
#
|
4961
5029
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobQueueDetail AWS API Documentation
|
4962
5030
|
#
|
4963
5031
|
class JobQueueDetail < Struct.new(
|
@@ -4969,7 +5037,45 @@ module Aws::Batch
|
|
4969
5037
|
:status_reason,
|
4970
5038
|
:priority,
|
4971
5039
|
:compute_environment_order,
|
4972
|
-
:tags
|
5040
|
+
:tags,
|
5041
|
+
:job_state_time_limit_actions)
|
5042
|
+
SENSITIVE = []
|
5043
|
+
include Aws::Structure
|
5044
|
+
end
|
5045
|
+
|
5046
|
+
# Specifies an action that Batch will take after the job has remained at
|
5047
|
+
# the head of the queue in the specified state for longer than the
|
5048
|
+
# specified time.
|
5049
|
+
#
|
5050
|
+
# @!attribute [rw] reason
|
5051
|
+
# The reason to log for the action being taken.
|
5052
|
+
# @return [String]
|
5053
|
+
#
|
5054
|
+
# @!attribute [rw] state
|
5055
|
+
# The state of the job needed to trigger the action. The only
|
5056
|
+
# supported value is "`RUNNABLE`".
|
5057
|
+
# @return [String]
|
5058
|
+
#
|
5059
|
+
# @!attribute [rw] max_time_seconds
|
5060
|
+
# The approximate amount of time, in seconds, that must pass with the
|
5061
|
+
# job in the specified state before the action is taken. The minimum
|
5062
|
+
# value is 600 (10 minutes) and the maximum value is 86,400 (24
|
5063
|
+
# hours).
|
5064
|
+
# @return [Integer]
|
5065
|
+
#
|
5066
|
+
# @!attribute [rw] action
|
5067
|
+
# The action to take when a job is at the head of the job queue in the
|
5068
|
+
# specified state for the specified period of time. The only supported
|
5069
|
+
# value is "`CANCEL`", which will cancel the job.
|
5070
|
+
# @return [String]
|
5071
|
+
#
|
5072
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobStateTimeLimitAction AWS API Documentation
|
5073
|
+
#
|
5074
|
+
class JobStateTimeLimitAction < Struct.new(
|
5075
|
+
:reason,
|
5076
|
+
:state,
|
5077
|
+
:max_time_seconds,
|
5078
|
+
:action)
|
4973
5079
|
SENSITIVE = []
|
4974
5080
|
include Aws::Structure
|
4975
5081
|
end
|
@@ -6903,7 +7009,7 @@ module Aws::Batch
|
|
6903
7009
|
# rest of the containers in a task. If this parameter is omitted, a
|
6904
7010
|
# container is assumed to be essential.
|
6905
7011
|
#
|
6906
|
-
# All
|
7012
|
+
# All jobs must have at least one essential container. If you have an
|
6907
7013
|
# application that's composed of multiple containers, group
|
6908
7014
|
# containers that are used for a common purpose into components, and
|
6909
7015
|
# separate the different components into multiple task definitions.
|
@@ -7287,7 +7393,7 @@ module Aws::Batch
|
|
7287
7393
|
# rest of the containers in a task. If this parameter is omitted, a
|
7288
7394
|
# container is assumed to be essential.
|
7289
7395
|
#
|
7290
|
-
# All
|
7396
|
+
# All jobs must have at least one essential container. If you have an
|
7291
7397
|
# application that's composed of multiple containers, group
|
7292
7398
|
# containers that are used for a common purpose into components, and
|
7293
7399
|
# separate the different components into multiple task definitions.
|
@@ -7871,6 +7977,13 @@ module Aws::Batch
|
|
7871
7977
|
# </note>
|
7872
7978
|
# @return [Array<Types::ComputeEnvironmentOrder>]
|
7873
7979
|
#
|
7980
|
+
# @!attribute [rw] job_state_time_limit_actions
|
7981
|
+
# The set of actions that Batch perform on jobs that remain at the
|
7982
|
+
# head of the job queue in the specified state longer than specified
|
7983
|
+
# times. Batch will perform each action after `maxTimeSeconds` has
|
7984
|
+
# passed.
|
7985
|
+
# @return [Array<Types::JobStateTimeLimitAction>]
|
7986
|
+
#
|
7874
7987
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/UpdateJobQueueRequest AWS API Documentation
|
7875
7988
|
#
|
7876
7989
|
class UpdateJobQueueRequest < Struct.new(
|
@@ -7878,7 +7991,8 @@ module Aws::Batch
|
|
7878
7991
|
:state,
|
7879
7992
|
:scheduling_policy_arn,
|
7880
7993
|
:priority,
|
7881
|
-
:compute_environment_order
|
7994
|
+
:compute_environment_order,
|
7995
|
+
:job_state_time_limit_actions)
|
7882
7996
|
SENSITIVE = []
|
7883
7997
|
include Aws::Structure
|
7884
7998
|
end
|
data/lib/aws-sdk-batch.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -148,7 +148,15 @@ module Aws
|
|
148
148
|
compute_environment: ::String
|
149
149
|
},
|
150
150
|
],
|
151
|
-
?tags: Hash[::String, ::String]
|
151
|
+
?tags: Hash[::String, ::String],
|
152
|
+
?job_state_time_limit_actions: Array[
|
153
|
+
{
|
154
|
+
reason: ::String,
|
155
|
+
state: ("RUNNABLE"),
|
156
|
+
max_time_seconds: ::Integer,
|
157
|
+
action: ("CANCEL")
|
158
|
+
},
|
159
|
+
]
|
152
160
|
) -> _CreateJobQueueResponseSuccess
|
153
161
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateJobQueueResponseSuccess
|
154
162
|
|
@@ -696,6 +704,11 @@ module Aws
|
|
696
704
|
service_account_name: ::String?,
|
697
705
|
host_network: bool?,
|
698
706
|
dns_policy: ::String?,
|
707
|
+
image_pull_secrets: Array[
|
708
|
+
{
|
709
|
+
name: ::String
|
710
|
+
},
|
711
|
+
]?,
|
699
712
|
containers: Array[
|
700
713
|
{
|
701
714
|
name: ::String?,
|
@@ -724,6 +737,7 @@ module Aws
|
|
724
737
|
run_as_user: ::Integer?,
|
725
738
|
run_as_group: ::Integer?,
|
726
739
|
privileged: bool?,
|
740
|
+
allow_privilege_escalation: bool?,
|
727
741
|
read_only_root_filesystem: bool?,
|
728
742
|
run_as_non_root: bool?
|
729
743
|
}?
|
@@ -757,6 +771,7 @@ module Aws
|
|
757
771
|
run_as_user: ::Integer?,
|
758
772
|
run_as_group: ::Integer?,
|
759
773
|
privileged: bool?,
|
774
|
+
allow_privilege_escalation: bool?,
|
760
775
|
read_only_root_filesystem: bool?,
|
761
776
|
run_as_non_root: bool?
|
762
777
|
}?
|
@@ -1179,6 +1194,14 @@ module Aws
|
|
1179
1194
|
order: ::Integer,
|
1180
1195
|
compute_environment: ::String
|
1181
1196
|
},
|
1197
|
+
],
|
1198
|
+
?job_state_time_limit_actions: Array[
|
1199
|
+
{
|
1200
|
+
reason: ::String,
|
1201
|
+
state: ("RUNNABLE"),
|
1202
|
+
max_time_seconds: ::Integer,
|
1203
|
+
action: ("CANCEL")
|
1204
|
+
},
|
1182
1205
|
]
|
1183
1206
|
) -> _UpdateJobQueueResponseSuccess
|
1184
1207
|
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateJobQueueResponseSuccess
|
data/sig/types.rbs
CHANGED
@@ -226,6 +226,7 @@ module Aws::Batch
|
|
226
226
|
attr_accessor priority: ::Integer
|
227
227
|
attr_accessor compute_environment_order: ::Array[Types::ComputeEnvironmentOrder]
|
228
228
|
attr_accessor tags: ::Hash[::String, ::String]
|
229
|
+
attr_accessor job_state_time_limit_actions: ::Array[Types::JobStateTimeLimitAction]
|
229
230
|
SENSITIVE: []
|
230
231
|
end
|
231
232
|
|
@@ -492,6 +493,7 @@ module Aws::Batch
|
|
492
493
|
attr_accessor run_as_user: ::Integer
|
493
494
|
attr_accessor run_as_group: ::Integer
|
494
495
|
attr_accessor privileged: bool
|
496
|
+
attr_accessor allow_privilege_escalation: bool
|
495
497
|
attr_accessor read_only_root_filesystem: bool
|
496
498
|
attr_accessor run_as_non_root: bool
|
497
499
|
SENSITIVE: []
|
@@ -524,6 +526,7 @@ module Aws::Batch
|
|
524
526
|
attr_accessor service_account_name: ::String
|
525
527
|
attr_accessor host_network: bool
|
526
528
|
attr_accessor dns_policy: ::String
|
529
|
+
attr_accessor image_pull_secrets: ::Array[Types::ImagePullSecret]
|
527
530
|
attr_accessor containers: ::Array[Types::EksContainer]
|
528
531
|
attr_accessor init_containers: ::Array[Types::EksContainer]
|
529
532
|
attr_accessor volumes: ::Array[Types::EksVolume]
|
@@ -536,6 +539,7 @@ module Aws::Batch
|
|
536
539
|
attr_accessor service_account_name: ::String
|
537
540
|
attr_accessor host_network: bool
|
538
541
|
attr_accessor dns_policy: ::String
|
542
|
+
attr_accessor image_pull_secrets: ::Array[Types::ImagePullSecret]
|
539
543
|
attr_accessor containers: ::Array[Types::EksContainerDetail]
|
540
544
|
attr_accessor init_containers: ::Array[Types::EksContainerDetail]
|
541
545
|
attr_accessor volumes: ::Array[Types::EksVolume]
|
@@ -612,6 +616,11 @@ module Aws::Batch
|
|
612
616
|
SENSITIVE: []
|
613
617
|
end
|
614
618
|
|
619
|
+
class ImagePullSecret
|
620
|
+
attr_accessor name: ::String
|
621
|
+
SENSITIVE: []
|
622
|
+
end
|
623
|
+
|
615
624
|
class JobDefinition
|
616
625
|
attr_accessor job_definition_name: ::String
|
617
626
|
attr_accessor job_definition_arn: ::String
|
@@ -682,6 +691,15 @@ module Aws::Batch
|
|
682
691
|
attr_accessor priority: ::Integer
|
683
692
|
attr_accessor compute_environment_order: ::Array[Types::ComputeEnvironmentOrder]
|
684
693
|
attr_accessor tags: ::Hash[::String, ::String]
|
694
|
+
attr_accessor job_state_time_limit_actions: ::Array[Types::JobStateTimeLimitAction]
|
695
|
+
SENSITIVE: []
|
696
|
+
end
|
697
|
+
|
698
|
+
class JobStateTimeLimitAction
|
699
|
+
attr_accessor reason: ::String
|
700
|
+
attr_accessor state: ("RUNNABLE")
|
701
|
+
attr_accessor max_time_seconds: ::Integer
|
702
|
+
attr_accessor action: ("CANCEL")
|
685
703
|
SENSITIVE: []
|
686
704
|
end
|
687
705
|
|
@@ -1072,6 +1090,7 @@ module Aws::Batch
|
|
1072
1090
|
attr_accessor scheduling_policy_arn: ::String
|
1073
1091
|
attr_accessor priority: ::Integer
|
1074
1092
|
attr_accessor compute_environment_order: ::Array[Types::ComputeEnvironmentOrder]
|
1093
|
+
attr_accessor job_state_time_limit_actions: ::Array[Types::JobStateTimeLimitAction]
|
1075
1094
|
SENSITIVE: []
|
1076
1095
|
end
|
1077
1096
|
|
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.84.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: 2024-
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|