# CfnDeploymentConfigProps

Properties for defining a `CfnDeploymentConfig`.

Extends: CfnDeploymentConfigProps
Used as props by: CfnDeploymentConfig

- Source: Generated code
- Type last changed: v2.115.0 · 14 Dec 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codedeploy as codedeploy } from 'aws-cdk-lib';
const cfnDeploymentConfigProps: codedeploy.CfnDeploymentConfigProps = {
  computePlatform: 'computePlatform',
  deploymentConfigName: 'deploymentConfigName',
  minimumHealthyHosts: {
    type: 'type',
    value: 123,
  },
  trafficRoutingConfig: {
    type: 'type',

    // the properties below are optional
    timeBasedCanary: {
      canaryInterval: 123,
      canaryPercentage: 123,
    },
    timeBasedLinear: {
      linearInterval: 123,
      linearPercentage: 123,
    },
  },
  zonalConfig: {
    firstZoneMonitorDurationInSeconds: 123,
    minimumHealthyHostsPerZone: {
      type: 'type',
      value: 123,
    },
    monitorDurationInSeconds: 123,
  },
};
```

## Properties

- `computePlatform`: string — The destination platform type for the deployment ( `Lambda` , `Server` , or `ECS` ).

- `deploymentConfigName`: string — A name for the deployment configuration.

  If you don't specify a name, CloudFormation generates a unique physical ID and uses that ID for the deployment configuration name. For more information, see [Name Type](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-name.html) .

  > If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

- `minimumHealthyHosts`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentConfig.MinimumHealthyHostsProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig.MinimumHealthyHostsProperty.html) — The minimum number of healthy instances that should be available at any time during the deployment.

  There are two parameters expected in the input: type and value.

  The type parameter takes either of the following values:

  - HOST_COUNT: The value parameter represents the minimum number of healthy instances as an absolute value.
  - FLEET_PERCENT: The value parameter represents the minimum number of healthy instances as a percentage of the total number of instances in the deployment. If you specify FLEET_PERCENT, at the start of the deployment, AWS CodeDeploy converts the percentage to the equivalent number of instance and rounds up fractional instances.

  The value parameter takes an integer.

  For example, to set a minimum of 95% healthy instance, specify a type of FLEET_PERCENT and a value of 95.

  For more information about instance health, see [CodeDeploy Instance Health](https://docs.aws.amazon.com/codedeploy/latest/userguide/instances-health.html) in the AWS CodeDeploy User Guide.

- `trafficRoutingConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentConfig.TrafficRoutingConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig.TrafficRoutingConfigProperty.html) — The configuration that specifies how the deployment traffic is routed.

- `zonalConfig`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDeploymentConfig.ZonalConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codedeploy.CfnDeploymentConfig.ZonalConfigProperty.html) — Configure the `ZonalConfig` object if you want AWS CodeDeploy to deploy your application to one [Availability Zone](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-availability-zones) at a time, within an AWS Region.

  For more information about the zonal configuration feature, see [zonal configuration](https://docs.aws.amazon.com/codedeploy/latest/userguide/deployment-configurations-create.html#zonal-config) in the *CodeDeploy User Guide* .
