CodeBuildProject

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

Bases: object

Start a CodeBuild build when an AWS CloudWatch events rule is triggered.

__init__(project, *, event=None)
Parameters
  • project (IProject) –

  • props

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

Return type

None

Methods

bind(_rule, _id=None)

Allows using build projects as event rule targets.

Parameters
  • _rule (IRule) –

  • _id (Optional[str]) –

Return type

RuleTargetConfig