CodeCommitPullRequestStateChange

class aws_cdk.mixins_preview.aws_codecommit.events.CodeCommitPullRequestStateChange

Bases: object

(experimental) EventBridge event pattern for aws.codecommit@CodeCommitPullRequestStateChange.

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

code_commit_pull_request_state_change = codecommit_events.CodeCommitPullRequestStateChange()
Stability:

experimental

Static Methods

classmethod code_commit_pull_request_state_change_pattern(*, approval_status=None, author=None, caller_user_arn=None, creation_date=None, description=None, destination_commit=None, destination_reference=None, event=None, event_metadata=None, is_merged=None, last_modified_date=None, merge_option=None, notification_body=None, override_status=None, pull_request_id=None, pull_request_status=None, repository_names=None, revision_id=None, source_commit=None, source_reference=None, title=None)

(experimental) EventBridge event pattern for CodeCommit Pull Request State Change.

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

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

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

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

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

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

  • 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

  • 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

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

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

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

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

CodeCommitPullRequestStateChangeProps

class CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps(*, approval_status=None, author=None, caller_user_arn=None, creation_date=None, description=None, destination_commit=None, destination_reference=None, event=None, event_metadata=None, is_merged=None, last_modified_date=None, merge_option=None, notification_body=None, override_status=None, pull_request_id=None, pull_request_status=None, repository_names=None, revision_id=None, source_commit=None, source_reference=None, title=None)

Bases: object

(experimental) Props type for aws.codecommit@CodeCommitPullRequestStateChange event.

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

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

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

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

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

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

  • 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

  • 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

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

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

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

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

ExampleMetadata:

fixture=_generated

Example:

from aws_cdk import AWSEventMetadataProps
# 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

code_commit_pull_request_state_change_props = codecommit_events.CodeCommitPullRequestStateChange.CodeCommitPullRequestStateChangeProps(
    approval_status=["approvalStatus"],
    author=["author"],
    caller_user_arn=["callerUserArn"],
    creation_date=["creationDate"],
    description=["description"],
    destination_commit=["destinationCommit"],
    destination_reference=["destinationReference"],
    event=["event"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    is_merged=["isMerged"],
    last_modified_date=["lastModifiedDate"],
    merge_option=["mergeOption"],
    notification_body=["notificationBody"],
    override_status=["overrideStatus"],
    pull_request_id=["pullRequestId"],
    pull_request_status=["pullRequestStatus"],
    repository_names=["repositoryNames"],
    revision_id=["revisionId"],
    source_commit=["sourceCommit"],
    source_reference=["sourceReference"],
    title=["title"]
)

Attributes

approval_status

(experimental) approvalStatus property.

Specify an array of string values to match this event if the actual value of approvalStatus 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

author

(experimental) author property.

Specify an array of string values to match this event if the actual value of author 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

caller_user_arn

(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

Stability:

experimental

creation_date

(experimental) creationDate property.

Specify an array of string values to match this event if the actual value of creationDate 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

description

(experimental) description property.

Specify an array of string values to match this event if the actual value of description 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

destination_commit

(experimental) destinationCommit property.

Specify an array of string values to match this event if the actual value of destinationCommit 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

destination_reference

(experimental) destinationReference property.

Specify an array of string values to match this event if the actual value of destinationReference 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

event

(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

Stability:

experimental

event_metadata

(experimental) EventBridge event metadata.

Default:

Stability:

experimental

is_merged

(experimental) isMerged property.

Specify an array of string values to match this event if the actual value of isMerged 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

last_modified_date

(experimental) lastModifiedDate property.

Specify an array of string values to match this event if the actual value of lastModifiedDate 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

merge_option

(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

Stability:

experimental

notification_body

(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

Stability:

experimental

override_status

(experimental) overrideStatus property.

Specify an array of string values to match this event if the actual value of overrideStatus 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

pull_request_id

(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

Stability:

experimental

pull_request_status

(experimental) pullRequestStatus property.

Specify an array of string values to match this event if the actual value of pullRequestStatus 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

repository_names

(experimental) repositoryNames property.

Specify an array of string values to match this event if the actual value of repositoryNames 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

revision_id

(experimental) revisionId property.

Specify an array of string values to match this event if the actual value of revisionId 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

source_commit

(experimental) sourceCommit property.

Specify an array of string values to match this event if the actual value of sourceCommit 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

source_reference

(experimental) sourceReference property.

Specify an array of string values to match this event if the actual value of sourceReference 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

title

(experimental) title property.

Specify an array of string values to match this event if the actual value of title 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