UNPKG

923 BTypeScriptView Raw
1import * as codepipeline from '@aws-cdk/aws-codepipeline';
2import * as events from '@aws-cdk/aws-events';
3import * as iam from '@aws-cdk/aws-iam';
4import { TargetBaseProps } from './util';
5/**
6 * Customization options when creating a {@link CodePipeline} event target.
7 */
8export interface CodePipelineTargetOptions extends TargetBaseProps {
9 /**
10 * The role to assume before invoking the target
11 * (i.e., the pipeline) when the given rule is triggered.
12 *
13 * @default - a new role will be created
14 */
15 readonly eventRole?: iam.IRole;
16}
17/**
18 * Allows the pipeline to be used as an EventBridge rule target.
19 */
20export declare class CodePipeline implements events.IRuleTarget {
21 private readonly pipeline;
22 private readonly options;
23 constructor(pipeline: codepipeline.IPipeline, options?: CodePipelineTargetOptions);
24 bind(_rule: events.IRule, _id?: string): events.RuleTargetConfig;
25}