UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

26 lines (25 loc) 908 B
import { TargetBaseProps } from './util'; import * as codepipeline from '../../aws-codepipeline'; import * as events from '../../aws-events'; import * as iam from '../../aws-iam'; /** * Customization options when creating a `CodePipeline` event target. */ export interface CodePipelineTargetOptions extends TargetBaseProps { /** * The role to assume before invoking the target * (i.e., the pipeline) when the given rule is triggered. * * @default - a new role will be created */ readonly eventRole?: iam.IRole; } /** * Allows the pipeline to be used as an EventBridge rule target. */ export declare class CodePipeline implements events.IRuleTarget { private readonly pipeline; private readonly options; constructor(pipeline: codepipeline.IPipeline, options?: CodePipelineTargetOptions); bind(_rule: events.IRule, _id?: string): events.RuleTargetConfig; }