Skip to content
v2.278.0

ActionConfigurationProperty Struct ​

Configuration that applies to the notifications this alarm sends when it performs its actions.

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 actionConfigurationProperty: cloudwatch.CfnCompositeAlarm.ActionConfigurationProperty = {
  alarmTagsPropagation: {
    enabled: false,

    // the properties below are optional
    excludedTagKeys: ['excludedTagKeys'],
    includedTagKeys: ['includedTagKeys'],
  },
};
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

action_configuration_property = cloudwatch.CfnCompositeAlarm.ActionConfigurationProperty(
    alarm_tags_propagation=cloudwatch.CfnCompositeAlarm.AlarmTagsPropagationProperty(
        enabled=False,

        # the properties below are optional
        excluded_tag_keys=["excludedTagKeys"],
        included_tag_keys=["includedTagKeys"]
    )
)
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.*;

ActionConfigurationProperty actionConfigurationProperty = ActionConfigurationProperty.builder()
        .alarmTagsPropagation(AlarmTagsPropagationProperty.builder()
                .enabled(false)

                // the properties below are optional
                .excludedTagKeys(List.of("excludedTagKeys"))
                .includedTagKeys(List.of("includedTagKeys"))
                .build())
        .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 actionConfigurationProperty = new ActionConfigurationProperty {
    AlarmTagsPropagation = new AlarmTagsPropagationProperty {
        Enabled = false,

        // the properties below are optional
        ExcludedTagKeys = new [] { "excludedTagKeys" },
        IncludedTagKeys = new [] { "includedTagKeys" }
    }
};
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"

actionConfigurationProperty := &ActionConfigurationProperty{
	AlarmTagsPropagation: &AlarmTagsPropagationProperty{
		Enabled: jsii.Boolean(false),

		// the properties below are optional
		ExcludedTagKeys: []*string{
			jsii.String("excludedTagKeys"),
		},
		IncludedTagKeys: []*string{
			jsii.String("includedTagKeys"),
		},
	},
}

Properties ​

alarmTagsPropagationoptionalIResolvable | CfnCompositeAlarm.AlarmTagsPropagationPropertyalarm_tags_propagationoptionaltyping.Union[IResolvable, AlarmTagsPropagationProperty]alarmTagsPropagationoptionalIResolvableAlarmTagsPropagationoptionalIResolvableAlarmTagsPropagationoptionalinterface{} #
Controls whether the alarm's tags are included in its action notifications and state-change events, and which tag keys are included.

Specify IncludedTagKeys or ExcludedTagKeys, but not both. Omit both to include every tag.