UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

29 lines (28 loc) 1.2 kB
import type { ScheduleTargetBaseProps } from './target'; import { ScheduleTargetBase } from './target'; import type { IRole } from '../../aws-iam'; import type * as kinesis from '../../aws-kinesis'; import type { ISchedule, IScheduleTarget, ScheduleTargetConfig } from '../../aws-scheduler'; /** * Properties for a Kinesis Data Streams Target */ export interface KinesisStreamPutRecordProps extends ScheduleTargetBaseProps { /** * The shard to which EventBridge Scheduler sends the event. * * The length must be between 1 and 256. * * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-scheduler-schedule-kinesisparameters.html */ readonly partitionKey: string; } /** * Use an Amazon Kinesis Data Streams as a target for AWS EventBridge Scheduler. */ export declare class KinesisStreamPutRecord extends ScheduleTargetBase implements IScheduleTarget { private readonly stream; private readonly props; constructor(stream: kinesis.IStream, props: KinesisStreamPutRecordProps); protected addTargetActionToRole(role: IRole): void; protected bindBaseTargetConfig(_schedule: ISchedule): ScheduleTargetConfig; }