aws-cdk-lib.aws_logs.CrossAccountDestinationProps

interface CrossAccountDestinationProps

LanguageType name
.NETAmazon.CDK.AWS.Logs.CrossAccountDestinationProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awslogs#CrossAccountDestinationProps
Javasoftware.amazon.awscdk.services.logs.CrossAccountDestinationProps
Pythonaws_cdk.aws_logs.CrossAccountDestinationProps
TypeScript (source)aws-cdk-lib » aws_logs » CrossAccountDestinationProps

Properties for a CrossAccountDestination.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_iam as iam } from 'aws-cdk-lib';
import { aws_logs as logs } from 'aws-cdk-lib';

declare const role: iam.Role;
const crossAccountDestinationProps: logs.CrossAccountDestinationProps = {
  role: role,
  targetArn: 'targetArn',

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

Properties

NameTypeDescription
roleIRoleThe role to assume that grants permissions to write to 'target'.
targetArnstringThe log destination target's ARN.
destinationName?stringThe name of the log destination.

role

Type: IRole

The role to assume that grants permissions to write to 'target'.

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


targetArn

Type: string

The log destination target's ARN.


destinationName?

Type: string (optional, default: Automatically generated)

The name of the log destination.