UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

31 lines (30 loc) 1.06 kB
import type { Construct } from 'constructs'; import * as iam from '../../aws-iam'; import type * as kinesis from '../../aws-kinesis'; import type * as logs from '../../aws-logs'; import type { ILogGroupRef } from '../../interfaces/generated/aws-logs-interfaces.generated'; /** * Customize the Kinesis Logs Destination */ export interface KinesisDestinationProps { /** * The role to assume to write log events to the destination * * @default - A new Role is created */ readonly role?: iam.IRole; } /** * Use a Kinesis stream as the destination for a log subscription */ export declare class KinesisDestination implements logs.ILogSubscriptionDestination { private readonly stream; private readonly props; /** * @param stream The Kinesis stream to use as destination * @param props The Kinesis Destination properties * */ constructor(stream: kinesis.IStream, props?: KinesisDestinationProps); bind(scope: Construct, _sourceLogGroup: ILogGroupRef): logs.LogSubscriptionDestinationConfig; }