@aws-sdk/client-m2 3.552.0 → 3.556.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
@@ -366,6 +366,14 @@ ListBatchJobExecutions
366
366
 
367
367
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/m2/command/ListBatchJobExecutionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-m2/Interface/ListBatchJobExecutionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-m2/Interface/ListBatchJobExecutionsCommandOutput/)
368
368
 
369
+ </details>
370
+ <details>
371
+ <summary>
372
+ ListBatchJobRestartPoints
373
+ </summary>
374
+
375
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/m2/command/ListBatchJobRestartPointsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-m2/Interface/ListBatchJobRestartPointsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-m2/Interface/ListBatchJobRestartPointsCommandOutput/)
376
+
369
377
  </details>
370
378
  <details>
371
379
  <summary>
package/dist-cjs/index.js CHANGED
@@ -62,6 +62,7 @@ __export(src_exports, {
62
62
  ListApplicationsCommand: () => ListApplicationsCommand,
63
63
  ListBatchJobDefinitionsCommand: () => ListBatchJobDefinitionsCommand,
64
64
  ListBatchJobExecutionsCommand: () => ListBatchJobExecutionsCommand,
65
+ ListBatchJobRestartPointsCommand: () => ListBatchJobRestartPointsCommand,
65
66
  ListDataSetImportHistoryCommand: () => ListDataSetImportHistoryCommand,
66
67
  ListDataSetsCommand: () => ListDataSetsCommand,
67
68
  ListDeploymentsCommand: () => ListDeploymentsCommand,
@@ -370,9 +371,11 @@ __name(_ThrottlingException, "ThrottlingException");
370
371
  var ThrottlingException = _ThrottlingException;
371
372
  var ValidationExceptionReason = {
372
373
  CANNOT_PARSE: "cannotParse",
374
+ FEATURE_NOT_AVAILABLE: "featureNotAvailable",
373
375
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
374
376
  OTHER: "other",
375
- UNKNOWN_OPERATION: "unknownOperation"
377
+ UNKNOWN_OPERATION: "unknownOperation",
378
+ UNSUPPORTED_ENGINE_VERSION: "unsupportedEngineVersion"
376
379
  };
377
380
  var _ValidationException = class _ValidationException extends M2ServiceException {
378
381
  /**
@@ -503,6 +506,8 @@ var BatchJobIdentifier;
503
506
  return visitor.scriptBatchJobIdentifier(value.scriptBatchJobIdentifier);
504
507
  if (value.s3BatchJobIdentifier !== void 0)
505
508
  return visitor.s3BatchJobIdentifier(value.s3BatchJobIdentifier);
509
+ if (value.restartBatchJobIdentifier !== void 0)
510
+ return visitor.restartBatchJobIdentifier(value.restartBatchJobIdentifier);
506
511
  return visitor._(value.$unknown[0], value.$unknown[1]);
507
512
  }, "visit");
508
513
  })(BatchJobIdentifier || (BatchJobIdentifier = {}));
@@ -517,6 +522,7 @@ var BatchJobExecutionStatus = {
517
522
  DISPATCH: "Dispatching",
518
523
  FAILED: "Failed",
519
524
  HOLDING: "Holding",
525
+ PURGED: "Purged",
520
526
  RUNNING: "Running",
521
527
  SUBMITTING: "Submitting",
522
528
  SUCCEEDED: "Succeeded",
@@ -872,6 +878,16 @@ var se_ListBatchJobExecutionsCommand = /* @__PURE__ */ __name(async (input, cont
872
878
  b.m("GET").h(headers).q(query).b(body);
873
879
  return b.build();
874
880
  }, "se_ListBatchJobExecutionsCommand");
881
+ var se_ListBatchJobRestartPointsCommand = /* @__PURE__ */ __name(async (input, context) => {
882
+ const b = (0, import_core.requestBuilder)(input, context);
883
+ const headers = {};
884
+ b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/steps");
885
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
886
+ b.p("executionId", () => input.executionId, "{executionId}", false);
887
+ let body;
888
+ b.m("GET").h(headers).b(body);
889
+ return b.build();
890
+ }, "se_ListBatchJobRestartPointsCommand");
875
891
  var se_ListDataSetImportHistoryCommand = /* @__PURE__ */ __name(async (input, context) => {
876
892
  const b = (0, import_core.requestBuilder)(input, context);
877
893
  const headers = {};
@@ -1227,6 +1243,7 @@ var de_GetBatchJobExecutionCommand = /* @__PURE__ */ __name(async (output, conte
1227
1243
  executionId: import_smithy_client.expectString,
1228
1244
  jobId: import_smithy_client.expectString,
1229
1245
  jobName: import_smithy_client.expectString,
1246
+ jobStepRestartMarker: import_smithy_client._json,
1230
1247
  jobType: import_smithy_client.expectString,
1231
1248
  jobUser: import_smithy_client.expectString,
1232
1249
  returnCode: import_smithy_client.expectString,
@@ -1404,6 +1421,20 @@ var de_ListBatchJobExecutionsCommand = /* @__PURE__ */ __name(async (output, con
1404
1421
  Object.assign(contents, doc);
1405
1422
  return contents;
1406
1423
  }, "de_ListBatchJobExecutionsCommand");
1424
+ var de_ListBatchJobRestartPointsCommand = /* @__PURE__ */ __name(async (output, context) => {
1425
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1426
+ return de_CommandError(output, context);
1427
+ }
1428
+ const contents = (0, import_smithy_client.map)({
1429
+ $metadata: deserializeMetadata(output)
1430
+ });
1431
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1432
+ const doc = (0, import_smithy_client.take)(data, {
1433
+ batchJobSteps: import_smithy_client._json
1434
+ });
1435
+ Object.assign(contents, doc);
1436
+ return contents;
1437
+ }, "de_ListBatchJobRestartPointsCommand");
1407
1438
  var de_ListDataSetImportHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1408
1439
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1409
1440
  return de_CommandError(output, context);
@@ -2285,6 +2316,23 @@ var _ListBatchJobExecutionsCommand = class _ListBatchJobExecutionsCommand extend
2285
2316
  __name(_ListBatchJobExecutionsCommand, "ListBatchJobExecutionsCommand");
2286
2317
  var ListBatchJobExecutionsCommand = _ListBatchJobExecutionsCommand;
2287
2318
 
2319
+ // src/commands/ListBatchJobRestartPointsCommand.ts
2320
+
2321
+
2322
+
2323
+
2324
+ var _ListBatchJobRestartPointsCommand = class _ListBatchJobRestartPointsCommand extends import_smithy_client.Command.classBuilder().ep({
2325
+ ...commonParams
2326
+ }).m(function(Command, cs, config, o) {
2327
+ return [
2328
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2329
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2330
+ ];
2331
+ }).s("AwsSupernovaControlPlaneService", "ListBatchJobRestartPoints", {}).n("M2Client", "ListBatchJobRestartPointsCommand").f(void 0, void 0).ser(se_ListBatchJobRestartPointsCommand).de(de_ListBatchJobRestartPointsCommand).build() {
2332
+ };
2333
+ __name(_ListBatchJobRestartPointsCommand, "ListBatchJobRestartPointsCommand");
2334
+ var ListBatchJobRestartPointsCommand = _ListBatchJobRestartPointsCommand;
2335
+
2288
2336
  // src/commands/ListDataSetImportHistoryCommand.ts
2289
2337
 
2290
2338
 
@@ -2528,6 +2576,7 @@ var commands = {
2528
2576
  ListApplicationVersionsCommand,
2529
2577
  ListBatchJobDefinitionsCommand,
2530
2578
  ListBatchJobExecutionsCommand,
2579
+ ListBatchJobRestartPointsCommand,
2531
2580
  ListDataSetImportHistoryCommand,
2532
2581
  ListDataSetsCommand,
2533
2582
  ListDeploymentsCommand,
@@ -2611,6 +2660,7 @@ var paginateListEnvironments = (0, import_core.createPaginator)(M2Client, ListEn
2611
2660
  ListApplicationsCommand,
2612
2661
  ListBatchJobDefinitionsCommand,
2613
2662
  ListBatchJobExecutionsCommand,
2663
+ ListBatchJobRestartPointsCommand,
2614
2664
  ListDataSetImportHistoryCommand,
2615
2665
  ListDataSetsCommand,
2616
2666
  ListDeploymentsCommand,
package/dist-es/M2.js CHANGED
@@ -19,6 +19,7 @@ import { ListApplicationsCommand, } from "./commands/ListApplicationsCommand";
19
19
  import { ListApplicationVersionsCommand, } from "./commands/ListApplicationVersionsCommand";
20
20
  import { ListBatchJobDefinitionsCommand, } from "./commands/ListBatchJobDefinitionsCommand";
21
21
  import { ListBatchJobExecutionsCommand, } from "./commands/ListBatchJobExecutionsCommand";
22
+ import { ListBatchJobRestartPointsCommand, } from "./commands/ListBatchJobRestartPointsCommand";
22
23
  import { ListDataSetImportHistoryCommand, } from "./commands/ListDataSetImportHistoryCommand";
23
24
  import { ListDataSetsCommand, } from "./commands/ListDataSetsCommand";
24
25
  import { ListDeploymentsCommand, } from "./commands/ListDeploymentsCommand";
@@ -54,6 +55,7 @@ const commands = {
54
55
  ListApplicationVersionsCommand,
55
56
  ListBatchJobDefinitionsCommand,
56
57
  ListBatchJobExecutionsCommand,
58
+ ListBatchJobRestartPointsCommand,
57
59
  ListDataSetImportHistoryCommand,
58
60
  ListDataSetsCommand,
59
61
  ListDeploymentsCommand,
@@ -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_ListBatchJobRestartPointsCommand, se_ListBatchJobRestartPointsCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListBatchJobRestartPointsCommand 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("AwsSupernovaControlPlaneService", "ListBatchJobRestartPoints", {})
19
+ .n("M2Client", "ListBatchJobRestartPointsCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListBatchJobRestartPointsCommand)
22
+ .de(de_ListBatchJobRestartPointsCommand)
23
+ .build() {
24
+ }
@@ -18,6 +18,7 @@ export * from "./ListApplicationVersionsCommand";
18
18
  export * from "./ListApplicationsCommand";
19
19
  export * from "./ListBatchJobDefinitionsCommand";
20
20
  export * from "./ListBatchJobExecutionsCommand";
21
+ export * from "./ListBatchJobRestartPointsCommand";
21
22
  export * from "./ListDataSetImportHistoryCommand";
22
23
  export * from "./ListDataSetsCommand";
23
24
  export * from "./ListDeploymentsCommand";
@@ -73,9 +73,11 @@ export class ThrottlingException extends __BaseException {
73
73
  }
74
74
  export const ValidationExceptionReason = {
75
75
  CANNOT_PARSE: "cannotParse",
76
+ FEATURE_NOT_AVAILABLE: "featureNotAvailable",
76
77
  FIELD_VALIDATION_FAILED: "fieldValidationFailed",
77
78
  OTHER: "other",
78
79
  UNKNOWN_OPERATION: "unknownOperation",
80
+ UNSUPPORTED_ENGINE_VERSION: "unsupportedEngineVersion",
79
81
  };
80
82
  export class ValidationException extends __BaseException {
81
83
  constructor(opts) {
@@ -196,6 +198,8 @@ export var BatchJobIdentifier;
196
198
  return visitor.scriptBatchJobIdentifier(value.scriptBatchJobIdentifier);
197
199
  if (value.s3BatchJobIdentifier !== undefined)
198
200
  return visitor.s3BatchJobIdentifier(value.s3BatchJobIdentifier);
201
+ if (value.restartBatchJobIdentifier !== undefined)
202
+ return visitor.restartBatchJobIdentifier(value.restartBatchJobIdentifier);
199
203
  return visitor._(value.$unknown[0], value.$unknown[1]);
200
204
  };
201
205
  })(BatchJobIdentifier || (BatchJobIdentifier = {}));
@@ -210,6 +214,7 @@ export const BatchJobExecutionStatus = {
210
214
  DISPATCH: "Dispatching",
211
215
  FAILED: "Failed",
212
216
  HOLDING: "Holding",
217
+ PURGED: "Purged",
213
218
  RUNNING: "Running",
214
219
  SUBMITTING: "Submitting",
215
220
  SUCCEEDED: "Succeeded",
@@ -257,6 +257,16 @@ export const se_ListBatchJobExecutionsCommand = async (input, context) => {
257
257
  b.m("GET").h(headers).q(query).b(body);
258
258
  return b.build();
259
259
  };
260
+ export const se_ListBatchJobRestartPointsCommand = async (input, context) => {
261
+ const b = rb(input, context);
262
+ const headers = {};
263
+ b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/steps");
264
+ b.p("applicationId", () => input.applicationId, "{applicationId}", false);
265
+ b.p("executionId", () => input.executionId, "{executionId}", false);
266
+ let body;
267
+ b.m("GET").h(headers).b(body);
268
+ return b.build();
269
+ };
260
270
  export const se_ListDataSetImportHistoryCommand = async (input, context) => {
261
271
  const b = rb(input, context);
262
272
  const headers = {};
@@ -602,6 +612,7 @@ export const de_GetBatchJobExecutionCommand = async (output, context) => {
602
612
  executionId: __expectString,
603
613
  jobId: __expectString,
604
614
  jobName: __expectString,
615
+ jobStepRestartMarker: _json,
605
616
  jobType: __expectString,
606
617
  jobUser: __expectString,
607
618
  returnCode: __expectString,
@@ -779,6 +790,20 @@ export const de_ListBatchJobExecutionsCommand = async (output, context) => {
779
790
  Object.assign(contents, doc);
780
791
  return contents;
781
792
  };
793
+ export const de_ListBatchJobRestartPointsCommand = async (output, context) => {
794
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
795
+ return de_CommandError(output, context);
796
+ }
797
+ const contents = map({
798
+ $metadata: deserializeMetadata(output),
799
+ });
800
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
801
+ const doc = take(data, {
802
+ batchJobSteps: _json,
803
+ });
804
+ Object.assign(contents, doc);
805
+ return contents;
806
+ };
782
807
  export const de_ListDataSetImportHistoryCommand = async (output, context) => {
783
808
  if (output.statusCode !== 200 && output.statusCode >= 300) {
784
809
  return de_CommandError(output, context);
@@ -19,6 +19,7 @@ import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./c
19
19
  import { ListApplicationVersionsCommandInput, ListApplicationVersionsCommandOutput } from "./commands/ListApplicationVersionsCommand";
20
20
  import { ListBatchJobDefinitionsCommandInput, ListBatchJobDefinitionsCommandOutput } from "./commands/ListBatchJobDefinitionsCommand";
21
21
  import { ListBatchJobExecutionsCommandInput, ListBatchJobExecutionsCommandOutput } from "./commands/ListBatchJobExecutionsCommand";
22
+ import { ListBatchJobRestartPointsCommandInput, ListBatchJobRestartPointsCommandOutput } from "./commands/ListBatchJobRestartPointsCommand";
22
23
  import { ListDataSetImportHistoryCommandInput, ListDataSetImportHistoryCommandOutput } from "./commands/ListDataSetImportHistoryCommand";
23
24
  import { ListDataSetsCommandInput, ListDataSetsCommandOutput } from "./commands/ListDataSetsCommand";
24
25
  import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
@@ -156,6 +157,12 @@ export interface M2 {
156
157
  listBatchJobExecutions(args: ListBatchJobExecutionsCommandInput, options?: __HttpHandlerOptions): Promise<ListBatchJobExecutionsCommandOutput>;
157
158
  listBatchJobExecutions(args: ListBatchJobExecutionsCommandInput, cb: (err: any, data?: ListBatchJobExecutionsCommandOutput) => void): void;
158
159
  listBatchJobExecutions(args: ListBatchJobExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBatchJobExecutionsCommandOutput) => void): void;
160
+ /**
161
+ * @see {@link ListBatchJobRestartPointsCommand}
162
+ */
163
+ listBatchJobRestartPoints(args: ListBatchJobRestartPointsCommandInput, options?: __HttpHandlerOptions): Promise<ListBatchJobRestartPointsCommandOutput>;
164
+ listBatchJobRestartPoints(args: ListBatchJobRestartPointsCommandInput, cb: (err: any, data?: ListBatchJobRestartPointsCommandOutput) => void): void;
165
+ listBatchJobRestartPoints(args: ListBatchJobRestartPointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBatchJobRestartPointsCommandOutput) => void): void;
159
166
  /**
160
167
  * @see {@link ListDataSetImportHistoryCommand}
161
168
  */
@@ -27,6 +27,7 @@ import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "./c
27
27
  import { ListApplicationVersionsCommandInput, ListApplicationVersionsCommandOutput } from "./commands/ListApplicationVersionsCommand";
28
28
  import { ListBatchJobDefinitionsCommandInput, ListBatchJobDefinitionsCommandOutput } from "./commands/ListBatchJobDefinitionsCommand";
29
29
  import { ListBatchJobExecutionsCommandInput, ListBatchJobExecutionsCommandOutput } from "./commands/ListBatchJobExecutionsCommand";
30
+ import { ListBatchJobRestartPointsCommandInput, ListBatchJobRestartPointsCommandOutput } from "./commands/ListBatchJobRestartPointsCommand";
30
31
  import { ListDataSetImportHistoryCommandInput, ListDataSetImportHistoryCommandOutput } from "./commands/ListDataSetImportHistoryCommand";
31
32
  import { ListDataSetsCommandInput, ListDataSetsCommandOutput } from "./commands/ListDataSetsCommand";
32
33
  import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "./commands/ListDeploymentsCommand";
@@ -46,11 +47,11 @@ export { __Client };
46
47
  /**
47
48
  * @public
48
49
  */
49
- export type ServiceInputTypes = CancelBatchJobExecutionCommandInput | CreateApplicationCommandInput | CreateDataSetImportTaskCommandInput | CreateDeploymentCommandInput | CreateEnvironmentCommandInput | DeleteApplicationCommandInput | DeleteApplicationFromEnvironmentCommandInput | DeleteEnvironmentCommandInput | GetApplicationCommandInput | GetApplicationVersionCommandInput | GetBatchJobExecutionCommandInput | GetDataSetDetailsCommandInput | GetDataSetImportTaskCommandInput | GetDeploymentCommandInput | GetEnvironmentCommandInput | GetSignedBluinsightsUrlCommandInput | ListApplicationVersionsCommandInput | ListApplicationsCommandInput | ListBatchJobDefinitionsCommandInput | ListBatchJobExecutionsCommandInput | ListDataSetImportHistoryCommandInput | ListDataSetsCommandInput | ListDeploymentsCommandInput | ListEngineVersionsCommandInput | ListEnvironmentsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartBatchJobCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateEnvironmentCommandInput;
50
+ export type ServiceInputTypes = CancelBatchJobExecutionCommandInput | CreateApplicationCommandInput | CreateDataSetImportTaskCommandInput | CreateDeploymentCommandInput | CreateEnvironmentCommandInput | DeleteApplicationCommandInput | DeleteApplicationFromEnvironmentCommandInput | DeleteEnvironmentCommandInput | GetApplicationCommandInput | GetApplicationVersionCommandInput | GetBatchJobExecutionCommandInput | GetDataSetDetailsCommandInput | GetDataSetImportTaskCommandInput | GetDeploymentCommandInput | GetEnvironmentCommandInput | GetSignedBluinsightsUrlCommandInput | ListApplicationVersionsCommandInput | ListApplicationsCommandInput | ListBatchJobDefinitionsCommandInput | ListBatchJobExecutionsCommandInput | ListBatchJobRestartPointsCommandInput | ListDataSetImportHistoryCommandInput | ListDataSetsCommandInput | ListDeploymentsCommandInput | ListEngineVersionsCommandInput | ListEnvironmentsCommandInput | ListTagsForResourceCommandInput | StartApplicationCommandInput | StartBatchJobCommandInput | StopApplicationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateApplicationCommandInput | UpdateEnvironmentCommandInput;
50
51
  /**
51
52
  * @public
52
53
  */
53
- export type ServiceOutputTypes = CancelBatchJobExecutionCommandOutput | CreateApplicationCommandOutput | CreateDataSetImportTaskCommandOutput | CreateDeploymentCommandOutput | CreateEnvironmentCommandOutput | DeleteApplicationCommandOutput | DeleteApplicationFromEnvironmentCommandOutput | DeleteEnvironmentCommandOutput | GetApplicationCommandOutput | GetApplicationVersionCommandOutput | GetBatchJobExecutionCommandOutput | GetDataSetDetailsCommandOutput | GetDataSetImportTaskCommandOutput | GetDeploymentCommandOutput | GetEnvironmentCommandOutput | GetSignedBluinsightsUrlCommandOutput | ListApplicationVersionsCommandOutput | ListApplicationsCommandOutput | ListBatchJobDefinitionsCommandOutput | ListBatchJobExecutionsCommandOutput | ListDataSetImportHistoryCommandOutput | ListDataSetsCommandOutput | ListDeploymentsCommandOutput | ListEngineVersionsCommandOutput | ListEnvironmentsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartBatchJobCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateEnvironmentCommandOutput;
54
+ export type ServiceOutputTypes = CancelBatchJobExecutionCommandOutput | CreateApplicationCommandOutput | CreateDataSetImportTaskCommandOutput | CreateDeploymentCommandOutput | CreateEnvironmentCommandOutput | DeleteApplicationCommandOutput | DeleteApplicationFromEnvironmentCommandOutput | DeleteEnvironmentCommandOutput | GetApplicationCommandOutput | GetApplicationVersionCommandOutput | GetBatchJobExecutionCommandOutput | GetDataSetDetailsCommandOutput | GetDataSetImportTaskCommandOutput | GetDeploymentCommandOutput | GetEnvironmentCommandOutput | GetSignedBluinsightsUrlCommandOutput | ListApplicationVersionsCommandOutput | ListApplicationsCommandOutput | ListBatchJobDefinitionsCommandOutput | ListBatchJobExecutionsCommandOutput | ListBatchJobRestartPointsCommandOutput | ListDataSetImportHistoryCommandOutput | ListDataSetsCommandOutput | ListDeploymentsCommandOutput | ListEngineVersionsCommandOutput | ListEnvironmentsCommandOutput | ListTagsForResourceCommandOutput | StartApplicationCommandOutput | StartBatchJobCommandOutput | StopApplicationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateApplicationCommandOutput | UpdateEnvironmentCommandOutput;
54
55
  /**
55
56
  * @public
56
57
  */
@@ -67,6 +67,21 @@ declare const GetBatchJobExecutionCommand_base: {
67
67
  * // scriptName: "STRING_VALUE",
68
68
  * // },
69
69
  * // },
70
+ * // restartBatchJobIdentifier: { // RestartBatchJobIdentifier
71
+ * // executionId: "STRING_VALUE", // required
72
+ * // jobStepRestartMarker: { // JobStepRestartMarker
73
+ * // fromStep: "STRING_VALUE", // required
74
+ * // fromProcStep: "STRING_VALUE",
75
+ * // toStep: "STRING_VALUE",
76
+ * // toProcStep: "STRING_VALUE",
77
+ * // },
78
+ * // },
79
+ * // },
80
+ * // jobStepRestartMarker: {
81
+ * // fromStep: "STRING_VALUE", // required
82
+ * // fromProcStep: "STRING_VALUE",
83
+ * // toStep: "STRING_VALUE",
84
+ * // toProcStep: "STRING_VALUE",
70
85
  * // },
71
86
  * // };
72
87
  *
@@ -76,6 +76,15 @@ declare const ListBatchJobExecutionsCommand_base: {
76
76
  * // scriptName: "STRING_VALUE",
77
77
  * // },
78
78
  * // },
79
+ * // restartBatchJobIdentifier: { // RestartBatchJobIdentifier
80
+ * // executionId: "STRING_VALUE", // required
81
+ * // jobStepRestartMarker: { // JobStepRestartMarker
82
+ * // fromStep: "STRING_VALUE", // required
83
+ * // fromProcStep: "STRING_VALUE",
84
+ * // toStep: "STRING_VALUE",
85
+ * // toProcStep: "STRING_VALUE",
86
+ * // },
87
+ * // },
79
88
  * // },
80
89
  * // },
81
90
  * // ],
@@ -0,0 +1,87 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { M2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../M2Client";
4
+ import { ListBatchJobRestartPointsRequest, ListBatchJobRestartPointsResponse } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link ListBatchJobRestartPointsCommand}.
13
+ */
14
+ export interface ListBatchJobRestartPointsCommandInput extends ListBatchJobRestartPointsRequest {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link ListBatchJobRestartPointsCommand}.
20
+ */
21
+ export interface ListBatchJobRestartPointsCommandOutput extends ListBatchJobRestartPointsResponse, __MetadataBearer {
22
+ }
23
+ declare const ListBatchJobRestartPointsCommand_base: {
24
+ new (input: ListBatchJobRestartPointsCommandInput): import("@smithy/smithy-client").CommandImpl<ListBatchJobRestartPointsCommandInput, ListBatchJobRestartPointsCommandOutput, M2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ new (__0_0: ListBatchJobRestartPointsCommandInput): import("@smithy/smithy-client").CommandImpl<ListBatchJobRestartPointsCommandInput, ListBatchJobRestartPointsCommandOutput, M2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
27
+ };
28
+ /**
29
+ * <p>Lists all the job steps for JCL files to restart a batch job. This is only applicable for Micro Focus engine with versions 8.0.6 and above.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { M2Client, ListBatchJobRestartPointsCommand } from "@aws-sdk/client-m2"; // ES Modules import
34
+ * // const { M2Client, ListBatchJobRestartPointsCommand } = require("@aws-sdk/client-m2"); // CommonJS import
35
+ * const client = new M2Client(config);
36
+ * const input = { // ListBatchJobRestartPointsRequest
37
+ * applicationId: "STRING_VALUE", // required
38
+ * executionId: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new ListBatchJobRestartPointsCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // ListBatchJobRestartPointsResponse
43
+ * // batchJobSteps: [ // BatchJobStepList
44
+ * // { // JobStep
45
+ * // stepNumber: Number("int"),
46
+ * // stepName: "STRING_VALUE",
47
+ * // procStepNumber: Number("int"),
48
+ * // procStepName: "STRING_VALUE",
49
+ * // stepCondCode: "STRING_VALUE",
50
+ * // stepRestartable: true || false,
51
+ * // },
52
+ * // ],
53
+ * // };
54
+ *
55
+ * ```
56
+ *
57
+ * @param ListBatchJobRestartPointsCommandInput - {@link ListBatchJobRestartPointsCommandInput}
58
+ * @returns {@link ListBatchJobRestartPointsCommandOutput}
59
+ * @see {@link ListBatchJobRestartPointsCommandInput} for command's `input` shape.
60
+ * @see {@link ListBatchJobRestartPointsCommandOutput} for command's `response` shape.
61
+ * @see {@link M2ClientResolvedConfig | config} for M2Client's `config` shape.
62
+ *
63
+ * @throws {@link AccessDeniedException} (client fault)
64
+ * <p>The account or role doesn't have the right permissions to make the request.</p>
65
+ *
66
+ * @throws {@link ConflictException} (client fault)
67
+ * <p>The parameters provided in the request conflict with existing resources.</p>
68
+ *
69
+ * @throws {@link InternalServerException} (server fault)
70
+ * <p>An unexpected error occurred during the processing of the request.</p>
71
+ *
72
+ * @throws {@link ResourceNotFoundException} (client fault)
73
+ * <p>The specified resource was not found.</p>
74
+ *
75
+ * @throws {@link ThrottlingException} (client fault)
76
+ * <p>The number of requests made exceeds the limit.</p>
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * <p>One or more parameters provided in the request is not valid.</p>
80
+ *
81
+ * @throws {@link M2ServiceException}
82
+ * <p>Base exception class for all service exceptions from M2 service.</p>
83
+ *
84
+ * @public
85
+ */
86
+ export declare class ListBatchJobRestartPointsCommand extends ListBatchJobRestartPointsCommand_base {
87
+ }
@@ -52,6 +52,15 @@ declare const StartBatchJobCommand_base: {
52
52
  * scriptName: "STRING_VALUE",
53
53
  * },
54
54
  * },
55
+ * restartBatchJobIdentifier: { // RestartBatchJobIdentifier
56
+ * executionId: "STRING_VALUE", // required
57
+ * jobStepRestartMarker: { // JobStepRestartMarker
58
+ * fromStep: "STRING_VALUE", // required
59
+ * fromProcStep: "STRING_VALUE",
60
+ * toStep: "STRING_VALUE",
61
+ * toProcStep: "STRING_VALUE",
62
+ * },
63
+ * },
55
64
  * },
56
65
  * jobParams: { // BatchJobParametersMap
57
66
  * "<keys>": "STRING_VALUE",
@@ -18,6 +18,7 @@ export * from "./ListApplicationVersionsCommand";
18
18
  export * from "./ListApplicationsCommand";
19
19
  export * from "./ListBatchJobDefinitionsCommand";
20
20
  export * from "./ListBatchJobExecutionsCommand";
21
+ export * from "./ListBatchJobRestartPointsCommand";
21
22
  export * from "./ListDataSetImportHistoryCommand";
22
23
  export * from "./ListDataSetsCommand";
23
24
  export * from "./ListDeploymentsCommand";
@@ -176,9 +176,11 @@ export interface ValidationExceptionField {
176
176
  */
177
177
  export declare const ValidationExceptionReason: {
178
178
  readonly CANNOT_PARSE: "cannotParse";
179
+ readonly FEATURE_NOT_AVAILABLE: "featureNotAvailable";
179
180
  readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
180
181
  readonly OTHER: "other";
181
182
  readonly UNKNOWN_OPERATION: "unknownOperation";
183
+ readonly UNSUPPORTED_ENGINE_VERSION: "unsupportedEngineVersion";
182
184
  };
183
185
  /**
184
186
  * @public
@@ -1123,6 +1125,48 @@ export interface FileBatchJobIdentifier {
1123
1125
  */
1124
1126
  folderPath?: string;
1125
1127
  }
1128
+ /**
1129
+ * <p>Provides restart step information for the most recent restart operation.</p>
1130
+ * @public
1131
+ */
1132
+ export interface JobStepRestartMarker {
1133
+ /**
1134
+ * <p>The step name that a batch job restart was from.</p>
1135
+ * @public
1136
+ */
1137
+ fromStep: string | undefined;
1138
+ /**
1139
+ * <p>The procedure step name that a job was restarted from.</p>
1140
+ * @public
1141
+ */
1142
+ fromProcStep?: string;
1143
+ /**
1144
+ * <p>The step name that a job was restarted to.</p>
1145
+ * @public
1146
+ */
1147
+ toStep?: string;
1148
+ /**
1149
+ * <p>The procedure step name that a batch job was restarted to.</p>
1150
+ * @public
1151
+ */
1152
+ toProcStep?: string;
1153
+ }
1154
+ /**
1155
+ * <p>An identifier for the StartBatchJob API to show that it is a restart operation.</p>
1156
+ * @public
1157
+ */
1158
+ export interface RestartBatchJobIdentifier {
1159
+ /**
1160
+ * <p>The executionId from the StartBatchJob response when the job ran for the first time.</p>
1161
+ * @public
1162
+ */
1163
+ executionId: string | undefined;
1164
+ /**
1165
+ * <p>The restart step information for the most recent restart operation.</p>
1166
+ * @public
1167
+ */
1168
+ jobStepRestartMarker: JobStepRestartMarker | undefined;
1169
+ }
1126
1170
  /**
1127
1171
  * <p>Identifies a specific batch job.</p>
1128
1172
  * @public
@@ -1202,7 +1246,7 @@ export interface ScriptBatchJobIdentifier {
1202
1246
  * <p>Identifies a specific batch job.</p>
1203
1247
  * @public
1204
1248
  */
1205
- export type BatchJobIdentifier = BatchJobIdentifier.FileBatchJobIdentifierMember | BatchJobIdentifier.S3BatchJobIdentifierMember | BatchJobIdentifier.ScriptBatchJobIdentifierMember | BatchJobIdentifier.$UnknownMember;
1249
+ export type BatchJobIdentifier = BatchJobIdentifier.FileBatchJobIdentifierMember | BatchJobIdentifier.RestartBatchJobIdentifierMember | BatchJobIdentifier.S3BatchJobIdentifierMember | BatchJobIdentifier.ScriptBatchJobIdentifierMember | BatchJobIdentifier.$UnknownMember;
1206
1250
  /**
1207
1251
  * @public
1208
1252
  */
@@ -1215,6 +1259,7 @@ export declare namespace BatchJobIdentifier {
1215
1259
  fileBatchJobIdentifier: FileBatchJobIdentifier;
1216
1260
  scriptBatchJobIdentifier?: never;
1217
1261
  s3BatchJobIdentifier?: never;
1262
+ restartBatchJobIdentifier?: never;
1218
1263
  $unknown?: never;
1219
1264
  }
1220
1265
  /**
@@ -1226,6 +1271,7 @@ export declare namespace BatchJobIdentifier {
1226
1271
  fileBatchJobIdentifier?: never;
1227
1272
  scriptBatchJobIdentifier: ScriptBatchJobIdentifier;
1228
1273
  s3BatchJobIdentifier?: never;
1274
+ restartBatchJobIdentifier?: never;
1229
1275
  $unknown?: never;
1230
1276
  }
1231
1277
  /**
@@ -1236,6 +1282,18 @@ export declare namespace BatchJobIdentifier {
1236
1282
  fileBatchJobIdentifier?: never;
1237
1283
  scriptBatchJobIdentifier?: never;
1238
1284
  s3BatchJobIdentifier: S3BatchJobIdentifier;
1285
+ restartBatchJobIdentifier?: never;
1286
+ $unknown?: never;
1287
+ }
1288
+ /**
1289
+ * <p>Specifies the required information for restart, including execution ID and jobsteprestartmarker.</p>
1290
+ * @public
1291
+ */
1292
+ interface RestartBatchJobIdentifierMember {
1293
+ fileBatchJobIdentifier?: never;
1294
+ scriptBatchJobIdentifier?: never;
1295
+ s3BatchJobIdentifier?: never;
1296
+ restartBatchJobIdentifier: RestartBatchJobIdentifier;
1239
1297
  $unknown?: never;
1240
1298
  }
1241
1299
  /**
@@ -1245,12 +1303,14 @@ export declare namespace BatchJobIdentifier {
1245
1303
  fileBatchJobIdentifier?: never;
1246
1304
  scriptBatchJobIdentifier?: never;
1247
1305
  s3BatchJobIdentifier?: never;
1306
+ restartBatchJobIdentifier?: never;
1248
1307
  $unknown: [string, any];
1249
1308
  }
1250
1309
  interface Visitor<T> {
1251
1310
  fileBatchJobIdentifier: (value: FileBatchJobIdentifier) => T;
1252
1311
  scriptBatchJobIdentifier: (value: ScriptBatchJobIdentifier) => T;
1253
1312
  s3BatchJobIdentifier: (value: S3BatchJobIdentifier) => T;
1313
+ restartBatchJobIdentifier: (value: RestartBatchJobIdentifier) => T;
1254
1314
  _: (name: string, value: any) => T;
1255
1315
  }
1256
1316
  const visit: <T>(value: BatchJobIdentifier, visitor: Visitor<T>) => T;
@@ -1278,6 +1338,7 @@ export declare const BatchJobExecutionStatus: {
1278
1338
  readonly DISPATCH: "Dispatching";
1279
1339
  readonly FAILED: "Failed";
1280
1340
  readonly HOLDING: "Holding";
1341
+ readonly PURGED: "Purged";
1281
1342
  readonly RUNNING: "Running";
1282
1343
  readonly SUBMITTING: "Submitting";
1283
1344
  readonly SUCCEEDED: "Succeeded";
@@ -1354,6 +1415,11 @@ export interface GetBatchJobExecutionResponse {
1354
1415
  * @public
1355
1416
  */
1356
1417
  batchJobIdentifier?: BatchJobIdentifier;
1418
+ /**
1419
+ * <p>The restart steps information for the most recent restart operation.</p>
1420
+ * @public
1421
+ */
1422
+ jobStepRestartMarker?: JobStepRestartMarker;
1357
1423
  }
1358
1424
  /**
1359
1425
  * <p> Failed to connect to server, or didn’t receive response within expected time period.</p>
@@ -2148,6 +2214,67 @@ export interface ListBatchJobExecutionsResponse {
2148
2214
  */
2149
2215
  nextToken?: string;
2150
2216
  }
2217
+ /**
2218
+ * @public
2219
+ */
2220
+ export interface ListBatchJobRestartPointsRequest {
2221
+ /**
2222
+ * <p>The unique identifier of the application.</p>
2223
+ * @public
2224
+ */
2225
+ applicationId: string | undefined;
2226
+ /**
2227
+ * <p>The unique identifier of each batch job execution.</p>
2228
+ * @public
2229
+ */
2230
+ executionId: string | undefined;
2231
+ }
2232
+ /**
2233
+ * <p>Provides information related to a job step.</p>
2234
+ * @public
2235
+ */
2236
+ export interface JobStep {
2237
+ /**
2238
+ * <p>The number of a step.</p>
2239
+ * @public
2240
+ */
2241
+ stepNumber?: number;
2242
+ /**
2243
+ * <p>The name of a step.</p>
2244
+ * @public
2245
+ */
2246
+ stepName?: string;
2247
+ /**
2248
+ * <p>The number of a procedure step.</p>
2249
+ * @public
2250
+ */
2251
+ procStepNumber?: number;
2252
+ /**
2253
+ * <p>The name of a procedure step.</p>
2254
+ * @public
2255
+ */
2256
+ procStepName?: string;
2257
+ /**
2258
+ * <p>The condition code of a step.</p>
2259
+ * @public
2260
+ */
2261
+ stepCondCode?: string;
2262
+ /**
2263
+ * <p>Specifies if a step can be restarted or not.</p>
2264
+ * @public
2265
+ */
2266
+ stepRestartable?: boolean;
2267
+ }
2268
+ /**
2269
+ * @public
2270
+ */
2271
+ export interface ListBatchJobRestartPointsResponse {
2272
+ /**
2273
+ * <p>Returns all the batch job steps and related information for a batch job that previously ran.</p>
2274
+ * @public
2275
+ */
2276
+ batchJobSteps?: JobStep[];
2277
+ }
2151
2278
  /**
2152
2279
  * @public
2153
2280
  */
@@ -20,6 +20,7 @@ import { ListApplicationsCommandInput, ListApplicationsCommandOutput } from "../
20
20
  import { ListApplicationVersionsCommandInput, ListApplicationVersionsCommandOutput } from "../commands/ListApplicationVersionsCommand";
21
21
  import { ListBatchJobDefinitionsCommandInput, ListBatchJobDefinitionsCommandOutput } from "../commands/ListBatchJobDefinitionsCommand";
22
22
  import { ListBatchJobExecutionsCommandInput, ListBatchJobExecutionsCommandOutput } from "../commands/ListBatchJobExecutionsCommand";
23
+ import { ListBatchJobRestartPointsCommandInput, ListBatchJobRestartPointsCommandOutput } from "../commands/ListBatchJobRestartPointsCommand";
23
24
  import { ListDataSetImportHistoryCommandInput, ListDataSetImportHistoryCommandOutput } from "../commands/ListDataSetImportHistoryCommand";
24
25
  import { ListDataSetsCommandInput, ListDataSetsCommandOutput } from "../commands/ListDataSetsCommand";
25
26
  import { ListDeploymentsCommandInput, ListDeploymentsCommandOutput } from "../commands/ListDeploymentsCommand";
@@ -113,6 +114,10 @@ export declare const se_ListBatchJobDefinitionsCommand: (input: ListBatchJobDefi
113
114
  * serializeAws_restJson1ListBatchJobExecutionsCommand
114
115
  */
115
116
  export declare const se_ListBatchJobExecutionsCommand: (input: ListBatchJobExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
117
+ /**
118
+ * serializeAws_restJson1ListBatchJobRestartPointsCommand
119
+ */
120
+ export declare const se_ListBatchJobRestartPointsCommand: (input: ListBatchJobRestartPointsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
121
  /**
117
122
  * serializeAws_restJson1ListDataSetImportHistoryCommand
118
123
  */
@@ -245,6 +250,10 @@ export declare const de_ListBatchJobDefinitionsCommand: (output: __HttpResponse,
245
250
  * deserializeAws_restJson1ListBatchJobExecutionsCommand
246
251
  */
247
252
  export declare const de_ListBatchJobExecutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBatchJobExecutionsCommandOutput>;
253
+ /**
254
+ * deserializeAws_restJson1ListBatchJobRestartPointsCommand
255
+ */
256
+ export declare const de_ListBatchJobRestartPointsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBatchJobRestartPointsCommandOutput>;
248
257
  /**
249
258
  * deserializeAws_restJson1ListDataSetImportHistoryCommand
250
259
  */
@@ -79,6 +79,10 @@ import {
79
79
  ListBatchJobExecutionsCommandInput,
80
80
  ListBatchJobExecutionsCommandOutput,
81
81
  } from "./commands/ListBatchJobExecutionsCommand";
82
+ import {
83
+ ListBatchJobRestartPointsCommandInput,
84
+ ListBatchJobRestartPointsCommandOutput,
85
+ } from "./commands/ListBatchJobRestartPointsCommand";
82
86
  import {
83
87
  ListDataSetImportHistoryCommandInput,
84
88
  ListDataSetImportHistoryCommandOutput,
@@ -395,6 +399,19 @@ export interface M2 {
395
399
  options: __HttpHandlerOptions,
396
400
  cb: (err: any, data?: ListBatchJobExecutionsCommandOutput) => void
397
401
  ): void;
402
+ listBatchJobRestartPoints(
403
+ args: ListBatchJobRestartPointsCommandInput,
404
+ options?: __HttpHandlerOptions
405
+ ): Promise<ListBatchJobRestartPointsCommandOutput>;
406
+ listBatchJobRestartPoints(
407
+ args: ListBatchJobRestartPointsCommandInput,
408
+ cb: (err: any, data?: ListBatchJobRestartPointsCommandOutput) => void
409
+ ): void;
410
+ listBatchJobRestartPoints(
411
+ args: ListBatchJobRestartPointsCommandInput,
412
+ options: __HttpHandlerOptions,
413
+ cb: (err: any, data?: ListBatchJobRestartPointsCommandOutput) => void
414
+ ): void;
398
415
  listDataSetImportHistory(
399
416
  args: ListDataSetImportHistoryCommandInput,
400
417
  options?: __HttpHandlerOptions
@@ -125,6 +125,10 @@ import {
125
125
  ListBatchJobExecutionsCommandInput,
126
126
  ListBatchJobExecutionsCommandOutput,
127
127
  } from "./commands/ListBatchJobExecutionsCommand";
128
+ import {
129
+ ListBatchJobRestartPointsCommandInput,
130
+ ListBatchJobRestartPointsCommandOutput,
131
+ } from "./commands/ListBatchJobRestartPointsCommand";
128
132
  import {
129
133
  ListDataSetImportHistoryCommandInput,
130
134
  ListDataSetImportHistoryCommandOutput,
@@ -205,6 +209,7 @@ export type ServiceInputTypes =
205
209
  | ListApplicationsCommandInput
206
210
  | ListBatchJobDefinitionsCommandInput
207
211
  | ListBatchJobExecutionsCommandInput
212
+ | ListBatchJobRestartPointsCommandInput
208
213
  | ListDataSetImportHistoryCommandInput
209
214
  | ListDataSetsCommandInput
210
215
  | ListDeploymentsCommandInput
@@ -239,6 +244,7 @@ export type ServiceOutputTypes =
239
244
  | ListApplicationsCommandOutput
240
245
  | ListBatchJobDefinitionsCommandOutput
241
246
  | ListBatchJobExecutionsCommandOutput
247
+ | ListBatchJobRestartPointsCommandOutput
242
248
  | ListDataSetImportHistoryCommandOutput
243
249
  | ListDataSetsCommandOutput
244
250
  | ListDeploymentsCommandOutput
@@ -0,0 +1,39 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ M2ClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../M2Client";
8
+ import {
9
+ ListBatchJobRestartPointsRequest,
10
+ ListBatchJobRestartPointsResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface ListBatchJobRestartPointsCommandInput
14
+ extends ListBatchJobRestartPointsRequest {}
15
+ export interface ListBatchJobRestartPointsCommandOutput
16
+ extends ListBatchJobRestartPointsResponse,
17
+ __MetadataBearer {}
18
+ declare const ListBatchJobRestartPointsCommand_base: {
19
+ new (
20
+ input: ListBatchJobRestartPointsCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ ListBatchJobRestartPointsCommandInput,
23
+ ListBatchJobRestartPointsCommandOutput,
24
+ M2ClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ __0_0: ListBatchJobRestartPointsCommandInput
30
+ ): import("@smithy/smithy-client").CommandImpl<
31
+ ListBatchJobRestartPointsCommandInput,
32
+ ListBatchJobRestartPointsCommandOutput,
33
+ M2ClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
38
+ };
39
+ export declare class ListBatchJobRestartPointsCommand extends ListBatchJobRestartPointsCommand_base {}
@@ -18,6 +18,7 @@ export * from "./ListApplicationVersionsCommand";
18
18
  export * from "./ListApplicationsCommand";
19
19
  export * from "./ListBatchJobDefinitionsCommand";
20
20
  export * from "./ListBatchJobExecutionsCommand";
21
+ export * from "./ListBatchJobRestartPointsCommand";
21
22
  export * from "./ListDataSetImportHistoryCommand";
22
23
  export * from "./ListDataSetsCommand";
23
24
  export * from "./ListDeploymentsCommand";
@@ -62,9 +62,11 @@ export interface ValidationExceptionField {
62
62
  }
63
63
  export declare const ValidationExceptionReason: {
64
64
  readonly CANNOT_PARSE: "cannotParse";
65
+ readonly FEATURE_NOT_AVAILABLE: "featureNotAvailable";
65
66
  readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
66
67
  readonly OTHER: "other";
67
68
  readonly UNKNOWN_OPERATION: "unknownOperation";
69
+ readonly UNSUPPORTED_ENGINE_VERSION: "unsupportedEngineVersion";
68
70
  };
69
71
  export type ValidationExceptionReason =
70
72
  (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
@@ -388,6 +390,16 @@ export interface FileBatchJobIdentifier {
388
390
  fileName: string | undefined;
389
391
  folderPath?: string;
390
392
  }
393
+ export interface JobStepRestartMarker {
394
+ fromStep: string | undefined;
395
+ fromProcStep?: string;
396
+ toStep?: string;
397
+ toProcStep?: string;
398
+ }
399
+ export interface RestartBatchJobIdentifier {
400
+ executionId: string | undefined;
401
+ jobStepRestartMarker: JobStepRestartMarker | undefined;
402
+ }
391
403
  export type JobIdentifier =
392
404
  | JobIdentifier.FileNameMember
393
405
  | JobIdentifier.ScriptNameMember
@@ -425,6 +437,7 @@ export interface ScriptBatchJobIdentifier {
425
437
  }
426
438
  export type BatchJobIdentifier =
427
439
  | BatchJobIdentifier.FileBatchJobIdentifierMember
440
+ | BatchJobIdentifier.RestartBatchJobIdentifierMember
428
441
  | BatchJobIdentifier.S3BatchJobIdentifierMember
429
442
  | BatchJobIdentifier.ScriptBatchJobIdentifierMember
430
443
  | BatchJobIdentifier.$UnknownMember;
@@ -433,30 +446,42 @@ export declare namespace BatchJobIdentifier {
433
446
  fileBatchJobIdentifier: FileBatchJobIdentifier;
434
447
  scriptBatchJobIdentifier?: never;
435
448
  s3BatchJobIdentifier?: never;
449
+ restartBatchJobIdentifier?: never;
436
450
  $unknown?: never;
437
451
  }
438
452
  interface ScriptBatchJobIdentifierMember {
439
453
  fileBatchJobIdentifier?: never;
440
454
  scriptBatchJobIdentifier: ScriptBatchJobIdentifier;
441
455
  s3BatchJobIdentifier?: never;
456
+ restartBatchJobIdentifier?: never;
442
457
  $unknown?: never;
443
458
  }
444
459
  interface S3BatchJobIdentifierMember {
445
460
  fileBatchJobIdentifier?: never;
446
461
  scriptBatchJobIdentifier?: never;
447
462
  s3BatchJobIdentifier: S3BatchJobIdentifier;
463
+ restartBatchJobIdentifier?: never;
464
+ $unknown?: never;
465
+ }
466
+ interface RestartBatchJobIdentifierMember {
467
+ fileBatchJobIdentifier?: never;
468
+ scriptBatchJobIdentifier?: never;
469
+ s3BatchJobIdentifier?: never;
470
+ restartBatchJobIdentifier: RestartBatchJobIdentifier;
448
471
  $unknown?: never;
449
472
  }
450
473
  interface $UnknownMember {
451
474
  fileBatchJobIdentifier?: never;
452
475
  scriptBatchJobIdentifier?: never;
453
476
  s3BatchJobIdentifier?: never;
477
+ restartBatchJobIdentifier?: never;
454
478
  $unknown: [string, any];
455
479
  }
456
480
  interface Visitor<T> {
457
481
  fileBatchJobIdentifier: (value: FileBatchJobIdentifier) => T;
458
482
  scriptBatchJobIdentifier: (value: ScriptBatchJobIdentifier) => T;
459
483
  s3BatchJobIdentifier: (value: S3BatchJobIdentifier) => T;
484
+ restartBatchJobIdentifier: (value: RestartBatchJobIdentifier) => T;
460
485
  _: (name: string, value: any) => T;
461
486
  }
462
487
  const visit: <T>(value: BatchJobIdentifier, visitor: Visitor<T>) => T;
@@ -473,6 +498,7 @@ export declare const BatchJobExecutionStatus: {
473
498
  readonly DISPATCH: "Dispatching";
474
499
  readonly FAILED: "Failed";
475
500
  readonly HOLDING: "Holding";
501
+ readonly PURGED: "Purged";
476
502
  readonly RUNNING: "Running";
477
503
  readonly SUBMITTING: "Submitting";
478
504
  readonly SUCCEEDED: "Succeeded";
@@ -493,6 +519,7 @@ export interface GetBatchJobExecutionResponse {
493
519
  statusReason?: string;
494
520
  returnCode?: string;
495
521
  batchJobIdentifier?: BatchJobIdentifier;
522
+ jobStepRestartMarker?: JobStepRestartMarker;
496
523
  }
497
524
  export declare class ExecutionTimeoutException extends __BaseException {
498
525
  readonly name: "ExecutionTimeoutException";
@@ -743,6 +770,21 @@ export interface ListBatchJobExecutionsResponse {
743
770
  batchJobExecutions: BatchJobExecutionSummary[] | undefined;
744
771
  nextToken?: string;
745
772
  }
773
+ export interface ListBatchJobRestartPointsRequest {
774
+ applicationId: string | undefined;
775
+ executionId: string | undefined;
776
+ }
777
+ export interface JobStep {
778
+ stepNumber?: number;
779
+ stepName?: string;
780
+ procStepNumber?: number;
781
+ procStepName?: string;
782
+ stepCondCode?: string;
783
+ stepRestartable?: boolean;
784
+ }
785
+ export interface ListBatchJobRestartPointsResponse {
786
+ batchJobSteps?: JobStep[];
787
+ }
746
788
  export interface ListDataSetImportHistoryRequest {
747
789
  nextToken?: string;
748
790
  maxResults?: number;
@@ -83,6 +83,10 @@ import {
83
83
  ListBatchJobExecutionsCommandInput,
84
84
  ListBatchJobExecutionsCommandOutput,
85
85
  } from "../commands/ListBatchJobExecutionsCommand";
86
+ import {
87
+ ListBatchJobRestartPointsCommandInput,
88
+ ListBatchJobRestartPointsCommandOutput,
89
+ } from "../commands/ListBatchJobRestartPointsCommand";
86
90
  import {
87
91
  ListDataSetImportHistoryCommandInput,
88
92
  ListDataSetImportHistoryCommandOutput,
@@ -215,6 +219,10 @@ export declare const se_ListBatchJobExecutionsCommand: (
215
219
  input: ListBatchJobExecutionsCommandInput,
216
220
  context: __SerdeContext
217
221
  ) => Promise<__HttpRequest>;
222
+ export declare const se_ListBatchJobRestartPointsCommand: (
223
+ input: ListBatchJobRestartPointsCommandInput,
224
+ context: __SerdeContext
225
+ ) => Promise<__HttpRequest>;
218
226
  export declare const se_ListDataSetImportHistoryCommand: (
219
227
  input: ListDataSetImportHistoryCommandInput,
220
228
  context: __SerdeContext
@@ -347,6 +355,10 @@ export declare const de_ListBatchJobExecutionsCommand: (
347
355
  output: __HttpResponse,
348
356
  context: __SerdeContext
349
357
  ) => Promise<ListBatchJobExecutionsCommandOutput>;
358
+ export declare const de_ListBatchJobRestartPointsCommand: (
359
+ output: __HttpResponse,
360
+ context: __SerdeContext
361
+ ) => Promise<ListBatchJobRestartPointsCommandOutput>;
350
362
  export declare const de_ListDataSetImportHistoryCommand: (
351
363
  output: __HttpResponse,
352
364
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-m2",
3
3
  "description": "AWS SDK for JavaScript M2 Client for Node.js, Browser and React Native",
4
- "version": "3.552.0",
4
+ "version": "3.556.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-m2",
@@ -20,9 +20,9 @@
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-sts": "3.552.0",
24
- "@aws-sdk/core": "3.552.0",
25
- "@aws-sdk/credential-provider-node": "3.552.0",
23
+ "@aws-sdk/client-sts": "3.556.0",
24
+ "@aws-sdk/core": "3.556.0",
25
+ "@aws-sdk/credential-provider-node": "3.556.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",