Class CfnEventRulePropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.notifications.CfnEventRulePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEventRulePropsMixin>
- Enclosing class:
CfnEventRulePropsMixin
@Stability(Stable)
public static final class CfnEventRulePropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEventRulePropsMixin>
A fluent builder for
CfnEventRulePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()create()create(CfnPropertyMixinOptions options) eventPattern(String eventPattern) An additional event pattern used to further filter the events thisEventRulereceives.The event type this rule should match with the EventBridge events.notificationConfigurationArn(String notificationConfigurationArn) The ARN for theNotificationConfigurationassociated with thisEventRule.A list of AWS Regions that send events to thisEventRule.The event source this rule should match with the EventBridge event sources.
-
Method Details
-
create
@Stability(Stable) public static CfnEventRulePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnEventRulePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnEventRulePropsMixin.Builder.
-
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.
- Parameters:
eventPattern- An additional event pattern used to further filter the events thisEventRulereceives. This parameter is required.- Returns:
this- See Also:
-
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 .
- Parameters:
eventType- The event type this rule should match with the EventBridge events. This parameter is required.- Returns:
this- See Also:
-
notificationConfigurationArn
@Stability(Stable) public CfnEventRulePropsMixin.Builder notificationConfigurationArn(String notificationConfigurationArn) The ARN for theNotificationConfigurationassociated with thisEventRule.- Parameters:
notificationConfigurationArn- The ARN for theNotificationConfigurationassociated with thisEventRule. This parameter is required.- Returns:
this- See Also:
-
regions
A list of AWS Regions that send events to thisEventRule.- Parameters:
regions- A list of AWS Regions that send events to thisEventRule. This parameter is required.- Returns:
this- See Also:
-
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 .- Parameters:
source- The event source this rule should match with the EventBridge event sources. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEventRulePropsMixin>- Returns:
- a newly built instance of
CfnEventRulePropsMixin.
-