Skip to content
v2.278.0

AlarmTagsPropagationProperty Struct ​

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.

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 alarmTagsPropagationProperty: cloudwatch.CfnCompositeAlarm.AlarmTagsPropagationProperty = {
  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

alarm_tags_propagation_property = 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.*;

AlarmTagsPropagationProperty alarmTagsPropagationProperty = AlarmTagsPropagationProperty.builder()
        .enabled(false)

        // the properties below are optional
        .excludedTagKeys(List.of("excludedTagKeys"))
        .includedTagKeys(List.of("includedTagKeys"))
        .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 alarmTagsPropagationProperty = 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"

alarmTagsPropagationProperty := &AlarmTagsPropagationProperty{
	Enabled: jsii.Boolean(false),

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

Properties ​

enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #
Whether the alarm's tags are included in its action notifications and state-change events.
excludedTagKeysoptionalstring[]excluded_tag_keysoptionaltyping.List[str]excludedTagKeysoptionalList<String>ExcludedTagKeysoptionalstring[]ExcludedTagKeysoptional*[]*string #
The tag keys to leave out.

Cannot be specified together with IncludedTagKeys.

includedTagKeysoptionalstring[]included_tag_keysoptionaltyping.List[str]includedTagKeysoptionalList<String>IncludedTagKeysoptionalstring[]IncludedTagKeysoptional*[]*string #
The only tag keys to include.

Cannot be specified together with ExcludedTagKeys.