# DaemonAlarmConfigurationProperty

The CloudWatch alarm configuration for a daemon.

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

- 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 daemonAlarmConfigurationProperty: ecs.CfnDaemon.DaemonAlarmConfigurationProperty = {
  alarmNames: ['alarmNames'],
  enable: false,
};
```

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_alarm_configuration_property = ecs.CfnDaemon.DaemonAlarmConfigurationProperty(
    alarm_names=["alarmNames"],
    enable=False
)
```

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.*;

DaemonAlarmConfigurationProperty daemonAlarmConfigurationProperty = DaemonAlarmConfigurationProperty.builder()
        .alarmNames(List.of("alarmNames"))
        .enable(false)
        .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 daemonAlarmConfigurationProperty = new DaemonAlarmConfigurationProperty {
    AlarmNames = new [] { "alarmNames" },
    Enable = false
};
```

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"

daemonAlarmConfigurationProperty := &DaemonAlarmConfigurationProperty{
	AlarmNames: []*string{
		jsii.String("alarmNames"),
	},
	Enable: jsii.Boolean(false),
}
```

## Properties

- `alarmNames`: string[] — The CloudWatch alarm names to monitor during a daemon deployment.

- `enable`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Determines whether to use the CloudWatch alarm option in the daemon deployment process.

  The default value is ``false``.
