Interface CfnNotificationRuleProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnNotificationRuleProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:29:55.919Z")
@Stability(Stable)
public interface CfnNotificationRuleProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnNotificationRule.
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.codestarnotifications.*;
CfnNotificationRuleProps cfnNotificationRuleProps = CfnNotificationRuleProps.builder()
.detailType("detailType")
.eventTypeIds(List.of("eventTypeIds"))
.name("name")
.resource("resource")
.targets(List.of(TargetProperty.builder()
.targetAddress("targetAddress")
.targetType("targetType")
.build()))
// the properties below are optional
.createdBy("createdBy")
.eventTypeId("eventTypeId")
.status("status")
.tags(Map.of(
"tagsKey", "tags"))
.targetAddress("targetAddress")
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnNotificationRulePropsstatic final classAn implementation forCfnNotificationRuleProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringAWS::CodeStarNotifications::NotificationRule.CreatedBy.The level of detail to include in the notifications for this resource.default StringAWS::CodeStarNotifications::NotificationRule.EventTypeId.A list of event types associated with this notification rule.getName()The name for the notification rule.The Amazon Resource Name (ARN) of the resource to associate with the notification rule.default StringThe status of the notification rule.getTags()A list of tags to apply to this notification rule.default StringAWS::CodeStarNotifications::NotificationRule.TargetAddress.A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and AWS Chatbot clients to associate with the notification rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDetailType
The level of detail to include in the notifications for this resource.BASICwill include only the contents of the event as it would appear in Amazon CloudWatch.FULLwill include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created. -
getEventTypeIds
A list of event types associated with this notification rule.For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide .
-
getName
The name for the notification rule.Notification rule names must be unique in your AWS account .
-
getResource
The Amazon Resource Name (ARN) of the resource to associate with the notification rule.Supported resources include pipelines in AWS CodePipeline , repositories in AWS CodeCommit , and build projects in AWS CodeBuild .
-
getTargets
A list of Amazon Resource Names (ARNs) of Amazon Simple Notification Service topics and AWS Chatbot clients to associate with the notification rule. -
getCreatedBy
AWS::CodeStarNotifications::NotificationRule.CreatedBy. -
getEventTypeId
AWS::CodeStarNotifications::NotificationRule.EventTypeId. -
getStatus
The status of the notification rule.The default value is
ENABLED. If the status is set toDISABLED, notifications aren't sent for the notification rule. -
getTags
A list of tags to apply to this notification rule.Key names cannot start with "
aws". -
getTargetAddress
AWS::CodeStarNotifications::NotificationRule.TargetAddress. -
builder
- Returns:
- a
CfnNotificationRuleProps.BuilderofCfnNotificationRuleProps
-