aws-cdk-lib.aws_logs.LogSubscriptionDestinationConfig

interface LogSubscriptionDestinationConfig

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

Obtainable from CrossAccountDestination.bind(), KinesisDestination.bind(), LambdaDestination.bind()

Properties returned by a Subscription destination.

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 logSubscriptionDestinationConfig: logs.LogSubscriptionDestinationConfig = {
  arn: 'arn',

  // the properties below are optional
  role: role,
};

Properties

NameTypeDescription
arnstringThe ARN of the subscription's destination.
role?IRoleThe role to assume to write log events to the destination.

arn

Type: string

The ARN of the subscription's destination.


role?

Type: IRole (optional, default: No role assumed)

The role to assume to write log events to the destination.