# AlarmTagsPropagationProperty

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.

- Source: Generated at build time
- Type last changed: v2.275.0 · 26 Oct 2026

## Example

TypeScript:

```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.CfnLogAlarm.AlarmTagsPropagationProperty = {
  enabled: false,

  // the properties below are optional
  excludedTagKeys: ['excludedTagKeys'],
  includedTagKeys: ['includedTagKeys'],
};
```

Python:

```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.CfnLogAlarm.AlarmTagsPropagationProperty(
    enabled=False,

    # the properties below are optional
    excluded_tag_keys=["excludedTagKeys"],
    included_tag_keys=["includedTagKeys"]
)
```

Java:

```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();
```

C# / .NET:

```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" }
};
```

Golang:

```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

- `enabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) (required) — Whether the alarm's tags are included in its action notifications and state-change events.

- `excludedTagKeys`: string[] — The tag keys to leave out.

  Cannot be specified together with IncludedTagKeys.

- `includedTagKeys`: string[] — The only tag keys to include.

  Cannot be specified together with ExcludedTagKeys.
