Class CfnEventRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.notifications.CfnEventRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventRuleMixinProps>
- Enclosing interface:
CfnEventRuleMixinProps
@Stability(Stable)
public static final class CfnEventRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventRuleMixinProps>
A builder for
CfnEventRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.eventPattern(String eventPattern) Sets the value ofCfnEventRuleMixinProps.getEventPattern()Sets the value ofCfnEventRuleMixinProps.getEventType()notificationConfigurationArn(String notificationConfigurationArn) Sets the value ofCfnEventRuleMixinProps.getNotificationConfigurationArn()Sets the value ofCfnEventRuleMixinProps.getRegions()Sets the value ofCfnEventRuleMixinProps.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventPattern
Sets the value ofCfnEventRuleMixinProps.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
-
eventType
Sets the value ofCfnEventRuleMixinProps.getEventType()- Parameters:
eventType- The event type this rule should match with the EventBridge events. 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 CfnEventRuleMixinProps.Builder notificationConfigurationArn(String notificationConfigurationArn) Sets the value ofCfnEventRuleMixinProps.getNotificationConfigurationArn()- Parameters:
notificationConfigurationArn- The ARN for theNotificationConfigurationassociated with thisEventRule.- Returns:
this
-
regions
Sets the value ofCfnEventRuleMixinProps.getRegions()- Parameters:
regions- A list of AWS Regions that send events to thisEventRule.- Returns:
this
-
source
Sets the value ofCfnEventRuleMixinProps.getSource()- Parameters:
source- The event source this rule should match with the EventBridge event sources. 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
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventRuleMixinProps>- Returns:
- a new instance of
CfnEventRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-