# CrossAccountDestinationProps

Properties for a CrossAccountDestination.

Extends: CrossAccountDestinationProps
Used as props by: CrossAccountDestination

- Source: [`aws-logs/lib/cross-account-destination.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-logs/lib/cross-account-destination.ts#L15)
- Type last changed: v2.224.0 · 13 Nov 2025

## Example

```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';
import { aws_iam as interfaces_iam } from 'aws-cdk-lib/interfaces';

declare const roleRef: interfaces_iam.IRoleRef;
const crossAccountDestinationProps: logs.CrossAccountDestinationProps = {
  role: roleRef,
  targetArn: 'targetArn',

  // the properties below are optional
  destinationName: 'destinationName',
};
```

## Properties

- `destinationName`: string — The name of the log destination.

  **Default:** Automatically generated

- `role`: [IRoleRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_iam.IRoleRef.html) (required) — The role to assume that grants permissions to write to 'target'.

  The role must be assumable by 'logs.{REGION}.amazonaws.com'.

- `targetArn`: string (required) — The log destination target's ARN.
