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 GetDeploymentCommandProtected

Retrieves information about a configuration deployment.

Example

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

import { AppConfigClient, GetDeploymentCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
// const { AppConfigClient, GetDeploymentCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
const client = new AppConfigClient(config);
const input = { // GetDeploymentRequest
ApplicationId: "STRING_VALUE", // required
EnvironmentId: "STRING_VALUE", // required
DeploymentNumber: Number("int"), // required
};
const command = new GetDeploymentCommand(input);
const response = await client.send(command);
// { // Deployment
// ApplicationId: "STRING_VALUE",
// EnvironmentId: "STRING_VALUE",
// DeploymentStrategyId: "STRING_VALUE",
// ConfigurationProfileId: "STRING_VALUE",
// DeploymentNumber: Number("int"),
// ConfigurationName: "STRING_VALUE",
// ConfigurationLocationUri: "STRING_VALUE",
// ConfigurationVersion: "STRING_VALUE",
// Description: "STRING_VALUE",
// DeploymentDurationInMinutes: Number("int"),
// GrowthType: "LINEAR" || "EXPONENTIAL",
// GrowthFactor: Number("float"),
// FinalBakeTimeInMinutes: Number("int"),
// State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK",
// EventLog: [ // DeploymentEvents
// { // DeploymentEvent
// EventType: "PERCENTAGE_UPDATED" || "ROLLBACK_STARTED" || "ROLLBACK_COMPLETED" || "BAKE_TIME_STARTED" || "DEPLOYMENT_STARTED" || "DEPLOYMENT_COMPLETED",
// TriggeredBy: "USER" || "APPCONFIG" || "CLOUDWATCH_ALARM" || "INTERNAL_ERROR",
// Description: "STRING_VALUE",
// ActionInvocations: [ // ActionInvocations
// { // ActionInvocation
// ExtensionIdentifier: "STRING_VALUE",
// ActionName: "STRING_VALUE",
// Uri: "STRING_VALUE",
// RoleArn: "STRING_VALUE",
// ErrorMessage: "STRING_VALUE",
// ErrorCode: "STRING_VALUE",
// InvocationId: "STRING_VALUE",
// },
// ],
// OccurredAt: new Date("TIMESTAMP"),
// },
// ],
// PercentageComplete: Number("float"),
// StartedAt: new Date("TIMESTAMP"),
// CompletedAt: new Date("TIMESTAMP"),
// AppliedExtensions: [ // AppliedExtensions
// { // AppliedExtension
// ExtensionId: "STRING_VALUE",
// ExtensionAssociationId: "STRING_VALUE",
// VersionNumber: Number("int"),
// Parameters: { // ParameterValueMap
// "<keys>": "STRING_VALUE",
// },
// },
// ],
// KmsKeyArn: "STRING_VALUE",
// KmsKeyIdentifier: "STRING_VALUE",
// };

Param

GetDeploymentCommandInput

Returns

GetDeploymentCommandOutput

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 retrieve deployment details

// The following get-deployment example lists details of the deployment to the application in the specified environment and deployment.
const input = {
"ApplicationId": "339ohji",
"DeploymentNumber": 1,
"EnvironmentId": "54j1r29"
};
const command = new GetDeploymentCommand(input);
const response = await client.send(command);
/* response ==
{
"ApplicationId": "339ohji",
"CompletedAt": "2021-09-17T21:59:03.888000+00:00",
"ConfigurationLocationUri": "ssm-parameter://Example-Parameter",
"ConfigurationName": "Example-Configuration-Profile",
"ConfigurationProfileId": "ur8hx2f",
"ConfigurationVersion": "1",
"DeploymentDurationInMinutes": 15,
"DeploymentNumber": 1,
"DeploymentStrategyId": "1225qzk",
"EnvironmentId": "54j1r29",
"EventLog": [
{
"Description": "Deployment completed",
"EventType": "DEPLOYMENT_COMPLETED",
"OccurredAt": "2021-09-17T21:59:03.888000+00:00",
"TriggeredBy": "APPCONFIG"
},
{
"Description": "Deployment bake time started",
"EventType": "BAKE_TIME_STARTED",
"OccurredAt": "2021-09-17T21:58:57.722000+00:00",
"TriggeredBy": "APPCONFIG"
},
{
"Description": "Configuration available to 100.00% of clients",
"EventType": "PERCENTAGE_UPDATED",
"OccurredAt": "2021-09-17T21:55:56.816000+00:00",
"TriggeredBy": "APPCONFIG"
},
{
"Description": "Configuration available to 75.00% of clients",
"EventType": "PERCENTAGE_UPDATED",
"OccurredAt": "2021-09-17T21:52:56.567000+00:00",
"TriggeredBy": "APPCONFIG"
},
{
"Description": "Configuration available to 50.00% of clients",
"EventType": "PERCENTAGE_UPDATED",
"OccurredAt": "2021-09-17T21:49:55.737000+00:00",
"TriggeredBy": "APPCONFIG"
},
{
"Description": "Configuration available to 25.00% of clients",
"EventType": "PERCENTAGE_UPDATED",
"OccurredAt": "2021-09-17T21:46:55.187000+00:00",
"TriggeredBy": "APPCONFIG"
},
{
"Description": "Deployment started",
"EventType": "DEPLOYMENT_STARTED",
"OccurredAt": "2021-09-17T21:43:54.205000+00:00",
"TriggeredBy": "USER"
}
],
"FinalBakeTimeInMinutes": 0,
"GrowthFactor": 25,
"GrowthType": "LINEAR",
"PercentageComplete": 100,
"StartedAt": "2021-09-17T21:43:54.205000+00:00",
"State": "COMPLETE"
}
*/
// example id: to-retrieve-deployment-details-1633976766883

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<GetDeploymentCommandInput, GetDeploymentCommandOutput>

Methods