|
| 1 | +// smithy-typescript generated code |
| 2 | +import { getEndpointPlugin } from "@smithy/middleware-endpoint"; |
| 3 | +import { getSerdePlugin } from "@smithy/middleware-serde"; |
| 4 | +import { Command as $Command } from "@smithy/smithy-client"; |
| 5 | +import { MetadataBearer as __MetadataBearer } from "@smithy/types"; |
| 6 | + |
| 7 | +import { commonParams } from "../endpoint/EndpointParameters"; |
| 8 | +import { M2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../M2Client"; |
| 9 | +import { ListBatchJobRestartPointsRequest, ListBatchJobRestartPointsResponse } from "../models/models_0"; |
| 10 | +import { de_ListBatchJobRestartPointsCommand, se_ListBatchJobRestartPointsCommand } from "../protocols/Aws_restJson1"; |
| 11 | + |
| 12 | +/** |
| 13 | + * @public |
| 14 | + */ |
| 15 | +export { __MetadataBearer, $Command }; |
| 16 | +/** |
| 17 | + * @public |
| 18 | + * |
| 19 | + * The input for {@link ListBatchJobRestartPointsCommand}. |
| 20 | + */ |
| 21 | +export interface ListBatchJobRestartPointsCommandInput extends ListBatchJobRestartPointsRequest {} |
| 22 | +/** |
| 23 | + * @public |
| 24 | + * |
| 25 | + * The output of {@link ListBatchJobRestartPointsCommand}. |
| 26 | + */ |
| 27 | +export interface ListBatchJobRestartPointsCommandOutput extends ListBatchJobRestartPointsResponse, __MetadataBearer {} |
| 28 | + |
| 29 | +/** |
| 30 | + * <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> |
| 31 | + * @example |
| 32 | + * Use a bare-bones client and the command you need to make an API call. |
| 33 | + * ```javascript |
| 34 | + * import { M2Client, ListBatchJobRestartPointsCommand } from "@aws-sdk/client-m2"; // ES Modules import |
| 35 | + * // const { M2Client, ListBatchJobRestartPointsCommand } = require("@aws-sdk/client-m2"); // CommonJS import |
| 36 | + * const client = new M2Client(config); |
| 37 | + * const input = { // ListBatchJobRestartPointsRequest |
| 38 | + * applicationId: "STRING_VALUE", // required |
| 39 | + * executionId: "STRING_VALUE", // required |
| 40 | + * }; |
| 41 | + * const command = new ListBatchJobRestartPointsCommand(input); |
| 42 | + * const response = await client.send(command); |
| 43 | + * // { // ListBatchJobRestartPointsResponse |
| 44 | + * // batchJobSteps: [ // BatchJobStepList |
| 45 | + * // { // JobStep |
| 46 | + * // stepNumber: Number("int"), |
| 47 | + * // stepName: "STRING_VALUE", |
| 48 | + * // procStepNumber: Number("int"), |
| 49 | + * // procStepName: "STRING_VALUE", |
| 50 | + * // stepCondCode: "STRING_VALUE", |
| 51 | + * // stepRestartable: true || false, |
| 52 | + * // }, |
| 53 | + * // ], |
| 54 | + * // }; |
| 55 | + * |
| 56 | + * ``` |
| 57 | + * |
| 58 | + * @param ListBatchJobRestartPointsCommandInput - {@link ListBatchJobRestartPointsCommandInput} |
| 59 | + * @returns {@link ListBatchJobRestartPointsCommandOutput} |
| 60 | + * @see {@link ListBatchJobRestartPointsCommandInput} for command's `input` shape. |
| 61 | + * @see {@link ListBatchJobRestartPointsCommandOutput} for command's `response` shape. |
| 62 | + * @see {@link M2ClientResolvedConfig | config} for M2Client's `config` shape. |
| 63 | + * |
| 64 | + * @throws {@link AccessDeniedException} (client fault) |
| 65 | + * <p>The account or role doesn't have the right permissions to make the request.</p> |
| 66 | + * |
| 67 | + * @throws {@link ConflictException} (client fault) |
| 68 | + * <p>The parameters provided in the request conflict with existing resources.</p> |
| 69 | + * |
| 70 | + * @throws {@link InternalServerException} (server fault) |
| 71 | + * <p>An unexpected error occurred during the processing of the request.</p> |
| 72 | + * |
| 73 | + * @throws {@link ResourceNotFoundException} (client fault) |
| 74 | + * <p>The specified resource was not found.</p> |
| 75 | + * |
| 76 | + * @throws {@link ThrottlingException} (client fault) |
| 77 | + * <p>The number of requests made exceeds the limit.</p> |
| 78 | + * |
| 79 | + * @throws {@link ValidationException} (client fault) |
| 80 | + * <p>One or more parameters provided in the request is not valid.</p> |
| 81 | + * |
| 82 | + * @throws {@link M2ServiceException} |
| 83 | + * <p>Base exception class for all service exceptions from M2 service.</p> |
| 84 | + * |
| 85 | + * @public |
| 86 | + */ |
| 87 | +export class ListBatchJobRestartPointsCommand extends $Command |
| 88 | + .classBuilder< |
| 89 | + ListBatchJobRestartPointsCommandInput, |
| 90 | + ListBatchJobRestartPointsCommandOutput, |
| 91 | + M2ClientResolvedConfig, |
| 92 | + ServiceInputTypes, |
| 93 | + ServiceOutputTypes |
| 94 | + >() |
| 95 | + .ep({ |
| 96 | + ...commonParams, |
| 97 | + }) |
| 98 | + .m(function (this: any, Command: any, cs: any, config: M2ClientResolvedConfig, o: any) { |
| 99 | + return [ |
| 100 | + getSerdePlugin(config, this.serialize, this.deserialize), |
| 101 | + getEndpointPlugin(config, Command.getEndpointParameterInstructions()), |
| 102 | + ]; |
| 103 | + }) |
| 104 | + .s("AwsSupernovaControlPlaneService", "ListBatchJobRestartPoints", {}) |
| 105 | + .n("M2Client", "ListBatchJobRestartPointsCommand") |
| 106 | + .f(void 0, void 0) |
| 107 | + .ser(se_ListBatchJobRestartPointsCommand) |
| 108 | + .de(de_ListBatchJobRestartPointsCommand) |
| 109 | + .build() {} |
0 commit comments