Interface CfnServicePropsMixin.DeploymentAlarmsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServicePropsMixin.DeploymentAlarmsProperty.Jsii$Proxy
- Enclosing class:
CfnServicePropsMixin
When the alarms are generated, Amazon ECS sets the service deployment to failed. Set the rollback parameter to have Amazon ECS to roll back your service to the last completed deployment after a failure.
You can only use the DeploymentAlarms method to detect failures when the DeploymentController is set to ECS .
For more information, see Rolling update in the Amazon Elastic Container Service Developer Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ecs.*;
DeploymentAlarmsProperty deploymentAlarmsProperty = DeploymentAlarmsProperty.builder()
.alarmNames(List.of("alarmNames"))
.enable(false)
.rollback(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnServicePropsMixin.DeploymentAlarmsPropertystatic final classAn implementation forCfnServicePropsMixin.DeploymentAlarmsProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()One or more CloudWatch alarm names.default ObjectDetermines whether to use the CloudWatch alarm option in the service deployment process.default ObjectDetermines whether to configure Amazon ECS to roll back the service if a service deployment fails.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlarmNames
One or more CloudWatch alarm names.Use a "," to separate the alarms.
Returns union: Listinvalid input: '<'either
StringorIAlarmRef>- See Also:
-
getEnable
Determines whether to use the CloudWatch alarm option in the service deployment process.Returns union: either
BooleanorIResolvable- See Also:
-
getRollback
Determines whether to configure Amazon ECS to roll back the service if a service deployment fails.If rollback is used, when a service deployment fails, the service is rolled back to the last deployment that completed successfully.
Returns union: either
BooleanorIResolvable- See Also:
-
builder
-