RepositoryNotifyOnOptions

class aws_cdk.aws_codecommit.RepositoryNotifyOnOptions(*, created_by=None, detail_type=None, enabled=None, notification_rule_name=None, events)

Bases: NotificationRuleOptions

Additional options to pass to the notification rule.

Parameters:
  • created_by (Optional[str]) – The name or email alias of the person who created the notification rule. If not specified, it means that the creator’s alias is not provided. Default: - No alias provided

  • detail_type (Optional[DetailType]) – The level of detail to include in the notifications for this resource. BASIC will include only the contents of the event as it would appear in AWS CloudWatch. FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created. Default: DetailType.FULL

  • enabled (Optional[bool]) – The status of the notification rule. If the enabled is set to DISABLED, notifications aren’t sent for the notification rule. Default: true

  • notification_rule_name (Optional[str]) – The name for the notification rule. Notification rule names must be unique in your AWS account. Default: - generated from the id

  • events (Sequence[RepositoryNotificationEvents]) – A list of event types associated with this notification rule for CodeCommit repositories. For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.

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 import aws_codecommit as codecommit
from aws_cdk import aws_codestarnotifications as codestarnotifications

repository_notify_on_options = codecommit.RepositoryNotifyOnOptions(
    events=[codecommit.RepositoryNotificationEvents.COMMIT_COMMENT],

    # the properties below are optional
    created_by="createdBy",
    detail_type=codestarnotifications.DetailType.BASIC,
    enabled=False,
    notification_rule_name="notificationRuleName"
)

Attributes

created_by

The name or email alias of the person who created the notification rule.

If not specified, it means that the creator’s alias is not provided.

Default:
  • No alias provided

detail_type

The level of detail to include in the notifications for this resource.

BASIC will include only the contents of the event as it would appear in AWS CloudWatch. FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.

Default:

DetailType.FULL

enabled

The status of the notification rule.

If the enabled is set to DISABLED, notifications aren’t sent for the notification rule.

Default:

true

events

A list of event types associated with this notification rule for CodeCommit repositories.

For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.

See:

https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api

notification_rule_name

The name for the notification rule.

Notification rule names must be unique in your AWS account.

Default:
  • generated from the id