-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-m2): Adding new ListBatchJobRestartPoints API and support…
… for restart batch job.
- Loading branch information
awstools
committed
Apr 16, 2024
1 parent
b99376e
commit 0aa8336
Showing
11 changed files
with
596 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
clients/client-m2/src/commands/ListBatchJobRestartPointsCommand.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 {} | ||
|
||
/** | ||
* <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> | ||
* @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) | ||
* <p>The account or role doesn't have the right permissions to make the request.</p> | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p>The parameters provided in the request conflict with existing resources.</p> | ||
* | ||
* @throws {@link InternalServerException} (server fault) | ||
* <p>An unexpected error occurred during the processing of the request.</p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The specified resource was not found.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>The number of requests made exceeds the limit.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>One or more parameters provided in the request is not valid.</p> | ||
* | ||
* @throws {@link M2ServiceException} | ||
* <p>Base exception class for all service exceptions from M2 service.</p> | ||
* | ||
* @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() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.