CodeBuildProject

class aws_cdk.aws_events_targets.CodeBuildProject(project, *, event=None)

Bases: object

Start a CodeBuild build when an Amazon EventBridge rule is triggered.

Parameters
  • project (IProject) –

  • event (Optional[RuleTargetInput]) – The event to send to CodeBuild. This will be the payload for the StartBuild API. Default: - the entire EventBridge event

Methods

bind(_rule, _id=None)

Allows using build projects as event rule targets.

Parameters
  • _rule (IRule) –

  • _id (Optional[str]) –

Return type

RuleTargetConfig