Skip to content

Commit a75595d

Browse files
author
awstools
committed
feat(client-codedeploy): This release adds support for two new CodeDeploy features: 1) zonal deployments for Amazon EC2 in-place deployments, 2) deployments triggered by Auto Scaling group termination lifecycle hook events.
1 parent 99f5c1e commit a75595d

15 files changed

+417
-36
lines changed

clients/client-codedeploy/src/commands/BatchGetDeploymentGroupsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export interface BatchGetDeploymentGroupsCommandOutput extends BatchGetDeploymen
7777
* // { // AutoScalingGroup
7878
* // name: "STRING_VALUE",
7979
* // hook: "STRING_VALUE",
80+
* // terminationHook: "STRING_VALUE",
8081
* // },
8182
* // ],
8283
* // serviceRoleArn: "STRING_VALUE",
@@ -216,6 +217,7 @@ export interface BatchGetDeploymentGroupsCommandOutput extends BatchGetDeploymen
216217
* // clusterName: "STRING_VALUE",
217218
* // },
218219
* // ],
220+
* // terminationHookEnabled: true || false,
219221
* // },
220222
* // ],
221223
* // errorMessage: "STRING_VALUE",

clients/client-codedeploy/src/commands/BatchGetDeploymentTargetsCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ export interface BatchGetDeploymentTargetsCommandOutput extends BatchGetDeployme
7171
* // const { CodeDeployClient, BatchGetDeploymentTargetsCommand } = require("@aws-sdk/client-codedeploy"); // CommonJS import
7272
* const client = new CodeDeployClient(config);
7373
* const input = { // BatchGetDeploymentTargetsInput
74-
* deploymentId: "STRING_VALUE",
75-
* targetIds: [ // TargetIdList
74+
* deploymentId: "STRING_VALUE", // required
75+
* targetIds: [ // TargetIdList // required
7676
* "STRING_VALUE",
7777
* ],
7878
* };

clients/client-codedeploy/src/commands/BatchGetDeploymentsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export interface BatchGetDeploymentsCommandOutput extends BatchGetDeploymentsOut
120120
* // Ready: Number("long"),
121121
* // },
122122
* // description: "STRING_VALUE",
123-
* // creator: "user" || "autoscaling" || "codeDeployRollback" || "CodeDeploy" || "CodeDeployAutoUpdate" || "CloudFormation" || "CloudFormationRollback",
123+
* // creator: "user" || "autoscaling" || "codeDeployRollback" || "CodeDeploy" || "CodeDeployAutoUpdate" || "CloudFormation" || "CloudFormationRollback" || "autoscalingTermination",
124124
* // ignoreApplicationStopFailures: true || false,
125125
* // autoRollbackConfiguration: { // AutoRollbackConfiguration
126126
* // enabled: true || false,

clients/client-codedeploy/src/commands/CreateDeploymentConfigCommand.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ export interface CreateDeploymentConfigCommandOutput extends CreateDeploymentCon
6262
* },
6363
* },
6464
* computePlatform: "Server" || "Lambda" || "ECS",
65+
* zonalConfig: { // ZonalConfig
66+
* firstZoneMonitorDurationInSeconds: Number("long"),
67+
* monitorDurationInSeconds: Number("long"),
68+
* minimumHealthyHostsPerZone: { // MinimumHealthyHostsPerZone
69+
* type: "HOST_COUNT" || "FLEET_PERCENT",
70+
* value: Number("int"),
71+
* },
72+
* },
6573
* };
6674
* const command = new CreateDeploymentConfigCommand(input);
6775
* const response = await client.send(command);
@@ -99,6 +107,9 @@ export interface CreateDeploymentConfigCommandOutput extends CreateDeploymentCon
99107
* <p> The configuration that specifies how traffic is routed during a deployment is
100108
* invalid.</p>
101109
*
110+
* @throws {@link InvalidZonalDeploymentConfigurationException} (client fault)
111+
* <p>The <code>ZonalConfig</code> object is not valid.</p>
112+
*
102113
* @throws {@link CodeDeployServiceException}
103114
* <p>Base exception class for all service exceptions from CodeDeploy service.</p>
104115
*

clients/client-codedeploy/src/commands/CreateDeploymentGroupCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ export interface CreateDeploymentGroupCommandOutput extends CreateDeploymentGrou
173173
* Value: "STRING_VALUE",
174174
* },
175175
* ],
176+
* terminationHookEnabled: true || false,
176177
* };
177178
* const command = new CreateDeploymentGroupCommand(input);
178179
* const response = await client.send(command);

clients/client-codedeploy/src/commands/DeleteDeploymentGroupCommand.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export interface DeleteDeploymentGroupCommandOutput extends DeleteDeploymentGrou
5555
* // { // AutoScalingGroup
5656
* // name: "STRING_VALUE",
5757
* // hook: "STRING_VALUE",
58+
* // terminationHook: "STRING_VALUE",
5859
* // },
5960
* // ],
6061
* // };

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export interface GetDeploymentCommandOutput extends GetDeploymentOutput, __Metad
122122
* // Ready: Number("long"),
123123
* // },
124124
* // description: "STRING_VALUE",
125-
* // creator: "user" || "autoscaling" || "codeDeployRollback" || "CodeDeploy" || "CodeDeployAutoUpdate" || "CloudFormation" || "CloudFormationRollback",
125+
* // creator: "user" || "autoscaling" || "codeDeployRollback" || "CodeDeploy" || "CodeDeployAutoUpdate" || "CloudFormation" || "CloudFormationRollback" || "autoscalingTermination",
126126
* // ignoreApplicationStopFailures: true || false,
127127
* // autoRollbackConfiguration: { // AutoRollbackConfiguration
128128
* // enabled: true || false,

clients/client-codedeploy/src/commands/GetDeploymentConfigCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,14 @@ export interface GetDeploymentConfigCommandOutput extends GetDeploymentConfigOut
7070
* // linearInterval: Number("int"),
7171
* // },
7272
* // },
73+
* // zonalConfig: { // ZonalConfig
74+
* // firstZoneMonitorDurationInSeconds: Number("long"),
75+
* // monitorDurationInSeconds: Number("long"),
76+
* // minimumHealthyHostsPerZone: { // MinimumHealthyHostsPerZone
77+
* // type: "HOST_COUNT" || "FLEET_PERCENT",
78+
* // value: Number("int"),
79+
* // },
80+
* // },
7381
* // },
7482
* // };
7583
*

clients/client-codedeploy/src/commands/GetDeploymentGroupCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export interface GetDeploymentGroupCommandOutput extends GetDeploymentGroupOutpu
7474
* // { // AutoScalingGroup
7575
* // name: "STRING_VALUE",
7676
* // hook: "STRING_VALUE",
77+
* // terminationHook: "STRING_VALUE",
7778
* // },
7879
* // ],
7980
* // serviceRoleArn: "STRING_VALUE",
@@ -213,6 +214,7 @@ export interface GetDeploymentGroupCommandOutput extends GetDeploymentGroupOutpu
213214
* // clusterName: "STRING_VALUE",
214215
* // },
215216
* // ],
217+
* // terminationHookEnabled: true || false,
216218
* // },
217219
* // };
218220
*

clients/client-codedeploy/src/commands/GetDeploymentTargetCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export interface GetDeploymentTargetCommandOutput extends GetDeploymentTargetOut
4545
* // const { CodeDeployClient, GetDeploymentTargetCommand } = require("@aws-sdk/client-codedeploy"); // CommonJS import
4646
* const client = new CodeDeployClient(config);
4747
* const input = { // GetDeploymentTargetInput
48-
* deploymentId: "STRING_VALUE",
49-
* targetId: "STRING_VALUE",
48+
* deploymentId: "STRING_VALUE", // required
49+
* targetId: "STRING_VALUE", // required
5050
* };
5151
* const command = new GetDeploymentTargetCommand(input);
5252
* const response = await client.send(command);

clients/client-codedeploy/src/commands/ListDeploymentTargetsCommand.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export interface ListDeploymentTargetsCommandOutput extends ListDeploymentTarget
4545
* // const { CodeDeployClient, ListDeploymentTargetsCommand } = require("@aws-sdk/client-codedeploy"); // CommonJS import
4646
* const client = new CodeDeployClient(config);
4747
* const input = { // ListDeploymentTargetsInput
48-
* deploymentId: "STRING_VALUE",
48+
* deploymentId: "STRING_VALUE", // required
4949
* nextToken: "STRING_VALUE",
5050
* targetFilters: { // TargetFilters
5151
* "<keys>": [ // FilterValueList
@@ -97,6 +97,9 @@ export interface ListDeploymentTargetsCommandOutput extends ListDeploymentTarget
9797
* @throws {@link InvalidNextTokenException} (client fault)
9898
* <p>The next token was specified in an invalid format.</p>
9999
*
100+
* @throws {@link InvalidTargetFilterNameException} (client fault)
101+
* <p> The target filter name is invalid. </p>
102+
*
100103
* @throws {@link CodeDeployServiceException}
101104
* <p>Base exception class for all service exceptions from CodeDeploy service.</p>
102105
*

clients/client-codedeploy/src/commands/UpdateDeploymentGroupCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export interface UpdateDeploymentGroupCommandOutput extends UpdateDeploymentGrou
168168
* ],
169169
* ],
170170
* },
171+
* terminationHookEnabled: true || false,
171172
* };
172173
* const command = new UpdateDeploymentGroupCommand(input);
173174
* const response = await client.send(command);
@@ -176,6 +177,7 @@ export interface UpdateDeploymentGroupCommandOutput extends UpdateDeploymentGrou
176177
* // { // AutoScalingGroup
177178
* // name: "STRING_VALUE",
178179
* // hook: "STRING_VALUE",
180+
* // terminationHook: "STRING_VALUE",
179181
* // },
180182
* // ],
181183
* // };

0 commit comments

Comments
 (0)