DaemonAlarmConfigurationProperty Struct
The CloudWatch alarm configuration for a daemon.
When enabled, CloudWatch alarms determine whether a daemon deployment has failed.
| Source | |
|---|---|
| Type last changed |
Example
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
# 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
// 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();
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
};
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
alarmNamesoptionalstring[]alarm_namesoptionaltyping.List[str]alarmNamesoptionalList<String>AlarmNamesoptionalstring[]AlarmNamesoptional*[]*string #The CloudWatch alarm names to monitor during a daemon deployment.
enableoptionalboolean | IResolvableenableoptionaltyping.Union[bool, IResolvable]enableoptionalBooleanEnableoptionalboolEnableoptionalinterface{} #Determines whether to use the CloudWatch alarm option in the daemon deployment process.
The default value is false.