"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CodePipeline=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),iam=require("../../aws-iam"),util_1=require("./util");class CodePipeline{constructor(pipeline,options={}){this.pipeline=pipeline,this.options=options,jsiiDeprecationWarnings.aws_cdk_lib_aws_codepipeline_IPipeline(pipeline),jsiiDeprecationWarnings.aws_cdk_lib_aws_events_targets_CodePipelineTargetOptions(options)}bind(_rule,_id){return jsiiDeprecationWarnings.aws_cdk_lib_aws_events_IRule(_rule),{...util_1.bindBaseTargetConfig(this.options),id:"",arn:this.pipeline.pipelineArn,role:this.options.eventRole||util_1.singletonEventRole(this.pipeline,[new iam.PolicyStatement({resources:[this.pipeline.pipelineArn],actions:["codepipeline:StartPipelineExecution"]})]),targetResource:this.pipeline}}}exports.CodePipeline=CodePipeline,_a=JSII_RTTI_SYMBOL_1,CodePipeline[_a]={fqn:"aws-cdk-lib.aws_events_targets.CodePipeline",version:"2.13.0"};
//# sourceMappingURL=codepipeline.js.map
