# DaemonDeploymentConfigurationProperty

Optional deployment parameters that control how a daemon rolls out updates across container instances.

- Source: Generated at build time
- Type last changed: v2.249.0 · 13 Apr 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const daemonDeploymentConfigurationProperty: ecs.CfnDaemon.DaemonDeploymentConfigurationProperty = {
  alarms: {
    alarmNames: ['alarmNames'],
    enable: false,
  },
  bakeTimeInMinutes: 123,
  drainPercent: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs

daemon_deployment_configuration_property = ecs.CfnDaemon.DaemonDeploymentConfigurationProperty(
    alarms=ecs.CfnDaemon.DaemonAlarmConfigurationProperty(
        alarm_names=["alarmNames"],
        enable=False
    ),
    bake_time_in_minutes=123,
    drain_percent=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;

DaemonDeploymentConfigurationProperty daemonDeploymentConfigurationProperty = DaemonDeploymentConfigurationProperty.builder()
        .alarms(DaemonAlarmConfigurationProperty.builder()
                .alarmNames(List.of("alarmNames"))
                .enable(false)
                .build())
        .bakeTimeInMinutes(123)
        .drainPercent(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;

var daemonDeploymentConfigurationProperty = new DaemonDeploymentConfigurationProperty {
    Alarms = new DaemonAlarmConfigurationProperty {
        AlarmNames = new [] { "alarmNames" },
        Enable = false
    },
    BakeTimeInMinutes = 123,
    DrainPercent = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

daemonDeploymentConfigurationProperty := &DaemonDeploymentConfigurationProperty{
	Alarms: &DaemonAlarmConfigurationProperty{
		AlarmNames: []*string{
			jsii.String("alarmNames"),
		},
		Enable: jsii.Boolean(false),
	},
	BakeTimeInMinutes: jsii.Number(123),
	DrainPercent: jsii.Number(123),
}
```

## Properties

- `alarms`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDaemon.DaemonAlarmConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ecs.CfnDaemon.DaemonAlarmConfigurationProperty.html) — The CloudWatch alarm configuration for a daemon.

  When enabled, CloudWatch alarms determine whether a daemon deployment has failed.

- `bakeTimeInMinutes`: number — The amount of time (in minutes) to wait after a successful deployment step before proceeding.

  This allows time to monitor for issues before continuing. The default value is 0.

- `drainPercent`: number — The percentage of container instances to drain simultaneously during a daemon deployment.

  Valid values are between 0.0 and 100.0.
