aws-sdk-batch 1.152.0 → 1.154.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 +312 -15
- data/lib/aws-sdk-batch/client_api.rb +103 -0
- data/lib/aws-sdk-batch/types.rb +438 -13
- data/lib/aws-sdk-batch.rb +1 -1
- data/sig/client.rbs +47 -1
- data/sig/types.rbs +73 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba786436ff14560699e825e94ff398a18d0ebacef4e7c64805f75a33681c8215
|
|
4
|
+
data.tar.gz: 401dde7c0532bb4ee15ccb6406ca7b488047b30a12f4e84b53c01b9a2ba849c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57da98d09d7389968f61eb0e8eb25d7ea799bf35dd5c1065cb9e0db2f2dba966b70627e4f2fc346bcb114e92cb21400f13b65f5afb20aa10d3ff5c0d9a7d6a55
|
|
7
|
+
data.tar.gz: 4d202ee0f53477584df65ab5cd3e1a2f6566d8a2daa4bd8b5d9e70d190026e62ff1000a0bb24c78f17fd15ea724a432475e3a71b6ad7f9c35d82d90e332f4aed
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.154.0 (2026-09-30)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - AWS Batch adds support for Amazon EKS access entries on EKS compute environments through the new accessEntry setting in CreateComputeEnvironment and UpdateComputeEnvironment.
|
|
8
|
+
|
|
9
|
+
1.153.0 (2026-09-11)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Added new bulk job APIs (CancelJobs, TerminateJobs, TerminateServiceJobs) and new fields on ListJobs and ListServiceJobs responses. This allows customers to cancel or terminate multiple jobs in a single request. ListJobs and ListServiceJobs responses now include isCancelled and isTerminated fields.
|
|
13
|
+
|
|
4
14
|
1.152.0 (2026-09-09)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.154.0
|
data/lib/aws-sdk-batch/client.rb
CHANGED
|
@@ -478,30 +478,30 @@ module Aws::Batch
|
|
|
478
478
|
# `PENDING`, or `RUNNABLE` state are cancelled and the job status is
|
|
479
479
|
# updated to `FAILED`.
|
|
480
480
|
#
|
|
481
|
-
# <note markdown="1"> A `PENDING` job is
|
|
482
|
-
# Therefore, it
|
|
481
|
+
# <note markdown="1"> A `PENDING` job is cancelled after all dependency jobs are completed.
|
|
482
|
+
# Therefore, it might take longer than expected to cancel a job in
|
|
483
483
|
# `PENDING` status.
|
|
484
484
|
#
|
|
485
485
|
# When you try to cancel an array parent job in `PENDING`, Batch
|
|
486
|
-
# attempts to cancel all child jobs. The array parent job is
|
|
486
|
+
# attempts to cancel all child jobs. The array parent job is cancelled
|
|
487
487
|
# when all child jobs are completed.
|
|
488
488
|
#
|
|
489
489
|
# </note>
|
|
490
490
|
#
|
|
491
491
|
# Jobs that progressed to the `STARTING` or `RUNNING` state aren't
|
|
492
|
-
#
|
|
493
|
-
#
|
|
494
|
-
# operation.
|
|
492
|
+
# cancelled. However, the API operation still succeeds, even if no job
|
|
493
|
+
# is cancelled. These jobs must be terminated with the TerminateJob or
|
|
494
|
+
# TerminateJobs operation.
|
|
495
495
|
#
|
|
496
496
|
# @option params [required, String] :job_id
|
|
497
497
|
# The Batch job ID of the job to cancel.
|
|
498
498
|
#
|
|
499
499
|
# @option params [required, String] :reason
|
|
500
|
-
# A message to attach to the job that explains the reason for
|
|
500
|
+
# A message to attach to the job that explains the reason for cancelling
|
|
501
501
|
# it. This message is returned by future DescribeJobs operations on the
|
|
502
502
|
# job. It is also recorded in the Batch activity logs.
|
|
503
503
|
#
|
|
504
|
-
# This parameter has
|
|
504
|
+
# This parameter has a limit of 1024 characters.
|
|
505
505
|
#
|
|
506
506
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
507
507
|
#
|
|
@@ -535,6 +535,103 @@ module Aws::Batch
|
|
|
535
535
|
req.send_request(options)
|
|
536
536
|
end
|
|
537
537
|
|
|
538
|
+
# Cancels up to 50 jobs in an Batch job queue. This is a bulk version of
|
|
539
|
+
# CancelJob. Jobs that are in a `SUBMITTED`, `PENDING`, or `RUNNABLE`
|
|
540
|
+
# state are cancelled and the job status is updated to `FAILED`.
|
|
541
|
+
#
|
|
542
|
+
# <note markdown="1"> A `PENDING` job is cancelled after all dependency jobs are completed.
|
|
543
|
+
# Therefore, it might take longer than expected to cancel a job in
|
|
544
|
+
# `PENDING` status.
|
|
545
|
+
#
|
|
546
|
+
# When you try to cancel an array parent job in `PENDING`, Batch
|
|
547
|
+
# attempts to cancel all child jobs. The array parent job is cancelled
|
|
548
|
+
# when all child jobs are completed.
|
|
549
|
+
#
|
|
550
|
+
# </note>
|
|
551
|
+
#
|
|
552
|
+
# Jobs that progressed to the `STARTING` or `RUNNING` state aren't
|
|
553
|
+
# cancelled. These jobs must be terminated with the TerminateJob or
|
|
554
|
+
# TerminateJobs operation.
|
|
555
|
+
#
|
|
556
|
+
# Batch reports the result for each job individually in the response.
|
|
557
|
+
# Jobs that were processed successfully are reported in the `successful`
|
|
558
|
+
# list. Jobs that encountered errors are reported in the `errors` list.
|
|
559
|
+
# The response returns an HTTP status code of `200` even when some jobs
|
|
560
|
+
# encountered errors, so check the `errors` list. Jobs that can't be
|
|
561
|
+
# found are treated as successfully processed.
|
|
562
|
+
#
|
|
563
|
+
# This operation requires `batch:CancelJob` permission for each job in
|
|
564
|
+
# the request. There is no separate `batch:CancelJobs` IAM action. If a
|
|
565
|
+
# caller's IAM policy grants `batch:CancelJob`, they can use both the
|
|
566
|
+
# singular CancelJob and bulk `CancelJobs` operations.
|
|
567
|
+
#
|
|
568
|
+
# @option params [required, Array<String>] :jobs
|
|
569
|
+
# An array of up to 50 Batch job IDs of the jobs to cancel.
|
|
570
|
+
#
|
|
571
|
+
# @option params [required, String] :reason
|
|
572
|
+
# A message to attach to the job that explains the reason for cancelling
|
|
573
|
+
# it. This message is returned by future DescribeJobs operations on the
|
|
574
|
+
# job. It is also recorded in the Batch activity logs.
|
|
575
|
+
#
|
|
576
|
+
# This parameter has a limit of 1024 characters.
|
|
577
|
+
#
|
|
578
|
+
# @return [Types::CancelJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
579
|
+
#
|
|
580
|
+
# * {Types::CancelJobsResponse#successful #successful} => Array<String>
|
|
581
|
+
# * {Types::CancelJobsResponse#errors #errors} => Array<Types::CancelJobsErrorDetail>
|
|
582
|
+
#
|
|
583
|
+
#
|
|
584
|
+
# @example Example: To cancel multiple jobs
|
|
585
|
+
#
|
|
586
|
+
# # This example cancels the jobs with the specified job IDs.
|
|
587
|
+
#
|
|
588
|
+
# resp = client.cancel_jobs({
|
|
589
|
+
# jobs: [
|
|
590
|
+
# "1d828f65-7a4d-42e8-996d-3b900ed59dc4",
|
|
591
|
+
# "b3d0f26e-6d3a-4a5b-9c2e-7f4a1b2c3d4e",
|
|
592
|
+
# ],
|
|
593
|
+
# reason: "Cancelling jobs.",
|
|
594
|
+
# })
|
|
595
|
+
#
|
|
596
|
+
# resp.to_h outputs the following:
|
|
597
|
+
# {
|
|
598
|
+
# errors: [
|
|
599
|
+
# {
|
|
600
|
+
# code: "ServerException",
|
|
601
|
+
# job: "b3d0f26e-6d3a-4a5b-9c2e-7f4a1b2c3d4e",
|
|
602
|
+
# message: "Failed to read job state. Please retry this job.",
|
|
603
|
+
# },
|
|
604
|
+
# ],
|
|
605
|
+
# successful: [
|
|
606
|
+
# "1d828f65-7a4d-42e8-996d-3b900ed59dc4",
|
|
607
|
+
# ],
|
|
608
|
+
# }
|
|
609
|
+
#
|
|
610
|
+
# @example Request syntax with placeholder values
|
|
611
|
+
#
|
|
612
|
+
# resp = client.cancel_jobs({
|
|
613
|
+
# jobs: ["String"], # required
|
|
614
|
+
# reason: "String", # required
|
|
615
|
+
# })
|
|
616
|
+
#
|
|
617
|
+
# @example Response structure
|
|
618
|
+
#
|
|
619
|
+
# resp.successful #=> Array
|
|
620
|
+
# resp.successful[0] #=> String
|
|
621
|
+
# resp.errors #=> Array
|
|
622
|
+
# resp.errors[0].job #=> String
|
|
623
|
+
# resp.errors[0].code #=> String
|
|
624
|
+
# resp.errors[0].message #=> String
|
|
625
|
+
#
|
|
626
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/CancelJobs AWS API Documentation
|
|
627
|
+
#
|
|
628
|
+
# @overload cancel_jobs(params = {})
|
|
629
|
+
# @param [Hash] params ({})
|
|
630
|
+
def cancel_jobs(params = {}, options = {})
|
|
631
|
+
req = build_request(:cancel_jobs, params)
|
|
632
|
+
req.send_request(options)
|
|
633
|
+
end
|
|
634
|
+
|
|
538
635
|
# Creates an Batch compute environment. You can create `MANAGED` or
|
|
539
636
|
# `UNMANAGED` compute environments. `MANAGED` compute environments can
|
|
540
637
|
# use Amazon EC2 or Fargate resources. `UNMANAGED` compute environments
|
|
@@ -702,10 +799,17 @@ module Aws::Batch
|
|
|
702
799
|
# environment.
|
|
703
800
|
#
|
|
704
801
|
# <note markdown="1"> To create a compute environment that uses EKS resources, the caller
|
|
705
|
-
# must have permissions to call `eks:DescribeCluster`.
|
|
802
|
+
# must have permissions to call `eks:DescribeCluster`. Additional Amazon
|
|
803
|
+
# EKS permissions are required for Batch to manage an access entry on
|
|
804
|
+
# the cluster; see [Amazon EKS access entry authentication][1] in the
|
|
805
|
+
# *Batch User Guide*.
|
|
706
806
|
#
|
|
707
807
|
# </note>
|
|
708
808
|
#
|
|
809
|
+
#
|
|
810
|
+
#
|
|
811
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/eks-access-entries.html
|
|
812
|
+
#
|
|
709
813
|
# @option params [String] :context
|
|
710
814
|
# Reserved.
|
|
711
815
|
#
|
|
@@ -1024,6 +1128,10 @@ module Aws::Batch
|
|
|
1024
1128
|
# eks_configuration: {
|
|
1025
1129
|
# eks_cluster_arn: "String", # required
|
|
1026
1130
|
# kubernetes_namespace: "String", # required
|
|
1131
|
+
# access_entry: {
|
|
1132
|
+
# desired_state: "ENABLED", # required, accepts ENABLED, DISABLED, INHERIT_FROM_CLUSTER
|
|
1133
|
+
# status: "ACTIVE", # accepts ACTIVE, INACTIVE
|
|
1134
|
+
# },
|
|
1027
1135
|
# },
|
|
1028
1136
|
# context: "String",
|
|
1029
1137
|
# ecs_settings: {
|
|
@@ -1997,6 +2105,8 @@ module Aws::Batch
|
|
|
1997
2105
|
# resp.compute_environments[0].update_policy.job_execution_timeout_minutes #=> Integer
|
|
1998
2106
|
# resp.compute_environments[0].eks_configuration.eks_cluster_arn #=> String
|
|
1999
2107
|
# resp.compute_environments[0].eks_configuration.kubernetes_namespace #=> String
|
|
2108
|
+
# resp.compute_environments[0].eks_configuration.access_entry.desired_state #=> String, one of "ENABLED", "DISABLED", "INHERIT_FROM_CLUSTER"
|
|
2109
|
+
# resp.compute_environments[0].eks_configuration.access_entry.status #=> String, one of "ACTIVE", "INACTIVE"
|
|
2000
2110
|
# resp.compute_environments[0].container_orchestration_type #=> String, one of "ECS", "EKS"
|
|
2001
2111
|
# resp.compute_environments[0].uuid #=> String
|
|
2002
2112
|
# resp.compute_environments[0].context #=> String
|
|
@@ -4043,6 +4153,8 @@ module Aws::Batch
|
|
|
4043
4153
|
# resp.job_summary_list[0].node_properties.num_nodes #=> Integer
|
|
4044
4154
|
# resp.job_summary_list[0].node_properties.node_index #=> Integer
|
|
4045
4155
|
# resp.job_summary_list[0].job_definition #=> String
|
|
4156
|
+
# resp.job_summary_list[0].is_cancelled #=> Boolean
|
|
4157
|
+
# resp.job_summary_list[0].is_terminated #=> Boolean
|
|
4046
4158
|
# resp.next_token #=> String
|
|
4047
4159
|
#
|
|
4048
4160
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListJobs AWS API Documentation
|
|
@@ -4438,6 +4550,7 @@ module Aws::Batch
|
|
|
4438
4550
|
# resp.job_summary_list[0].status_reason #=> String
|
|
4439
4551
|
# resp.job_summary_list[0].started_at #=> Integer
|
|
4440
4552
|
# resp.job_summary_list[0].stopped_at #=> Integer
|
|
4553
|
+
# resp.job_summary_list[0].is_terminated #=> Boolean
|
|
4441
4554
|
# resp.next_token #=> String
|
|
4442
4555
|
#
|
|
4443
4556
|
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/ListServiceJobs AWS API Documentation
|
|
@@ -6352,11 +6465,11 @@ module Aws::Batch
|
|
|
6352
6465
|
# The Batch job ID of the job to terminate.
|
|
6353
6466
|
#
|
|
6354
6467
|
# @option params [required, String] :reason
|
|
6355
|
-
# A message to attach to the job that explains the reason for
|
|
6356
|
-
# it. This message is returned by future DescribeJobs
|
|
6357
|
-
# job. It is also recorded in the Batch activity logs.
|
|
6468
|
+
# A message to attach to the job that explains the reason for
|
|
6469
|
+
# terminating it. This message is returned by future DescribeJobs
|
|
6470
|
+
# operations on the job. It is also recorded in the Batch activity logs.
|
|
6358
6471
|
#
|
|
6359
|
-
# This parameter has
|
|
6472
|
+
# This parameter has a limit of 1024 characters.
|
|
6360
6473
|
#
|
|
6361
6474
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
6362
6475
|
#
|
|
@@ -6390,6 +6503,90 @@ module Aws::Batch
|
|
|
6390
6503
|
req.send_request(options)
|
|
6391
6504
|
end
|
|
6392
6505
|
|
|
6506
|
+
# Terminates up to 50 jobs in a job queue. This is a bulk version of
|
|
6507
|
+
# TerminateJob. Jobs that are in the `STARTING` or `RUNNING` state are
|
|
6508
|
+
# terminated, which causes them to transition to `FAILED`. Jobs that
|
|
6509
|
+
# have not progressed to the `STARTING` state are cancelled.
|
|
6510
|
+
#
|
|
6511
|
+
# Batch reports the result for each job individually in the response.
|
|
6512
|
+
# Jobs that were processed successfully are reported in the `successful`
|
|
6513
|
+
# list. Jobs that encountered errors are reported in the `errors` list.
|
|
6514
|
+
# The response returns an HTTP status code of `200` even when some jobs
|
|
6515
|
+
# encountered errors, so check the `errors` list. Jobs that can't be
|
|
6516
|
+
# found are treated as successfully processed.
|
|
6517
|
+
#
|
|
6518
|
+
# This operation requires `batch:TerminateJob` permission for each job
|
|
6519
|
+
# in the request. There is no separate `batch:TerminateJobs` IAM action.
|
|
6520
|
+
# If a caller's IAM policy grants `batch:TerminateJob`, they can use
|
|
6521
|
+
# both the singular TerminateJob and bulk `TerminateJobs` operations.
|
|
6522
|
+
#
|
|
6523
|
+
# @option params [required, Array<String>] :jobs
|
|
6524
|
+
# An array of up to 50 Batch job IDs of the jobs to terminate.
|
|
6525
|
+
#
|
|
6526
|
+
# @option params [required, String] :reason
|
|
6527
|
+
# A message to attach to the job that explains the reason for
|
|
6528
|
+
# terminating it. This message is returned by future DescribeJobs
|
|
6529
|
+
# operations on the job. It is also recorded in the Batch activity logs.
|
|
6530
|
+
#
|
|
6531
|
+
# This parameter has a limit of 1024 characters.
|
|
6532
|
+
#
|
|
6533
|
+
# @return [Types::TerminateJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6534
|
+
#
|
|
6535
|
+
# * {Types::TerminateJobsResponse#successful #successful} => Array<String>
|
|
6536
|
+
# * {Types::TerminateJobsResponse#errors #errors} => Array<Types::TerminateJobsErrorDetail>
|
|
6537
|
+
#
|
|
6538
|
+
#
|
|
6539
|
+
# @example Example: To terminate multiple jobs
|
|
6540
|
+
#
|
|
6541
|
+
# # This example terminates the jobs with the specified job IDs.
|
|
6542
|
+
#
|
|
6543
|
+
# resp = client.terminate_jobs({
|
|
6544
|
+
# jobs: [
|
|
6545
|
+
# "61e743ed-35e4-48da-b2de-5c8333821c84",
|
|
6546
|
+
# "b3d0f26e-6d3a-4a5b-9c2e-7f4a1b2c3d4e",
|
|
6547
|
+
# ],
|
|
6548
|
+
# reason: "Terminating jobs.",
|
|
6549
|
+
# })
|
|
6550
|
+
#
|
|
6551
|
+
# resp.to_h outputs the following:
|
|
6552
|
+
# {
|
|
6553
|
+
# errors: [
|
|
6554
|
+
# {
|
|
6555
|
+
# code: "ServerException",
|
|
6556
|
+
# job: "b3d0f26e-6d3a-4a5b-9c2e-7f4a1b2c3d4e",
|
|
6557
|
+
# message: "Failed to read job state. Please retry this job.",
|
|
6558
|
+
# },
|
|
6559
|
+
# ],
|
|
6560
|
+
# successful: [
|
|
6561
|
+
# "61e743ed-35e4-48da-b2de-5c8333821c84",
|
|
6562
|
+
# ],
|
|
6563
|
+
# }
|
|
6564
|
+
#
|
|
6565
|
+
# @example Request syntax with placeholder values
|
|
6566
|
+
#
|
|
6567
|
+
# resp = client.terminate_jobs({
|
|
6568
|
+
# jobs: ["String"], # required
|
|
6569
|
+
# reason: "String", # required
|
|
6570
|
+
# })
|
|
6571
|
+
#
|
|
6572
|
+
# @example Response structure
|
|
6573
|
+
#
|
|
6574
|
+
# resp.successful #=> Array
|
|
6575
|
+
# resp.successful[0] #=> String
|
|
6576
|
+
# resp.errors #=> Array
|
|
6577
|
+
# resp.errors[0].job #=> String
|
|
6578
|
+
# resp.errors[0].code #=> String
|
|
6579
|
+
# resp.errors[0].message #=> String
|
|
6580
|
+
#
|
|
6581
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateJobs AWS API Documentation
|
|
6582
|
+
#
|
|
6583
|
+
# @overload terminate_jobs(params = {})
|
|
6584
|
+
# @param [Hash] params ({})
|
|
6585
|
+
def terminate_jobs(params = {}, options = {})
|
|
6586
|
+
req = build_request(:terminate_jobs, params)
|
|
6587
|
+
req.send_request(options)
|
|
6588
|
+
end
|
|
6589
|
+
|
|
6393
6590
|
# Terminates a service job in a job queue.
|
|
6394
6591
|
#
|
|
6395
6592
|
# @option params [required, String] :job_id
|
|
@@ -6397,7 +6594,7 @@ module Aws::Batch
|
|
|
6397
6594
|
#
|
|
6398
6595
|
# @option params [required, String] :reason
|
|
6399
6596
|
# A message to attach to the service job that explains the reason for
|
|
6400
|
-
#
|
|
6597
|
+
# terminating it. This message is returned by `DescribeServiceJob`
|
|
6401
6598
|
# operations on the service job.
|
|
6402
6599
|
#
|
|
6403
6600
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
|
@@ -6418,6 +6615,88 @@ module Aws::Batch
|
|
|
6418
6615
|
req.send_request(options)
|
|
6419
6616
|
end
|
|
6420
6617
|
|
|
6618
|
+
# Terminates up to 50 service jobs in a job queue. This is a bulk
|
|
6619
|
+
# version of TerminateServiceJob.
|
|
6620
|
+
#
|
|
6621
|
+
# Batch reports the result for each service job individually in the
|
|
6622
|
+
# response. Service jobs that were processed successfully are reported
|
|
6623
|
+
# in the `successful` list. Service jobs that encountered errors are
|
|
6624
|
+
# reported in the `errors` list. The response returns an HTTP status
|
|
6625
|
+
# code of `200` even when some service jobs encountered errors, so check
|
|
6626
|
+
# the `errors` list. Service jobs that can't be found are treated as
|
|
6627
|
+
# successfully processed.
|
|
6628
|
+
#
|
|
6629
|
+
# This operation requires `batch:TerminateServiceJob` permission for
|
|
6630
|
+
# each service job in the request. There is no separate
|
|
6631
|
+
# `batch:TerminateServiceJobs` IAM action. If a caller's IAM policy
|
|
6632
|
+
# grants `batch:TerminateServiceJob`, they can use both the singular
|
|
6633
|
+
# `TerminateServiceJob` and bulk `TerminateServiceJobs` operations.
|
|
6634
|
+
#
|
|
6635
|
+
# @option params [required, Array<String>] :jobs
|
|
6636
|
+
# An array of up to 50 service job IDs of the service jobs to terminate.
|
|
6637
|
+
#
|
|
6638
|
+
# @option params [required, String] :reason
|
|
6639
|
+
# A message to attach to the service job that explains the reason for
|
|
6640
|
+
# terminating it. This message is returned by `DescribeServiceJob`
|
|
6641
|
+
# operations on the service job.
|
|
6642
|
+
#
|
|
6643
|
+
# @return [Types::TerminateServiceJobsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6644
|
+
#
|
|
6645
|
+
# * {Types::TerminateServiceJobsResponse#successful #successful} => Array<String>
|
|
6646
|
+
# * {Types::TerminateServiceJobsResponse#errors #errors} => Array<Types::TerminateServiceJobsErrorDetail>
|
|
6647
|
+
#
|
|
6648
|
+
#
|
|
6649
|
+
# @example Example: To terminate multiple service jobs
|
|
6650
|
+
#
|
|
6651
|
+
# # This example terminates the specified service jobs with a reason.
|
|
6652
|
+
#
|
|
6653
|
+
# resp = client.terminate_service_jobs({
|
|
6654
|
+
# jobs: [
|
|
6655
|
+
# "a4d6c728-8ee8-4c65-8e2a-9a5e8f4b7c3d",
|
|
6656
|
+
# "b3d0f26e-6d3a-4a5b-9c2e-7f4a1b2c3d4e",
|
|
6657
|
+
# ],
|
|
6658
|
+
# reason: "Job terminated by user request",
|
|
6659
|
+
# })
|
|
6660
|
+
#
|
|
6661
|
+
# resp.to_h outputs the following:
|
|
6662
|
+
# {
|
|
6663
|
+
# errors: [
|
|
6664
|
+
# {
|
|
6665
|
+
# code: "ServerException",
|
|
6666
|
+
# job: "b3d0f26e-6d3a-4a5b-9c2e-7f4a1b2c3d4e",
|
|
6667
|
+
# message: "Failed to read job state. Please retry this job.",
|
|
6668
|
+
# },
|
|
6669
|
+
# ],
|
|
6670
|
+
# successful: [
|
|
6671
|
+
# "a4d6c728-8ee8-4c65-8e2a-9a5e8f4b7c3d",
|
|
6672
|
+
# ],
|
|
6673
|
+
# }
|
|
6674
|
+
#
|
|
6675
|
+
# @example Request syntax with placeholder values
|
|
6676
|
+
#
|
|
6677
|
+
# resp = client.terminate_service_jobs({
|
|
6678
|
+
# jobs: ["String"], # required
|
|
6679
|
+
# reason: "String", # required
|
|
6680
|
+
# })
|
|
6681
|
+
#
|
|
6682
|
+
# @example Response structure
|
|
6683
|
+
#
|
|
6684
|
+
# resp.successful #=> Array
|
|
6685
|
+
# resp.successful[0] #=> String
|
|
6686
|
+
# resp.errors #=> Array
|
|
6687
|
+
# resp.errors[0].job #=> String
|
|
6688
|
+
# resp.errors[0].code #=> String
|
|
6689
|
+
# resp.errors[0].message #=> String
|
|
6690
|
+
#
|
|
6691
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/batch-2016-08-10/TerminateServiceJobs AWS API Documentation
|
|
6692
|
+
#
|
|
6693
|
+
# @overload terminate_service_jobs(params = {})
|
|
6694
|
+
# @param [Hash] params ({})
|
|
6695
|
+
def terminate_service_jobs(params = {}, options = {})
|
|
6696
|
+
req = build_request(:terminate_service_jobs, params)
|
|
6697
|
+
req.send_request(options)
|
|
6698
|
+
end
|
|
6699
|
+
|
|
6421
6700
|
# Deletes specified tags from an Batch resource.
|
|
6422
6701
|
#
|
|
6423
6702
|
# @option params [required, String] :resource_arn
|
|
@@ -6567,6 +6846,18 @@ module Aws::Batch
|
|
|
6567
6846
|
# control CloudWatch Container Insights collection for the compute
|
|
6568
6847
|
# environment.
|
|
6569
6848
|
#
|
|
6849
|
+
# @option params [Types::EksConfigurationUpdate] :eks_configuration
|
|
6850
|
+
# Updates the Amazon EKS configuration for the compute environment. Only
|
|
6851
|
+
# specify this parameter if the compute environment's
|
|
6852
|
+
# `containerOrchestrationType` is `EKS`. Currently, the `accessEntry`
|
|
6853
|
+
# setting is the only Amazon EKS configuration that you can change after
|
|
6854
|
+
# the compute environment is created. For more information, see [Amazon
|
|
6855
|
+
# EKS access entry authentication][1] in the *Batch User Guide*.
|
|
6856
|
+
#
|
|
6857
|
+
#
|
|
6858
|
+
#
|
|
6859
|
+
# [1]: https://docs.aws.amazon.com/batch/latest/userguide/eks-access-entries.html
|
|
6860
|
+
#
|
|
6570
6861
|
# @return [Types::UpdateComputeEnvironmentResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
6571
6862
|
#
|
|
6572
6863
|
# * {Types::UpdateComputeEnvironmentResponse#compute_environment_name #compute_environment_name} => String
|
|
@@ -6680,6 +6971,12 @@ module Aws::Batch
|
|
|
6680
6971
|
# ecs_settings: {
|
|
6681
6972
|
# container_insights: "ENABLED", # accepts ENABLED, ENHANCED, DISABLED
|
|
6682
6973
|
# },
|
|
6974
|
+
# eks_configuration: {
|
|
6975
|
+
# access_entry: {
|
|
6976
|
+
# desired_state: "ENABLED", # required, accepts ENABLED, DISABLED, INHERIT_FROM_CLUSTER
|
|
6977
|
+
# status: "ACTIVE", # accepts ACTIVE, INACTIVE
|
|
6978
|
+
# },
|
|
6979
|
+
# },
|
|
6683
6980
|
# })
|
|
6684
6981
|
#
|
|
6685
6982
|
# @example Response structure
|
|
@@ -7114,7 +7411,7 @@ module Aws::Batch
|
|
|
7114
7411
|
tracer: tracer
|
|
7115
7412
|
)
|
|
7116
7413
|
context[:gem_name] = 'aws-sdk-batch'
|
|
7117
|
-
context[:gem_version] = '1.
|
|
7414
|
+
context[:gem_version] = '1.154.0'
|
|
7118
7415
|
Seahorse::Client::Request.new(handlers, context)
|
|
7119
7416
|
end
|
|
7120
7417
|
|