@aws-sdk/client-batch 3.587.0 → 3.589.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 CHANGED
@@ -317,6 +317,14 @@ DescribeSchedulingPolicies
317
317
 
318
318
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/DescribeSchedulingPoliciesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DescribeSchedulingPoliciesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/DescribeSchedulingPoliciesCommandOutput/)
319
319
 
320
+ </details>
321
+ <details>
322
+ <summary>
323
+ GetJobQueueSnapshot
324
+ </summary>
325
+
326
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/batch/command/GetJobQueueSnapshotCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/GetJobQueueSnapshotCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-batch/Interface/GetJobQueueSnapshotCommandOutput/)
327
+
320
328
  </details>
321
329
  <details>
322
330
  <summary>
package/dist-cjs/index.js CHANGED
@@ -49,6 +49,7 @@ __export(src_exports, {
49
49
  DeviceCgroupPermission: () => DeviceCgroupPermission,
50
50
  EFSAuthorizationConfigIAM: () => EFSAuthorizationConfigIAM,
51
51
  EFSTransitEncryption: () => EFSTransitEncryption,
52
+ GetJobQueueSnapshotCommand: () => GetJobQueueSnapshotCommand,
52
53
  JQState: () => JQState,
53
54
  JQStatus: () => JQStatus,
54
55
  JobDefinitionType: () => JobDefinitionType,
@@ -619,6 +620,21 @@ var se_DescribeSchedulingPoliciesCommand = /* @__PURE__ */ __name(async (input,
619
620
  b.m("POST").h(headers).b(body);
620
621
  return b.build();
621
622
  }, "se_DescribeSchedulingPoliciesCommand");
623
+ var se_GetJobQueueSnapshotCommand = /* @__PURE__ */ __name(async (input, context) => {
624
+ const b = (0, import_core.requestBuilder)(input, context);
625
+ const headers = {
626
+ "content-type": "application/json"
627
+ };
628
+ b.bp("/v1/getjobqueuesnapshot");
629
+ let body;
630
+ body = JSON.stringify(
631
+ (0, import_smithy_client.take)(input, {
632
+ jobQueue: []
633
+ })
634
+ );
635
+ b.m("POST").h(headers).b(body);
636
+ return b.build();
637
+ }, "se_GetJobQueueSnapshotCommand");
622
638
  var se_ListJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
623
639
  const b = (0, import_core.requestBuilder)(input, context);
624
640
  const headers = {
@@ -993,6 +1009,20 @@ var de_DescribeSchedulingPoliciesCommand = /* @__PURE__ */ __name(async (output,
993
1009
  Object.assign(contents, doc);
994
1010
  return contents;
995
1011
  }, "de_DescribeSchedulingPoliciesCommand");
1012
+ var de_GetJobQueueSnapshotCommand = /* @__PURE__ */ __name(async (output, context) => {
1013
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1014
+ return de_CommandError(output, context);
1015
+ }
1016
+ const contents = (0, import_smithy_client.map)({
1017
+ $metadata: deserializeMetadata(output)
1018
+ });
1019
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1020
+ const doc = (0, import_smithy_client.take)(data, {
1021
+ frontOfQueue: import_smithy_client._json
1022
+ });
1023
+ Object.assign(contents, doc);
1024
+ return contents;
1025
+ }, "de_GetJobQueueSnapshotCommand");
996
1026
  var de_ListJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
997
1027
  if (output.statusCode !== 200 && output.statusCode >= 300) {
998
1028
  return de_CommandError(output, context);
@@ -1555,6 +1585,23 @@ var _DescribeSchedulingPoliciesCommand = class _DescribeSchedulingPoliciesComman
1555
1585
  __name(_DescribeSchedulingPoliciesCommand, "DescribeSchedulingPoliciesCommand");
1556
1586
  var DescribeSchedulingPoliciesCommand = _DescribeSchedulingPoliciesCommand;
1557
1587
 
1588
+ // src/commands/GetJobQueueSnapshotCommand.ts
1589
+
1590
+
1591
+
1592
+
1593
+ var _GetJobQueueSnapshotCommand = class _GetJobQueueSnapshotCommand extends import_smithy_client.Command.classBuilder().ep({
1594
+ ...commonParams
1595
+ }).m(function(Command, cs, config, o) {
1596
+ return [
1597
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1598
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1599
+ ];
1600
+ }).s("AWSBatchV20160810", "GetJobQueueSnapshot", {}).n("BatchClient", "GetJobQueueSnapshotCommand").f(void 0, void 0).ser(se_GetJobQueueSnapshotCommand).de(de_GetJobQueueSnapshotCommand).build() {
1601
+ };
1602
+ __name(_GetJobQueueSnapshotCommand, "GetJobQueueSnapshotCommand");
1603
+ var GetJobQueueSnapshotCommand = _GetJobQueueSnapshotCommand;
1604
+
1558
1605
  // src/commands/ListJobsCommand.ts
1559
1606
 
1560
1607
 
@@ -1757,6 +1804,7 @@ var commands = {
1757
1804
  DescribeJobQueuesCommand,
1758
1805
  DescribeJobsCommand,
1759
1806
  DescribeSchedulingPoliciesCommand,
1807
+ GetJobQueueSnapshotCommand,
1760
1808
  ListJobsCommand,
1761
1809
  ListSchedulingPoliciesCommand,
1762
1810
  ListTagsForResourceCommand,
@@ -1815,6 +1863,7 @@ var paginateListSchedulingPolicies = (0, import_core.createPaginator)(BatchClien
1815
1863
  DescribeJobQueuesCommand,
1816
1864
  DescribeJobsCommand,
1817
1865
  DescribeSchedulingPoliciesCommand,
1866
+ GetJobQueueSnapshotCommand,
1818
1867
  ListJobsCommand,
1819
1868
  ListSchedulingPoliciesCommand,
1820
1869
  ListTagsForResourceCommand,
package/dist-es/Batch.js CHANGED
@@ -13,6 +13,7 @@ import { DescribeJobDefinitionsCommand, } from "./commands/DescribeJobDefinition
13
13
  import { DescribeJobQueuesCommand, } from "./commands/DescribeJobQueuesCommand";
14
14
  import { DescribeJobsCommand, } from "./commands/DescribeJobsCommand";
15
15
  import { DescribeSchedulingPoliciesCommand, } from "./commands/DescribeSchedulingPoliciesCommand";
16
+ import { GetJobQueueSnapshotCommand, } from "./commands/GetJobQueueSnapshotCommand";
16
17
  import { ListJobsCommand } from "./commands/ListJobsCommand";
17
18
  import { ListSchedulingPoliciesCommand, } from "./commands/ListSchedulingPoliciesCommand";
18
19
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
@@ -38,6 +39,7 @@ const commands = {
38
39
  DescribeJobQueuesCommand,
39
40
  DescribeJobsCommand,
40
41
  DescribeSchedulingPoliciesCommand,
42
+ GetJobQueueSnapshotCommand,
41
43
  ListJobsCommand,
42
44
  ListSchedulingPoliciesCommand,
43
45
  ListTagsForResourceCommand,
@@ -0,0 +1,24 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetJobQueueSnapshotCommand, se_GetJobQueueSnapshotCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetJobQueueSnapshotCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("AWSBatchV20160810", "GetJobQueueSnapshot", {})
19
+ .n("BatchClient", "GetJobQueueSnapshotCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetJobQueueSnapshotCommand)
22
+ .de(de_GetJobQueueSnapshotCommand)
23
+ .build() {
24
+ }
@@ -11,6 +11,7 @@ export * from "./DescribeJobDefinitionsCommand";
11
11
  export * from "./DescribeJobQueuesCommand";
12
12
  export * from "./DescribeJobsCommand";
13
13
  export * from "./DescribeSchedulingPoliciesCommand";
14
+ export * from "./GetJobQueueSnapshotCommand";
14
15
  export * from "./ListJobsCommand";
15
16
  export * from "./ListSchedulingPoliciesCommand";
16
17
  export * from "./ListTagsForResourceCommand";
@@ -196,6 +196,19 @@ export const se_DescribeSchedulingPoliciesCommand = async (input, context) => {
196
196
  b.m("POST").h(headers).b(body);
197
197
  return b.build();
198
198
  };
199
+ export const se_GetJobQueueSnapshotCommand = async (input, context) => {
200
+ const b = rb(input, context);
201
+ const headers = {
202
+ "content-type": "application/json",
203
+ };
204
+ b.bp("/v1/getjobqueuesnapshot");
205
+ let body;
206
+ body = JSON.stringify(take(input, {
207
+ jobQueue: [],
208
+ }));
209
+ b.m("POST").h(headers).b(body);
210
+ return b.build();
211
+ };
199
212
  export const se_ListJobsCommand = async (input, context) => {
200
213
  const b = rb(input, context);
201
214
  const headers = {
@@ -552,6 +565,20 @@ export const de_DescribeSchedulingPoliciesCommand = async (output, context) => {
552
565
  Object.assign(contents, doc);
553
566
  return contents;
554
567
  };
568
+ export const de_GetJobQueueSnapshotCommand = async (output, context) => {
569
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
570
+ return de_CommandError(output, context);
571
+ }
572
+ const contents = map({
573
+ $metadata: deserializeMetadata(output),
574
+ });
575
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
576
+ const doc = take(data, {
577
+ frontOfQueue: _json,
578
+ });
579
+ Object.assign(contents, doc);
580
+ return contents;
581
+ };
555
582
  export const de_ListJobsCommand = async (output, context) => {
556
583
  if (output.statusCode !== 200 && output.statusCode >= 300) {
557
584
  return de_CommandError(output, context);
@@ -13,6 +13,7 @@ import { DescribeJobDefinitionsCommandInput, DescribeJobDefinitionsCommandOutput
13
13
  import { DescribeJobQueuesCommandInput, DescribeJobQueuesCommandOutput } from "./commands/DescribeJobQueuesCommand";
14
14
  import { DescribeJobsCommandInput, DescribeJobsCommandOutput } from "./commands/DescribeJobsCommand";
15
15
  import { DescribeSchedulingPoliciesCommandInput, DescribeSchedulingPoliciesCommandOutput } from "./commands/DescribeSchedulingPoliciesCommand";
16
+ import { GetJobQueueSnapshotCommandInput, GetJobQueueSnapshotCommandOutput } from "./commands/GetJobQueueSnapshotCommand";
16
17
  import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
17
18
  import { ListSchedulingPoliciesCommandInput, ListSchedulingPoliciesCommandOutput } from "./commands/ListSchedulingPoliciesCommand";
18
19
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -106,6 +107,12 @@ export interface Batch {
106
107
  describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeSchedulingPoliciesCommandOutput>;
107
108
  describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, cb: (err: any, data?: DescribeSchedulingPoliciesCommandOutput) => void): void;
108
109
  describeSchedulingPolicies(args: DescribeSchedulingPoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSchedulingPoliciesCommandOutput) => void): void;
110
+ /**
111
+ * @see {@link GetJobQueueSnapshotCommand}
112
+ */
113
+ getJobQueueSnapshot(args: GetJobQueueSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<GetJobQueueSnapshotCommandOutput>;
114
+ getJobQueueSnapshot(args: GetJobQueueSnapshotCommandInput, cb: (err: any, data?: GetJobQueueSnapshotCommandOutput) => void): void;
115
+ getJobQueueSnapshot(args: GetJobQueueSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetJobQueueSnapshotCommandOutput) => void): void;
109
116
  /**
110
117
  * @see {@link ListJobsCommand}
111
118
  */
@@ -20,6 +20,7 @@ import { DescribeJobDefinitionsCommandInput, DescribeJobDefinitionsCommandOutput
20
20
  import { DescribeJobQueuesCommandInput, DescribeJobQueuesCommandOutput } from "./commands/DescribeJobQueuesCommand";
21
21
  import { DescribeJobsCommandInput, DescribeJobsCommandOutput } from "./commands/DescribeJobsCommand";
22
22
  import { DescribeSchedulingPoliciesCommandInput, DescribeSchedulingPoliciesCommandOutput } from "./commands/DescribeSchedulingPoliciesCommand";
23
+ import { GetJobQueueSnapshotCommandInput, GetJobQueueSnapshotCommandOutput } from "./commands/GetJobQueueSnapshotCommand";
23
24
  import { ListJobsCommandInput, ListJobsCommandOutput } from "./commands/ListJobsCommand";
24
25
  import { ListSchedulingPoliciesCommandInput, ListSchedulingPoliciesCommandOutput } from "./commands/ListSchedulingPoliciesCommand";
25
26
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
@@ -37,11 +38,11 @@ export { __Client };
37
38
  /**
38
39
  * @public
39
40
  */
40
- export type ServiceInputTypes = CancelJobCommandInput | CreateComputeEnvironmentCommandInput | CreateJobQueueCommandInput | CreateSchedulingPolicyCommandInput | DeleteComputeEnvironmentCommandInput | DeleteJobQueueCommandInput | DeleteSchedulingPolicyCommandInput | DeregisterJobDefinitionCommandInput | DescribeComputeEnvironmentsCommandInput | DescribeJobDefinitionsCommandInput | DescribeJobQueuesCommandInput | DescribeJobsCommandInput | DescribeSchedulingPoliciesCommandInput | ListJobsCommandInput | ListSchedulingPoliciesCommandInput | ListTagsForResourceCommandInput | RegisterJobDefinitionCommandInput | SubmitJobCommandInput | TagResourceCommandInput | TerminateJobCommandInput | UntagResourceCommandInput | UpdateComputeEnvironmentCommandInput | UpdateJobQueueCommandInput | UpdateSchedulingPolicyCommandInput;
41
+ export type ServiceInputTypes = CancelJobCommandInput | CreateComputeEnvironmentCommandInput | CreateJobQueueCommandInput | CreateSchedulingPolicyCommandInput | DeleteComputeEnvironmentCommandInput | DeleteJobQueueCommandInput | DeleteSchedulingPolicyCommandInput | DeregisterJobDefinitionCommandInput | DescribeComputeEnvironmentsCommandInput | DescribeJobDefinitionsCommandInput | DescribeJobQueuesCommandInput | DescribeJobsCommandInput | DescribeSchedulingPoliciesCommandInput | GetJobQueueSnapshotCommandInput | ListJobsCommandInput | ListSchedulingPoliciesCommandInput | ListTagsForResourceCommandInput | RegisterJobDefinitionCommandInput | SubmitJobCommandInput | TagResourceCommandInput | TerminateJobCommandInput | UntagResourceCommandInput | UpdateComputeEnvironmentCommandInput | UpdateJobQueueCommandInput | UpdateSchedulingPolicyCommandInput;
41
42
  /**
42
43
  * @public
43
44
  */
44
- export type ServiceOutputTypes = CancelJobCommandOutput | CreateComputeEnvironmentCommandOutput | CreateJobQueueCommandOutput | CreateSchedulingPolicyCommandOutput | DeleteComputeEnvironmentCommandOutput | DeleteJobQueueCommandOutput | DeleteSchedulingPolicyCommandOutput | DeregisterJobDefinitionCommandOutput | DescribeComputeEnvironmentsCommandOutput | DescribeJobDefinitionsCommandOutput | DescribeJobQueuesCommandOutput | DescribeJobsCommandOutput | DescribeSchedulingPoliciesCommandOutput | ListJobsCommandOutput | ListSchedulingPoliciesCommandOutput | ListTagsForResourceCommandOutput | RegisterJobDefinitionCommandOutput | SubmitJobCommandOutput | TagResourceCommandOutput | TerminateJobCommandOutput | UntagResourceCommandOutput | UpdateComputeEnvironmentCommandOutput | UpdateJobQueueCommandOutput | UpdateSchedulingPolicyCommandOutput;
45
+ export type ServiceOutputTypes = CancelJobCommandOutput | CreateComputeEnvironmentCommandOutput | CreateJobQueueCommandOutput | CreateSchedulingPolicyCommandOutput | DeleteComputeEnvironmentCommandOutput | DeleteJobQueueCommandOutput | DeleteSchedulingPolicyCommandOutput | DeregisterJobDefinitionCommandOutput | DescribeComputeEnvironmentsCommandOutput | DescribeJobDefinitionsCommandOutput | DescribeJobQueuesCommandOutput | DescribeJobsCommandOutput | DescribeSchedulingPoliciesCommandOutput | GetJobQueueSnapshotCommandOutput | ListJobsCommandOutput | ListSchedulingPoliciesCommandOutput | ListTagsForResourceCommandOutput | RegisterJobDefinitionCommandOutput | SubmitJobCommandOutput | TagResourceCommandOutput | TerminateJobCommandOutput | UntagResourceCommandOutput | UpdateComputeEnvironmentCommandOutput | UpdateJobQueueCommandOutput | UpdateSchedulingPolicyCommandOutput;
45
46
  /**
46
47
  * @public
47
48
  */
@@ -0,0 +1,75 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BatchClient";
4
+ import { GetJobQueueSnapshotRequest, GetJobQueueSnapshotResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link GetJobQueueSnapshotCommand}.
13
+ */
14
+ export interface GetJobQueueSnapshotCommandInput extends GetJobQueueSnapshotRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link GetJobQueueSnapshotCommand}.
20
+ */
21
+ export interface GetJobQueueSnapshotCommandOutput extends GetJobQueueSnapshotResponse, __MetadataBearer {
22
+ }
23
+ declare const GetJobQueueSnapshotCommand_base: {
24
+ new (input: GetJobQueueSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl<GetJobQueueSnapshotCommandInput, GetJobQueueSnapshotCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: GetJobQueueSnapshotCommandInput): import("@smithy/smithy-client").CommandImpl<GetJobQueueSnapshotCommandInput, GetJobQueueSnapshotCommandOutput, BatchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Provides a list of the first 100 <code>RUNNABLE</code> jobs associated to a single job queue.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { BatchClient, GetJobQueueSnapshotCommand } from "@aws-sdk/client-batch"; // ES Modules import
34
+ * // const { BatchClient, GetJobQueueSnapshotCommand } = require("@aws-sdk/client-batch"); // CommonJS import
35
+ * const client = new BatchClient(config);
36
+ * const input = { // GetJobQueueSnapshotRequest
37
+ * jobQueue: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new GetJobQueueSnapshotCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // GetJobQueueSnapshotResponse
42
+ * // frontOfQueue: { // FrontOfQueueDetail
43
+ * // jobs: [ // FrontOfQueueJobSummaryList
44
+ * // { // FrontOfQueueJobSummary
45
+ * // jobArn: "STRING_VALUE",
46
+ * // earliestTimeAtPosition: Number("long"),
47
+ * // },
48
+ * // ],
49
+ * // lastUpdatedAt: Number("long"),
50
+ * // },
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param GetJobQueueSnapshotCommandInput - {@link GetJobQueueSnapshotCommandInput}
56
+ * @returns {@link GetJobQueueSnapshotCommandOutput}
57
+ * @see {@link GetJobQueueSnapshotCommandInput} for command's `input` shape.
58
+ * @see {@link GetJobQueueSnapshotCommandOutput} for command's `response` shape.
59
+ * @see {@link BatchClientResolvedConfig | config} for BatchClient's `config` shape.
60
+ *
61
+ * @throws {@link ClientException} (client fault)
62
+ * <p>These errors are usually caused by a client action. One example cause is using an action or resource on behalf
63
+ * of a user that doesn't have permissions to use the action or resource. Another cause is specifying an identifier
64
+ * that's not valid.</p>
65
+ *
66
+ * @throws {@link ServerException} (server fault)
67
+ * <p>These errors are usually caused by a server issue.</p>
68
+ *
69
+ * @throws {@link BatchServiceException}
70
+ * <p>Base exception class for all service exceptions from Batch service.</p>
71
+ *
72
+ * @public
73
+ */
74
+ export declare class GetJobQueueSnapshotCommand extends GetJobQueueSnapshotCommand_base {
75
+ }
@@ -11,6 +11,7 @@ export * from "./DescribeJobDefinitionsCommand";
11
11
  export * from "./DescribeJobQueuesCommand";
12
12
  export * from "./DescribeJobsCommand";
13
13
  export * from "./DescribeSchedulingPoliciesCommand";
14
+ export * from "./GetJobQueueSnapshotCommand";
14
15
  export * from "./ListJobsCommand";
15
16
  export * from "./ListSchedulingPoliciesCommand";
16
17
  export * from "./ListTagsForResourceCommand";
@@ -5124,6 +5124,58 @@ export interface DescribeSchedulingPoliciesResponse {
5124
5124
  */
5125
5125
  schedulingPolicies?: SchedulingPolicyDetail[];
5126
5126
  }
5127
+ /**
5128
+ * @public
5129
+ */
5130
+ export interface GetJobQueueSnapshotRequest {
5131
+ /**
5132
+ * <p>The job queue’s name or full queue Amazon Resource Name (ARN).</p>
5133
+ * @public
5134
+ */
5135
+ jobQueue: string | undefined;
5136
+ }
5137
+ /**
5138
+ * <p>An object that represents summary details for the first 100 <code>RUNNABLE</code> jobs in a job queue.</p>
5139
+ * @public
5140
+ */
5141
+ export interface FrontOfQueueJobSummary {
5142
+ /**
5143
+ * <p>The ARN for a job in a named job queue.</p>
5144
+ * @public
5145
+ */
5146
+ jobArn?: string;
5147
+ /**
5148
+ * <p>The Unix timestamp (in milliseconds) for when the job transitioned to its current position in the job queue.</p>
5149
+ * @public
5150
+ */
5151
+ earliestTimeAtPosition?: number;
5152
+ }
5153
+ /**
5154
+ * <p>Contains a list of the first 100 <code>RUNNABLE</code> jobs associated to a single job queue.</p>
5155
+ * @public
5156
+ */
5157
+ export interface FrontOfQueueDetail {
5158
+ /**
5159
+ * <p>The Amazon Resource Names (ARNs) of the first 100 <code>RUNNABLE</code> jobs in a named job queue. For first-in-first-out (FIFO) job queues, jobs are ordered based on their submission time. For fair share scheduling (FSS) job queues, jobs are ordered based on their job priority and share usage.</p>
5160
+ * @public
5161
+ */
5162
+ jobs?: FrontOfQueueJobSummary[];
5163
+ /**
5164
+ * <p>The Unix timestamp (in milliseconds) for when each of the first 100 <code>RUNNABLE</code> jobs were last updated. </p>
5165
+ * @public
5166
+ */
5167
+ lastUpdatedAt?: number;
5168
+ }
5169
+ /**
5170
+ * @public
5171
+ */
5172
+ export interface GetJobQueueSnapshotResponse {
5173
+ /**
5174
+ * <p>The list of the first 100 <code>RUNNABLE</code> jobs in each job queue. For first-in-first-out (FIFO) job queues, jobs are ordered based on their submission time. For fair share scheduling (FSS) job queues, jobs are ordered based on their job priority and share usage.</p>
5175
+ * @public
5176
+ */
5177
+ frontOfQueue?: FrontOfQueueDetail;
5178
+ }
5127
5179
  /**
5128
5180
  * <p>A filter name and value pair that's used to return a more specific list of results from a
5129
5181
  * <code>ListJobs</code> API operation.</p>
@@ -5172,13 +5224,23 @@ export interface ListJobsRequest {
5172
5224
  */
5173
5225
  jobStatus?: JobStatus;
5174
5226
  /**
5175
- * <p>The maximum number of results returned by <code>ListJobs</code> in paginated output. When
5176
- * this parameter is used, <code>ListJobs</code> only returns <code>maxResults</code> results in
5177
- * a single page and a <code>nextToken</code> response element. The remaining results of the
5178
- * initial request can be seen by sending another <code>ListJobs</code> request with the returned
5179
- * <code>nextToken</code> value. This value can be between 1 and
5180
- * 100. If this parameter isn't used, then <code>ListJobs</code> returns up to
5181
- * 100 results and a <code>nextToken</code> value if applicable.</p>
5227
+ * <p>The maximum number of results returned by <code>ListJobs</code> in a paginated output. When this parameter is used, <code>ListJobs</code> returns up to <code>maxResults</code> results in a single page and a <code>nextToken</code> response element, if applicable. The remaining results of the initial request can be seen by sending another <code>ListJobs</code> request with the returned <code>nextToken</code> value.</p>
5228
+ * <p>The following outlines key parameters and limitations:</p>
5229
+ * <ul>
5230
+ * <li>
5231
+ * <p>The minimum value is 1. </p>
5232
+ * </li>
5233
+ * <li>
5234
+ * <p>When <code>--job-status</code> is used, Batch returns up to 1000 values. </p>
5235
+ * </li>
5236
+ * <li>
5237
+ * <p>When <code>--filters</code> is used, Batch returns up to 100 values.</p>
5238
+ * </li>
5239
+ * <li>
5240
+ * <p>If neither parameter is used, then <code>ListJobs</code> returns up to
5241
+ * 1000 results (jobs that are in the <code>RUNNING</code> status) and a <code>nextToken</code> value, if applicable.</p>
5242
+ * </li>
5243
+ * </ul>
5182
5244
  * @public
5183
5245
  */
5184
5246
  maxResults?: number;
@@ -13,6 +13,7 @@ import { DescribeJobDefinitionsCommandInput, DescribeJobDefinitionsCommandOutput
13
13
  import { DescribeJobQueuesCommandInput, DescribeJobQueuesCommandOutput } from "../commands/DescribeJobQueuesCommand";
14
14
  import { DescribeJobsCommandInput, DescribeJobsCommandOutput } from "../commands/DescribeJobsCommand";
15
15
  import { DescribeSchedulingPoliciesCommandInput, DescribeSchedulingPoliciesCommandOutput } from "../commands/DescribeSchedulingPoliciesCommand";
16
+ import { GetJobQueueSnapshotCommandInput, GetJobQueueSnapshotCommandOutput } from "../commands/GetJobQueueSnapshotCommand";
16
17
  import { ListJobsCommandInput, ListJobsCommandOutput } from "../commands/ListJobsCommand";
17
18
  import { ListSchedulingPoliciesCommandInput, ListSchedulingPoliciesCommandOutput } from "../commands/ListSchedulingPoliciesCommand";
18
19
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
@@ -76,6 +77,10 @@ export declare const se_DescribeJobsCommand: (input: DescribeJobsCommandInput, c
76
77
  * serializeAws_restJson1DescribeSchedulingPoliciesCommand
77
78
  */
78
79
  export declare const se_DescribeSchedulingPoliciesCommand: (input: DescribeSchedulingPoliciesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
80
+ /**
81
+ * serializeAws_restJson1GetJobQueueSnapshotCommand
82
+ */
83
+ export declare const se_GetJobQueueSnapshotCommand: (input: GetJobQueueSnapshotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
79
84
  /**
80
85
  * serializeAws_restJson1ListJobsCommand
81
86
  */
@@ -172,6 +177,10 @@ export declare const de_DescribeJobsCommand: (output: __HttpResponse, context: _
172
177
  * deserializeAws_restJson1DescribeSchedulingPoliciesCommand
173
178
  */
174
179
  export declare const de_DescribeSchedulingPoliciesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeSchedulingPoliciesCommandOutput>;
180
+ /**
181
+ * deserializeAws_restJson1GetJobQueueSnapshotCommand
182
+ */
183
+ export declare const de_GetJobQueueSnapshotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetJobQueueSnapshotCommandOutput>;
175
184
  /**
176
185
  * deserializeAws_restJson1ListJobsCommand
177
186
  */
@@ -52,6 +52,10 @@ import {
52
52
  DescribeSchedulingPoliciesCommandInput,
53
53
  DescribeSchedulingPoliciesCommandOutput,
54
54
  } from "./commands/DescribeSchedulingPoliciesCommand";
55
+ import {
56
+ GetJobQueueSnapshotCommandInput,
57
+ GetJobQueueSnapshotCommandOutput,
58
+ } from "./commands/GetJobQueueSnapshotCommand";
55
59
  import {
56
60
  ListJobsCommandInput,
57
61
  ListJobsCommandOutput,
@@ -269,6 +273,19 @@ export interface Batch {
269
273
  options: __HttpHandlerOptions,
270
274
  cb: (err: any, data?: DescribeSchedulingPoliciesCommandOutput) => void
271
275
  ): void;
276
+ getJobQueueSnapshot(
277
+ args: GetJobQueueSnapshotCommandInput,
278
+ options?: __HttpHandlerOptions
279
+ ): Promise<GetJobQueueSnapshotCommandOutput>;
280
+ getJobQueueSnapshot(
281
+ args: GetJobQueueSnapshotCommandInput,
282
+ cb: (err: any, data?: GetJobQueueSnapshotCommandOutput) => void
283
+ ): void;
284
+ getJobQueueSnapshot(
285
+ args: GetJobQueueSnapshotCommandInput,
286
+ options: __HttpHandlerOptions,
287
+ cb: (err: any, data?: GetJobQueueSnapshotCommandOutput) => void
288
+ ): void;
272
289
  listJobs(): Promise<ListJobsCommandOutput>;
273
290
  listJobs(
274
291
  args: ListJobsCommandInput,
@@ -97,6 +97,10 @@ import {
97
97
  DescribeSchedulingPoliciesCommandInput,
98
98
  DescribeSchedulingPoliciesCommandOutput,
99
99
  } from "./commands/DescribeSchedulingPoliciesCommand";
100
+ import {
101
+ GetJobQueueSnapshotCommandInput,
102
+ GetJobQueueSnapshotCommandOutput,
103
+ } from "./commands/GetJobQueueSnapshotCommand";
100
104
  import {
101
105
  ListJobsCommandInput,
102
106
  ListJobsCommandOutput,
@@ -162,6 +166,7 @@ export type ServiceInputTypes =
162
166
  | DescribeJobQueuesCommandInput
163
167
  | DescribeJobsCommandInput
164
168
  | DescribeSchedulingPoliciesCommandInput
169
+ | GetJobQueueSnapshotCommandInput
165
170
  | ListJobsCommandInput
166
171
  | ListSchedulingPoliciesCommandInput
167
172
  | ListTagsForResourceCommandInput
@@ -187,6 +192,7 @@ export type ServiceOutputTypes =
187
192
  | DescribeJobQueuesCommandOutput
188
193
  | DescribeJobsCommandOutput
189
194
  | DescribeSchedulingPoliciesCommandOutput
195
+ | GetJobQueueSnapshotCommandOutput
190
196
  | ListJobsCommandOutput
191
197
  | ListSchedulingPoliciesCommandOutput
192
198
  | ListTagsForResourceCommandOutput
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ BatchClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../BatchClient";
8
+ import {
9
+ GetJobQueueSnapshotRequest,
10
+ GetJobQueueSnapshotResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface GetJobQueueSnapshotCommandInput
14
+ extends GetJobQueueSnapshotRequest {}
15
+ export interface GetJobQueueSnapshotCommandOutput
16
+ extends GetJobQueueSnapshotResponse,
17
+ __MetadataBearer {}
18
+ declare const GetJobQueueSnapshotCommand_base: {
19
+ new (
20
+ input: GetJobQueueSnapshotCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ GetJobQueueSnapshotCommandInput,
23
+ GetJobQueueSnapshotCommandOutput,
24
+ BatchClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: GetJobQueueSnapshotCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ GetJobQueueSnapshotCommandInput,
32
+ GetJobQueueSnapshotCommandOutput,
33
+ BatchClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class GetJobQueueSnapshotCommand extends GetJobQueueSnapshotCommand_base {}
@@ -11,6 +11,7 @@ export * from "./DescribeJobDefinitionsCommand";
11
11
  export * from "./DescribeJobQueuesCommand";
12
12
  export * from "./DescribeJobsCommand";
13
13
  export * from "./DescribeSchedulingPoliciesCommand";
14
+ export * from "./GetJobQueueSnapshotCommand";
14
15
  export * from "./ListJobsCommand";
15
16
  export * from "./ListSchedulingPoliciesCommand";
16
17
  export * from "./ListTagsForResourceCommand";
@@ -781,6 +781,20 @@ export interface SchedulingPolicyDetail {
781
781
  export interface DescribeSchedulingPoliciesResponse {
782
782
  schedulingPolicies?: SchedulingPolicyDetail[];
783
783
  }
784
+ export interface GetJobQueueSnapshotRequest {
785
+ jobQueue: string | undefined;
786
+ }
787
+ export interface FrontOfQueueJobSummary {
788
+ jobArn?: string;
789
+ earliestTimeAtPosition?: number;
790
+ }
791
+ export interface FrontOfQueueDetail {
792
+ jobs?: FrontOfQueueJobSummary[];
793
+ lastUpdatedAt?: number;
794
+ }
795
+ export interface GetJobQueueSnapshotResponse {
796
+ frontOfQueue?: FrontOfQueueDetail;
797
+ }
784
798
  export interface KeyValuesPair {
785
799
  name?: string;
786
800
  values?: string[];
@@ -55,6 +55,10 @@ import {
55
55
  DescribeSchedulingPoliciesCommandInput,
56
56
  DescribeSchedulingPoliciesCommandOutput,
57
57
  } from "../commands/DescribeSchedulingPoliciesCommand";
58
+ import {
59
+ GetJobQueueSnapshotCommandInput,
60
+ GetJobQueueSnapshotCommandOutput,
61
+ } from "../commands/GetJobQueueSnapshotCommand";
58
62
  import {
59
63
  ListJobsCommandInput,
60
64
  ListJobsCommandOutput,
@@ -151,6 +155,10 @@ export declare const se_DescribeSchedulingPoliciesCommand: (
151
155
  input: DescribeSchedulingPoliciesCommandInput,
152
156
  context: __SerdeContext
153
157
  ) => Promise<__HttpRequest>;
158
+ export declare const se_GetJobQueueSnapshotCommand: (
159
+ input: GetJobQueueSnapshotCommandInput,
160
+ context: __SerdeContext
161
+ ) => Promise<__HttpRequest>;
154
162
  export declare const se_ListJobsCommand: (
155
163
  input: ListJobsCommandInput,
156
164
  context: __SerdeContext
@@ -247,6 +255,10 @@ export declare const de_DescribeSchedulingPoliciesCommand: (
247
255
  output: __HttpResponse,
248
256
  context: __SerdeContext
249
257
  ) => Promise<DescribeSchedulingPoliciesCommandOutput>;
258
+ export declare const de_GetJobQueueSnapshotCommand: (
259
+ output: __HttpResponse,
260
+ context: __SerdeContext
261
+ ) => Promise<GetJobQueueSnapshotCommandOutput>;
250
262
  export declare const de_ListJobsCommand: (
251
263
  output: __HttpResponse,
252
264
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-batch",
3
3
  "description": "AWS SDK for JavaScript Batch Client for Node.js, Browser and React Native",
4
- "version": "3.587.0",
4
+ "version": "3.589.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-batch",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sso-oidc": "3.587.0",
24
- "@aws-sdk/client-sts": "3.587.0",
25
- "@aws-sdk/core": "3.587.0",
26
- "@aws-sdk/credential-provider-node": "3.587.0",
23
+ "@aws-sdk/client-sso-oidc": "3.588.0",
24
+ "@aws-sdk/client-sts": "3.588.0",
25
+ "@aws-sdk/core": "3.588.0",
26
+ "@aws-sdk/credential-provider-node": "3.588.0",
27
27
  "@aws-sdk/middleware-host-header": "3.577.0",
28
28
  "@aws-sdk/middleware-logger": "3.577.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.577.0",