# CfnDestinationProps

Properties for defining a `CfnDestination`.

Used as props by: [CfnDestination](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.CfnDestination.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const cfnDestinationProps: logs.CfnDestinationProps = {
  destinationName: 'destinationName',
  roleArn: 'roleArn',
  targetArn: 'targetArn',

  // the properties below are optional
  destinationPolicy: 'destinationPolicy',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs

cfn_destination_props = logs.CfnDestinationProps(
    destination_name="destinationName",
    role_arn="roleArn",
    target_arn="targetArn",

    # the properties below are optional
    destination_policy="destinationPolicy",
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.logs.*;

CfnDestinationProps cfnDestinationProps = CfnDestinationProps.builder()
        .destinationName("destinationName")
        .roleArn("roleArn")
        .targetArn("targetArn")

        // the properties below are optional
        .destinationPolicy("destinationPolicy")
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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.Logs;

var cfnDestinationProps = new CfnDestinationProps {
    DestinationName = "destinationName",
    RoleArn = "roleArn",
    TargetArn = "targetArn",

    // the properties below are optional
    DestinationPolicy = "destinationPolicy",
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnDestinationProps := &CfnDestinationProps{
	DestinationName: jsii.String("destinationName"),
	RoleArn: jsii.String("roleArn"),
	TargetArn: jsii.String("targetArn"),

	// the properties below are optional
	DestinationPolicy: jsii.String("destinationPolicy"),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `destinationName`: string (required) — The name of the destination.

- `destinationPolicy`: string — An IAM policy document that governs which AWS accounts can create subscription filters against this destination.

- `roleArn`: string | [IRoleRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_iam.IRoleRef.html) (required) — The ARN of an IAM role that permits CloudWatch Logs to send data to the specified AWS resource.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags that have been assigned to this delivery destination.

- `targetArn`: string | [IStreamRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_kinesis.IStreamRef.html) | [IDeliveryStreamRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_kinesisfirehose.IDeliveryStreamRef.html) | [IFunctionRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_lambda.IFunctionRef.html) (required) — The Amazon Resource Name (ARN) of the physical target where the log events are delivered (for example, a Kinesis stream).
