-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-sagemaker): Amazon SageMaker Automatic Model Tuning now p…
…rovides an API to programmatically delete tuning jobs.
- Loading branch information
awstools
committed
Jan 26, 2024
1 parent
8f7e28a
commit 1462147
Showing
16 changed files
with
543 additions
and
299 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
85 changes: 85 additions & 0 deletions
85
clients/client-sagemaker/src/commands/DeleteHyperParameterTuningJobCommand.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,85 @@ | ||
// 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 { DeleteHyperParameterTuningJobRequest } from "../models/models_2"; | ||
import { | ||
de_DeleteHyperParameterTuningJobCommand, | ||
se_DeleteHyperParameterTuningJobCommand, | ||
} from "../protocols/Aws_json1_1"; | ||
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link DeleteHyperParameterTuningJobCommand}. | ||
*/ | ||
export interface DeleteHyperParameterTuningJobCommandInput extends DeleteHyperParameterTuningJobRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link DeleteHyperParameterTuningJobCommand}. | ||
*/ | ||
export interface DeleteHyperParameterTuningJobCommandOutput extends __MetadataBearer {} | ||
|
||
/** | ||
* @public | ||
* <p>Deletes a hyperparameter tuning job. The <code>DeleteHyperParameterTuningJob</code> | ||
* API deletes only the tuning job entry that was created in SageMaker when you called the | ||
* <code>CreateHyperParameterTuningJob</code> API. It does not delete training jobs, | ||
* artifacts, or the IAM role that you specified when creating the model.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { SageMakerClient, DeleteHyperParameterTuningJobCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import | ||
* // const { SageMakerClient, DeleteHyperParameterTuningJobCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import | ||
* const client = new SageMakerClient(config); | ||
* const input = { // DeleteHyperParameterTuningJobRequest | ||
* HyperParameterTuningJobName: "STRING_VALUE", // required | ||
* }; | ||
* const command = new DeleteHyperParameterTuningJobCommand(input); | ||
* const response = await client.send(command); | ||
* // {}; | ||
* | ||
* ``` | ||
* | ||
* @param DeleteHyperParameterTuningJobCommandInput - {@link DeleteHyperParameterTuningJobCommandInput} | ||
* @returns {@link DeleteHyperParameterTuningJobCommandOutput} | ||
* @see {@link DeleteHyperParameterTuningJobCommandInput} for command's `input` shape. | ||
* @see {@link DeleteHyperParameterTuningJobCommandOutput} for command's `response` shape. | ||
* @see {@link SageMakerClientResolvedConfig | config} for SageMakerClient's `config` shape. | ||
* | ||
* @throws {@link SageMakerServiceException} | ||
* <p>Base exception class for all service exceptions from SageMaker service.</p> | ||
* | ||
*/ | ||
export class DeleteHyperParameterTuningJobCommand extends $Command | ||
.classBuilder< | ||
DeleteHyperParameterTuningJobCommandInput, | ||
DeleteHyperParameterTuningJobCommandOutput, | ||
SageMakerClientResolvedConfig, | ||
ServiceInputTypes, | ||
ServiceOutputTypes | ||
>() | ||
.ep({ | ||
...commonParams, | ||
}) | ||
.m(function (this: any, Command: any, cs: any, config: SageMakerClientResolvedConfig, o: any) { | ||
return [ | ||
getSerdePlugin(config, this.serialize, this.deserialize), | ||
getEndpointPlugin(config, Command.getEndpointParameterInstructions()), | ||
]; | ||
}) | ||
.s("SageMaker", "DeleteHyperParameterTuningJob", {}) | ||
.n("SageMakerClient", "DeleteHyperParameterTuningJobCommand") | ||
.f(void 0, void 0) | ||
.ser(se_DeleteHyperParameterTuningJobCommand) | ||
.de(de_DeleteHyperParameterTuningJobCommand) | ||
.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
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.