Interface CfnDeploymentGroup.AlarmConfigurationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDeploymentGroup.AlarmConfigurationProperty.Jsii$Proxy
- Enclosing class:
CfnDeploymentGroup
@Stability(Stable)
public static interface CfnDeploymentGroup.AlarmConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
The
AlarmConfiguration property type configures CloudWatch alarms for an AWS CodeDeploy deployment group.
AlarmConfiguration is a property of the DeploymentGroup resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codedeploy.*;
AlarmConfigurationProperty alarmConfigurationProperty = AlarmConfigurationProperty.builder()
.alarms(List.of(AlarmProperty.builder()
.name("name")
.build()))
.enabled(false)
.ignorePollAlarmFailure(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDeploymentGroup.AlarmConfigurationPropertystatic final classAn implementation forCfnDeploymentGroup.AlarmConfigurationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA list of alarms configured for the deployment or deployment group.default ObjectIndicates whether the alarm configuration is enabled.default ObjectIndicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch .Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlarms
A list of alarms configured for the deployment or deployment group.A maximum of 10 alarms can be added.
- See Also:
-
getEnabled
Indicates whether the alarm configuration is enabled.- See Also:
-
getIgnorePollAlarmFailure
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch .The default value is
false.true: The deployment proceeds even if alarm status information can't be retrieved from CloudWatch .false: The deployment stops if alarm status information can't be retrieved from CloudWatch .
- See Also:
-
builder
-