UNPKG

aws-ddk-core

Version:

The AWS DataOps Development Kit is an open source development framework for customers that build data workflows and modern data architecture on AWS.

39 lines (38 loc) 1.46 kB
import * as events from "aws-cdk-lib/aws-events"; import * as s3 from "aws-cdk-lib/aws-s3"; import { Construct } from "constructs"; import { EventStage, EventStageProps } from "../pipelines/stage"; /** * Properties for `S3EventStage`. */ export interface S3EventStageProps extends EventStageProps { /** * The list of events to capture, for example: ["Object Created"]. * * @link https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventBridge.html */ readonly eventNames: string[]; /** * S3 Bucket or list of buckets. * Amazon EventBridge notifications must be enabled on the bucket in order to use this construct. */ readonly bucket: s3.IBucket | s3.IBucket[]; /** * The S3 prefix or list of prefixes. Capture root level prefix ("/") by default. */ readonly keyPrefix?: string | string[]; } /** * Stage implements an S3 event pattern based on event names, a bucket name and optional key prefix. * Amazon EventBridge notifications must be enabled on the bucket in order to use this construct. */ export declare class S3EventStage extends EventStage { readonly eventPattern?: events.EventPattern; /** * Constructs `S3EventStage`. * @param scope Scope within which this construct is defined. * @param id Identifier of the stage. * @param props Properties for the stage. */ constructor(scope: Construct, id: string, props: S3EventStageProps); }