ProjectEvents

class aws_cdk.mixins_preview.aws_codebuild.events.ProjectEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for Project.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_codebuild import events as codebuild_events
from aws_cdk.interfaces import aws_codebuild as interfaces_codebuild

# project_ref: interfaces_codebuild.IProjectRef

project_events = codebuild_events.ProjectEvents.from_project(project_ref)

Methods

code_build_build_phase_change_pattern(*, additional_information=None, build_id=None, completed_phase=None, completed_phase_context=None, completed_phase_duration_seconds=None, completed_phase_end=None, completed_phase_start=None, completed_phase_status=None, event_metadata=None, project_name=None, version=None)

(experimental) EventBridge event pattern for Project CodeBuild Build Phase Change.

Parameters:
  • additional_information (Union[AdditionalInformation, Dict[str, Any], None]) – (experimental) additional-information property. Specify an array of string values to match this event if the actual value of additional-information is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • build_id (Optional[Sequence[str]]) – (experimental) build-id property. Specify an array of string values to match this event if the actual value of build-id is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • completed_phase (Optional[Sequence[str]]) – (experimental) completed-phase property. Specify an array of string values to match this event if the actual value of completed-phase is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • completed_phase_context (Optional[Sequence[str]]) – (experimental) completed-phase-context property. Specify an array of string values to match this event if the actual value of completed-phase-context is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • completed_phase_duration_seconds (Optional[Sequence[str]]) – (experimental) completed-phase-duration-seconds property. Specify an array of string values to match this event if the actual value of completed-phase-duration-seconds is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • completed_phase_end (Optional[Sequence[str]]) – (experimental) completed-phase-end property. Specify an array of string values to match this event if the actual value of completed-phase-end is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • completed_phase_start (Optional[Sequence[str]]) – (experimental) completed-phase-start property. Specify an array of string values to match this event if the actual value of completed-phase-start is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • completed_phase_status (Optional[Sequence[str]]) – (experimental) completed-phase-status property. Specify an array of string values to match this event if the actual value of completed-phase-status is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • project_name (Optional[Sequence[str]]) – (experimental) project-name property. Specify an array of string values to match this event if the actual value of project-name is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Filter with the Project reference

  • version (Optional[Sequence[str]]) – (experimental) version property. Specify an array of string values to match this event if the actual value of version is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

code_build_build_state_change_pattern(*, additional_information=None, build_id=None, build_status=None, current_phase=None, current_phase_context=None, event_metadata=None, project_name=None, version=None)

(experimental) EventBridge event pattern for Project CodeBuild Build State Change.

Parameters:
  • additional_information (Union[AdditionalInformation, Dict[str, Any], None]) – (experimental) additional-information property. Specify an array of string values to match this event if the actual value of additional-information is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • build_id (Optional[Sequence[str]]) – (experimental) build-id property. Specify an array of string values to match this event if the actual value of build-id is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • build_status (Optional[Sequence[str]]) – (experimental) build-status property. Specify an array of string values to match this event if the actual value of build-status is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • current_phase (Optional[Sequence[str]]) – (experimental) current-phase property. Specify an array of string values to match this event if the actual value of current-phase is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • current_phase_context (Optional[Sequence[str]]) – (experimental) current-phase-context property. Specify an array of string values to match this event if the actual value of current-phase-context is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • project_name (Optional[Sequence[str]]) – (experimental) project-name property. Specify an array of string values to match this event if the actual value of project-name is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Filter with the Project reference

  • version (Optional[Sequence[str]]) – (experimental) version property. Specify an array of string values to match this event if the actual value of version is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

Static Methods

classmethod from_project(project_ref)

(experimental) Create ProjectEvents from a Project reference.

Parameters:

project_ref (IProjectRef)

Stability:

experimental

Return type:

ProjectEvents