Class CfnNotificationRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNotificationRule>
- Enclosing class:
CfnNotificationRule
CfnNotificationRule
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnNotificationRule.Builder
The name or email alias of the person who created the notification rule.detailType
(String detailType) The level of detail to include in the notifications for this resource.eventTypeId
(String eventTypeId) The event type associated with this notification rule.eventTypeIds
(List<String> eventTypeIds) A list of event types associated with this notification rule.The name for the notification rule.The Amazon Resource Name (ARN) of the resource to associate with the notification rule.The status of the notification rule.A list of tags to apply to this notification rule.targetAddress
(String targetAddress) The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule.targets
(IResolvable targets) A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule.
-
Method Details
-
create
@Stability(Stable) public static CfnNotificationRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnNotificationRule.Builder
.
-
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 Amazon 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.- Parameters:
detailType
- The level of detail to include in the notifications for this resource. This parameter is required.- Returns:
this
- See Also:
-
eventTypeIds
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 .
- Parameters:
eventTypeIds
- A list of event types associated with this notification rule. This parameter is required.- Returns:
this
- See Also:
-
name
The name for the notification rule.Notification rule names must be unique in your AWS account .
- Parameters:
name
- The name for the notification rule. This parameter is required.- Returns:
this
- See Also:
-
resource
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 .
- Parameters:
resource
- The Amazon Resource Name (ARN) of the resource to associate with the notification rule. This parameter is required.- Returns:
this
- See Also:
-
targets
A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule.- Parameters:
targets
- A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule. This parameter is required.- Returns:
this
- See Also:
-
targets
A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule.- Parameters:
targets
- A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule. This parameter is required.- Returns:
this
- See Also:
-
createdBy
The name or email alias of the person who created the notification rule.- Parameters:
createdBy
- The name or email alias of the person who created the notification rule. This parameter is required.- Returns:
this
- See Also:
-
eventTypeId
The event type associated with this notification rule.For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide .
- Parameters:
eventTypeId
- The event type associated with this notification rule. This parameter is required.- Returns:
this
- See Also:
-
status
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.- Parameters:
status
- The status of the notification rule. This parameter is required.- Returns:
this
- See Also:
-
tags
A list of tags to apply to this notification rule.Key names cannot start with "
aws
".- Parameters:
tags
- A list of tags to apply to this notification rule. This parameter is required.- Returns:
this
- See Also:
-
targetAddress
The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.- Parameters:
targetAddress
- The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNotificationRule>
- Returns:
- a newly built instance of
CfnNotificationRule
.
-