-
Notifications
You must be signed in to change notification settings - Fork 581
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-deadline): Add support for using the template from a prev…
…ious job during job creation and listing parameter definitions for a job.
- Loading branch information
awstools
committed
Oct 7, 2024
1 parent
990f025
commit 9c4d17d
Showing
17 changed files
with
551 additions
and
57 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
120 changes: 120 additions & 0 deletions
120
clients/client-deadline/src/commands/ListJobParameterDefinitionsCommand.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,120 @@ | ||
// 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 { DeadlineClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DeadlineClient"; | ||
import { commonParams } from "../endpoint/EndpointParameters"; | ||
import { ListJobParameterDefinitionsRequest, ListJobParameterDefinitionsResponse } from "../models/models_0"; | ||
import { | ||
de_ListJobParameterDefinitionsCommand, | ||
se_ListJobParameterDefinitionsCommand, | ||
} from "../protocols/Aws_restJson1"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export type { __MetadataBearer }; | ||
export { $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link ListJobParameterDefinitionsCommand}. | ||
*/ | ||
export interface ListJobParameterDefinitionsCommandInput extends ListJobParameterDefinitionsRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link ListJobParameterDefinitionsCommand}. | ||
*/ | ||
export interface ListJobParameterDefinitionsCommandOutput | ||
extends ListJobParameterDefinitionsResponse, | ||
__MetadataBearer {} | ||
|
||
/** | ||
* <p>Lists parameter definitions of a job.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { DeadlineClient, ListJobParameterDefinitionsCommand } from "@aws-sdk/client-deadline"; // ES Modules import | ||
* // const { DeadlineClient, ListJobParameterDefinitionsCommand } = require("@aws-sdk/client-deadline"); // CommonJS import | ||
* const client = new DeadlineClient(config); | ||
* const input = { // ListJobParameterDefinitionsRequest | ||
* farmId: "STRING_VALUE", // required | ||
* jobId: "STRING_VALUE", // required | ||
* queueId: "STRING_VALUE", // required | ||
* nextToken: "STRING_VALUE", | ||
* maxResults: Number("int"), | ||
* }; | ||
* const command = new ListJobParameterDefinitionsCommand(input); | ||
* const response = await client.send(command); | ||
* // { // ListJobParameterDefinitionsResponse | ||
* // jobParameterDefinitions: [ // JobParameterDefinitions // required | ||
* // "DOCUMENT_VALUE", | ||
* // ], | ||
* // nextToken: "STRING_VALUE", | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param ListJobParameterDefinitionsCommandInput - {@link ListJobParameterDefinitionsCommandInput} | ||
* @returns {@link ListJobParameterDefinitionsCommandOutput} | ||
* @see {@link ListJobParameterDefinitionsCommandInput} for command's `input` shape. | ||
* @see {@link ListJobParameterDefinitionsCommandOutput} for command's `response` shape. | ||
* @see {@link DeadlineClientResolvedConfig | config} for DeadlineClient's `config` shape. | ||
* | ||
* @throws {@link AccessDeniedException} (client fault) | ||
* <p>You don't have permission to perform the action.</p> | ||
* | ||
* @throws {@link InternalServerErrorException} (server fault) | ||
* <p>Deadline Cloud can't process your request right now. Try again later.</p> | ||
* | ||
* @throws {@link ResourceNotFoundException} (client fault) | ||
* <p>The requested resource can't be found.</p> | ||
* | ||
* @throws {@link ThrottlingException} (client fault) | ||
* <p>Your request exceeded a request rate quota.</p> | ||
* | ||
* @throws {@link ValidationException} (client fault) | ||
* <p>The request isn't valid. This can occur if your request contains malformed JSON or | ||
* unsupported characters.</p> | ||
* | ||
* @throws {@link DeadlineServiceException} | ||
* <p>Base exception class for all service exceptions from Deadline service.</p> | ||
* | ||
* @public | ||
*/ | ||
export class ListJobParameterDefinitionsCommand extends $Command | ||
.classBuilder< | ||
ListJobParameterDefinitionsCommandInput, | ||
ListJobParameterDefinitionsCommandOutput, | ||
DeadlineClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep(commonParams) | ||
.m(function (this: any, Command: any, cs: any, config: DeadlineClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("Deadline", "ListJobParameterDefinitions", {}) | ||
.n("DeadlineClient", "ListJobParameterDefinitionsCommand") | ||
.f(void 0, void 0) | ||
.ser(se_ListJobParameterDefinitionsCommand) | ||
.de(de_ListJobParameterDefinitionsCommand) | ||
.build() { | ||
/** @internal type navigation helper, not in runtime. */ | ||
protected declare static __types: { | ||
api: { | ||
input: ListJobParameterDefinitionsRequest; | ||
output: ListJobParameterDefinitionsResponse; | ||
}; | ||
sdk: { | ||
input: ListJobParameterDefinitionsCommandInput; | ||
output: ListJobParameterDefinitionsCommandOutput; | ||
}; | ||
}; | ||
} |
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
Oops, something went wrong.