diff --git a/clients/client-m2/README.md b/clients/client-m2/README.md index abe0b992cd8f..990b635d023f 100644 --- a/clients/client-m2/README.md +++ b/clients/client-m2/README.md @@ -366,6 +366,14 @@ ListBatchJobExecutions [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/) + +
+ +ListBatchJobRestartPoints + + +[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/) +
diff --git a/clients/client-m2/src/M2.ts b/clients/client-m2/src/M2.ts index 9b25c02894cd..3756f6c556e4 100644 --- a/clients/client-m2/src/M2.ts +++ b/clients/client-m2/src/M2.ts @@ -102,6 +102,11 @@ import { ListBatchJobExecutionsCommandInput, ListBatchJobExecutionsCommandOutput, } from "./commands/ListBatchJobExecutionsCommand"; +import { + ListBatchJobRestartPointsCommand, + ListBatchJobRestartPointsCommandInput, + ListBatchJobRestartPointsCommandOutput, +} from "./commands/ListBatchJobRestartPointsCommand"; import { ListDataSetImportHistoryCommand, ListDataSetImportHistoryCommandInput, @@ -186,6 +191,7 @@ const commands = { ListApplicationVersionsCommand, ListBatchJobDefinitionsCommand, ListBatchJobExecutionsCommand, + ListBatchJobRestartPointsCommand, ListDataSetImportHistoryCommand, ListDataSetsCommand, ListDeploymentsCommand, @@ -532,6 +538,23 @@ export interface M2 { cb: (err: any, data?: ListBatchJobExecutionsCommandOutput) => void ): void; + /** + * @see {@link ListBatchJobRestartPointsCommand} + */ + listBatchJobRestartPoints( + args: ListBatchJobRestartPointsCommandInput, + options?: __HttpHandlerOptions + ): Promise; + listBatchJobRestartPoints( + args: ListBatchJobRestartPointsCommandInput, + cb: (err: any, data?: ListBatchJobRestartPointsCommandOutput) => void + ): void; + listBatchJobRestartPoints( + args: ListBatchJobRestartPointsCommandInput, + options: __HttpHandlerOptions, + cb: (err: any, data?: ListBatchJobRestartPointsCommandOutput) => void + ): void; + /** * @see {@link ListDataSetImportHistoryCommand} */ diff --git a/clients/client-m2/src/M2Client.ts b/clients/client-m2/src/M2Client.ts index 081561bcf24f..32e336549e13 100644 --- a/clients/client-m2/src/M2Client.ts +++ b/clients/client-m2/src/M2Client.ts @@ -103,6 +103,10 @@ import { ListBatchJobExecutionsCommandInput, ListBatchJobExecutionsCommandOutput, } from "./commands/ListBatchJobExecutionsCommand"; +import { + ListBatchJobRestartPointsCommandInput, + ListBatchJobRestartPointsCommandOutput, +} from "./commands/ListBatchJobRestartPointsCommand"; import { ListDataSetImportHistoryCommandInput, ListDataSetImportHistoryCommandOutput, @@ -157,6 +161,7 @@ export type ServiceInputTypes = | ListApplicationsCommandInput | ListBatchJobDefinitionsCommandInput | ListBatchJobExecutionsCommandInput + | ListBatchJobRestartPointsCommandInput | ListDataSetImportHistoryCommandInput | ListDataSetsCommandInput | ListDeploymentsCommandInput @@ -195,6 +200,7 @@ export type ServiceOutputTypes = | ListApplicationsCommandOutput | ListBatchJobDefinitionsCommandOutput | ListBatchJobExecutionsCommandOutput + | ListBatchJobRestartPointsCommandOutput | ListDataSetImportHistoryCommandOutput | ListDataSetsCommandOutput | ListDeploymentsCommandOutput diff --git a/clients/client-m2/src/commands/GetBatchJobExecutionCommand.ts b/clients/client-m2/src/commands/GetBatchJobExecutionCommand.ts index 229a157ae94b..ec3a05a69df1 100644 --- a/clients/client-m2/src/commands/GetBatchJobExecutionCommand.ts +++ b/clients/client-m2/src/commands/GetBatchJobExecutionCommand.ts @@ -68,6 +68,21 @@ export interface GetBatchJobExecutionCommandOutput extends GetBatchJobExecutionR * // scriptName: "STRING_VALUE", * // }, * // }, + * // restartBatchJobIdentifier: { // RestartBatchJobIdentifier + * // executionId: "STRING_VALUE", // required + * // jobStepRestartMarker: { // JobStepRestartMarker + * // fromStep: "STRING_VALUE", // required + * // fromProcStep: "STRING_VALUE", + * // toStep: "STRING_VALUE", + * // toProcStep: "STRING_VALUE", + * // }, + * // }, + * // }, + * // jobStepRestartMarker: { + * // fromStep: "STRING_VALUE", // required + * // fromProcStep: "STRING_VALUE", + * // toStep: "STRING_VALUE", + * // toProcStep: "STRING_VALUE", * // }, * // }; * diff --git a/clients/client-m2/src/commands/ListBatchJobExecutionsCommand.ts b/clients/client-m2/src/commands/ListBatchJobExecutionsCommand.ts index f461237c3e28..0124d287b0b4 100644 --- a/clients/client-m2/src/commands/ListBatchJobExecutionsCommand.ts +++ b/clients/client-m2/src/commands/ListBatchJobExecutionsCommand.ts @@ -77,6 +77,15 @@ export interface ListBatchJobExecutionsCommandOutput extends ListBatchJobExecuti * // scriptName: "STRING_VALUE", * // }, * // }, + * // restartBatchJobIdentifier: { // RestartBatchJobIdentifier + * // executionId: "STRING_VALUE", // required + * // jobStepRestartMarker: { // JobStepRestartMarker + * // fromStep: "STRING_VALUE", // required + * // fromProcStep: "STRING_VALUE", + * // toStep: "STRING_VALUE", + * // toProcStep: "STRING_VALUE", + * // }, + * // }, * // }, * // }, * // ], diff --git a/clients/client-m2/src/commands/ListBatchJobRestartPointsCommand.ts b/clients/client-m2/src/commands/ListBatchJobRestartPointsCommand.ts new file mode 100644 index 000000000000..e1d55c555663 --- /dev/null +++ b/clients/client-m2/src/commands/ListBatchJobRestartPointsCommand.ts @@ -0,0 +1,109 @@ +// smithy-typescript generated code +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; +import { getSerdePlugin } from "@smithy/middleware-serde"; +import { Command as $Command } from "@smithy/smithy-client"; +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; + +import { commonParams } from "../endpoint/EndpointParameters"; +import { M2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../M2Client"; +import { ListBatchJobRestartPointsRequest, ListBatchJobRestartPointsResponse } from "../models/models_0"; +import { de_ListBatchJobRestartPointsCommand, se_ListBatchJobRestartPointsCommand } from "../protocols/Aws_restJson1"; + +/** + * @public + */ +export { __MetadataBearer, $Command }; +/** + * @public + * + * The input for {@link ListBatchJobRestartPointsCommand}. + */ +export interface ListBatchJobRestartPointsCommandInput extends ListBatchJobRestartPointsRequest {} +/** + * @public + * + * The output of {@link ListBatchJobRestartPointsCommand}. + */ +export interface ListBatchJobRestartPointsCommandOutput extends ListBatchJobRestartPointsResponse, __MetadataBearer {} + +/** + *

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.

+ * @example + * Use a bare-bones client and the command you need to make an API call. + * ```javascript + * import { M2Client, ListBatchJobRestartPointsCommand } from "@aws-sdk/client-m2"; // ES Modules import + * // const { M2Client, ListBatchJobRestartPointsCommand } = require("@aws-sdk/client-m2"); // CommonJS import + * const client = new M2Client(config); + * const input = { // ListBatchJobRestartPointsRequest + * applicationId: "STRING_VALUE", // required + * executionId: "STRING_VALUE", // required + * }; + * const command = new ListBatchJobRestartPointsCommand(input); + * const response = await client.send(command); + * // { // ListBatchJobRestartPointsResponse + * // batchJobSteps: [ // BatchJobStepList + * // { // JobStep + * // stepNumber: Number("int"), + * // stepName: "STRING_VALUE", + * // procStepNumber: Number("int"), + * // procStepName: "STRING_VALUE", + * // stepCondCode: "STRING_VALUE", + * // stepRestartable: true || false, + * // }, + * // ], + * // }; + * + * ``` + * + * @param ListBatchJobRestartPointsCommandInput - {@link ListBatchJobRestartPointsCommandInput} + * @returns {@link ListBatchJobRestartPointsCommandOutput} + * @see {@link ListBatchJobRestartPointsCommandInput} for command's `input` shape. + * @see {@link ListBatchJobRestartPointsCommandOutput} for command's `response` shape. + * @see {@link M2ClientResolvedConfig | config} for M2Client's `config` shape. + * + * @throws {@link AccessDeniedException} (client fault) + *

The account or role doesn't have the right permissions to make the request.

+ * + * @throws {@link ConflictException} (client fault) + *

The parameters provided in the request conflict with existing resources.

+ * + * @throws {@link InternalServerException} (server fault) + *

An unexpected error occurred during the processing of the request.

+ * + * @throws {@link ResourceNotFoundException} (client fault) + *

The specified resource was not found.

+ * + * @throws {@link ThrottlingException} (client fault) + *

The number of requests made exceeds the limit.

+ * + * @throws {@link ValidationException} (client fault) + *

One or more parameters provided in the request is not valid.

+ * + * @throws {@link M2ServiceException} + *

Base exception class for all service exceptions from M2 service.

+ * + * @public + */ +export class ListBatchJobRestartPointsCommand extends $Command + .classBuilder< + ListBatchJobRestartPointsCommandInput, + ListBatchJobRestartPointsCommandOutput, + M2ClientResolvedConfig, + ServiceInputTypes, + ServiceOutputTypes + >() + .ep({ + ...commonParams, + }) + .m(function (this: any, Command: any, cs: any, config: M2ClientResolvedConfig, o: any) { + return [ + getSerdePlugin(config, this.serialize, this.deserialize), + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), + ]; + }) + .s("AwsSupernovaControlPlaneService", "ListBatchJobRestartPoints", {}) + .n("M2Client", "ListBatchJobRestartPointsCommand") + .f(void 0, void 0) + .ser(se_ListBatchJobRestartPointsCommand) + .de(de_ListBatchJobRestartPointsCommand) + .build() {} diff --git a/clients/client-m2/src/commands/StartBatchJobCommand.ts b/clients/client-m2/src/commands/StartBatchJobCommand.ts index 9920b760e780..734bf08e8fcd 100644 --- a/clients/client-m2/src/commands/StartBatchJobCommand.ts +++ b/clients/client-m2/src/commands/StartBatchJobCommand.ts @@ -53,6 +53,15 @@ export interface StartBatchJobCommandOutput extends StartBatchJobResponse, __Met * scriptName: "STRING_VALUE", * }, * }, + * restartBatchJobIdentifier: { // RestartBatchJobIdentifier + * executionId: "STRING_VALUE", // required + * jobStepRestartMarker: { // JobStepRestartMarker + * fromStep: "STRING_VALUE", // required + * fromProcStep: "STRING_VALUE", + * toStep: "STRING_VALUE", + * toProcStep: "STRING_VALUE", + * }, + * }, * }, * jobParams: { // BatchJobParametersMap * "": "STRING_VALUE", diff --git a/clients/client-m2/src/commands/index.ts b/clients/client-m2/src/commands/index.ts index 0fdecfdbc4d3..65b855f51348 100644 --- a/clients/client-m2/src/commands/index.ts +++ b/clients/client-m2/src/commands/index.ts @@ -19,6 +19,7 @@ export * from "./ListApplicationVersionsCommand"; export * from "./ListApplicationsCommand"; export * from "./ListBatchJobDefinitionsCommand"; export * from "./ListBatchJobExecutionsCommand"; +export * from "./ListBatchJobRestartPointsCommand"; export * from "./ListDataSetImportHistoryCommand"; export * from "./ListDataSetsCommand"; export * from "./ListDeploymentsCommand"; diff --git a/clients/client-m2/src/models/models_0.ts b/clients/client-m2/src/models/models_0.ts index 695288c0ba23..5636e761ff9b 100644 --- a/clients/client-m2/src/models/models_0.ts +++ b/clients/client-m2/src/models/models_0.ts @@ -243,9 +243,11 @@ export interface ValidationExceptionField { */ export const ValidationExceptionReason = { CANNOT_PARSE: "cannotParse", + FEATURE_NOT_AVAILABLE: "featureNotAvailable", FIELD_VALIDATION_FAILED: "fieldValidationFailed", OTHER: "other", UNKNOWN_OPERATION: "unknownOperation", + UNSUPPORTED_ENGINE_VERSION: "unsupportedEngineVersion", } as const; /** @@ -1369,6 +1371,54 @@ export interface FileBatchJobIdentifier { folderPath?: string; } +/** + *

Provides restart step information for the most recent restart operation.

+ * @public + */ +export interface JobStepRestartMarker { + /** + *

The step name that a batch job restart was from.

+ * @public + */ + fromStep: string | undefined; + + /** + *

The procedure step name that a job was restarted from.

+ * @public + */ + fromProcStep?: string; + + /** + *

The step name that a job was restarted to.

+ * @public + */ + toStep?: string; + + /** + *

The procedure step name that a batch job was restarted to.

+ * @public + */ + toProcStep?: string; +} + +/** + *

An identifier for the StartBatchJob API to show that it is a restart operation.

+ * @public + */ +export interface RestartBatchJobIdentifier { + /** + *

The executionId from the StartBatchJob response when the job ran for the first time.

+ * @public + */ + executionId: string | undefined; + + /** + *

The restart step information for the most recent restart operation.

+ * @public + */ + jobStepRestartMarker: JobStepRestartMarker | undefined; +} + /** *

Identifies a specific batch job.

* @public @@ -1467,6 +1517,7 @@ export interface ScriptBatchJobIdentifier { */ export type BatchJobIdentifier = | BatchJobIdentifier.FileBatchJobIdentifierMember + | BatchJobIdentifier.RestartBatchJobIdentifierMember | BatchJobIdentifier.S3BatchJobIdentifierMember | BatchJobIdentifier.ScriptBatchJobIdentifierMember | BatchJobIdentifier.$UnknownMember; @@ -1483,6 +1534,7 @@ export namespace BatchJobIdentifier { fileBatchJobIdentifier: FileBatchJobIdentifier; scriptBatchJobIdentifier?: never; s3BatchJobIdentifier?: never; + restartBatchJobIdentifier?: never; $unknown?: never; } @@ -1495,6 +1547,7 @@ export namespace BatchJobIdentifier { fileBatchJobIdentifier?: never; scriptBatchJobIdentifier: ScriptBatchJobIdentifier; s3BatchJobIdentifier?: never; + restartBatchJobIdentifier?: never; $unknown?: never; } @@ -1506,6 +1559,19 @@ export namespace BatchJobIdentifier { fileBatchJobIdentifier?: never; scriptBatchJobIdentifier?: never; s3BatchJobIdentifier: S3BatchJobIdentifier; + restartBatchJobIdentifier?: never; + $unknown?: never; + } + + /** + *

Specifies the required information for restart, including execution ID and jobsteprestartmarker.

+ * @public + */ + export interface RestartBatchJobIdentifierMember { + fileBatchJobIdentifier?: never; + scriptBatchJobIdentifier?: never; + s3BatchJobIdentifier?: never; + restartBatchJobIdentifier: RestartBatchJobIdentifier; $unknown?: never; } @@ -1516,6 +1582,7 @@ export namespace BatchJobIdentifier { fileBatchJobIdentifier?: never; scriptBatchJobIdentifier?: never; s3BatchJobIdentifier?: never; + restartBatchJobIdentifier?: never; $unknown: [string, any]; } @@ -1523,6 +1590,7 @@ export namespace BatchJobIdentifier { fileBatchJobIdentifier: (value: FileBatchJobIdentifier) => T; scriptBatchJobIdentifier: (value: ScriptBatchJobIdentifier) => T; s3BatchJobIdentifier: (value: S3BatchJobIdentifier) => T; + restartBatchJobIdentifier: (value: RestartBatchJobIdentifier) => T; _: (name: string, value: any) => T; } @@ -1531,6 +1599,8 @@ export namespace BatchJobIdentifier { if (value.scriptBatchJobIdentifier !== undefined) return visitor.scriptBatchJobIdentifier(value.scriptBatchJobIdentifier); if (value.s3BatchJobIdentifier !== undefined) return visitor.s3BatchJobIdentifier(value.s3BatchJobIdentifier); + if (value.restartBatchJobIdentifier !== undefined) + return visitor.restartBatchJobIdentifier(value.restartBatchJobIdentifier); return visitor._(value.$unknown[0], value.$unknown[1]); }; } @@ -1560,6 +1630,7 @@ export const BatchJobExecutionStatus = { DISPATCH: "Dispatching", FAILED: "Failed", HOLDING: "Holding", + PURGED: "Purged", RUNNING: "Running", SUBMITTING: "Submitting", SUCCEEDED: "Succeeded", @@ -1649,6 +1720,12 @@ export interface GetBatchJobExecutionResponse { * @public */ batchJobIdentifier?: BatchJobIdentifier; + + /** + *

The restart steps information for the most recent restart operation.

+ * @public + */ + jobStepRestartMarker?: JobStepRestartMarker; } /** @@ -2593,6 +2670,76 @@ export interface ListBatchJobExecutionsResponse { nextToken?: string; } +/** + * @public + */ +export interface ListBatchJobRestartPointsRequest { + /** + *

The unique identifier of the application.

+ * @public + */ + applicationId: string | undefined; + + /** + *

The unique identifier of each batch job execution.

+ * @public + */ + executionId: string | undefined; +} + +/** + *

Provides information related to a job step.

+ * @public + */ +export interface JobStep { + /** + *

The number of a step.

+ * @public + */ + stepNumber?: number; + + /** + *

The name of a step.

+ * @public + */ + stepName?: string; + + /** + *

The number of a procedure step.

+ * @public + */ + procStepNumber?: number; + + /** + *

The name of a procedure step.

+ * @public + */ + procStepName?: string; + + /** + *

The condition code of a step.

+ * @public + */ + stepCondCode?: string; + + /** + *

Specifies if a step can be restarted or not.

+ * @public + */ + stepRestartable?: boolean; +} + +/** + * @public + */ +export interface ListBatchJobRestartPointsResponse { + /** + *

Returns all the batch job steps and related information for a batch job that previously ran.

+ * @public + */ + batchJobSteps?: JobStep[]; +} + /** * @public */ diff --git a/clients/client-m2/src/protocols/Aws_restJson1.ts b/clients/client-m2/src/protocols/Aws_restJson1.ts index 55fff8473b3f..01f69280c201 100644 --- a/clients/client-m2/src/protocols/Aws_restJson1.ts +++ b/clients/client-m2/src/protocols/Aws_restJson1.ts @@ -83,6 +83,10 @@ import { ListBatchJobExecutionsCommandInput, ListBatchJobExecutionsCommandOutput, } from "../commands/ListBatchJobExecutionsCommand"; +import { + ListBatchJobRestartPointsCommandInput, + ListBatchJobRestartPointsCommandOutput, +} from "../commands/ListBatchJobRestartPointsCommand"; import { ListDataSetImportHistoryCommandInput, ListDataSetImportHistoryCommandOutput, @@ -128,6 +132,7 @@ import { HighAvailabilityConfig, InternalServerException, JobIdentifier, + JobStepRestartMarker, MaintenanceSchedule, PendingMaintenance, PoAttributes, @@ -135,6 +140,7 @@ import { PsAttributes, RecordLength, ResourceNotFoundException, + RestartBatchJobIdentifier, S3BatchJobIdentifier, ScriptBatchJobIdentifier, ServiceQuotaExceededException, @@ -546,6 +552,23 @@ export const se_ListBatchJobExecutionsCommand = async ( return b.build(); }; +/** + * serializeAws_restJson1ListBatchJobRestartPointsCommand + */ +export const se_ListBatchJobRestartPointsCommand = async ( + input: ListBatchJobRestartPointsCommandInput, + context: __SerdeContext +): Promise<__HttpRequest> => { + const b = rb(input, context); + const headers: any = {}; + b.bp("/applications/{applicationId}/batch-job-executions/{executionId}/steps"); + b.p("applicationId", () => input.applicationId!, "{applicationId}", false); + b.p("executionId", () => input.executionId!, "{executionId}", false); + let body: any; + b.m("GET").h(headers).b(body); + return b.build(); +}; + /** * serializeAws_restJson1ListDataSetImportHistoryCommand */ @@ -1068,6 +1091,7 @@ export const de_GetBatchJobExecutionCommand = async ( executionId: __expectString, jobId: __expectString, jobName: __expectString, + jobStepRestartMarker: _json, jobType: __expectString, jobUser: __expectString, returnCode: __expectString, @@ -1309,6 +1333,27 @@ export const de_ListBatchJobExecutionsCommand = async ( return contents; }; +/** + * deserializeAws_restJson1ListBatchJobRestartPointsCommand + */ +export const de_ListBatchJobRestartPointsCommand = async ( + output: __HttpResponse, + context: __SerdeContext +): Promise => { + if (output.statusCode !== 200 && output.statusCode >= 300) { + return de_CommandError(output, context); + } + const contents: any = map({ + $metadata: deserializeMetadata(output), + }); + const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); + const doc = take(data, { + batchJobSteps: _json, + }); + Object.assign(contents, doc); + return contents; +}; + /** * deserializeAws_restJson1ListDataSetImportHistoryCommand */ @@ -1856,6 +1901,8 @@ const se_FsxStorageConfiguration = (input: FsxStorageConfiguration, context: __S // se_JobIdentifier omitted. +// se_JobStepRestartMarker omitted. + // se_PoAttributes omitted. // se_PrimaryKey omitted. @@ -1864,6 +1911,8 @@ const se_FsxStorageConfiguration = (input: FsxStorageConfiguration, context: __S // se_RecordLength omitted. +// se_RestartBatchJobIdentifier omitted. + // se_S3BatchJobIdentifier omitted. // se_ScriptBatchJobIdentifier omitted. @@ -1997,6 +2046,8 @@ const de_BatchJobExecutionSummaryList = (output: any, context: __SerdeContext): // de_BatchJobIdentifier omitted. +// de_BatchJobStepList omitted. + // de_DatasetDetailOrgAttributes omitted. // de_DataSetImportSummary omitted. @@ -2122,6 +2173,10 @@ const de_FsxStorageConfiguration = (output: any, context: __SerdeContext): FsxSt // de_JobIdentifier omitted. +// de_JobStep omitted. + +// de_JobStepRestartMarker omitted. + // de_LogGroupSummaries omitted. // de_LogGroupSummary omitted. @@ -2154,6 +2209,8 @@ const de_PendingMaintenance = (output: any, context: __SerdeContext): PendingMai // de_PsDetailAttributes omitted. +// de_RestartBatchJobIdentifier omitted. + // de_S3BatchJobIdentifier omitted. // de_ScriptBatchJobDefinition omitted. diff --git a/codegen/sdk-codegen/aws-models/m2.json b/codegen/sdk-codegen/aws-models/m2.json index dcdc156200db..a06b9c441e66 100644 --- a/codegen/sdk-codegen/aws-models/m2.json +++ b/codegen/sdk-codegen/aws-models/m2.json @@ -119,6 +119,9 @@ { "target": "com.amazonaws.m2#ListBatchJobExecutions" }, + { + "target": "com.amazonaws.m2#ListBatchJobRestartPoints" + }, { "target": "com.amazonaws.m2#ListDataSetImportHistory" }, @@ -1221,6 +1224,10 @@ "value": "Failed", "name": "FAILED" }, + { + "value": "Purged", + "name": "PURGED" + }, { "value": "Succeeded With Warning", "name": "SUCCEEDED_WITH_WARNING" @@ -1326,6 +1333,12 @@ "traits": { "smithy.api#documentation": "

Specifies an Amazon S3 location that identifies the batch jobs that you want to run. Use this identifier to run ad hoc batch jobs.

" } + }, + "restartBatchJobIdentifier": { + "target": "com.amazonaws.m2#RestartBatchJobIdentifier", + "traits": { + "smithy.api#documentation": "

Specifies the required information for restart, including execution ID and jobsteprestartmarker.

" + } } }, "traits": { @@ -1348,6 +1361,12 @@ } } }, + "com.amazonaws.m2#BatchJobStepList": { + "type": "list", + "member": { + "target": "com.amazonaws.m2#JobStep" + } + }, "com.amazonaws.m2#BatchJobType": { "type": "string", "traits": { @@ -3360,6 +3379,12 @@ "traits": { "smithy.api#documentation": "

The unique identifier of this batch job.

" } + }, + "jobStepRestartMarker": { + "target": "com.amazonaws.m2#JobStepRestartMarker", + "traits": { + "smithy.api#documentation": "

The restart steps information for the most recent restart operation.

" + } } } }, @@ -4018,6 +4043,86 @@ "smithy.api#documentation": "

Identifies a specific batch job.

" } }, + "com.amazonaws.m2#JobStep": { + "type": "structure", + "members": { + "stepNumber": { + "target": "com.amazonaws.m2#Integer", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The number of a step.

" + } + }, + "stepName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The name of a step.

" + } + }, + "procStepNumber": { + "target": "com.amazonaws.m2#Integer", + "traits": { + "smithy.api#default": 0, + "smithy.api#documentation": "

The number of a procedure step.

" + } + }, + "procStepName": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The name of a procedure step.

" + } + }, + "stepCondCode": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The condition code of a step.

" + } + }, + "stepRestartable": { + "target": "com.amazonaws.m2#Boolean", + "traits": { + "smithy.api#default": false, + "smithy.api#documentation": "

Specifies if a step can be restarted or not.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Provides information related to a job step.

" + } + }, + "com.amazonaws.m2#JobStepRestartMarker": { + "type": "structure", + "members": { + "fromStep": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The step name that a batch job restart was from.

", + "smithy.api#required": {} + } + }, + "fromProcStep": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The procedure step name that a job was restarted from.

" + } + }, + "toStep": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The step name that a job was restarted to.

" + } + }, + "toProcStep": { + "target": "smithy.api#String", + "traits": { + "smithy.api#documentation": "

The procedure step name that a batch job was restarted to.

" + } + } + }, + "traits": { + "smithy.api#documentation": "

Provides restart step information for the most recent restart operation.

" + } + }, "com.amazonaws.m2#ListApplicationVersions": { "type": "operation", "input": { @@ -4438,6 +4543,83 @@ } } }, + "com.amazonaws.m2#ListBatchJobRestartPoints": { + "type": "operation", + "input": { + "target": "com.amazonaws.m2#ListBatchJobRestartPointsRequest" + }, + "output": { + "target": "com.amazonaws.m2#ListBatchJobRestartPointsResponse" + }, + "errors": [ + { + "target": "com.amazonaws.m2#AccessDeniedException" + }, + { + "target": "com.amazonaws.m2#ConflictException" + }, + { + "target": "com.amazonaws.m2#InternalServerException" + }, + { + "target": "com.amazonaws.m2#ResourceNotFoundException" + }, + { + "target": "com.amazonaws.m2#ThrottlingException" + }, + { + "target": "com.amazonaws.m2#ValidationException" + } + ], + "traits": { + "aws.api#controlPlane": {}, + "smithy.api#documentation": "

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.

", + "smithy.api#http": { + "method": "GET", + "uri": "/applications/{applicationId}/batch-job-executions/{executionId}/steps", + "code": 200 + }, + "smithy.api#readonly": {} + } + }, + "com.amazonaws.m2#ListBatchJobRestartPointsRequest": { + "type": "structure", + "members": { + "applicationId": { + "target": "com.amazonaws.m2#Identifier", + "traits": { + "smithy.api#documentation": "

The unique identifier of the application.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + }, + "executionId": { + "target": "com.amazonaws.m2#Identifier", + "traits": { + "smithy.api#documentation": "

The unique identifier of each batch job execution.

", + "smithy.api#httpLabel": {}, + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#input": {} + } + }, + "com.amazonaws.m2#ListBatchJobRestartPointsResponse": { + "type": "structure", + "members": { + "batchJobSteps": { + "target": "com.amazonaws.m2#BatchJobStepList", + "traits": { + "smithy.api#documentation": "

Returns all the batch job steps and related information for a batch job that previously ran.

" + } + } + }, + "traits": { + "smithy.api#output": {} + } + }, "com.amazonaws.m2#ListDataSetImportHistory": { "type": "operation", "input": { @@ -5262,6 +5444,28 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.m2#RestartBatchJobIdentifier": { + "type": "structure", + "members": { + "executionId": { + "target": "com.amazonaws.m2#Identifier", + "traits": { + "smithy.api#documentation": "

The executionId from the StartBatchJob response when the job ran for the first time.

", + "smithy.api#required": {} + } + }, + "jobStepRestartMarker": { + "target": "com.amazonaws.m2#JobStepRestartMarker", + "traits": { + "smithy.api#documentation": "

The restart step information for the most recent restart operation.

", + "smithy.api#required": {} + } + } + }, + "traits": { + "smithy.api#documentation": "

An identifier for the StartBatchJob API to show that it is a restart operation.

" + } + }, "com.amazonaws.m2#S3BatchJobIdentifier": { "type": "structure", "members": { @@ -6115,6 +6319,14 @@ "value": "cannotParse", "name": "CANNOT_PARSE" }, + { + "value": "featureNotAvailable", + "name": "FEATURE_NOT_AVAILABLE" + }, + { + "value": "unsupportedEngineVersion", + "name": "UNSUPPORTED_ENGINE_VERSION" + }, { "value": "fieldValidationFailed", "name": "FIELD_VALIDATION_FAILED"