Interface RepositoryNotifyOnOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,NotificationRuleOptions
- All Known Implementing Classes:
RepositoryNotifyOnOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:33.581Z")
@Stability(Stable)
public interface RepositoryNotifyOnOptions
extends software.amazon.jsii.JsiiSerializable, NotificationRuleOptions
Additional options to pass to the notification rule.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.codecommit.*;
import software.amazon.awscdk.services.codestarnotifications.*;
RepositoryNotifyOnOptions repositoryNotifyOnOptions = RepositoryNotifyOnOptions.builder()
.events(List.of(RepositoryNotificationEvents.COMMIT_COMMENT))
// the properties below are optional
.createdBy("createdBy")
.detailType(DetailType.BASIC)
.enabled(false)
.notificationRuleName("notificationRuleName")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRepositoryNotifyOnOptionsstatic final classAn implementation forRepositoryNotifyOnOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()A list of event types associated with this notification rule for CodeCommit repositories.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.codestarnotifications.NotificationRuleOptions
getCreatedBy, getDetailType, getEnabled, getNotificationRuleName
-
Method Details
-
getEvents
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 Also:
-
builder
- Returns:
- a
RepositoryNotifyOnOptions.BuilderofRepositoryNotifyOnOptions
-