- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteContextCommand
Deletes an context.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SageMakerClient, DeleteContextCommand } from "@aws-sdk/client-sagemaker"; // ES Modules import
// const { SageMakerClient, DeleteContextCommand } = require("@aws-sdk/client-sagemaker"); // CommonJS import
const client = new SageMakerClient(config);
const input = { // DeleteContextRequest
ContextName: "STRING_VALUE", // required
};
const command = new DeleteContextCommand(input);
const response = await client.send(command);
// { // DeleteContextResponse
// ContextArn: "STRING_VALUE",
// };
DeleteContextCommand Input
See DeleteContextCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ContextName Required | string | undefined | The name of the context to delete. |
DeleteContextCommand Output
See DeleteContextCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
ContextArn | string | undefined | The Amazon Resource Name (ARN) of the context. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
ResourceNotFound | client | Resource being access is not found. |
SageMakerServiceException | Base exception class for all service exceptions from SageMaker service. |