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): This release adds a new API UpdateClusterSoft…
…ware for SageMaker HyperPod. This API allows users to patch HyperPod clusters with latest platform softwares.
- Loading branch information
awstools
committed
Feb 15, 2024
1 parent
2905d17
commit bfe260b
Showing
16 changed files
with
319 additions
and
58 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
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
89 changes: 89 additions & 0 deletions
89
clients/client-sagemaker/src/commands/UpdateClusterSoftwareCommand.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,89 @@ | ||
// 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 { UpdateClusterSoftwareRequest, UpdateClusterSoftwareResponse } from "../models/models_4"; | ||
import { de_UpdateClusterSoftwareCommand, se_UpdateClusterSoftwareCommand } from "../protocols/Aws_json1_1"; | ||
import { SageMakerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SageMakerClient"; | ||
|
||
/** | ||
* @public | ||
*/ | ||
export { __MetadataBearer, $Command }; | ||
/** | ||
* @public | ||
* | ||
* The input for {@link UpdateClusterSoftwareCommand}. | ||
*/ | ||
export interface UpdateClusterSoftwareCommandInput extends UpdateClusterSoftwareRequest {} | ||
/** | ||
* @public | ||
* | ||
* The output of {@link UpdateClusterSoftwareCommand}. | ||
*/ | ||
export interface UpdateClusterSoftwareCommandOutput extends UpdateClusterSoftwareResponse, __MetadataBearer {} | ||
|
||
/** | ||
* @public | ||
* <p>Updates the platform software of a SageMaker HyperPod cluster for security patching. To learn how to | ||
* use this API, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-operate.html#sagemaker-hyperpod-operate-cli-command-update-cluster-software">Update the SageMaker HyperPod platform software of a cluster</a>.</p> | ||
* @example | ||
* Use a bare-bones client and the command you need to make an API call. | ||
* ```javascript | ||
* import { SageMakerClient, UpdateClusterSoftwareCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import | ||
* // const { SageMakerClient, UpdateClusterSoftwareCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import | ||
* const client = new SageMakerClient(config); | ||
* const input = { // UpdateClusterSoftwareRequest | ||
* ClusterName: "STRING_VALUE", // required | ||
* }; | ||
* const command = new UpdateClusterSoftwareCommand(input); | ||
* const response = await client.send(command); | ||
* // { // UpdateClusterSoftwareResponse | ||
* // ClusterArn: "STRING_VALUE", // required | ||
* // }; | ||
* | ||
* ``` | ||
* | ||
* @param UpdateClusterSoftwareCommandInput - {@link UpdateClusterSoftwareCommandInput} | ||
* @returns {@link UpdateClusterSoftwareCommandOutput} | ||
* @see {@link UpdateClusterSoftwareCommandInput} for command's `input` shape. | ||
* @see {@link UpdateClusterSoftwareCommandOutput} for command's `response` shape. | ||
* @see {@link SageMakerClientResolvedConfig | config} for SageMakerClient's `config` shape. | ||
* | ||
* @throws {@link ConflictException} (client fault) | ||
* <p>There was a conflict when you attempted to modify a SageMaker entity such as an | ||
* <code>Experiment</code> or <code>Artifact</code>.</p> | ||
* | ||
* @throws {@link ResourceNotFound} (client fault) | ||
* <p>Resource being access is not found.</p> | ||
* | ||
* @throws {@link SageMakerServiceException} | ||
* <p>Base exception class for all service exceptions from SageMaker service.</p> | ||
* | ||
*/ | ||
export class UpdateClusterSoftwareCommand extends $Command | ||
.classBuilder< | ||
UpdateClusterSoftwareCommandInput, | ||
UpdateClusterSoftwareCommandOutput, | ||
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", "UpdateClusterSoftware", {}) | ||
.n("SageMakerClient", "UpdateClusterSoftwareCommand") | ||
.f(void 0, void 0) | ||
.ser(se_UpdateClusterSoftwareCommand) | ||
.de(de_UpdateClusterSoftwareCommand) | ||
.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
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.