# DestinationPolicyProperty

An IAM policy that grants permissions to CloudWatch Logs to deliver logs cross-account to a specified destination in this account.

- Source: Generated at build time
- Type last changed: v2.196.0 · 16 May 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';

declare const deliveryDestinationPolicy: any;
const destinationPolicyProperty: logs.CfnDeliveryDestination.DestinationPolicyProperty = {
  deliveryDestinationName: 'deliveryDestinationName',
  deliveryDestinationPolicy: deliveryDestinationPolicy,
};
```

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_logs as logs

# delivery_destination_policy: Any

destination_policy_property = logs.CfnDeliveryDestination.DestinationPolicyProperty(
    delivery_destination_name="deliveryDestinationName",
    delivery_destination_policy=delivery_destination_policy
)
```

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

Object deliveryDestinationPolicy;

DestinationPolicyProperty destinationPolicyProperty = DestinationPolicyProperty.builder()
        .deliveryDestinationName("deliveryDestinationName")
        .deliveryDestinationPolicy(deliveryDestinationPolicy)
        .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 deliveryDestinationPolicy;

var destinationPolicyProperty = new DestinationPolicyProperty {
    DeliveryDestinationName = "deliveryDestinationName",
    DeliveryDestinationPolicy = deliveryDestinationPolicy
};
```

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"

var deliveryDestinationPolicy interface{}

destinationPolicyProperty := &DestinationPolicyProperty{
	DeliveryDestinationName: jsii.String("deliveryDestinationName"),
	DeliveryDestinationPolicy: deliveryDestinationPolicy,
}
```

## Properties

- `deliveryDestinationName`: string — A name for an existing destination.

- `deliveryDestinationPolicy`: any — Creates or updates an access policy associated with an existing destination.

  An access policy is an [IAM policy document](https://docs.aws.amazon.com/IAM/latest/UserGuide/policies_overview.html) that is used to authorize claims to register a subscription filter against a given destination.
