Class CfnEventRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.notifications.CfnEventRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventRuleProps>
- Enclosing interface:
CfnEventRuleProps
@Stability(Stable)
public static final class CfnEventRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventRuleProps>
A builder for
CfnEventRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventPattern(String eventPattern) Sets the value ofCfnEventRuleProps.getEventPattern()Sets the value ofCfnEventRuleProps.getEventType()notificationConfigurationArn(String notificationConfigurationArn) Sets the value ofCfnEventRuleProps.getNotificationConfigurationArn()Sets the value ofCfnEventRuleProps.getRegions()Sets the value ofCfnEventRuleProps.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventType
Sets the value ofCfnEventRuleProps.getEventType()- Parameters:
eventType- The event type this rule should match with the EventBridge events. This parameter is required. It must match with atleast one of the valid EventBridge event types. For example, Amazon EC2 Instance State change Notification and Amazon CloudWatch State Change. For more information, see Event delivery from AWS services in the Amazon EventBridge User Guide .- Returns:
this
-
notificationConfigurationArn
@Stability(Stable) public CfnEventRuleProps.Builder notificationConfigurationArn(String notificationConfigurationArn) Sets the value ofCfnEventRuleProps.getNotificationConfigurationArn()- Parameters:
notificationConfigurationArn- The ARN for theNotificationConfigurationassociated with thisEventRule. This parameter is required.- Returns:
this
-
regions
Sets the value ofCfnEventRuleProps.getRegions()- Parameters:
regions- A list of AWS Regions that send events to thisEventRule. This parameter is required.- Returns:
this
-
source
Sets the value ofCfnEventRuleProps.getSource()- Parameters:
source- The event source this rule should match with the EventBridge event sources. This parameter is required. It must match with atleast one of the valid EventBridge event sources. Only AWS service sourced events are supported. For example,aws.ec2andaws.cloudwatch. For more information, see Event delivery from AWS services in the Amazon EventBridge User Guide .- Returns:
this
-
eventPattern
Sets the value ofCfnEventRuleProps.getEventPattern()- Parameters:
eventPattern- An additional event pattern used to further filter the events thisEventRulereceives. For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventRuleProps>- Returns:
- a new instance of
CfnEventRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-