@aws-sdk/client-batch 3.1130.0 → 3.1132.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.
- package/README.md +21 -0
- package/dist-cjs/index.js +123 -14
- package/dist-es/Batch.js +6 -0
- package/dist-es/commands/CancelJobsCommand.js +4 -0
- package/dist-es/commands/TerminateJobsCommand.js +4 -0
- package/dist-es/commands/TerminateServiceJobsCommand.js +4 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/schemas/schemas_0.js +95 -13
- package/dist-types/Batch.d.ts +21 -0
- package/dist-types/BatchClient.d.ts +5 -2
- package/dist-types/commands/CancelJobCommand.d.ts +6 -6
- package/dist-types/commands/CancelJobsCommand.d.ts +138 -0
- package/dist-types/commands/ListJobsCommand.d.ts +2 -0
- package/dist-types/commands/ListServiceJobsCommand.d.ts +1 -0
- package/dist-types/commands/TerminateJobsCommand.d.ts +128 -0
- package/dist-types/commands/TerminateServiceJobsCommand.d.ts +120 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +260 -6
- package/dist-types/schemas/schemas_0.d.ts +12 -0
- package/dist-types/ts3.4/Batch.d.ts +48 -0
- package/dist-types/ts3.4/BatchClient.d.ts +15 -0
- package/dist-types/ts3.4/commands/CancelJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TerminateJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/TerminateServiceJobsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +42 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +12 -0
- package/package.json +1 -1
|
@@ -19,11 +19,16 @@ const _CEDL = "ComputeEnvironmentDetailList";
|
|
|
19
19
|
const _CEO = "ComputeEnvironmentOrder";
|
|
20
20
|
const _CEOo = "ComputeEnvironmentOrders";
|
|
21
21
|
const _CJ = "CancelJob";
|
|
22
|
+
const _CJED = "CancelJobsErrorDetail";
|
|
23
|
+
const _CJEDL = "CancelJobsErrorDetailList";
|
|
22
24
|
const _CJQ = "CreateJobQueue";
|
|
23
25
|
const _CJQR = "CreateJobQueueRequest";
|
|
24
26
|
const _CJQRr = "CreateJobQueueResponse";
|
|
25
27
|
const _CJR = "CancelJobRequest";
|
|
26
28
|
const _CJRa = "CancelJobResponse";
|
|
29
|
+
const _CJRan = "CancelJobsRequest";
|
|
30
|
+
const _CJRanc = "CancelJobsResponse";
|
|
31
|
+
const _CJa = "CancelJobs";
|
|
27
32
|
const _CL = "CapacityLimit";
|
|
28
33
|
const _CLa = "CapacityLimits";
|
|
29
34
|
const _CO = "ContainerOverrides";
|
|
@@ -307,16 +312,26 @@ const _TCDa = "TaskContainerDetails";
|
|
|
307
312
|
const _TCO = "TaskContainerOverrides";
|
|
308
313
|
const _TCP = "TaskContainerProperties";
|
|
309
314
|
const _TJ = "TerminateJob";
|
|
315
|
+
const _TJED = "TerminateJobsErrorDetail";
|
|
316
|
+
const _TJEDL = "TerminateJobsErrorDetailList";
|
|
310
317
|
const _TJR = "TerminateJobRequest";
|
|
311
318
|
const _TJRe = "TerminateJobResponse";
|
|
319
|
+
const _TJRer = "TerminateJobsRequest";
|
|
320
|
+
const _TJRerm = "TerminateJobsResponse";
|
|
321
|
+
const _TJe = "TerminateJobs";
|
|
312
322
|
const _TL = "TmpfsList";
|
|
313
323
|
const _TPO = "TaskPropertiesOverride";
|
|
314
324
|
const _TR = "TagResource";
|
|
315
325
|
const _TRR = "TagResourceRequest";
|
|
316
326
|
const _TRRa = "TagResourceResponse";
|
|
317
327
|
const _TSJ = "TerminateServiceJob";
|
|
328
|
+
const _TSJED = "TerminateServiceJobsErrorDetail";
|
|
329
|
+
const _TSJEDL = "TerminateServiceJobsErrorDetailList";
|
|
318
330
|
const _TSJR = "TerminateServiceJobRequest";
|
|
319
331
|
const _TSJRe = "TerminateServiceJobResponse";
|
|
332
|
+
const _TSJRer = "TerminateServiceJobsRequest";
|
|
333
|
+
const _TSJRerm = "TerminateServiceJobsResponse";
|
|
334
|
+
const _TSJe = "TerminateServiceJobs";
|
|
320
335
|
const _U = "Ulimit";
|
|
321
336
|
const _UCE = "UpdateComputeEnvironment";
|
|
322
337
|
const _UCER = "UpdateComputeEnvironmentRequest";
|
|
@@ -404,6 +419,7 @@ const _cTl = "clientToken";
|
|
|
404
419
|
const _cU = "capacityUnit";
|
|
405
420
|
const _cUa = "capacityUsage";
|
|
406
421
|
const _co = "container";
|
|
422
|
+
const _cod = "code";
|
|
407
423
|
const _com = "command";
|
|
408
424
|
const _con = "containers";
|
|
409
425
|
const _cond = "condition";
|
|
@@ -435,6 +451,7 @@ const _eTAP = "earliestTimeAtPosition";
|
|
|
435
451
|
const _eVC = "efsVolumeConfiguration";
|
|
436
452
|
const _en = "environment";
|
|
437
453
|
const _env = "env";
|
|
454
|
+
const _er = "errors";
|
|
438
455
|
const _es = "essential";
|
|
439
456
|
const _f = "filters";
|
|
440
457
|
const _fC = "firelensConfiguration";
|
|
@@ -480,7 +497,7 @@ const _iTs = "isTerminated";
|
|
|
480
497
|
const _iUQ = "inUseQuantity";
|
|
481
498
|
const _ia = "iam";
|
|
482
499
|
const _im = "image";
|
|
483
|
-
const _j = "
|
|
500
|
+
const _j = "job";
|
|
484
501
|
const _jA = "jobArn";
|
|
485
502
|
const _jD = "jobDefinition";
|
|
486
503
|
const _jDA = "jobDefinitionArn";
|
|
@@ -498,6 +515,7 @@ const _jRA = "jobRoleArn";
|
|
|
498
515
|
const _jS = "jobStatus";
|
|
499
516
|
const _jSL = "jobSummaryList";
|
|
500
517
|
const _jSTLA = "jobStateTimeLimitActions";
|
|
518
|
+
const _jo = "jobs";
|
|
501
519
|
const _kN = "kubernetesNamespace";
|
|
502
520
|
const _l = "limits";
|
|
503
521
|
const _lA = "latestAttempt";
|
|
@@ -652,7 +670,8 @@ const _si = "size";
|
|
|
652
670
|
const _st = "state";
|
|
653
671
|
const _sta = "status";
|
|
654
672
|
const _str = "strategy";
|
|
655
|
-
const _su = "
|
|
673
|
+
const _su = "successful";
|
|
674
|
+
const _sub = "subnets";
|
|
656
675
|
const _sw = "swappiness";
|
|
657
676
|
const _t = "tags";
|
|
658
677
|
const _tA = "taskArn";
|
|
@@ -756,6 +775,21 @@ export var CancelJobResponse$ = [3, n0, _CJRa,
|
|
|
756
775
|
[],
|
|
757
776
|
[]
|
|
758
777
|
];
|
|
778
|
+
export var CancelJobsErrorDetail$ = [3, n0, _CJED,
|
|
779
|
+
0,
|
|
780
|
+
[_j, _cod, _m],
|
|
781
|
+
[0, 0, 0], 3
|
|
782
|
+
];
|
|
783
|
+
export var CancelJobsRequest$ = [3, n0, _CJRan,
|
|
784
|
+
0,
|
|
785
|
+
[_jo, _r],
|
|
786
|
+
[64 | 0, 0], 2
|
|
787
|
+
];
|
|
788
|
+
export var CancelJobsResponse$ = [3, n0, _CJRanc,
|
|
789
|
+
0,
|
|
790
|
+
[_su, _er],
|
|
791
|
+
[64 | 0, () => CancelJobsErrorDetailList], 2
|
|
792
|
+
];
|
|
759
793
|
export var CapacityLimit$ = [3, n0, _CL,
|
|
760
794
|
0,
|
|
761
795
|
[_mC, _cU],
|
|
@@ -778,12 +812,12 @@ export var ComputeEnvironmentOrder$ = [3, n0, _CEO,
|
|
|
778
812
|
];
|
|
779
813
|
export var ComputeResource$ = [3, n0, _CR,
|
|
780
814
|
0,
|
|
781
|
-
[_ty, _mCa, _aS, _mCi, _dC, _iT, _iI,
|
|
815
|
+
[_ty, _mCa, _aS, _mCi, _dC, _iT, _iI, _sub, _sGI, _eKP, _iR, _t, _pG, _bP, _sIFR, _lT, _eCc, _sP, _mIP, _cT],
|
|
782
816
|
[0, 1, 0, 1, 1, 64 | 0, 0, 64 | 0, 64 | 0, 0, 0, 128 | 0, 0, 1, 0, () => LaunchTemplateSpecification$, () => Ec2ConfigurationList, () => ComputeScalingPolicy$, () => ManagedInstancesProvider$, 128 | 0], 2
|
|
783
817
|
];
|
|
784
818
|
export var ComputeResourceUpdate$ = [3, n0, _CRU,
|
|
785
819
|
0,
|
|
786
|
-
[_mCi, _mCa, _dC,
|
|
820
|
+
[_mCi, _mCa, _dC, _sub, _sGI, _aS, _iT, _eKP, _iR, _t, _pG, _bP, _lT, _eCc, _uTLIV, _ty, _iI, _sP, _mIP, _cT],
|
|
787
821
|
[1, 1, 1, 64 | 0, 64 | 0, 0, 64 | 0, 0, 0, 128 | 0, 0, 1, () => LaunchTemplateSpecification$, () => Ec2ConfigurationList, 2, 0, 0, () => ComputeScalingPolicy$, () => UpdateManagedInstancesProviderConfiguration$, 128 | 0]
|
|
788
822
|
];
|
|
789
823
|
export var ComputeScalingPolicy$ = [3, n0, _CSP,
|
|
@@ -998,12 +1032,12 @@ export var DescribeJobQueuesResponse$ = [3, n0, _DJQResc,
|
|
|
998
1032
|
];
|
|
999
1033
|
export var DescribeJobsRequest$ = [3, n0, _DJR,
|
|
1000
1034
|
0,
|
|
1001
|
-
[
|
|
1035
|
+
[_jo],
|
|
1002
1036
|
[64 | 0], 1
|
|
1003
1037
|
];
|
|
1004
1038
|
export var DescribeJobsResponse$ = [3, n0, _DJRe,
|
|
1005
1039
|
0,
|
|
1006
|
-
[
|
|
1040
|
+
[_jo],
|
|
1007
1041
|
[() => JobDetailList]
|
|
1008
1042
|
];
|
|
1009
1043
|
export var DescribeQuotaShareRequest$ = [3, n0, _DQSRes,
|
|
@@ -1248,7 +1282,7 @@ export var FirelensConfiguration$ = [3, n0, _FC,
|
|
|
1248
1282
|
];
|
|
1249
1283
|
export var FrontOfQueueDetail$ = [3, n0, _FOQD,
|
|
1250
1284
|
0,
|
|
1251
|
-
[
|
|
1285
|
+
[_jo, _lUA],
|
|
1252
1286
|
[() => FrontOfQueueJobSummaryList, 1]
|
|
1253
1287
|
];
|
|
1254
1288
|
export var FrontOfQueueJobSummary$ = [3, n0, _FOQJS,
|
|
@@ -1338,8 +1372,8 @@ export var JobStateTimeLimitAction$ = [3, n0, _JSTLA,
|
|
|
1338
1372
|
];
|
|
1339
1373
|
export var JobSummary$ = [3, n0, _JS,
|
|
1340
1374
|
0,
|
|
1341
|
-
[_jI, _jN, _jA, _cUa, _cA, _sAc, _sI, _sta, _sR, _sA, _sAt, _co, _aP, _nP, _jD],
|
|
1342
|
-
[0, 0, 0, () => JobCapacityUsageSummaryList, 1, 1, 0, 0, 0, 1, 1, () => ContainerSummary$, () => ArrayPropertiesSummary$, () => NodePropertiesSummary$, 0], 2
|
|
1375
|
+
[_jI, _jN, _jA, _cUa, _cA, _sAc, _sI, _sta, _sR, _sA, _sAt, _co, _aP, _nP, _jD, _iCs, _iTs],
|
|
1376
|
+
[0, 0, 0, () => JobCapacityUsageSummaryList, 1, 1, 0, 0, 0, 1, 1, () => ContainerSummary$, () => ArrayPropertiesSummary$, () => NodePropertiesSummary$, 0, 2, 2], 2
|
|
1343
1377
|
];
|
|
1344
1378
|
export var JobTimeout$ = [3, n0, _JT,
|
|
1345
1379
|
0,
|
|
@@ -1393,7 +1427,7 @@ export var ListJobsByConsumableResourceRequest$ = [3, n0, _LJBCRR,
|
|
|
1393
1427
|
];
|
|
1394
1428
|
export var ListJobsByConsumableResourceResponse$ = [3, n0, _LJBCRRi,
|
|
1395
1429
|
0,
|
|
1396
|
-
[
|
|
1430
|
+
[_jo, _nT],
|
|
1397
1431
|
[() => ListJobsByConsumableResourceSummaryList, 0], 1
|
|
1398
1432
|
];
|
|
1399
1433
|
export var ListJobsByConsumableResourceSummary$ = [3, n0, _LJBCRS,
|
|
@@ -1463,7 +1497,7 @@ export var ManagedInstancesLocalStorageConfiguration$ = [3, n0, _MILSC,
|
|
|
1463
1497
|
];
|
|
1464
1498
|
export var ManagedInstancesNetworkConfiguration$ = [3, n0, _MINC,
|
|
1465
1499
|
0,
|
|
1466
|
-
[
|
|
1500
|
+
[_sub, _sG],
|
|
1467
1501
|
[64 | 0, 64 | 0], 2
|
|
1468
1502
|
];
|
|
1469
1503
|
export var ManagedInstancesProvider$ = [3, n0, _MIP,
|
|
@@ -1673,8 +1707,8 @@ export var ServiceJobRetryStrategy$ = [3, n0, _SJRS,
|
|
|
1673
1707
|
];
|
|
1674
1708
|
export var ServiceJobSummary$ = [3, n0, _SJS,
|
|
1675
1709
|
0,
|
|
1676
|
-
[_jI, _jN, _sJT, _lA, _cUa, _cA, _jA, _sAc, _sI, _qSN, _sta, _sR, _sA, _sAt],
|
|
1677
|
-
[0, 0, 0, () => LatestServiceJobAttempt$, () => ServiceJobCapacityUsageSummaryList, 1, 0, 1, 0, 0, 0, 0, 1, 1], 3
|
|
1710
|
+
[_jI, _jN, _sJT, _lA, _cUa, _cA, _jA, _sAc, _sI, _qSN, _sta, _sR, _sA, _sAt, _iTs],
|
|
1711
|
+
[0, 0, 0, () => LatestServiceJobAttempt$, () => ServiceJobCapacityUsageSummaryList, 1, 0, 1, 0, 0, 0, 0, 1, 1, 2], 3
|
|
1678
1712
|
];
|
|
1679
1713
|
export var ServiceJobTimeout$ = [3, n0, _SJT,
|
|
1680
1714
|
0,
|
|
@@ -1756,6 +1790,21 @@ export var TerminateJobResponse$ = [3, n0, _TJRe,
|
|
|
1756
1790
|
[],
|
|
1757
1791
|
[]
|
|
1758
1792
|
];
|
|
1793
|
+
export var TerminateJobsErrorDetail$ = [3, n0, _TJED,
|
|
1794
|
+
0,
|
|
1795
|
+
[_j, _cod, _m],
|
|
1796
|
+
[0, 0, 0], 3
|
|
1797
|
+
];
|
|
1798
|
+
export var TerminateJobsRequest$ = [3, n0, _TJRer,
|
|
1799
|
+
0,
|
|
1800
|
+
[_jo, _r],
|
|
1801
|
+
[64 | 0, 0], 2
|
|
1802
|
+
];
|
|
1803
|
+
export var TerminateJobsResponse$ = [3, n0, _TJRerm,
|
|
1804
|
+
0,
|
|
1805
|
+
[_su, _er],
|
|
1806
|
+
[64 | 0, () => TerminateJobsErrorDetailList], 2
|
|
1807
|
+
];
|
|
1759
1808
|
export var TerminateServiceJobRequest$ = [3, n0, _TSJR,
|
|
1760
1809
|
0,
|
|
1761
1810
|
[_jI, _r],
|
|
@@ -1766,6 +1815,21 @@ export var TerminateServiceJobResponse$ = [3, n0, _TSJRe,
|
|
|
1766
1815
|
[],
|
|
1767
1816
|
[]
|
|
1768
1817
|
];
|
|
1818
|
+
export var TerminateServiceJobsErrorDetail$ = [3, n0, _TSJED,
|
|
1819
|
+
0,
|
|
1820
|
+
[_j, _cod, _m],
|
|
1821
|
+
[0, 0, 0], 3
|
|
1822
|
+
];
|
|
1823
|
+
export var TerminateServiceJobsRequest$ = [3, n0, _TSJRer,
|
|
1824
|
+
0,
|
|
1825
|
+
[_jo, _r],
|
|
1826
|
+
[64 | 0, 0], 2
|
|
1827
|
+
];
|
|
1828
|
+
export var TerminateServiceJobsResponse$ = [3, n0, _TSJRerm,
|
|
1829
|
+
0,
|
|
1830
|
+
[_su, _er],
|
|
1831
|
+
[64 | 0, () => TerminateServiceJobsErrorDetailList], 2
|
|
1832
|
+
];
|
|
1769
1833
|
export var Tmpfs$ = [3, n0, _T,
|
|
1770
1834
|
0,
|
|
1771
1835
|
[_cP, _si, _mO],
|
|
@@ -1874,6 +1938,9 @@ export var Volume$ = [3, n0, _V,
|
|
|
1874
1938
|
var AttemptDetails = [1, n0, _ADt,
|
|
1875
1939
|
0, () => AttemptDetail$
|
|
1876
1940
|
];
|
|
1941
|
+
var CancelJobsErrorDetailList = [1, n0, _CJEDL,
|
|
1942
|
+
0, () => CancelJobsErrorDetail$
|
|
1943
|
+
];
|
|
1877
1944
|
var CapacityLimits = [1, n0, _CLa,
|
|
1878
1945
|
0, () => CapacityLimit$
|
|
1879
1946
|
];
|
|
@@ -2073,6 +2140,12 @@ var TagKeysList = 64 | 0;
|
|
|
2073
2140
|
var TaskContainerDependencyList = [1, n0, _TCDL,
|
|
2074
2141
|
0, () => TaskContainerDependency$
|
|
2075
2142
|
];
|
|
2143
|
+
var TerminateJobsErrorDetailList = [1, n0, _TJEDL,
|
|
2144
|
+
0, () => TerminateJobsErrorDetail$
|
|
2145
|
+
];
|
|
2146
|
+
var TerminateServiceJobsErrorDetailList = [1, n0, _TSJEDL,
|
|
2147
|
+
0, () => TerminateServiceJobsErrorDetail$
|
|
2148
|
+
];
|
|
2076
2149
|
var TmpfsList = [1, n0, _TL,
|
|
2077
2150
|
0, () => Tmpfs$
|
|
2078
2151
|
];
|
|
@@ -2098,6 +2171,9 @@ var TagsMap = 128 | 0;
|
|
|
2098
2171
|
export var CancelJob$ = [9, n0, _CJ,
|
|
2099
2172
|
{ [_ht]: ["POST", "/v1/canceljob", 200] }, () => CancelJobRequest$, () => CancelJobResponse$
|
|
2100
2173
|
];
|
|
2174
|
+
export var CancelJobs$ = [9, n0, _CJa,
|
|
2175
|
+
{ [_ht]: ["POST", "/v1/canceljobs", 200] }, () => CancelJobsRequest$, () => CancelJobsResponse$
|
|
2176
|
+
];
|
|
2101
2177
|
export var CreateComputeEnvironment$ = [9, n0, _CCE,
|
|
2102
2178
|
{ [_ht]: ["POST", "/v1/createcomputeenvironment", 200] }, () => CreateComputeEnvironmentRequest$, () => CreateComputeEnvironmentResponse$
|
|
2103
2179
|
];
|
|
@@ -2203,9 +2279,15 @@ export var TagResource$ = [9, n0, _TR,
|
|
|
2203
2279
|
export var TerminateJob$ = [9, n0, _TJ,
|
|
2204
2280
|
{ [_ht]: ["POST", "/v1/terminatejob", 200] }, () => TerminateJobRequest$, () => TerminateJobResponse$
|
|
2205
2281
|
];
|
|
2282
|
+
export var TerminateJobs$ = [9, n0, _TJe,
|
|
2283
|
+
{ [_ht]: ["POST", "/v1/terminatejobs", 200] }, () => TerminateJobsRequest$, () => TerminateJobsResponse$
|
|
2284
|
+
];
|
|
2206
2285
|
export var TerminateServiceJob$ = [9, n0, _TSJ,
|
|
2207
2286
|
{ [_ht]: ["POST", "/v1/terminateservicejob", 200] }, () => TerminateServiceJobRequest$, () => TerminateServiceJobResponse$
|
|
2208
2287
|
];
|
|
2288
|
+
export var TerminateServiceJobs$ = [9, n0, _TSJe,
|
|
2289
|
+
{ [_ht]: ["POST", "/v1/terminateservicejobs", 200] }, () => TerminateServiceJobsRequest$, () => TerminateServiceJobsResponse$
|
|
2290
|
+
];
|
|
2209
2291
|
export var UntagResource$ = [9, n0, _UR,
|
|
2210
2292
|
{ [_ht]: ["DELETE", "/v1/tags/{resourceArn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
|
|
2211
2293
|
];
|
package/dist-types/Batch.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { BatchClient } from "./BatchClient";
|
|
3
3
|
import { type CancelJobCommandInput, type CancelJobCommandOutput } from "./commands/CancelJobCommand";
|
|
4
|
+
import { type CancelJobsCommandInput, type CancelJobsCommandOutput } from "./commands/CancelJobsCommand";
|
|
4
5
|
import { type CreateComputeEnvironmentCommandInput, type CreateComputeEnvironmentCommandOutput } from "./commands/CreateComputeEnvironmentCommand";
|
|
5
6
|
import { type CreateConsumableResourceCommandInput, type CreateConsumableResourceCommandOutput } from "./commands/CreateConsumableResourceCommand";
|
|
6
7
|
import { type CreateJobQueueCommandInput, type CreateJobQueueCommandOutput } from "./commands/CreateJobQueueCommand";
|
|
@@ -36,7 +37,9 @@ import { type SubmitJobCommandInput, type SubmitJobCommandOutput } from "./comma
|
|
|
36
37
|
import { type SubmitServiceJobCommandInput, type SubmitServiceJobCommandOutput } from "./commands/SubmitServiceJobCommand";
|
|
37
38
|
import { type TagResourceCommandInput, type TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
38
39
|
import { type TerminateJobCommandInput, type TerminateJobCommandOutput } from "./commands/TerminateJobCommand";
|
|
40
|
+
import { type TerminateJobsCommandInput, type TerminateJobsCommandOutput } from "./commands/TerminateJobsCommand";
|
|
39
41
|
import { type TerminateServiceJobCommandInput, type TerminateServiceJobCommandOutput } from "./commands/TerminateServiceJobCommand";
|
|
42
|
+
import { type TerminateServiceJobsCommandInput, type TerminateServiceJobsCommandOutput } from "./commands/TerminateServiceJobsCommand";
|
|
40
43
|
import { type UntagResourceCommandInput, type UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
41
44
|
import { type UpdateComputeEnvironmentCommandInput, type UpdateComputeEnvironmentCommandOutput } from "./commands/UpdateComputeEnvironmentCommand";
|
|
42
45
|
import { type UpdateConsumableResourceCommandInput, type UpdateConsumableResourceCommandOutput } from "./commands/UpdateConsumableResourceCommand";
|
|
@@ -52,6 +55,12 @@ export interface Batch {
|
|
|
52
55
|
cancelJob(args: CancelJobCommandInput, options?: __HttpHandlerOptions): Promise<CancelJobCommandOutput>;
|
|
53
56
|
cancelJob(args: CancelJobCommandInput, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
|
|
54
57
|
cancelJob(args: CancelJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelJobCommandOutput) => void): void;
|
|
58
|
+
/**
|
|
59
|
+
* @see {@link CancelJobsCommand}
|
|
60
|
+
*/
|
|
61
|
+
cancelJobs(args: CancelJobsCommandInput, options?: __HttpHandlerOptions): Promise<CancelJobsCommandOutput>;
|
|
62
|
+
cancelJobs(args: CancelJobsCommandInput, cb: (err: any, data?: CancelJobsCommandOutput) => void): void;
|
|
63
|
+
cancelJobs(args: CancelJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelJobsCommandOutput) => void): void;
|
|
55
64
|
/**
|
|
56
65
|
* @see {@link CreateComputeEnvironmentCommand}
|
|
57
66
|
*/
|
|
@@ -270,12 +279,24 @@ export interface Batch {
|
|
|
270
279
|
terminateJob(args: TerminateJobCommandInput, options?: __HttpHandlerOptions): Promise<TerminateJobCommandOutput>;
|
|
271
280
|
terminateJob(args: TerminateJobCommandInput, cb: (err: any, data?: TerminateJobCommandOutput) => void): void;
|
|
272
281
|
terminateJob(args: TerminateJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TerminateJobCommandOutput) => void): void;
|
|
282
|
+
/**
|
|
283
|
+
* @see {@link TerminateJobsCommand}
|
|
284
|
+
*/
|
|
285
|
+
terminateJobs(args: TerminateJobsCommandInput, options?: __HttpHandlerOptions): Promise<TerminateJobsCommandOutput>;
|
|
286
|
+
terminateJobs(args: TerminateJobsCommandInput, cb: (err: any, data?: TerminateJobsCommandOutput) => void): void;
|
|
287
|
+
terminateJobs(args: TerminateJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TerminateJobsCommandOutput) => void): void;
|
|
273
288
|
/**
|
|
274
289
|
* @see {@link TerminateServiceJobCommand}
|
|
275
290
|
*/
|
|
276
291
|
terminateServiceJob(args: TerminateServiceJobCommandInput, options?: __HttpHandlerOptions): Promise<TerminateServiceJobCommandOutput>;
|
|
277
292
|
terminateServiceJob(args: TerminateServiceJobCommandInput, cb: (err: any, data?: TerminateServiceJobCommandOutput) => void): void;
|
|
278
293
|
terminateServiceJob(args: TerminateServiceJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TerminateServiceJobCommandOutput) => void): void;
|
|
294
|
+
/**
|
|
295
|
+
* @see {@link TerminateServiceJobsCommand}
|
|
296
|
+
*/
|
|
297
|
+
terminateServiceJobs(args: TerminateServiceJobsCommandInput, options?: __HttpHandlerOptions): Promise<TerminateServiceJobsCommandOutput>;
|
|
298
|
+
terminateServiceJobs(args: TerminateServiceJobsCommandInput, cb: (err: any, data?: TerminateServiceJobsCommandOutput) => void): void;
|
|
299
|
+
terminateServiceJobs(args: TerminateServiceJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TerminateServiceJobsCommandOutput) => void): void;
|
|
279
300
|
/**
|
|
280
301
|
* @see {@link UntagResourceCommand}
|
|
281
302
|
*/
|
|
@@ -7,6 +7,7 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
|
|
|
7
7
|
import type { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
8
8
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
9
9
|
import type { CancelJobCommandInput, CancelJobCommandOutput } from "./commands/CancelJobCommand";
|
|
10
|
+
import type { CancelJobsCommandInput, CancelJobsCommandOutput } from "./commands/CancelJobsCommand";
|
|
10
11
|
import type { CreateComputeEnvironmentCommandInput, CreateComputeEnvironmentCommandOutput } from "./commands/CreateComputeEnvironmentCommand";
|
|
11
12
|
import type { CreateConsumableResourceCommandInput, CreateConsumableResourceCommandOutput } from "./commands/CreateConsumableResourceCommand";
|
|
12
13
|
import type { CreateJobQueueCommandInput, CreateJobQueueCommandOutput } from "./commands/CreateJobQueueCommand";
|
|
@@ -42,7 +43,9 @@ import type { SubmitJobCommandInput, SubmitJobCommandOutput } from "./commands/S
|
|
|
42
43
|
import type { SubmitServiceJobCommandInput, SubmitServiceJobCommandOutput } from "./commands/SubmitServiceJobCommand";
|
|
43
44
|
import type { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
44
45
|
import type { TerminateJobCommandInput, TerminateJobCommandOutput } from "./commands/TerminateJobCommand";
|
|
46
|
+
import type { TerminateJobsCommandInput, TerminateJobsCommandOutput } from "./commands/TerminateJobsCommand";
|
|
45
47
|
import type { TerminateServiceJobCommandInput, TerminateServiceJobCommandOutput } from "./commands/TerminateServiceJobCommand";
|
|
48
|
+
import type { TerminateServiceJobsCommandInput, TerminateServiceJobsCommandOutput } from "./commands/TerminateServiceJobsCommand";
|
|
46
49
|
import type { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
47
50
|
import type { UpdateComputeEnvironmentCommandInput, UpdateComputeEnvironmentCommandOutput } from "./commands/UpdateComputeEnvironmentCommand";
|
|
48
51
|
import type { UpdateConsumableResourceCommandInput, UpdateConsumableResourceCommandOutput } from "./commands/UpdateConsumableResourceCommand";
|
|
@@ -57,11 +60,11 @@ export { __Client };
|
|
|
57
60
|
/**
|
|
58
61
|
* @public
|
|
59
62
|
*/
|
|
60
|
-
export type ServiceInputTypes = CancelJobCommandInput | CreateComputeEnvironmentCommandInput | CreateConsumableResourceCommandInput | CreateJobQueueCommandInput | CreateQuotaShareCommandInput | CreateSchedulingPolicyCommandInput | CreateServiceEnvironmentCommandInput | DeleteComputeEnvironmentCommandInput | DeleteConsumableResourceCommandInput | DeleteJobQueueCommandInput | DeleteQuotaShareCommandInput | DeleteSchedulingPolicyCommandInput | DeleteServiceEnvironmentCommandInput | DeregisterJobDefinitionCommandInput | DescribeComputeEnvironmentsCommandInput | DescribeConsumableResourceCommandInput | DescribeJobDefinitionsCommandInput | DescribeJobQueuesCommandInput | DescribeJobsCommandInput | DescribeQuotaShareCommandInput | DescribeSchedulingPoliciesCommandInput | DescribeServiceEnvironmentsCommandInput | DescribeServiceJobCommandInput | GetJobQueueSnapshotCommandInput | ListConsumableResourcesCommandInput | ListJobsByConsumableResourceCommandInput | ListJobsCommandInput | ListQuotaSharesCommandInput | ListSchedulingPoliciesCommandInput | ListServiceJobsCommandInput | ListTagsForResourceCommandInput | RegisterJobDefinitionCommandInput | SubmitJobCommandInput | SubmitServiceJobCommandInput | TagResourceCommandInput | TerminateJobCommandInput | TerminateServiceJobCommandInput | UntagResourceCommandInput | UpdateComputeEnvironmentCommandInput | UpdateConsumableResourceCommandInput | UpdateJobQueueCommandInput | UpdateQuotaShareCommandInput | UpdateSchedulingPolicyCommandInput | UpdateServiceEnvironmentCommandInput | UpdateServiceJobCommandInput;
|
|
63
|
+
export type ServiceInputTypes = CancelJobCommandInput | CancelJobsCommandInput | CreateComputeEnvironmentCommandInput | CreateConsumableResourceCommandInput | CreateJobQueueCommandInput | CreateQuotaShareCommandInput | CreateSchedulingPolicyCommandInput | CreateServiceEnvironmentCommandInput | DeleteComputeEnvironmentCommandInput | DeleteConsumableResourceCommandInput | DeleteJobQueueCommandInput | DeleteQuotaShareCommandInput | DeleteSchedulingPolicyCommandInput | DeleteServiceEnvironmentCommandInput | DeregisterJobDefinitionCommandInput | DescribeComputeEnvironmentsCommandInput | DescribeConsumableResourceCommandInput | DescribeJobDefinitionsCommandInput | DescribeJobQueuesCommandInput | DescribeJobsCommandInput | DescribeQuotaShareCommandInput | DescribeSchedulingPoliciesCommandInput | DescribeServiceEnvironmentsCommandInput | DescribeServiceJobCommandInput | GetJobQueueSnapshotCommandInput | ListConsumableResourcesCommandInput | ListJobsByConsumableResourceCommandInput | ListJobsCommandInput | ListQuotaSharesCommandInput | ListSchedulingPoliciesCommandInput | ListServiceJobsCommandInput | ListTagsForResourceCommandInput | RegisterJobDefinitionCommandInput | SubmitJobCommandInput | SubmitServiceJobCommandInput | TagResourceCommandInput | TerminateJobCommandInput | TerminateJobsCommandInput | TerminateServiceJobCommandInput | TerminateServiceJobsCommandInput | UntagResourceCommandInput | UpdateComputeEnvironmentCommandInput | UpdateConsumableResourceCommandInput | UpdateJobQueueCommandInput | UpdateQuotaShareCommandInput | UpdateSchedulingPolicyCommandInput | UpdateServiceEnvironmentCommandInput | UpdateServiceJobCommandInput;
|
|
61
64
|
/**
|
|
62
65
|
* @public
|
|
63
66
|
*/
|
|
64
|
-
export type ServiceOutputTypes = CancelJobCommandOutput | CreateComputeEnvironmentCommandOutput | CreateConsumableResourceCommandOutput | CreateJobQueueCommandOutput | CreateQuotaShareCommandOutput | CreateSchedulingPolicyCommandOutput | CreateServiceEnvironmentCommandOutput | DeleteComputeEnvironmentCommandOutput | DeleteConsumableResourceCommandOutput | DeleteJobQueueCommandOutput | DeleteQuotaShareCommandOutput | DeleteSchedulingPolicyCommandOutput | DeleteServiceEnvironmentCommandOutput | DeregisterJobDefinitionCommandOutput | DescribeComputeEnvironmentsCommandOutput | DescribeConsumableResourceCommandOutput | DescribeJobDefinitionsCommandOutput | DescribeJobQueuesCommandOutput | DescribeJobsCommandOutput | DescribeQuotaShareCommandOutput | DescribeSchedulingPoliciesCommandOutput | DescribeServiceEnvironmentsCommandOutput | DescribeServiceJobCommandOutput | GetJobQueueSnapshotCommandOutput | ListConsumableResourcesCommandOutput | ListJobsByConsumableResourceCommandOutput | ListJobsCommandOutput | ListQuotaSharesCommandOutput | ListSchedulingPoliciesCommandOutput | ListServiceJobsCommandOutput | ListTagsForResourceCommandOutput | RegisterJobDefinitionCommandOutput | SubmitJobCommandOutput | SubmitServiceJobCommandOutput | TagResourceCommandOutput | TerminateJobCommandOutput | TerminateServiceJobCommandOutput | UntagResourceCommandOutput | UpdateComputeEnvironmentCommandOutput | UpdateConsumableResourceCommandOutput | UpdateJobQueueCommandOutput | UpdateQuotaShareCommandOutput | UpdateSchedulingPolicyCommandOutput | UpdateServiceEnvironmentCommandOutput | UpdateServiceJobCommandOutput;
|
|
67
|
+
export type ServiceOutputTypes = CancelJobCommandOutput | CancelJobsCommandOutput | CreateComputeEnvironmentCommandOutput | CreateConsumableResourceCommandOutput | CreateJobQueueCommandOutput | CreateQuotaShareCommandOutput | CreateSchedulingPolicyCommandOutput | CreateServiceEnvironmentCommandOutput | DeleteComputeEnvironmentCommandOutput | DeleteConsumableResourceCommandOutput | DeleteJobQueueCommandOutput | DeleteQuotaShareCommandOutput | DeleteSchedulingPolicyCommandOutput | DeleteServiceEnvironmentCommandOutput | DeregisterJobDefinitionCommandOutput | DescribeComputeEnvironmentsCommandOutput | DescribeConsumableResourceCommandOutput | DescribeJobDefinitionsCommandOutput | DescribeJobQueuesCommandOutput | DescribeJobsCommandOutput | DescribeQuotaShareCommandOutput | DescribeSchedulingPoliciesCommandOutput | DescribeServiceEnvironmentsCommandOutput | DescribeServiceJobCommandOutput | GetJobQueueSnapshotCommandOutput | ListConsumableResourcesCommandOutput | ListJobsByConsumableResourceCommandOutput | ListJobsCommandOutput | ListQuotaSharesCommandOutput | ListSchedulingPoliciesCommandOutput | ListServiceJobsCommandOutput | ListTagsForResourceCommandOutput | RegisterJobDefinitionCommandOutput | SubmitJobCommandOutput | SubmitServiceJobCommandOutput | TagResourceCommandOutput | TerminateJobCommandOutput | TerminateJobsCommandOutput | TerminateServiceJobCommandOutput | TerminateServiceJobsCommandOutput | UntagResourceCommandOutput | UpdateComputeEnvironmentCommandOutput | UpdateConsumableResourceCommandOutput | UpdateJobQueueCommandOutput | UpdateQuotaShareCommandOutput | UpdateSchedulingPolicyCommandOutput | UpdateServiceEnvironmentCommandOutput | UpdateServiceJobCommandOutput;
|
|
65
68
|
/**
|
|
66
69
|
* @public
|
|
67
70
|
*/
|
|
@@ -26,17 +26,17 @@ declare const CancelJobCommand_base: {
|
|
|
26
26
|
/**
|
|
27
27
|
* <p>Cancels a job in an Batch job queue. Jobs that are in a <code>SUBMITTED</code>, <code>PENDING</code>, or <code>RUNNABLE</code> state are cancelled and the job status is updated to <code>FAILED</code>.</p>
|
|
28
28
|
* <note>
|
|
29
|
-
* <p>A <code>PENDING</code> job is
|
|
30
|
-
* Therefore, it
|
|
29
|
+
* <p>A <code>PENDING</code> job is cancelled after all dependency jobs are completed.
|
|
30
|
+
* Therefore, it might take longer than expected to cancel a job in <code>PENDING</code>
|
|
31
31
|
* status.</p>
|
|
32
32
|
* <p>When you try to cancel an array parent job in <code>PENDING</code>, Batch attempts to
|
|
33
|
-
* cancel all child jobs. The array parent job is
|
|
33
|
+
* cancel all child jobs. The array parent job is cancelled when all child jobs are
|
|
34
34
|
* completed.</p>
|
|
35
35
|
* </note>
|
|
36
36
|
* <p>Jobs that progressed to the <code>STARTING</code> or
|
|
37
|
-
* <code>RUNNING</code> state aren't
|
|
38
|
-
* if no job is
|
|
39
|
-
*
|
|
37
|
+
* <code>RUNNING</code> state aren't cancelled. However, the API operation still succeeds, even
|
|
38
|
+
* if no job is cancelled. These jobs must be terminated with the <a>TerminateJob</a> or
|
|
39
|
+
* <a>TerminateJobs</a> operation.</p>
|
|
40
40
|
* @example
|
|
41
41
|
* Use a bare-bones client and the command you need to make an API call.
|
|
42
42
|
* ```javascript
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
+
import type { CancelJobsRequest, CancelJobsResponse } from "../models/models_0";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
export type { __MetadataBearer };
|
|
7
|
+
/**
|
|
8
|
+
* @public
|
|
9
|
+
*
|
|
10
|
+
* The input for {@link CancelJobsCommand}.
|
|
11
|
+
*/
|
|
12
|
+
export interface CancelJobsCommandInput extends CancelJobsRequest {
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @public
|
|
16
|
+
*
|
|
17
|
+
* The output of {@link CancelJobsCommand}.
|
|
18
|
+
*/
|
|
19
|
+
export interface CancelJobsCommandOutput extends CancelJobsResponse, __MetadataBearer {
|
|
20
|
+
}
|
|
21
|
+
declare const CancelJobsCommand_base: {
|
|
22
|
+
new (input: CancelJobsCommandInput): import("@smithy/core/client").CommandImpl<CancelJobsCommandInput, CancelJobsCommandOutput, import("..").BatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
23
|
+
new (input: CancelJobsCommandInput): import("@smithy/core/client").CommandImpl<CancelJobsCommandInput, CancelJobsCommandOutput, import("..").BatchClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
|
|
24
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* <p>Cancels up to 50 jobs in an Batch job queue. This is a bulk version of <a>CancelJob</a>. Jobs that are in a
|
|
28
|
+
* <code>SUBMITTED</code>, <code>PENDING</code>, or <code>RUNNABLE</code> state are cancelled
|
|
29
|
+
* and the job status is updated to <code>FAILED</code>.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>A <code>PENDING</code> job is cancelled after all dependency jobs are completed.
|
|
32
|
+
* Therefore, it might take longer than expected to cancel a job in <code>PENDING</code>
|
|
33
|
+
* status.</p>
|
|
34
|
+
* <p>When you try to cancel an array parent job in <code>PENDING</code>, Batch attempts to
|
|
35
|
+
* cancel all child jobs. The array parent job is cancelled when all child jobs are
|
|
36
|
+
* completed.</p>
|
|
37
|
+
* </note>
|
|
38
|
+
* <p>Jobs that progressed to the <code>STARTING</code> or <code>RUNNING</code> state aren't
|
|
39
|
+
* cancelled. These jobs must be terminated with the <a>TerminateJob</a> or
|
|
40
|
+
* <a>TerminateJobs</a> operation.</p>
|
|
41
|
+
* <p>Batch reports the result for each job individually in the response. Jobs that
|
|
42
|
+
* were processed successfully are reported in the <code>successful</code> list. Jobs that
|
|
43
|
+
* encountered errors are reported in the <code>errors</code> list. The response returns an
|
|
44
|
+
* HTTP status code of <code>200</code> even when some jobs encountered errors, so check the
|
|
45
|
+
* <code>errors</code> list. Jobs that can't be found are treated as successfully
|
|
46
|
+
* processed.</p>
|
|
47
|
+
* @example
|
|
48
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
49
|
+
* ```javascript
|
|
50
|
+
* import { BatchClient, CancelJobsCommand } from "@aws-sdk/client-batch"; // ES Modules import
|
|
51
|
+
* // const { BatchClient, CancelJobsCommand } = require("@aws-sdk/client-batch"); // CommonJS import
|
|
52
|
+
* // import type { BatchClientConfig } from "@aws-sdk/client-batch";
|
|
53
|
+
* const config = {}; // type is BatchClientConfig
|
|
54
|
+
* const client = new BatchClient(config);
|
|
55
|
+
* const input = { // CancelJobsRequest
|
|
56
|
+
* jobs: [ // StringList // required
|
|
57
|
+
* "STRING_VALUE",
|
|
58
|
+
* ],
|
|
59
|
+
* reason: "STRING_VALUE", // required
|
|
60
|
+
* };
|
|
61
|
+
* const command = new CancelJobsCommand(input);
|
|
62
|
+
* const response = await client.send(command);
|
|
63
|
+
* // { // CancelJobsResponse
|
|
64
|
+
* // successful: [ // StringList // required
|
|
65
|
+
* // "STRING_VALUE",
|
|
66
|
+
* // ],
|
|
67
|
+
* // errors: [ // CancelJobsErrorDetailList // required
|
|
68
|
+
* // { // CancelJobsErrorDetail
|
|
69
|
+
* // job: "STRING_VALUE", // required
|
|
70
|
+
* // code: "STRING_VALUE", // required
|
|
71
|
+
* // message: "STRING_VALUE", // required
|
|
72
|
+
* // },
|
|
73
|
+
* // ],
|
|
74
|
+
* // };
|
|
75
|
+
*
|
|
76
|
+
* ```
|
|
77
|
+
*
|
|
78
|
+
* @param CancelJobsCommandInput - {@link CancelJobsCommandInput}
|
|
79
|
+
* @returns {@link CancelJobsCommandOutput}
|
|
80
|
+
* @see {@link CancelJobsCommandInput} for command's `input` shape.
|
|
81
|
+
* @see {@link CancelJobsCommandOutput} for command's `response` shape.
|
|
82
|
+
* @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link ClientException} (client fault)
|
|
85
|
+
* <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
|
|
86
|
+
* of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
|
|
87
|
+
* that's not valid.</p>
|
|
88
|
+
*
|
|
89
|
+
* @throws {@link ServerException} (server fault)
|
|
90
|
+
* <p>These errors are usually caused by a server issue.</p>
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link BatchServiceException}
|
|
93
|
+
* <p>Base exception class for all service exceptions from Batch service.</p>
|
|
94
|
+
*
|
|
95
|
+
*
|
|
96
|
+
* @example To cancel multiple jobs
|
|
97
|
+
* ```javascript
|
|
98
|
+
* // This example cancels the jobs with the specified job IDs.
|
|
99
|
+
* const input = {
|
|
100
|
+
* jobs: [
|
|
101
|
+
* "1d828f65-7a4d-42e8-996d-3b900ed59dc4",
|
|
102
|
+
* "b3d0f26e-6d3a-4a5b-9c2e-7f4a1b2c3d4e"
|
|
103
|
+
* ],
|
|
104
|
+
* reason: "Cancelling jobs."
|
|
105
|
+
* };
|
|
106
|
+
* const command = new CancelJobsCommand(input);
|
|
107
|
+
* const response = await client.send(command);
|
|
108
|
+
* /* response is
|
|
109
|
+
* {
|
|
110
|
+
* errors: [
|
|
111
|
+
* {
|
|
112
|
+
* code: "ServerException",
|
|
113
|
+
* job: "b3d0f26e-6d3a-4a5b-9c2e-7f4a1b2c3d4e",
|
|
114
|
+
* message: "Failed to read job state. Please retry this job."
|
|
115
|
+
* }
|
|
116
|
+
* ],
|
|
117
|
+
* successful: [
|
|
118
|
+
* "1d828f65-7a4d-42e8-996d-3b900ed59dc4"
|
|
119
|
+
* ]
|
|
120
|
+
* }
|
|
121
|
+
* *\/
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
124
|
+
* @public
|
|
125
|
+
*/
|
|
126
|
+
export declare class CancelJobsCommand extends CancelJobsCommand_base {
|
|
127
|
+
/** @internal type navigation helper, not in runtime. */
|
|
128
|
+
protected static __types: {
|
|
129
|
+
api: {
|
|
130
|
+
input: CancelJobsRequest;
|
|
131
|
+
output: CancelJobsResponse;
|
|
132
|
+
};
|
|
133
|
+
sdk: {
|
|
134
|
+
input: CancelJobsCommandInput;
|
|
135
|
+
output: CancelJobsCommandOutput;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
}
|
|
@@ -100,6 +100,8 @@ declare const ListJobsCommand_base: {
|
|
|
100
100
|
* // nodeIndex: Number("int"),
|
|
101
101
|
* // },
|
|
102
102
|
* // jobDefinition: "STRING_VALUE",
|
|
103
|
+
* // isCancelled: true || false,
|
|
104
|
+
* // isTerminated: true || false,
|
|
103
105
|
* // },
|
|
104
106
|
* // ],
|
|
105
107
|
* // nextToken: "STRING_VALUE",
|