Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class DeleteDeploymentStrategyCommandProtected

Deletes a deployment strategy. Deleting a deployment strategy does not delete a configuration from a host.

Example

Use a bare-bones client and the command you need to make an API call.

import { AppConfigClient, DeleteDeploymentStrategyCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
// const { AppConfigClient, DeleteDeploymentStrategyCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
const client = new AppConfigClient(config);
const input = { // DeleteDeploymentStrategyRequest
DeploymentStrategyId: "STRING_VALUE", // required
};
const command = new DeleteDeploymentStrategyCommand(input);
const response = await client.send(command);
// {};

Param

DeleteDeploymentStrategyCommandInput

Returns

DeleteDeploymentStrategyCommandOutput

See

Throws

BadRequestException (client fault)

The input fails to satisfy the constraints specified by an Amazon Web Services service.

Throws

InternalServerException (server fault)

There was an internal failure in the AppConfig service.

Throws

ResourceNotFoundException (client fault)

The requested resource could not be found.

Throws

AppConfigServiceException

Base exception class for all service exceptions from AppConfig service.

Example

To delete a deployment strategy

// The following delete-deployment-strategy example deletes the specified deployment strategy.
const input = {
"DeploymentStrategyId": "1225qzk"
};
const command = new DeleteDeploymentStrategyCommand(input);
await client.send(command);
// example id: to-delete-a-deployment-strategy-1632265473708

Hierarchy

Constructors

Properties

Methods