Class CfnDeploymentGroup.AlarmConfigurationProperty
The AlarmConfiguration property type configures CloudWatch alarms for an AWS CodeDeploy deployment group.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CodeDeploy
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDeploymentGroup.AlarmConfigurationProperty : CfnDeploymentGroup.IAlarmConfigurationProperty
Syntax (vb)
Public Class CfnDeploymentGroup.AlarmConfigurationProperty Implements CfnDeploymentGroup.IAlarmConfigurationProperty
Remarks
AlarmConfiguration is a property of the DeploymentGroup resource.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var alarmConfigurationProperty = new AlarmConfigurationProperty {
Alarms = new [] { new AlarmProperty {
Name = "name"
} },
Enabled = false,
IgnorePollAlarmFailure = false
};
Synopsis
Constructors
| AlarmConfigurationProperty() | The |
Properties
| Alarms | A list of alarms configured for the deployment or deployment group. |
| Enabled | Indicates whether the alarm configuration is enabled. |
| IgnorePollAlarmFailure | Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch . |
Constructors
AlarmConfigurationProperty()
The AlarmConfiguration property type configures CloudWatch alarms for an AWS CodeDeploy deployment group.
public AlarmConfigurationProperty()
Remarks
AlarmConfiguration is a property of the DeploymentGroup resource.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeDeploy;
var alarmConfigurationProperty = new AlarmConfigurationProperty {
Alarms = new [] { new AlarmProperty {
Name = "name"
} },
Enabled = false,
IgnorePollAlarmFailure = false
};
Properties
Alarms
A list of alarms configured for the deployment or deployment group.
public object? Alarms { get; set; }
Property Value
Remarks
A maximum of 10 alarms can be added.
Type union: either IResolvable or (either IResolvable or CfnDeploymentGroup.IAlarmProperty)[]
Enabled
Indicates whether the alarm configuration is enabled.
public object? Enabled { get; set; }
Property Value
Remarks
IgnorePollAlarmFailure
Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from Amazon CloudWatch .
public object? IgnorePollAlarmFailure { get; set; }