aws-sdk-batch 1.83.0 → 1.85.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 +30 -1
- data/lib/aws-sdk-batch/client_api.rb +32 -0
- data/lib/aws-sdk-batch/types.rb +120 -3
- data/lib/aws-sdk-batch.rb +1 -1
- data/sig/client.rbs +7 -0
- data/sig/types.rbs +26 -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: 1085447534e64c9ffc179fc8f223704bcfda3e528ba5f0b9ba5d9de896a568ef
|
4
|
+
data.tar.gz: 7464a5537908c66821026d68c86639ec231d6df9e31d7bd6402ae1a44a60a598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9db2385bbcab6044ba705fd826a9c65273afa34c15580134c1c5b6ce8846189e5fec277387eec15dd58e14720471da65b614ecfb6ff75c5d4772b2cd35813af
|
7
|
+
data.tar.gz: 36fdfda39b63045052189a97d92f1c69283b61dd2ca2372a95e42aabbd7ff4304af2b7504a2214e433da33b3f7938173c9057fd3d7a3c82ab34986755f9b0604
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.85.0 (2024-04-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds the task properties field to attempt details and the name field on EKS container detail.
|
8
|
+
|
9
|
+
1.84.0 (2024-03-27)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This feature allows AWS Batch to support configuration of imagePullSecrets and allowPrivilegeEscalation for jobs running on EKS
|
13
|
+
|
4
14
|
1.83.0 (2024-03-08)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.85.0
|
data/lib/aws-sdk-batch/client.rb
CHANGED
@@ -1762,6 +1762,8 @@ module Aws::Batch
|
|
1762
1762
|
# resp.job_definitions[0].eks_properties.pod_properties.service_account_name #=> String
|
1763
1763
|
# resp.job_definitions[0].eks_properties.pod_properties.host_network #=> Boolean
|
1764
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
|
1765
1767
|
# resp.job_definitions[0].eks_properties.pod_properties.containers #=> Array
|
1766
1768
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].name #=> String
|
1767
1769
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].image #=> String
|
@@ -1784,6 +1786,7 @@ module Aws::Batch
|
|
1784
1786
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_user #=> Integer
|
1785
1787
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_group #=> Integer
|
1786
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
|
1787
1790
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
|
1788
1791
|
# resp.job_definitions[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
|
1789
1792
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers #=> Array
|
@@ -1808,6 +1811,7 @@ module Aws::Batch
|
|
1808
1811
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_user #=> Integer
|
1809
1812
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_group #=> Integer
|
1810
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
|
1811
1815
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
|
1812
1816
|
# resp.job_definitions[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
|
1813
1817
|
# resp.job_definitions[0].eks_properties.pod_properties.volumes #=> Array
|
@@ -2025,6 +2029,18 @@ module Aws::Batch
|
|
2025
2029
|
# resp.jobs[0].attempts[0].started_at #=> Integer
|
2026
2030
|
# resp.jobs[0].attempts[0].stopped_at #=> Integer
|
2027
2031
|
# resp.jobs[0].attempts[0].status_reason #=> String
|
2032
|
+
# resp.jobs[0].attempts[0].task_properties #=> Array
|
2033
|
+
# resp.jobs[0].attempts[0].task_properties[0].container_instance_arn #=> String
|
2034
|
+
# resp.jobs[0].attempts[0].task_properties[0].task_arn #=> String
|
2035
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers #=> Array
|
2036
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers[0].exit_code #=> Integer
|
2037
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers[0].name #=> String
|
2038
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers[0].reason #=> String
|
2039
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers[0].log_stream_name #=> String
|
2040
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers[0].network_interfaces #=> Array
|
2041
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers[0].network_interfaces[0].attachment_id #=> String
|
2042
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers[0].network_interfaces[0].ipv6_address #=> String
|
2043
|
+
# resp.jobs[0].attempts[0].task_properties[0].containers[0].network_interfaces[0].private_ipv_4_address #=> String
|
2028
2044
|
# resp.jobs[0].status_reason #=> String
|
2029
2045
|
# resp.jobs[0].created_at #=> Integer
|
2030
2046
|
# resp.jobs[0].retry_strategy.attempts #=> Integer
|
@@ -2266,6 +2282,8 @@ module Aws::Batch
|
|
2266
2282
|
# resp.jobs[0].eks_properties.pod_properties.service_account_name #=> String
|
2267
2283
|
# resp.jobs[0].eks_properties.pod_properties.host_network #=> Boolean
|
2268
2284
|
# resp.jobs[0].eks_properties.pod_properties.dns_policy #=> String
|
2285
|
+
# resp.jobs[0].eks_properties.pod_properties.image_pull_secrets #=> Array
|
2286
|
+
# resp.jobs[0].eks_properties.pod_properties.image_pull_secrets[0].name #=> String
|
2269
2287
|
# resp.jobs[0].eks_properties.pod_properties.containers #=> Array
|
2270
2288
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].name #=> String
|
2271
2289
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].image #=> String
|
@@ -2290,6 +2308,7 @@ module Aws::Batch
|
|
2290
2308
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_user #=> Integer
|
2291
2309
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_group #=> Integer
|
2292
2310
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.privileged #=> Boolean
|
2311
|
+
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.allow_privilege_escalation #=> Boolean
|
2293
2312
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.read_only_root_filesystem #=> Boolean
|
2294
2313
|
# resp.jobs[0].eks_properties.pod_properties.containers[0].security_context.run_as_non_root #=> Boolean
|
2295
2314
|
# resp.jobs[0].eks_properties.pod_properties.init_containers #=> Array
|
@@ -2316,6 +2335,7 @@ module Aws::Batch
|
|
2316
2335
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_user #=> Integer
|
2317
2336
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_group #=> Integer
|
2318
2337
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.privileged #=> Boolean
|
2338
|
+
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.allow_privilege_escalation #=> Boolean
|
2319
2339
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.read_only_root_filesystem #=> Boolean
|
2320
2340
|
# resp.jobs[0].eks_properties.pod_properties.init_containers[0].security_context.run_as_non_root #=> Boolean
|
2321
2341
|
# resp.jobs[0].eks_properties.pod_properties.volumes #=> Array
|
@@ -2332,9 +2352,11 @@ module Aws::Batch
|
|
2332
2352
|
# resp.jobs[0].eks_properties.pod_properties.share_process_namespace #=> Boolean
|
2333
2353
|
# resp.jobs[0].eks_attempts #=> Array
|
2334
2354
|
# resp.jobs[0].eks_attempts[0].containers #=> Array
|
2355
|
+
# resp.jobs[0].eks_attempts[0].containers[0].name #=> String
|
2335
2356
|
# resp.jobs[0].eks_attempts[0].containers[0].exit_code #=> Integer
|
2336
2357
|
# resp.jobs[0].eks_attempts[0].containers[0].reason #=> String
|
2337
2358
|
# resp.jobs[0].eks_attempts[0].init_containers #=> Array
|
2359
|
+
# resp.jobs[0].eks_attempts[0].init_containers[0].name #=> String
|
2338
2360
|
# resp.jobs[0].eks_attempts[0].init_containers[0].exit_code #=> Integer
|
2339
2361
|
# resp.jobs[0].eks_attempts[0].init_containers[0].reason #=> String
|
2340
2362
|
# resp.jobs[0].eks_attempts[0].pod_name #=> String
|
@@ -3370,6 +3392,11 @@ module Aws::Batch
|
|
3370
3392
|
# service_account_name: "String",
|
3371
3393
|
# host_network: false,
|
3372
3394
|
# dns_policy: "String",
|
3395
|
+
# image_pull_secrets: [
|
3396
|
+
# {
|
3397
|
+
# name: "String", # required
|
3398
|
+
# },
|
3399
|
+
# ],
|
3373
3400
|
# containers: [
|
3374
3401
|
# {
|
3375
3402
|
# name: "String",
|
@@ -3402,6 +3429,7 @@ module Aws::Batch
|
|
3402
3429
|
# run_as_user: 1,
|
3403
3430
|
# run_as_group: 1,
|
3404
3431
|
# privileged: false,
|
3432
|
+
# allow_privilege_escalation: false,
|
3405
3433
|
# read_only_root_filesystem: false,
|
3406
3434
|
# run_as_non_root: false,
|
3407
3435
|
# },
|
@@ -3439,6 +3467,7 @@ module Aws::Batch
|
|
3439
3467
|
# run_as_user: 1,
|
3440
3468
|
# run_as_group: 1,
|
3441
3469
|
# privileged: false,
|
3470
|
+
# allow_privilege_escalation: false,
|
3442
3471
|
# read_only_root_filesystem: false,
|
3443
3472
|
# run_as_non_root: false,
|
3444
3473
|
# },
|
@@ -4465,7 +4494,7 @@ module Aws::Batch
|
|
4465
4494
|
params: params,
|
4466
4495
|
config: config)
|
4467
4496
|
context[:gem_name] = 'aws-sdk-batch'
|
4468
|
-
context[:gem_version] = '1.
|
4497
|
+
context[:gem_version] = '1.85.0'
|
4469
4498
|
Seahorse::Client::Request.new(handlers, context)
|
4470
4499
|
end
|
4471
4500
|
|
@@ -22,6 +22,8 @@ module Aws::Batch
|
|
22
22
|
AttemptContainerDetail = Shapes::StructureShape.new(name: 'AttemptContainerDetail')
|
23
23
|
AttemptDetail = Shapes::StructureShape.new(name: 'AttemptDetail')
|
24
24
|
AttemptDetails = Shapes::ListShape.new(name: 'AttemptDetails')
|
25
|
+
AttemptEcsTaskDetails = Shapes::StructureShape.new(name: 'AttemptEcsTaskDetails')
|
26
|
+
AttemptTaskContainerDetails = Shapes::StructureShape.new(name: 'AttemptTaskContainerDetails')
|
25
27
|
Boolean = Shapes::BooleanShape.new(name: 'Boolean')
|
26
28
|
CEState = Shapes::StringShape.new(name: 'CEState')
|
27
29
|
CEStatus = Shapes::StringShape.new(name: 'CEStatus')
|
@@ -122,6 +124,8 @@ module Aws::Batch
|
|
122
124
|
Float = Shapes::FloatShape.new(name: 'Float')
|
123
125
|
Host = Shapes::StructureShape.new(name: 'Host')
|
124
126
|
ImageIdOverride = Shapes::StringShape.new(name: 'ImageIdOverride')
|
127
|
+
ImagePullSecret = Shapes::StructureShape.new(name: 'ImagePullSecret')
|
128
|
+
ImagePullSecrets = Shapes::ListShape.new(name: 'ImagePullSecrets')
|
125
129
|
ImageType = Shapes::StringShape.new(name: 'ImageType')
|
126
130
|
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
127
131
|
JQState = Shapes::StringShape.new(name: 'JQState')
|
@@ -149,6 +153,8 @@ module Aws::Batch
|
|
149
153
|
KubernetesVersion = Shapes::StringShape.new(name: 'KubernetesVersion')
|
150
154
|
LaunchTemplateSpecification = Shapes::StructureShape.new(name: 'LaunchTemplateSpecification')
|
151
155
|
LinuxParameters = Shapes::StructureShape.new(name: 'LinuxParameters')
|
156
|
+
ListAttemptEcsTaskDetails = Shapes::ListShape.new(name: 'ListAttemptEcsTaskDetails')
|
157
|
+
ListAttemptTaskContainerDetails = Shapes::ListShape.new(name: 'ListAttemptTaskContainerDetails')
|
152
158
|
ListEcsTaskDetails = Shapes::ListShape.new(name: 'ListEcsTaskDetails')
|
153
159
|
ListEcsTaskProperties = Shapes::ListShape.new(name: 'ListEcsTaskProperties')
|
154
160
|
ListJobsFilterList = Shapes::ListShape.new(name: 'ListJobsFilterList')
|
@@ -264,10 +270,23 @@ module Aws::Batch
|
|
264
270
|
AttemptDetail.add_member(:started_at, Shapes::ShapeRef.new(shape: Long, location_name: "startedAt"))
|
265
271
|
AttemptDetail.add_member(:stopped_at, Shapes::ShapeRef.new(shape: Long, location_name: "stoppedAt"))
|
266
272
|
AttemptDetail.add_member(:status_reason, Shapes::ShapeRef.new(shape: String, location_name: "statusReason"))
|
273
|
+
AttemptDetail.add_member(:task_properties, Shapes::ShapeRef.new(shape: ListAttemptEcsTaskDetails, location_name: "taskProperties"))
|
267
274
|
AttemptDetail.struct_class = Types::AttemptDetail
|
268
275
|
|
269
276
|
AttemptDetails.member = Shapes::ShapeRef.new(shape: AttemptDetail)
|
270
277
|
|
278
|
+
AttemptEcsTaskDetails.add_member(:container_instance_arn, Shapes::ShapeRef.new(shape: String, location_name: "containerInstanceArn"))
|
279
|
+
AttemptEcsTaskDetails.add_member(:task_arn, Shapes::ShapeRef.new(shape: String, location_name: "taskArn"))
|
280
|
+
AttemptEcsTaskDetails.add_member(:containers, Shapes::ShapeRef.new(shape: ListAttemptTaskContainerDetails, location_name: "containers"))
|
281
|
+
AttemptEcsTaskDetails.struct_class = Types::AttemptEcsTaskDetails
|
282
|
+
|
283
|
+
AttemptTaskContainerDetails.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
|
284
|
+
AttemptTaskContainerDetails.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
285
|
+
AttemptTaskContainerDetails.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
|
286
|
+
AttemptTaskContainerDetails.add_member(:log_stream_name, Shapes::ShapeRef.new(shape: String, location_name: "logStreamName"))
|
287
|
+
AttemptTaskContainerDetails.add_member(:network_interfaces, Shapes::ShapeRef.new(shape: NetworkInterfaceList, location_name: "networkInterfaces"))
|
288
|
+
AttemptTaskContainerDetails.struct_class = Types::AttemptTaskContainerDetails
|
289
|
+
|
271
290
|
CancelJobRequest.add_member(:job_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobId"))
|
272
291
|
CancelJobRequest.add_member(:reason, Shapes::ShapeRef.new(shape: String, required: true, location_name: "reason"))
|
273
292
|
CancelJobRequest.struct_class = Types::CancelJobRequest
|
@@ -567,6 +586,7 @@ module Aws::Batch
|
|
567
586
|
EcsTaskProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: Volumes, location_name: "volumes"))
|
568
587
|
EcsTaskProperties.struct_class = Types::EcsTaskProperties
|
569
588
|
|
589
|
+
EksAttemptContainerDetail.add_member(:name, Shapes::ShapeRef.new(shape: String, location_name: "name"))
|
570
590
|
EksAttemptContainerDetail.add_member(:exit_code, Shapes::ShapeRef.new(shape: Integer, location_name: "exitCode"))
|
571
591
|
EksAttemptContainerDetail.add_member(:reason, Shapes::ShapeRef.new(shape: String, location_name: "reason"))
|
572
592
|
EksAttemptContainerDetail.struct_class = Types::EksAttemptContainerDetail
|
@@ -637,6 +657,7 @@ module Aws::Batch
|
|
637
657
|
EksContainerSecurityContext.add_member(:run_as_user, Shapes::ShapeRef.new(shape: Long, location_name: "runAsUser"))
|
638
658
|
EksContainerSecurityContext.add_member(:run_as_group, Shapes::ShapeRef.new(shape: Long, location_name: "runAsGroup"))
|
639
659
|
EksContainerSecurityContext.add_member(:privileged, Shapes::ShapeRef.new(shape: Boolean, location_name: "privileged"))
|
660
|
+
EksContainerSecurityContext.add_member(:allow_privilege_escalation, Shapes::ShapeRef.new(shape: Boolean, location_name: "allowPrivilegeEscalation"))
|
640
661
|
EksContainerSecurityContext.add_member(:read_only_root_filesystem, Shapes::ShapeRef.new(shape: Boolean, location_name: "readOnlyRootFilesystem"))
|
641
662
|
EksContainerSecurityContext.add_member(:run_as_non_root, Shapes::ShapeRef.new(shape: Boolean, location_name: "runAsNonRoot"))
|
642
663
|
EksContainerSecurityContext.struct_class = Types::EksContainerSecurityContext
|
@@ -669,6 +690,7 @@ module Aws::Batch
|
|
669
690
|
EksPodProperties.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
|
670
691
|
EksPodProperties.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
|
671
692
|
EksPodProperties.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
|
693
|
+
EksPodProperties.add_member(:image_pull_secrets, Shapes::ShapeRef.new(shape: ImagePullSecrets, location_name: "imagePullSecrets"))
|
672
694
|
EksPodProperties.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainers, location_name: "containers"))
|
673
695
|
EksPodProperties.add_member(:init_containers, Shapes::ShapeRef.new(shape: EksContainers, location_name: "initContainers"))
|
674
696
|
EksPodProperties.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
|
@@ -679,6 +701,7 @@ module Aws::Batch
|
|
679
701
|
EksPodPropertiesDetail.add_member(:service_account_name, Shapes::ShapeRef.new(shape: String, location_name: "serviceAccountName"))
|
680
702
|
EksPodPropertiesDetail.add_member(:host_network, Shapes::ShapeRef.new(shape: Boolean, location_name: "hostNetwork"))
|
681
703
|
EksPodPropertiesDetail.add_member(:dns_policy, Shapes::ShapeRef.new(shape: String, location_name: "dnsPolicy"))
|
704
|
+
EksPodPropertiesDetail.add_member(:image_pull_secrets, Shapes::ShapeRef.new(shape: ImagePullSecrets, location_name: "imagePullSecrets"))
|
682
705
|
EksPodPropertiesDetail.add_member(:containers, Shapes::ShapeRef.new(shape: EksContainerDetails, location_name: "containers"))
|
683
706
|
EksPodPropertiesDetail.add_member(:init_containers, Shapes::ShapeRef.new(shape: EksContainerDetails, location_name: "initContainers"))
|
684
707
|
EksPodPropertiesDetail.add_member(:volumes, Shapes::ShapeRef.new(shape: EksVolumes, location_name: "volumes"))
|
@@ -741,6 +764,11 @@ module Aws::Batch
|
|
741
764
|
Host.add_member(:source_path, Shapes::ShapeRef.new(shape: String, location_name: "sourcePath"))
|
742
765
|
Host.struct_class = Types::Host
|
743
766
|
|
767
|
+
ImagePullSecret.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
|
768
|
+
ImagePullSecret.struct_class = Types::ImagePullSecret
|
769
|
+
|
770
|
+
ImagePullSecrets.member = Shapes::ShapeRef.new(shape: ImagePullSecret)
|
771
|
+
|
744
772
|
JobDefinition.add_member(:job_definition_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinitionName"))
|
745
773
|
JobDefinition.add_member(:job_definition_arn, Shapes::ShapeRef.new(shape: String, required: true, location_name: "jobDefinitionArn"))
|
746
774
|
JobDefinition.add_member(:revision, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "revision"))
|
@@ -863,6 +891,10 @@ module Aws::Batch
|
|
863
891
|
LinuxParameters.add_member(:swappiness, Shapes::ShapeRef.new(shape: Integer, location_name: "swappiness"))
|
864
892
|
LinuxParameters.struct_class = Types::LinuxParameters
|
865
893
|
|
894
|
+
ListAttemptEcsTaskDetails.member = Shapes::ShapeRef.new(shape: AttemptEcsTaskDetails)
|
895
|
+
|
896
|
+
ListAttemptTaskContainerDetails.member = Shapes::ShapeRef.new(shape: AttemptTaskContainerDetails)
|
897
|
+
|
866
898
|
ListEcsTaskDetails.member = Shapes::ShapeRef.new(shape: EcsTaskDetails)
|
867
899
|
|
868
900
|
ListEcsTaskProperties.member = Shapes::ShapeRef.new(shape: EcsTaskProperties)
|
data/lib/aws-sdk-batch/types.rb
CHANGED
@@ -143,13 +143,84 @@ module Aws::Batch
|
|
143
143
|
# current status of the job attempt.
|
144
144
|
# @return [String]
|
145
145
|
#
|
146
|
+
# @!attribute [rw] task_properties
|
147
|
+
# The properties for a task definition that describes the container
|
148
|
+
# and volume definitions of an Amazon ECS task.
|
149
|
+
# @return [Array<Types::AttemptEcsTaskDetails>]
|
150
|
+
#
|
146
151
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/AttemptDetail AWS API Documentation
|
147
152
|
#
|
148
153
|
class AttemptDetail < Struct.new(
|
149
154
|
:container,
|
150
155
|
:started_at,
|
151
156
|
:stopped_at,
|
152
|
-
:status_reason
|
157
|
+
:status_reason,
|
158
|
+
:task_properties)
|
159
|
+
SENSITIVE = []
|
160
|
+
include Aws::Structure
|
161
|
+
end
|
162
|
+
|
163
|
+
# An object that represents the details of a task.
|
164
|
+
#
|
165
|
+
# @!attribute [rw] container_instance_arn
|
166
|
+
# The Amazon Resource Name (ARN) of the container instance that hosts
|
167
|
+
# the task.
|
168
|
+
# @return [String]
|
169
|
+
#
|
170
|
+
# @!attribute [rw] task_arn
|
171
|
+
# The ARN of the Amazon ECS task.
|
172
|
+
# @return [String]
|
173
|
+
#
|
174
|
+
# @!attribute [rw] containers
|
175
|
+
# A list of containers that are included in the `taskProperties` list.
|
176
|
+
# @return [Array<Types::AttemptTaskContainerDetails>]
|
177
|
+
#
|
178
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/AttemptEcsTaskDetails AWS API Documentation
|
179
|
+
#
|
180
|
+
class AttemptEcsTaskDetails < Struct.new(
|
181
|
+
:container_instance_arn,
|
182
|
+
:task_arn,
|
183
|
+
:containers)
|
184
|
+
SENSITIVE = []
|
185
|
+
include Aws::Structure
|
186
|
+
end
|
187
|
+
|
188
|
+
# An object that represents the details of a container that's part of a
|
189
|
+
# job attempt.
|
190
|
+
#
|
191
|
+
# @!attribute [rw] exit_code
|
192
|
+
# The exit code for the container’s attempt. A non-zero exit code is
|
193
|
+
# considered failed.
|
194
|
+
# @return [Integer]
|
195
|
+
#
|
196
|
+
# @!attribute [rw] name
|
197
|
+
# The name of a container.
|
198
|
+
# @return [String]
|
199
|
+
#
|
200
|
+
# @!attribute [rw] reason
|
201
|
+
# A short (255 max characters) string that's easy to understand and
|
202
|
+
# provides additional details for a running or stopped container.
|
203
|
+
# @return [String]
|
204
|
+
#
|
205
|
+
# @!attribute [rw] log_stream_name
|
206
|
+
# The name of the Amazon CloudWatch Logs log stream that's associated
|
207
|
+
# with the container. The log group for Batch jobs is
|
208
|
+
# `/aws/batch/job`. Each container attempt receives a log stream name
|
209
|
+
# when they reach the `RUNNING` status.
|
210
|
+
# @return [String]
|
211
|
+
#
|
212
|
+
# @!attribute [rw] network_interfaces
|
213
|
+
# The network interfaces that are associated with the job attempt.
|
214
|
+
# @return [Array<Types::NetworkInterface>]
|
215
|
+
#
|
216
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/AttemptTaskContainerDetails AWS API Documentation
|
217
|
+
#
|
218
|
+
class AttemptTaskContainerDetails < Struct.new(
|
219
|
+
:exit_code,
|
220
|
+
:name,
|
221
|
+
:reason,
|
222
|
+
:log_stream_name,
|
223
|
+
:network_interfaces)
|
153
224
|
SENSITIVE = []
|
154
225
|
include Aws::Structure
|
155
226
|
end
|
@@ -3211,6 +3282,10 @@ module Aws::Batch
|
|
3211
3282
|
# An object that represents the details for an attempt for a job attempt
|
3212
3283
|
# that an Amazon EKS container runs.
|
3213
3284
|
#
|
3285
|
+
# @!attribute [rw] name
|
3286
|
+
# The name of a container.
|
3287
|
+
# @return [String]
|
3288
|
+
#
|
3214
3289
|
# @!attribute [rw] exit_code
|
3215
3290
|
# The exit code returned for the job attempt. A non-zero exit code is
|
3216
3291
|
# considered failed.
|
@@ -3224,6 +3299,7 @@ module Aws::Batch
|
|
3224
3299
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/EksAttemptContainerDetail AWS API Documentation
|
3225
3300
|
#
|
3226
3301
|
class EksAttemptContainerDetail < Struct.new(
|
3302
|
+
:name,
|
3227
3303
|
:exit_code,
|
3228
3304
|
:reason)
|
3229
3305
|
SENSITIVE = []
|
@@ -3817,6 +3893,12 @@ module Aws::Batch
|
|
3817
3893
|
# [1]: https://kubernetes.io/docs/concepts/security/pod-security-policy/#privileged
|
3818
3894
|
# @return [Boolean]
|
3819
3895
|
#
|
3896
|
+
# @!attribute [rw] allow_privilege_escalation
|
3897
|
+
# Whether or not a container or a Kubernetes pod is allowed to gain
|
3898
|
+
# more privileges than its parent process. The default value is
|
3899
|
+
# `false`.
|
3900
|
+
# @return [Boolean]
|
3901
|
+
#
|
3820
3902
|
# @!attribute [rw] read_only_root_filesystem
|
3821
3903
|
# When this parameter is `true`, the container is given read-only
|
3822
3904
|
# access to its root file system. The default value is `false`. This
|
@@ -3847,6 +3929,7 @@ module Aws::Batch
|
|
3847
3929
|
:run_as_user,
|
3848
3930
|
:run_as_group,
|
3849
3931
|
:privileged,
|
3932
|
+
:allow_privilege_escalation,
|
3850
3933
|
:read_only_root_filesystem,
|
3851
3934
|
:run_as_non_root)
|
3852
3935
|
SENSITIVE = []
|
@@ -4025,6 +4108,14 @@ module Aws::Batch
|
|
4025
4108
|
# [1]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
|
4026
4109
|
# @return [String]
|
4027
4110
|
#
|
4111
|
+
# @!attribute [rw] image_pull_secrets
|
4112
|
+
# References a Kubernetes secret resource. It holds a list of secrets.
|
4113
|
+
# These secrets help to gain access to pull an images from a private
|
4114
|
+
# registry.
|
4115
|
+
#
|
4116
|
+
# `ImagePullSecret$name` is required when this object is used.
|
4117
|
+
# @return [Array<Types::ImagePullSecret>]
|
4118
|
+
#
|
4028
4119
|
# @!attribute [rw] containers
|
4029
4120
|
# The properties of the container that's used on the Amazon EKS pod.
|
4030
4121
|
# @return [Array<Types::EksContainer>]
|
@@ -4077,6 +4168,7 @@ module Aws::Batch
|
|
4077
4168
|
:service_account_name,
|
4078
4169
|
:host_network,
|
4079
4170
|
:dns_policy,
|
4171
|
+
:image_pull_secrets,
|
4080
4172
|
:containers,
|
4081
4173
|
:init_containers,
|
4082
4174
|
:volumes,
|
@@ -4142,6 +4234,12 @@ module Aws::Batch
|
|
4142
4234
|
# [4]: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
|
4143
4235
|
# @return [String]
|
4144
4236
|
#
|
4237
|
+
# @!attribute [rw] image_pull_secrets
|
4238
|
+
# Displays the reference pointer to the Kubernetes secret resource.
|
4239
|
+
# These secrets help to gain access to pull an images from a private
|
4240
|
+
# registry.
|
4241
|
+
# @return [Array<Types::ImagePullSecret>]
|
4242
|
+
#
|
4145
4243
|
# @!attribute [rw] containers
|
4146
4244
|
# The properties of the container that's used on the Amazon EKS pod.
|
4147
4245
|
# @return [Array<Types::EksContainerDetail>]
|
@@ -4192,6 +4290,7 @@ module Aws::Batch
|
|
4192
4290
|
:service_account_name,
|
4193
4291
|
:host_network,
|
4194
4292
|
:dns_policy,
|
4293
|
+
:image_pull_secrets,
|
4195
4294
|
:containers,
|
4196
4295
|
:init_containers,
|
4197
4296
|
:volumes,
|
@@ -4540,6 +4639,24 @@ module Aws::Batch
|
|
4540
4639
|
include Aws::Structure
|
4541
4640
|
end
|
4542
4641
|
|
4642
|
+
# References a Kubernetes secret resource. This name of the secret must
|
4643
|
+
# start and end with an alphanumeric character, is required to be
|
4644
|
+
# lowercase, can include periods (.) and hyphens (-), and can't contain
|
4645
|
+
# more than 253 characters.
|
4646
|
+
#
|
4647
|
+
# @!attribute [rw] name
|
4648
|
+
# Provides a unique identifier for the `ImagePullSecret`. This object
|
4649
|
+
# is required when `EksPodProperties$imagePullSecrets` is used.
|
4650
|
+
# @return [String]
|
4651
|
+
#
|
4652
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ImagePullSecret AWS API Documentation
|
4653
|
+
#
|
4654
|
+
class ImagePullSecret < Struct.new(
|
4655
|
+
:name)
|
4656
|
+
SENSITIVE = []
|
4657
|
+
include Aws::Structure
|
4658
|
+
end
|
4659
|
+
|
4543
4660
|
# An object that represents an Batch job definition.
|
4544
4661
|
#
|
4545
4662
|
# @!attribute [rw] job_definition_name
|
@@ -5014,7 +5131,7 @@ module Aws::Batch
|
|
5014
5131
|
#
|
5015
5132
|
# @!attribute [rw] state
|
5016
5133
|
# The state of the job needed to trigger the action. The only
|
5017
|
-
# supported value is
|
5134
|
+
# supported value is `RUNNABLE`.
|
5018
5135
|
# @return [String]
|
5019
5136
|
#
|
5020
5137
|
# @!attribute [rw] max_time_seconds
|
@@ -5027,7 +5144,7 @@ module Aws::Batch
|
|
5027
5144
|
# @!attribute [rw] action
|
5028
5145
|
# The action to take when a job is at the head of the job queue in the
|
5029
5146
|
# specified state for the specified period of time. The only supported
|
5030
|
-
# value is
|
5147
|
+
# value is `CANCEL`, which will cancel the job.
|
5031
5148
|
# @return [String]
|
5032
5149
|
#
|
5033
5150
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/JobStateTimeLimitAction AWS API Documentation
|
data/lib/aws-sdk-batch.rb
CHANGED
data/sig/client.rbs
CHANGED
@@ -704,6 +704,11 @@ module Aws
|
|
704
704
|
service_account_name: ::String?,
|
705
705
|
host_network: bool?,
|
706
706
|
dns_policy: ::String?,
|
707
|
+
image_pull_secrets: Array[
|
708
|
+
{
|
709
|
+
name: ::String
|
710
|
+
},
|
711
|
+
]?,
|
707
712
|
containers: Array[
|
708
713
|
{
|
709
714
|
name: ::String?,
|
@@ -732,6 +737,7 @@ module Aws
|
|
732
737
|
run_as_user: ::Integer?,
|
733
738
|
run_as_group: ::Integer?,
|
734
739
|
privileged: bool?,
|
740
|
+
allow_privilege_escalation: bool?,
|
735
741
|
read_only_root_filesystem: bool?,
|
736
742
|
run_as_non_root: bool?
|
737
743
|
}?
|
@@ -765,6 +771,7 @@ module Aws
|
|
765
771
|
run_as_user: ::Integer?,
|
766
772
|
run_as_group: ::Integer?,
|
767
773
|
privileged: bool?,
|
774
|
+
allow_privilege_escalation: bool?,
|
768
775
|
read_only_root_filesystem: bool?,
|
769
776
|
run_as_non_root: bool?
|
770
777
|
}?
|
data/sig/types.rbs
CHANGED
@@ -41,6 +41,23 @@ module Aws::Batch
|
|
41
41
|
attr_accessor started_at: ::Integer
|
42
42
|
attr_accessor stopped_at: ::Integer
|
43
43
|
attr_accessor status_reason: ::String
|
44
|
+
attr_accessor task_properties: ::Array[Types::AttemptEcsTaskDetails]
|
45
|
+
SENSITIVE: []
|
46
|
+
end
|
47
|
+
|
48
|
+
class AttemptEcsTaskDetails
|
49
|
+
attr_accessor container_instance_arn: ::String
|
50
|
+
attr_accessor task_arn: ::String
|
51
|
+
attr_accessor containers: ::Array[Types::AttemptTaskContainerDetails]
|
52
|
+
SENSITIVE: []
|
53
|
+
end
|
54
|
+
|
55
|
+
class AttemptTaskContainerDetails
|
56
|
+
attr_accessor exit_code: ::Integer
|
57
|
+
attr_accessor name: ::String
|
58
|
+
attr_accessor reason: ::String
|
59
|
+
attr_accessor log_stream_name: ::String
|
60
|
+
attr_accessor network_interfaces: ::Array[Types::NetworkInterface]
|
44
61
|
SENSITIVE: []
|
45
62
|
end
|
46
63
|
|
@@ -417,6 +434,7 @@ module Aws::Batch
|
|
417
434
|
end
|
418
435
|
|
419
436
|
class EksAttemptContainerDetail
|
437
|
+
attr_accessor name: ::String
|
420
438
|
attr_accessor exit_code: ::Integer
|
421
439
|
attr_accessor reason: ::String
|
422
440
|
SENSITIVE: []
|
@@ -493,6 +511,7 @@ module Aws::Batch
|
|
493
511
|
attr_accessor run_as_user: ::Integer
|
494
512
|
attr_accessor run_as_group: ::Integer
|
495
513
|
attr_accessor privileged: bool
|
514
|
+
attr_accessor allow_privilege_escalation: bool
|
496
515
|
attr_accessor read_only_root_filesystem: bool
|
497
516
|
attr_accessor run_as_non_root: bool
|
498
517
|
SENSITIVE: []
|
@@ -525,6 +544,7 @@ module Aws::Batch
|
|
525
544
|
attr_accessor service_account_name: ::String
|
526
545
|
attr_accessor host_network: bool
|
527
546
|
attr_accessor dns_policy: ::String
|
547
|
+
attr_accessor image_pull_secrets: ::Array[Types::ImagePullSecret]
|
528
548
|
attr_accessor containers: ::Array[Types::EksContainer]
|
529
549
|
attr_accessor init_containers: ::Array[Types::EksContainer]
|
530
550
|
attr_accessor volumes: ::Array[Types::EksVolume]
|
@@ -537,6 +557,7 @@ module Aws::Batch
|
|
537
557
|
attr_accessor service_account_name: ::String
|
538
558
|
attr_accessor host_network: bool
|
539
559
|
attr_accessor dns_policy: ::String
|
560
|
+
attr_accessor image_pull_secrets: ::Array[Types::ImagePullSecret]
|
540
561
|
attr_accessor containers: ::Array[Types::EksContainerDetail]
|
541
562
|
attr_accessor init_containers: ::Array[Types::EksContainerDetail]
|
542
563
|
attr_accessor volumes: ::Array[Types::EksVolume]
|
@@ -613,6 +634,11 @@ module Aws::Batch
|
|
613
634
|
SENSITIVE: []
|
614
635
|
end
|
615
636
|
|
637
|
+
class ImagePullSecret
|
638
|
+
attr_accessor name: ::String
|
639
|
+
SENSITIVE: []
|
640
|
+
end
|
641
|
+
|
616
642
|
class JobDefinition
|
617
643
|
attr_accessor job_definition_name: ::String
|
618
644
|
attr_accessor job_definition_arn: ::String
|
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.85.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-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|