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 ListDeploymentStrategiesCommandProtected

Lists deployment strategies.

Example

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

import { AppConfigClient, ListDeploymentStrategiesCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
// const { AppConfigClient, ListDeploymentStrategiesCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
const client = new AppConfigClient(config);
const input = { // ListDeploymentStrategiesRequest
MaxResults: Number("int"),
NextToken: "STRING_VALUE",
};
const command = new ListDeploymentStrategiesCommand(input);
const response = await client.send(command);
// { // DeploymentStrategies
// Items: [ // DeploymentStrategyList
// { // DeploymentStrategy
// Id: "STRING_VALUE",
// Name: "STRING_VALUE",
// Description: "STRING_VALUE",
// DeploymentDurationInMinutes: Number("int"),
// GrowthType: "LINEAR" || "EXPONENTIAL",
// GrowthFactor: Number("float"),
// FinalBakeTimeInMinutes: Number("int"),
// ReplicateTo: "NONE" || "SSM_DOCUMENT",
// },
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListDeploymentStrategiesCommandInput

Returns

ListDeploymentStrategiesCommandOutput

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

AppConfigServiceException

Base exception class for all service exceptions from AppConfig service.

Example

To list the available deployment strategies

// The following list-deployment-strategies example lists the available deployment strategies in your AWS account.
const input = {};
const command = new ListDeploymentStrategiesCommand(input);
const response = await client.send(command);
/* response ==
{
"Items": [
{
"DeploymentDurationInMinutes": 15,
"FinalBakeTimeInMinutes": 0,
"GrowthFactor": 25,
"GrowthType": "LINEAR",
"Id": "1225qzk",
"Name": "Example-Deployment",
"ReplicateTo": "SSM_DOCUMENT"
}
]
}
*/
// example id: to-list-the-available-deployment-strategies-1632267364180

Hierarchy

Constructors

Properties

Methods