aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
26 lines (25 loc) • 957 B
TypeScript
import type { TargetBaseProps } from './util';
import type * as events from '../../aws-events';
import * as iam from '../../aws-iam';
import type { IPipelineRef } from '../../interfaces/generated/aws-codepipeline-interfaces.generated';
/**
* 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: IPipelineRef, options?: CodePipelineTargetOptions);
bind(_rule: events.IRuleRef, _id?: string): events.RuleTargetConfig;
}