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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldbuild_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldcompleted_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldcompleted_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldcompleted_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldcompleted_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldcompleted_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldcompleted_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldevent_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 theaws_events.Matchfor more advanced matching options. Default: - Filter with the Project referenceversion (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
- 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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldbuild_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldbuild_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldcurrent_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldcurrent_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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this fieldevent_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 theaws_events.Matchfor more advanced matching options. Default: - Filter with the Project referenceversion (
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 theaws_events.Matchfor more advanced matching options. Default: - Do not filter on this field
- Stability:
experimental
- Return type:
Static Methods
- classmethod from_project(project_ref)
(experimental) Create ProjectEvents from a Project reference.
- Parameters:
project_ref (
IProjectRef)- Stability:
experimental
- Return type: