Skip to content
v2.278.0

DaemonDeploymentConfigurationProperty Struct ​

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

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 daemonDeploymentConfigurationProperty: ecs.CfnDaemon.DaemonDeploymentConfigurationProperty = {
  alarms: {
    alarmNames: ['alarmNames'],
    enable: false,
  },
  bakeTimeInMinutes: 123,
  drainPercent: 123,
};
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
// 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();
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
};
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 ​

alarmsoptionalIResolvable | CfnDaemon.DaemonAlarmConfigurationPropertyalarmsoptionaltyping.Union[IResolvable, DaemonAlarmConfigurationProperty]alarmsoptionalIResolvableAlarmsoptionalIResolvableAlarmsoptionalinterface{} #
The CloudWatch alarm configuration for a daemon.

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

bakeTimeInMinutesoptionalnumberbake_time_in_minutesoptionalint | floatbakeTimeInMinutesoptionalNumberBakeTimeInMinutesoptionaldoubleBakeTimeInMinutesoptional*float64 #
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.

drainPercentoptionalnumberdrain_percentoptionalint | floatdrainPercentoptionalNumberDrainPercentoptionaldoubleDrainPercentoptional*float64 #
The percentage of container instances to drain simultaneously during a daemon deployment.

Valid values are between 0.0 and 100.0.