CodeBuildProjectProps

class aws_cdk.aws_events_targets.CodeBuildProjectProps(*, event=None, event_role=None)

Bases: object

Customize the CodeBuild Event Target.

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

  • event_role (Optional[IRole]) – The role to assume before invoking the target (i.e., the codebuild) when the given rule is triggered. Default: - a new role will be created

Attributes

event

The event to send to CodeBuild.

This will be the payload for the StartBuild API.

Default
  • the entire EventBridge event

Return type

Optional[RuleTargetInput]

event_role

The role to assume before invoking the target (i.e., the codebuild) when the given rule is triggered.

Default
  • a new role will be created

Return type

Optional[IRole]