RepositoryEvents

class aws_cdk.mixins_preview.aws_codecommit.events.RepositoryEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for Repository.

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_codecommit import events as codecommit_events
from aws_cdk.interfaces import aws_codecommit as interfaces_codecommit

# repository_ref: interfaces_codecommit.IRepositoryRef

repository_events = codecommit_events.RepositoryEvents.from_repository(repository_ref)

Methods

code_commit_comment_on_commit_pattern(*, after_commit_id=None, before_commit_id=None, caller_user_arn=None, comment_id=None, event=None, event_metadata=None, in_reply_to=None, notification_body=None, repository_id=None, repository_name=None)

(experimental) EventBridge event pattern for Repository CodeCommit Comment on Commit.

Parameters:
  • after_commit_id (Optional[Sequence[str]]) – (experimental) afterCommitId property. Specify an array of string values to match this event if the actual value of afterCommitId 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

  • before_commit_id (Optional[Sequence[str]]) – (experimental) beforeCommitId property. Specify an array of string values to match this event if the actual value of beforeCommitId 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

  • caller_user_arn (Optional[Sequence[str]]) – (experimental) callerUserArn property. Specify an array of string values to match this event if the actual value of callerUserArn 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

  • comment_id (Optional[Sequence[str]]) – (experimental) commentId property. Specify an array of string values to match this event if the actual value of commentId 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 (Optional[Sequence[str]]) – (experimental) event property. Specify an array of string values to match this event if the actual value of event 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: - -

  • in_reply_to (Optional[Sequence[str]]) – (experimental) inReplyTo property. Specify an array of string values to match this event if the actual value of inReplyTo 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

  • notification_body (Optional[Sequence[str]]) – (experimental) notificationBody property. Specify an array of string values to match this event if the actual value of notificationBody 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

  • repository_id (Optional[Sequence[str]]) – (experimental) repositoryId property. Specify an array of string values to match this event if the actual value of repositoryId 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 Repository reference

  • repository_name (Optional[Sequence[str]]) – (experimental) repositoryName property. Specify an array of string values to match this event if the actual value of repositoryName 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_commit_comment_on_pull_request_pattern(*, after_commit_id=None, before_commit_id=None, caller_user_arn=None, comment_id=None, event=None, event_metadata=None, in_reply_to=None, notification_body=None, pull_request_id=None, repository_id=None, repository_name=None)

(experimental) EventBridge event pattern for Repository CodeCommit Comment on Pull Request.

Parameters:
  • after_commit_id (Optional[Sequence[str]]) – (experimental) afterCommitId property. Specify an array of string values to match this event if the actual value of afterCommitId 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

  • before_commit_id (Optional[Sequence[str]]) – (experimental) beforeCommitId property. Specify an array of string values to match this event if the actual value of beforeCommitId 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

  • caller_user_arn (Optional[Sequence[str]]) – (experimental) callerUserArn property. Specify an array of string values to match this event if the actual value of callerUserArn 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

  • comment_id (Optional[Sequence[str]]) – (experimental) commentId property. Specify an array of string values to match this event if the actual value of commentId 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 (Optional[Sequence[str]]) – (experimental) event property. Specify an array of string values to match this event if the actual value of event 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: - -

  • in_reply_to (Optional[Sequence[str]]) – (experimental) inReplyTo property. Specify an array of string values to match this event if the actual value of inReplyTo 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

  • notification_body (Optional[Sequence[str]]) – (experimental) notificationBody property. Specify an array of string values to match this event if the actual value of notificationBody 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

  • pull_request_id (Optional[Sequence[str]]) – (experimental) pullRequestId property. Specify an array of string values to match this event if the actual value of pullRequestId 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

  • repository_id (Optional[Sequence[str]]) – (experimental) repositoryId property. Specify an array of string values to match this event if the actual value of repositoryId 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 Repository reference

  • repository_name (Optional[Sequence[str]]) – (experimental) repositoryName property. Specify an array of string values to match this event if the actual value of repositoryName 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_commit_repository_state_change_pattern(*, base_commit_id=None, caller_user_arn=None, commit_id=None, conflict_detail_level=None, conflict_details_level=None, conflict_resolution_strategy=None, destination_commit_id=None, event=None, event_metadata=None, merge_option=None, old_commit_id=None, reference_full_name=None, reference_name=None, reference_type=None, repository_id=None, repository_name=None, source_commit_id=None)

(experimental) EventBridge event pattern for Repository CodeCommit Repository State Change.

Parameters:
  • base_commit_id (Optional[Sequence[str]]) – (experimental) baseCommitId property. Specify an array of string values to match this event if the actual value of baseCommitId 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

  • caller_user_arn (Optional[Sequence[str]]) – (experimental) callerUserArn property. Specify an array of string values to match this event if the actual value of callerUserArn 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

  • commit_id (Optional[Sequence[str]]) – (experimental) commitId property. Specify an array of string values to match this event if the actual value of commitId 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

  • conflict_detail_level (Optional[Sequence[str]]) – (experimental) conflictDetailLevel property. Specify an array of string values to match this event if the actual value of conflictDetailLevel 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

  • conflict_details_level (Optional[Sequence[str]]) – (experimental) conflictDetailsLevel property. Specify an array of string values to match this event if the actual value of conflictDetailsLevel 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

  • conflict_resolution_strategy (Optional[Sequence[str]]) – (experimental) conflictResolutionStrategy property. Specify an array of string values to match this event if the actual value of conflictResolutionStrategy 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

  • destination_commit_id (Optional[Sequence[str]]) – (experimental) destinationCommitId property. Specify an array of string values to match this event if the actual value of destinationCommitId 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 (Optional[Sequence[str]]) – (experimental) event property. Specify an array of string values to match this event if the actual value of event 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: - -

  • merge_option (Optional[Sequence[str]]) – (experimental) mergeOption property. Specify an array of string values to match this event if the actual value of mergeOption 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

  • old_commit_id (Optional[Sequence[str]]) – (experimental) oldCommitId property. Specify an array of string values to match this event if the actual value of oldCommitId 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

  • reference_full_name (Optional[Sequence[str]]) – (experimental) referenceFullName property. Specify an array of string values to match this event if the actual value of referenceFullName 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

  • reference_name (Optional[Sequence[str]]) – (experimental) referenceName property. Specify an array of string values to match this event if the actual value of referenceName 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

  • reference_type (Optional[Sequence[str]]) – (experimental) referenceType property. Specify an array of string values to match this event if the actual value of referenceType 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

  • repository_id (Optional[Sequence[str]]) – (experimental) repositoryId property. Specify an array of string values to match this event if the actual value of repositoryId 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 Repository reference

  • repository_name (Optional[Sequence[str]]) – (experimental) repositoryName property. Specify an array of string values to match this event if the actual value of repositoryName 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

  • source_commit_id (Optional[Sequence[str]]) – (experimental) sourceCommitId property. Specify an array of string values to match this event if the actual value of sourceCommitId 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_repository(repository_ref)

(experimental) Create RepositoryEvents from a Repository reference.

Parameters:

repository_ref (IRepositoryRef)

Stability:

experimental

Return type:

RepositoryEvents