CodePipeline

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

Bases: object

Allows the pipeline to be used as a CloudWatch event rule target.

__init__(pipeline, *, event_role=None)
Parameters
  • pipeline (IPipeline) –

  • options

  • 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

Return type

None

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