Skip to content

Commit

Permalink
feat(client-codedeploy): This release adds support for two new CodeDe…
Browse files Browse the repository at this point in the history
…ploy features: 1) zonal deployments for Amazon EC2 in-place deployments, 2) deployments triggered by Auto Scaling group termination lifecycle hook events.
  • Loading branch information
awstools committed Dec 7, 2023
1 parent 99f5c1e commit a75595d
Show file tree
Hide file tree
Showing 15 changed files with 417 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface BatchGetDeploymentGroupsCommandOutput extends BatchGetDeploymen
* // { // AutoScalingGroup
* // name: "STRING_VALUE",
* // hook: "STRING_VALUE",
* // terminationHook: "STRING_VALUE",
* // },
* // ],
* // serviceRoleArn: "STRING_VALUE",
Expand Down Expand Up @@ -216,6 +217,7 @@ export interface BatchGetDeploymentGroupsCommandOutput extends BatchGetDeploymen
* // clusterName: "STRING_VALUE",
* // },
* // ],
* // terminationHookEnabled: true || false,
* // },
* // ],
* // errorMessage: "STRING_VALUE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export interface BatchGetDeploymentTargetsCommandOutput extends BatchGetDeployme
* // const { CodeDeployClient, BatchGetDeploymentTargetsCommand } = require("@aws-sdk/client-codedeploy"); // CommonJS import
* const client = new CodeDeployClient(config);
* const input = { // BatchGetDeploymentTargetsInput
* deploymentId: "STRING_VALUE",
* targetIds: [ // TargetIdList
* deploymentId: "STRING_VALUE", // required
* targetIds: [ // TargetIdList // required
* "STRING_VALUE",
* ],
* };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export interface BatchGetDeploymentsCommandOutput extends BatchGetDeploymentsOut
* // Ready: Number("long"),
* // },
* // description: "STRING_VALUE",
* // creator: "user" || "autoscaling" || "codeDeployRollback" || "CodeDeploy" || "CodeDeployAutoUpdate" || "CloudFormation" || "CloudFormationRollback",
* // creator: "user" || "autoscaling" || "codeDeployRollback" || "CodeDeploy" || "CodeDeployAutoUpdate" || "CloudFormation" || "CloudFormationRollback" || "autoscalingTermination",
* // ignoreApplicationStopFailures: true || false,
* // autoRollbackConfiguration: { // AutoRollbackConfiguration
* // enabled: true || false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ export interface CreateDeploymentConfigCommandOutput extends CreateDeploymentCon
* },
* },
* computePlatform: "Server" || "Lambda" || "ECS",
* zonalConfig: { // ZonalConfig
* firstZoneMonitorDurationInSeconds: Number("long"),
* monitorDurationInSeconds: Number("long"),
* minimumHealthyHostsPerZone: { // MinimumHealthyHostsPerZone
* type: "HOST_COUNT" || "FLEET_PERCENT",
* value: Number("int"),
* },
* },
* };
* const command = new CreateDeploymentConfigCommand(input);
* const response = await client.send(command);
Expand Down Expand Up @@ -99,6 +107,9 @@ export interface CreateDeploymentConfigCommandOutput extends CreateDeploymentCon
* <p> The configuration that specifies how traffic is routed during a deployment is
* invalid.</p>
*
* @throws {@link InvalidZonalDeploymentConfigurationException} (client fault)
* <p>The <code>ZonalConfig</code> object is not valid.</p>
*
* @throws {@link CodeDeployServiceException}
* <p>Base exception class for all service exceptions from CodeDeploy service.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ export interface CreateDeploymentGroupCommandOutput extends CreateDeploymentGrou
* Value: "STRING_VALUE",
* },
* ],
* terminationHookEnabled: true || false,
* };
* const command = new CreateDeploymentGroupCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export interface DeleteDeploymentGroupCommandOutput extends DeleteDeploymentGrou
* // { // AutoScalingGroup
* // name: "STRING_VALUE",
* // hook: "STRING_VALUE",
* // terminationHook: "STRING_VALUE",
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface GetDeploymentCommandOutput extends GetDeploymentOutput, __Metad
* // Ready: Number("long"),
* // },
* // description: "STRING_VALUE",
* // creator: "user" || "autoscaling" || "codeDeployRollback" || "CodeDeploy" || "CodeDeployAutoUpdate" || "CloudFormation" || "CloudFormationRollback",
* // creator: "user" || "autoscaling" || "codeDeployRollback" || "CodeDeploy" || "CodeDeployAutoUpdate" || "CloudFormation" || "CloudFormationRollback" || "autoscalingTermination",
* // ignoreApplicationStopFailures: true || false,
* // autoRollbackConfiguration: { // AutoRollbackConfiguration
* // enabled: true || false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ export interface GetDeploymentConfigCommandOutput extends GetDeploymentConfigOut
* // linearInterval: Number("int"),
* // },
* // },
* // zonalConfig: { // ZonalConfig
* // firstZoneMonitorDurationInSeconds: Number("long"),
* // monitorDurationInSeconds: Number("long"),
* // minimumHealthyHostsPerZone: { // MinimumHealthyHostsPerZone
* // type: "HOST_COUNT" || "FLEET_PERCENT",
* // value: Number("int"),
* // },
* // },
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export interface GetDeploymentGroupCommandOutput extends GetDeploymentGroupOutpu
* // { // AutoScalingGroup
* // name: "STRING_VALUE",
* // hook: "STRING_VALUE",
* // terminationHook: "STRING_VALUE",
* // },
* // ],
* // serviceRoleArn: "STRING_VALUE",
Expand Down Expand Up @@ -213,6 +214,7 @@ export interface GetDeploymentGroupCommandOutput extends GetDeploymentGroupOutpu
* // clusterName: "STRING_VALUE",
* // },
* // ],
* // terminationHookEnabled: true || false,
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ export interface GetDeploymentTargetCommandOutput extends GetDeploymentTargetOut
* // const { CodeDeployClient, GetDeploymentTargetCommand } = require("@aws-sdk/client-codedeploy"); // CommonJS import
* const client = new CodeDeployClient(config);
* const input = { // GetDeploymentTargetInput
* deploymentId: "STRING_VALUE",
* targetId: "STRING_VALUE",
* deploymentId: "STRING_VALUE", // required
* targetId: "STRING_VALUE", // required
* };
* const command = new GetDeploymentTargetCommand(input);
* const response = await client.send(command);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface ListDeploymentTargetsCommandOutput extends ListDeploymentTarget
* // const { CodeDeployClient, ListDeploymentTargetsCommand } = require("@aws-sdk/client-codedeploy"); // CommonJS import
* const client = new CodeDeployClient(config);
* const input = { // ListDeploymentTargetsInput
* deploymentId: "STRING_VALUE",
* deploymentId: "STRING_VALUE", // required
* nextToken: "STRING_VALUE",
* targetFilters: { // TargetFilters
* "<keys>": [ // FilterValueList
Expand Down Expand Up @@ -97,6 +97,9 @@ export interface ListDeploymentTargetsCommandOutput extends ListDeploymentTarget
* @throws {@link InvalidNextTokenException} (client fault)
* <p>The next token was specified in an invalid format.</p>
*
* @throws {@link InvalidTargetFilterNameException} (client fault)
* <p> The target filter name is invalid. </p>
*
* @throws {@link CodeDeployServiceException}
* <p>Base exception class for all service exceptions from CodeDeploy service.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export interface UpdateDeploymentGroupCommandOutput extends UpdateDeploymentGrou
* ],
* ],
* },
* terminationHookEnabled: true || false,
* };
* const command = new UpdateDeploymentGroupCommand(input);
* const response = await client.send(command);
Expand All @@ -176,6 +177,7 @@ export interface UpdateDeploymentGroupCommandOutput extends UpdateDeploymentGrou
* // { // AutoScalingGroup
* // name: "STRING_VALUE",
* // hook: "STRING_VALUE",
* // terminationHook: "STRING_VALUE",
* // },
* // ],
* // };
Expand Down
Loading

0 comments on commit a75595d

Please sign in to comment.