TriggerProperty Struct Added in v2.277.0
The alert states that trigger the notification rule.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const triggerProperty: cloudwatch.CfnAlert.TriggerProperty = {
stateValues: ['stateValues'],
};
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_cloudwatch as cloudwatch
trigger_property = cloudwatch.CfnAlert.TriggerProperty(
state_values=["stateValues"]
)
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.cloudwatch.*;
TriggerProperty triggerProperty = TriggerProperty.builder()
.stateValues(List.of("stateValues"))
.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.CloudWatch;
var triggerProperty = new TriggerProperty {
StateValues = new [] { "stateValues" }
};
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"
triggerProperty := &TriggerProperty{
StateValues: []*string{
jsii.String("stateValues"),
},
}
Properties
stateValuesoptionalstring[]state_valuesoptionaltyping.List[str]stateValuesoptionalList<String>StateValuesoptionalstring[]StateValuesoptional*[]*string#The alert states that trigger this rule.
A notification is sent when the alert enters any listed state. If omitted or empty, every state triggers the rule.