Skip to content

Commit 9c9494a

Browse files
author
awstools
committed
feat(client-appconfig): This release improves deployment safety by granting customers the ability to REVERT completed deployments, to the last known good state.In the StopDeployment API revert case the status of a COMPLETE deployment will be REVERTED. AppConfig only allows a revert within 72 hours of deployment completion.
1 parent 073cb75 commit 9c9494a

File tree

12 files changed

+65
-19
lines changed

12 files changed

+65
-19
lines changed

clients/client-appconfig/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ Guide</a>.</p>
159159

160160
## Installing
161161

162-
To install the this package, simply type add or install @aws-sdk/client-appconfig
162+
To install this package, simply type add or install @aws-sdk/client-appconfig
163163
using your favorite package manager:
164164

165165
- `npm install @aws-sdk/client-appconfig`

clients/client-appconfig/src/commands/CreateEnvironmentCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export interface CreateEnvironmentCommandOutput extends Environment, __MetadataB
6363
* // Id: "STRING_VALUE",
6464
* // Name: "STRING_VALUE",
6565
* // Description: "STRING_VALUE",
66-
* // State: "READY_FOR_DEPLOYMENT" || "DEPLOYING" || "ROLLING_BACK" || "ROLLED_BACK",
66+
* // State: "READY_FOR_DEPLOYMENT" || "DEPLOYING" || "ROLLING_BACK" || "ROLLED_BACK" || "REVERTED",
6767
* // Monitors: [ // MonitorList
6868
* // { // Monitor
6969
* // AlarmArn: "STRING_VALUE", // required

clients/client-appconfig/src/commands/GetDeploymentCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ export interface GetDeploymentCommandOutput extends Deployment, __MetadataBearer
5656
* // GrowthType: "LINEAR" || "EXPONENTIAL",
5757
* // GrowthFactor: Number("float"),
5858
* // FinalBakeTimeInMinutes: Number("int"),
59-
* // State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK",
59+
* // State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK" || "REVERTED",
6060
* // EventLog: [ // DeploymentEvents
6161
* // { // DeploymentEvent
62-
* // EventType: "PERCENTAGE_UPDATED" || "ROLLBACK_STARTED" || "ROLLBACK_COMPLETED" || "BAKE_TIME_STARTED" || "DEPLOYMENT_STARTED" || "DEPLOYMENT_COMPLETED",
62+
* // EventType: "PERCENTAGE_UPDATED" || "ROLLBACK_STARTED" || "ROLLBACK_COMPLETED" || "BAKE_TIME_STARTED" || "DEPLOYMENT_STARTED" || "DEPLOYMENT_COMPLETED" || "REVERT_COMPLETED",
6363
* // TriggeredBy: "USER" || "APPCONFIG" || "CLOUDWATCH_ALARM" || "INTERNAL_ERROR",
6464
* // Description: "STRING_VALUE",
6565
* // ActionInvocations: [ // ActionInvocations

clients/client-appconfig/src/commands/GetEnvironmentCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface GetEnvironmentCommandOutput extends Environment, __MetadataBear
5151
* // Id: "STRING_VALUE",
5252
* // Name: "STRING_VALUE",
5353
* // Description: "STRING_VALUE",
54-
* // State: "READY_FOR_DEPLOYMENT" || "DEPLOYING" || "ROLLING_BACK" || "ROLLED_BACK",
54+
* // State: "READY_FOR_DEPLOYMENT" || "DEPLOYING" || "ROLLING_BACK" || "ROLLED_BACK" || "REVERTED",
5555
* // Monitors: [ // MonitorList
5656
* // { // Monitor
5757
* // AlarmArn: "STRING_VALUE", // required

clients/client-appconfig/src/commands/ListDeploymentsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface ListDeploymentsCommandOutput extends Deployments, __MetadataBea
5353
* // GrowthType: "LINEAR" || "EXPONENTIAL",
5454
* // GrowthFactor: Number("float"),
5555
* // FinalBakeTimeInMinutes: Number("int"),
56-
* // State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK",
56+
* // State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK" || "REVERTED",
5757
* // PercentageComplete: Number("float"),
5858
* // StartedAt: new Date("TIMESTAMP"),
5959
* // CompletedAt: new Date("TIMESTAMP"),

clients/client-appconfig/src/commands/ListEnvironmentsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export interface ListEnvironmentsCommandOutput extends Environments, __MetadataB
4949
* // Id: "STRING_VALUE",
5050
* // Name: "STRING_VALUE",
5151
* // Description: "STRING_VALUE",
52-
* // State: "READY_FOR_DEPLOYMENT" || "DEPLOYING" || "ROLLING_BACK" || "ROLLED_BACK",
52+
* // State: "READY_FOR_DEPLOYMENT" || "DEPLOYING" || "ROLLING_BACK" || "ROLLED_BACK" || "REVERTED",
5353
* // Monitors: [ // MonitorList
5454
* // { // Monitor
5555
* // AlarmArn: "STRING_VALUE", // required

clients/client-appconfig/src/commands/StartDeploymentCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ export interface StartDeploymentCommandOutput extends Deployment, __MetadataBear
6666
* // GrowthType: "LINEAR" || "EXPONENTIAL",
6767
* // GrowthFactor: Number("float"),
6868
* // FinalBakeTimeInMinutes: Number("int"),
69-
* // State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK",
69+
* // State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK" || "REVERTED",
7070
* // EventLog: [ // DeploymentEvents
7171
* // { // DeploymentEvent
72-
* // EventType: "PERCENTAGE_UPDATED" || "ROLLBACK_STARTED" || "ROLLBACK_COMPLETED" || "BAKE_TIME_STARTED" || "DEPLOYMENT_STARTED" || "DEPLOYMENT_COMPLETED",
72+
* // EventType: "PERCENTAGE_UPDATED" || "ROLLBACK_STARTED" || "ROLLBACK_COMPLETED" || "BAKE_TIME_STARTED" || "DEPLOYMENT_STARTED" || "DEPLOYMENT_COMPLETED" || "REVERT_COMPLETED",
7373
* // TriggeredBy: "USER" || "APPCONFIG" || "CLOUDWATCH_ALARM" || "INTERNAL_ERROR",
7474
* // Description: "STRING_VALUE",
7575
* // ActionInvocations: [ // ActionInvocations

clients/client-appconfig/src/commands/StopDeploymentCommand.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ export interface StopDeploymentCommandOutput extends Deployment, __MetadataBeare
2929

3030
/**
3131
* <p>Stops a deployment. This API action works only on deployments that have a status of
32-
* <code>DEPLOYING</code>. This action moves the deployment to a status of
33-
* <code>ROLLED_BACK</code>.</p>
32+
* <code>DEPLOYING</code>, unless an <code>AllowRevert</code> parameter is supplied. If the
33+
* <code>AllowRevert</code> parameter is supplied, the status of an in-progress deployment
34+
* will be <code>ROLLED_BACK</code>. The status of a completed deployment will be
35+
* <code>REVERTED</code>. AppConfig only allows a revert within 72 hours of
36+
* deployment completion.</p>
3437
* @example
3538
* Use a bare-bones client and the command you need to make an API call.
3639
* ```javascript
@@ -41,6 +44,7 @@ export interface StopDeploymentCommandOutput extends Deployment, __MetadataBeare
4144
* ApplicationId: "STRING_VALUE", // required
4245
* EnvironmentId: "STRING_VALUE", // required
4346
* DeploymentNumber: Number("int"), // required
47+
* AllowRevert: true || false,
4448
* };
4549
* const command = new StopDeploymentCommand(input);
4650
* const response = await client.send(command);
@@ -58,10 +62,10 @@ export interface StopDeploymentCommandOutput extends Deployment, __MetadataBeare
5862
* // GrowthType: "LINEAR" || "EXPONENTIAL",
5963
* // GrowthFactor: Number("float"),
6064
* // FinalBakeTimeInMinutes: Number("int"),
61-
* // State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK",
65+
* // State: "BAKING" || "VALIDATING" || "DEPLOYING" || "COMPLETE" || "ROLLING_BACK" || "ROLLED_BACK" || "REVERTED",
6266
* // EventLog: [ // DeploymentEvents
6367
* // { // DeploymentEvent
64-
* // EventType: "PERCENTAGE_UPDATED" || "ROLLBACK_STARTED" || "ROLLBACK_COMPLETED" || "BAKE_TIME_STARTED" || "DEPLOYMENT_STARTED" || "DEPLOYMENT_COMPLETED",
68+
* // EventType: "PERCENTAGE_UPDATED" || "ROLLBACK_STARTED" || "ROLLBACK_COMPLETED" || "BAKE_TIME_STARTED" || "DEPLOYMENT_STARTED" || "DEPLOYMENT_COMPLETED" || "REVERT_COMPLETED",
6569
* // TriggeredBy: "USER" || "APPCONFIG" || "CLOUDWATCH_ALARM" || "INTERNAL_ERROR",
6670
* // Description: "STRING_VALUE",
6771
* // ActionInvocations: [ // ActionInvocations

clients/client-appconfig/src/commands/UpdateEnvironmentCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export interface UpdateEnvironmentCommandOutput extends Environment, __MetadataB
5454
* // Id: "STRING_VALUE",
5555
* // Name: "STRING_VALUE",
5656
* // Description: "STRING_VALUE",
57-
* // State: "READY_FOR_DEPLOYMENT" || "DEPLOYING" || "ROLLING_BACK" || "ROLLED_BACK",
57+
* // State: "READY_FOR_DEPLOYMENT" || "DEPLOYING" || "ROLLING_BACK" || "ROLLED_BACK" || "REVERTED",
5858
* // Monitors: [ // MonitorList
5959
* // { // Monitor
6060
* // AlarmArn: "STRING_VALUE", // required

clients/client-appconfig/src/models/models_0.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,7 @@ export interface CreateEnvironmentRequest {
914914
export const EnvironmentState = {
915915
DEPLOYING: "DEPLOYING",
916916
READY_FOR_DEPLOYMENT: "READY_FOR_DEPLOYMENT",
917+
REVERTED: "REVERTED",
917918
ROLLED_BACK: "ROLLED_BACK",
918919
ROLLING_BACK: "ROLLING_BACK",
919920
} as const;
@@ -1626,8 +1627,9 @@ export interface GetConfigurationRequest {
16261627
* <code>ConfigurationVersion</code> attribute returned by <a>GetConfiguration</a> when there is new or updated data, and should be saved
16271628
* for subsequent calls to <a>GetConfiguration</a>.</p>
16281629
* </important>
1629-
* <p>For more information about working with configurations, see <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-retrieving-the-configuration.html">Retrieving the
1630-
* Configuration</a> in the <i>AppConfig User Guide</i>.</p>
1630+
* <p>For more information about working with configurations, see <a href="http://docs.aws.amazon.com/appconfig/latest/userguide/retrieving-feature-flags.html">Retrieving feature flags and
1631+
* configuration data in AppConfig</a> in the <i>AppConfig
1632+
* User Guide</i>.</p>
16311633
* @public
16321634
*/
16331635
ClientConfigurationVersion?: string;
@@ -1690,6 +1692,7 @@ export const DeploymentEventType = {
16901692
DEPLOYMENT_COMPLETED: "DEPLOYMENT_COMPLETED",
16911693
DEPLOYMENT_STARTED: "DEPLOYMENT_STARTED",
16921694
PERCENTAGE_UPDATED: "PERCENTAGE_UPDATED",
1695+
REVERT_COMPLETED: "REVERT_COMPLETED",
16931696
ROLLBACK_COMPLETED: "ROLLBACK_COMPLETED",
16941697
ROLLBACK_STARTED: "ROLLBACK_STARTED",
16951698
} as const;
@@ -1775,6 +1778,7 @@ export const DeploymentState = {
17751778
BAKING: "BAKING",
17761779
COMPLETE: "COMPLETE",
17771780
DEPLOYING: "DEPLOYING",
1781+
REVERTED: "REVERTED",
17781782
ROLLED_BACK: "ROLLED_BACK",
17791783
ROLLING_BACK: "ROLLING_BACK",
17801784
VALIDATING: "VALIDATING",
@@ -2764,6 +2768,14 @@ export interface StopDeploymentRequest {
27642768
* @public
27652769
*/
27662770
DeploymentNumber: number | undefined;
2771+
2772+
/**
2773+
* <p>A Boolean that enables AppConfig to rollback a <code>COMPLETED</code>
2774+
* deployment to the previous configuration version. This action moves the deployment to a
2775+
* status of <code>REVERTED</code>.</p>
2776+
* @public
2777+
*/
2778+
AllowRevert?: boolean;
27672779
}
27682780

27692781
/**

0 commit comments

Comments
 (0)