# TargetProperty

Where the notification is sent.

- Source: Generated code
- Type last changed: v2.277.0 · 13 Nov 2026

## 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 targetProperty: cloudwatch.CfnAlert.TargetProperty = {
  arn: 'arn',
  type: 'type',

  // the properties below are optional
  metadata: {
    metadataKey: 'metadata',
  },
};
```

## Properties

- `arn`: string (required) — The ARN of the target.

  For sns, the ARN of the Amazon SNS topic. For slack and pagerduty, the ARN of a CloudWatch Omni integration.

- `metadata`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — Settings specific to the target, as key-value pairs (up to 20).

  The keys depend on the integration type. Not used for sns targets.

- `type`: string (required) — The target type.

  Valid values: sns, slack, pagerduty.
