CodePipeline

class aws_cdk.aws_events_targets.CodePipeline(pipeline, *, event_role=None)

Bases: object

Allows the pipeline to be used as an EventBridge rule target.

Parameters
  • pipeline (IPipeline) –

  • event_role (Optional[IRole]) – 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

Methods

bind(_rule, _id=None)

Returns the rule target specification.

NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

Parameters
  • _rule (IRule) –

  • _id (Optional[str]) –

Return type

RuleTargetConfig