Package software.amazon.awscdk.services.events
Amazon EventBridge Construct Library
Amazon EventBridge delivers a near real-time stream of system events that describe changes in AWS resources. For example, an AWS CodePipeline emits the State Change event when the pipeline changes its state.
- Events: An event indicates a change in your AWS environment. AWS resources can generate events when their state changes. For example, Amazon EC2 generates an event when the state of an EC2 instance changes from pending to running, and Amazon EC2 Auto Scaling generates events when it launches or terminates instances. AWS CloudTrail publishes events when you make API calls. You can generate custom application-level events and publish them to EventBridge. You can also set up scheduled events that are generated on a periodic basis. For a list of services that generate events, and sample events from each service, see EventBridge Event Examples From Each Supported Service.
- Targets: A target processes events. Targets can include Amazon EC2 instances, AWS Lambda functions, Kinesis streams, Amazon ECS tasks, Step Functions state machines, Amazon SNS topics, Amazon SQS queues, Amazon CloudWatch LogGroups, and built-in targets. A target receives events in JSON format.
- Rules: A rule matches incoming events and routes them to targets for processing. A single rule can route to multiple targets, all of which are processed in parallel. Rules are not processed in a particular order. This enables different parts of an organization to look for and process the events that are of interest to them. A rule can customize the JSON sent to the target, by passing only certain parts or by overwriting it with a constant.
- EventBuses: An event bus can receive events from your own custom applications or it can receive events from applications and services created by AWS SaaS partners. See Creating an Event Bus.
Rule
The Rule construct defines an EventBridge rule which monitors an
event based on an event
pattern
and invoke event targets when the pattern is matched against a triggered
event. Event targets are objects that implement the IRuleTarget interface.
Normally, you will use one of the source.onXxx(name[, target[, options]]) -> Rule methods on the event source to define an event rule associated with
the specific activity. You can targets either via props, or add targets using
rule.addTarget.
For example, to define an rule that triggers a CodeBuild project build when a commit is pushed to the "master" branch of a CodeCommit repository:
Repository repo;
Project project;
Rule onCommitRule = repo.onCommit("OnCommit", OnCommitOptions.builder()
.target(new CodeBuildProject(project))
.branches(List.of("master"))
.build());
You can add additional targets, with optional input
transformer
using eventRule.addTarget(target[, input]). For example, we can add a SNS
topic target which formats a human-readable message for the commit.
For example, this adds an SNS topic as a target:
Rule onCommitRule;
Topic topic;
onCommitRule.addTarget(SnsTopic.Builder.create(topic)
.message(RuleTargetInput.fromText(String.format("A commit was pushed to the repository %s on branch %s", ReferenceEvent.getRepositoryName(), ReferenceEvent.getReferenceName())))
.build());
Or using an Object:
Rule onCommitRule;
Topic topic;
onCommitRule.addTarget(SnsTopic.Builder.create(topic)
.message(RuleTargetInput.fromObject(Map.of(
"DataType", String.format("custom_%s", EventField.fromPath("$.detail-type")))))
.build());
Role
You can specify an IAM Role:
IRole role;
Rule.Builder.create(this, "MyRule")
.schedule(Schedule.cron(CronOptions.builder().minute("0").hour("4").build()))
.role(role)
.build();
Note: If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a RoleArn with proper permissions in the Target structure, instead of here in this parameter.
Matchers
To define a pattern, use the Match class, which provides a number of factory methods to declare
different logical predicates. For example, to match all S3 events for objects larger than 1024
bytes, stored using one of the storage classes Glacier, Glacier IR or Deep Archive and coming from
any region other than the AWS GovCloud ones:
Rule rule = Rule.Builder.create(this, "rule")
.eventPattern(EventPattern.builder()
.detail(Map.of(
"object", Map.of(
// Matchers may appear at any level
"size", Match.greaterThan(1024)),
// 'OR' condition
"source-storage-class", Match.anyOf(Match.prefix("GLACIER"), Match.exactString("DEEP_ARCHIVE"))))
// If you prefer, you can use a low level array of strings, as directly consumed by EventBridge
.source(List.of("aws.s3"))
.region(Match.anythingButPrefix("us-gov"))
.build())
.build();
Matches can also be made case-insensitive, or make use of wildcard matches. For example, to match
object create events for buckets whose name starts with raw-, for objects with key matching
the pattern path/to/object/*.txt and the requester ends with .AMAZONAWS.COM:
Rule rule = Rule.Builder.create(this, "rule")
.eventPattern(EventPattern.builder()
.detail(Map.of(
"bucket", Map.of(
"name", Match.prefixEqualsIgnoreCase("raw-")),
"object", Map.of(
"key", Match.wildcard("path/to/object/*.txt")),
"requester", Match.suffixEqualsIgnoreCase(".AMAZONAWS.COM")))
.detailType(Match.equalsIgnoreCase("object created"))
.build())
.build();
The "anything but" matchers allow you to specify multiple arguments. For example:
Rule rule = Rule.Builder.create(this, "rule")
.eventPattern(EventPattern.builder()
.region(Match.anythingBut("us-east-1", "us-east-2", "us-west-1", "us-west-2"))
.detail(Map.of(
"bucket", Map.of(
"name", Match.anythingButPrefix("foo", "bar", "baz")),
"object", Map.of(
"key", Match.anythingButSuffix(".gif", ".png", ".jpg")),
"requester", Match.anythingButWildcard("*.amazonaws.com", "123456789012")))
.detailType(Match.anythingButEqualsIgnoreCase("object created", "object deleted"))
.build())
.build();
Scheduling
You can configure a Rule to run on a schedule (cron or rate). Rate must be specified in minutes, hours or days.
The following example runs a task every day at 4am:
import software.amazon.awscdk.services.events.Rule;
import software.amazon.awscdk.services.events.Schedule;
import software.amazon.awscdk.services.events.targets.EcsTask;
import software.amazon.awscdk.services.ecs.Cluster;
import software.amazon.awscdk.services.ecs.TaskDefinition;
import software.amazon.awscdk.services.iam.Role;
Cluster cluster;
TaskDefinition taskDefinition;
Role role;
EcsTask ecsTaskTarget = EcsTask.Builder.create().cluster(cluster).taskDefinition(taskDefinition).role(role).build();
Rule.Builder.create(this, "ScheduleRule")
.schedule(Schedule.cron(CronOptions.builder().minute("0").hour("4").build()))
.targets(List.of(ecsTaskTarget))
.build();
If you want to specify Fargate platform version, set platformVersion in EcsTask's props like the following example:
Cluster cluster; TaskDefinition taskDefinition; Role role; FargatePlatformVersion platformVersion = FargatePlatformVersion.VERSION1_4; EcsTask ecsTaskTarget = EcsTask.Builder.create().cluster(cluster).taskDefinition(taskDefinition).role(role).platformVersion(platformVersion).build();
Event Targets
The aws-cdk-lib/aws-events-targets module includes classes that implement the IRuleTarget
interface for various AWS services.
See the README of the aws-cdk-lib/aws-events-targets module for more information on supported targets.
Cross-account and cross-region targets
It's possible to have the source of the event and a target in separate AWS accounts and regions:
import software.amazon.awscdk.App;
import software.amazon.awscdk.Stack;
import software.amazon.awscdk.services.codebuild.*;
import software.amazon.awscdk.services.codecommit.*;
import software.amazon.awscdk.services.events.targets.*;
App app = new App();
String account1 = "11111111111";
String account2 = "22222222222";
Stack stack1 = Stack.Builder.create(app, "Stack1").env(Environment.builder().account(account1).region("us-west-1").build()).build();
Repository repo = Repository.Builder.create(stack1, "Repository")
.repositoryName("myrepository")
.build();
Stack stack2 = Stack.Builder.create(app, "Stack2").env(Environment.builder().account(account2).region("us-east-1").build()).build();
Project project = Project.Builder.create(stack2, "Project").build();
repo.onCommit("OnCommit", OnCommitOptions.builder()
.target(new CodeBuildProject(project))
.build());
In this situation, the CDK will wire the 2 accounts together:
- It will generate a rule in the source stack with the event bus of the target account as the target
- It will generate a rule in the target stack, with the provided target
- It will generate a separate stack that gives the source account permissions to publish events to the event bus of the target account in the given region, and make sure its deployed before the source stack
For more information, see the AWS documentation on cross-account events.
Archiving
It is possible to archive all or some events sent to an event bus. It is then possible to replay these events.
EventBus bus = EventBus.Builder.create(this, "bus")
.eventBusName("MyCustomEventBus")
.description("MyCustomEventBus")
.build();
bus.archive("MyArchive", BaseArchiveProps.builder()
.archiveName("MyCustomEventBusArchive")
.description("MyCustomerEventBus Archive")
.eventPattern(EventPattern.builder()
.account(List.of(Stack.of(this).getAccount()))
.build())
.retention(Duration.days(365))
.build());
Dead-Letter Queue for EventBus
It is possible to configure a Dead Letter Queue for an EventBus. This is useful when you want to capture events that could not be delivered to any of the targets.
To configure a Dead Letter Queue for an EventBus, you can use the deadLetterQueue property of the EventBus construct.
import software.amazon.awscdk.services.sqs.*;
Queue dlq = new Queue(this, "DLQ");
EventBus bus = EventBus.Builder.create(this, "Bus")
.deadLetterQueue(dlq)
.build();
Granting PutEvents to an existing EventBus
To import an existing EventBus into your CDK application, use EventBus.fromEventBusArn, EventBus.fromEventBusAttributes
or EventBus.fromEventBusName factory method.
Then, you can use the grantPutEventsTo method to grant event:PutEvents to the eventBus.
Function lambdaFunction; IEventBus eventBus = EventBus.fromEventBusArn(this, "ImportedEventBus", "arn:aws:events:us-east-1:111111111:event-bus/my-event-bus"); // now you can just call methods on the eventbus eventBus.grantPutEventsTo(lambdaFunction);
Use a customer managed key
To use a customer managed key for events on the event bus, use the kmsKey attribute.
import software.amazon.awscdk.services.kms.*;
IKey kmsKey;
EventBus.Builder.create(this, "Bus")
.kmsKey(kmsKey)
.build();
To use a customer managed key for an archive, use the kmsKey attribute.
Note: When you attach a customer managed key to either an EventBus or an Archive, a policy that allows EventBridge to interact with your resource will be added.
import software.amazon.awscdk.services.kms.*;
import software.amazon.awscdk.services.events.Archive;
import software.amazon.awscdk.services.events.EventBus;
IKey kmsKey;
Stack stack = new Stack();
EventBus eventBus = new EventBus(stack, "Bus");
Archive archive = Archive.Builder.create(stack, "Archive")
.kmsKey(kmsKey)
.sourceEventBus(eventBus)
.eventPattern(EventPattern.builder()
.source(List.of("aws.ec2"))
.build())
.build();
To enable archives or schema discovery on an event bus, customers has the choice of using either an AWS owned key or a customer managed key. For more information, see KMS key options for event bus encryption.
Configuring logging
To configure logging for an Event Bus, leverage the LogConfig property. It allows different level of logging (NONE, INFO, TRACE, ERROR) and wether to include details or not.
import software.amazon.awscdk.services.events.EventBus;
import software.amazon.awscdk.services.events.IncludeDetail;
import software.amazon.awscdk.services.events.Level;
EventBus bus = EventBus.Builder.create(this, "Bus")
.logConfig(LogConfig.builder()
.includeDetail(IncludeDetail.FULL)
.level(Level.TRACE)
.build())
.build();
See more Specifying event bus log level
-
ClassDescriptionDefine an EventBridge Api Destination.A fluent builder for
ApiDestination.The properties to import an existing Api Destination.A builder forApiDestinationAttributesAn implementation forApiDestinationAttributesThe event API Destination properties.A builder forApiDestinationPropsAn implementation forApiDestinationPropsA reference to a ApiDestination resource.A builder forApiDestinationReferenceAn implementation forApiDestinationReferenceDefine an EventBridge Archive.A fluent builder forArchive.The event archive properties.A builder forArchivePropsAn implementation forArchivePropsA reference to a Archive resource.A builder forArchiveReferenceAn implementation forArchiveReferenceAuthorization type for an API Destination Connection.The event archive base properties.A builder forBaseArchivePropsAn implementation forBaseArchivePropsCreates an API destination, which is an HTTP invocation endpoint configured as a target for events.A fluent builder forCfnApiDestination.Properties for defining aCfnApiDestination.A builder forCfnApiDestinationPropsAn implementation forCfnApiDestinationPropsCreates an archive of events with the specified settings.A fluent builder forCfnArchive.Properties for defining aCfnArchive.A builder forCfnArchivePropsAn implementation forCfnArchivePropsCreates a connection.The API key authorization parameters for the connection.A builder forCfnConnection.ApiKeyAuthParametersPropertyAn implementation forCfnConnection.ApiKeyAuthParametersPropertyTthe authorization parameters to use for the connection.A builder forCfnConnection.AuthParametersPropertyAn implementation forCfnConnection.AuthParametersPropertyThe Basic authorization parameters for the connection.A builder forCfnConnection.BasicAuthParametersPropertyAn implementation forCfnConnection.BasicAuthParametersPropertyA fluent builder forCfnConnection.The OAuth authorization parameters to use for the connection.A builder forCfnConnection.ClientParametersPropertyAn implementation forCfnConnection.ClientParametersPropertyAny additional parameters for the connection.A builder forCfnConnection.ConnectionHttpParametersPropertyAn implementation forCfnConnection.ConnectionHttpParametersPropertyIf you specify a private OAuth endpoint, the parameters for EventBridge to use when authenticating against the endpoint.A builder forCfnConnection.ConnectivityParametersPropertyAn implementation forCfnConnection.ConnectivityParametersPropertyFor connections to private APIs, the parameters to use for invoking the API.A builder forCfnConnection.InvocationConnectivityParametersPropertyAn implementation forCfnConnection.InvocationConnectivityParametersPropertyContains the OAuth authorization parameters to use for the connection.A builder forCfnConnection.OAuthParametersPropertyAn implementation forCfnConnection.OAuthParametersPropertyAny additional query string parameter for the connection.A builder forCfnConnection.ParameterPropertyAn implementation forCfnConnection.ParameterPropertyThe parameters for EventBridge to use when invoking the resource endpoint.A builder forCfnConnection.ResourceParametersPropertyAn implementation forCfnConnection.ResourceParametersPropertyProperties for defining aCfnConnection.A builder forCfnConnectionPropsAn implementation forCfnConnectionPropsA global endpoint used to improve your application's availability by making it regional-fault tolerant.A fluent builder forCfnEndpoint.The event buses the endpoint is associated with.A builder forCfnEndpoint.EndpointEventBusPropertyAn implementation forCfnEndpoint.EndpointEventBusPropertyThe failover configuration for an endpoint.A builder forCfnEndpoint.FailoverConfigPropertyAn implementation forCfnEndpoint.FailoverConfigPropertyThe primary Region of the endpoint.A builder forCfnEndpoint.PrimaryPropertyAn implementation forCfnEndpoint.PrimaryPropertyEndpoints can replicate all events to the secondary Region.A builder forCfnEndpoint.ReplicationConfigPropertyAn implementation forCfnEndpoint.ReplicationConfigPropertyThe routing configuration of the endpoint.A builder forCfnEndpoint.RoutingConfigPropertyAn implementation forCfnEndpoint.RoutingConfigPropertyThe secondary Region that processes events when failover is triggered or replication is enabled.A builder forCfnEndpoint.SecondaryPropertyAn implementation forCfnEndpoint.SecondaryPropertyProperties for defining aCfnEndpoint.A builder forCfnEndpointPropsAn implementation forCfnEndpointPropsSpecifies an event bus within your account.A fluent builder forCfnEventBus.Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).A builder forCfnEventBus.DeadLetterConfigPropertyAn implementation forCfnEventBus.DeadLetterConfigPropertyThe logging configuration settings for the event bus.A builder forCfnEventBus.LogConfigPropertyAn implementation forCfnEventBus.LogConfigPropertyRunningPutPermissionpermits the specified AWS account or AWS organization to put events to the specified event bus .A fluent builder forCfnEventBusPolicy.A JSON string which you can use to limit the event bus permissions you are granting to only accounts that fulfill the condition.A builder forCfnEventBusPolicy.ConditionPropertyAn implementation forCfnEventBusPolicy.ConditionPropertyProperties for defining aCfnEventBusPolicy.A builder forCfnEventBusPolicyPropsAn implementation forCfnEventBusPolicyPropsProperties for defining aCfnEventBus.A builder forCfnEventBusPropsAn implementation forCfnEventBusPropsCreates or updates the specified rule.Contains the GraphQL operation to be parsed and executed, if the event target is an AWS AppSync API.A builder forCfnRule.AppSyncParametersPropertyAn implementation forCfnRule.AppSyncParametersPropertyThis structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used.A builder forCfnRule.AwsVpcConfigurationPropertyAn implementation forCfnRule.AwsVpcConfigurationPropertyThe array properties for the submitted job, such as the size of the array.A builder forCfnRule.BatchArrayPropertiesPropertyAn implementation forCfnRule.BatchArrayPropertiesPropertyThe custom parameters to be used when the target is an AWS Batch job.A builder forCfnRule.BatchParametersPropertyAn implementation forCfnRule.BatchParametersPropertyThe retry strategy to use for failed jobs, if the target is an AWS Batch job.A builder forCfnRule.BatchRetryStrategyPropertyAn implementation forCfnRule.BatchRetryStrategyPropertyA fluent builder forCfnRule.The details of a capacity provider strategy.A builder forCfnRule.CapacityProviderStrategyItemPropertyAn implementation forCfnRule.CapacityProviderStrategyItemPropertyConfiguration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).A builder forCfnRule.DeadLetterConfigPropertyAn implementation forCfnRule.DeadLetterConfigPropertyThe custom parameters to be used when the target is an Amazon ECS task.A builder forCfnRule.EcsParametersPropertyAn implementation forCfnRule.EcsParametersPropertyThese are custom parameter to be used when the target is an API Gateway APIs or EventBridge ApiDestinations.A builder forCfnRule.HttpParametersPropertyAn implementation forCfnRule.HttpParametersPropertyContains the parameters needed for you to provide custom input to a target based on one or more pieces of data extracted from the event.A builder forCfnRule.InputTransformerPropertyAn implementation forCfnRule.InputTransformerPropertyThis object enables you to specify a JSON path to extract from the event and use as the partition key for the Amazon Kinesis data stream, so that you can control the shard to which the event goes.A builder forCfnRule.KinesisParametersPropertyAn implementation forCfnRule.KinesisParametersPropertyThis structure specifies the network configuration for an ECS task.A builder forCfnRule.NetworkConfigurationPropertyAn implementation forCfnRule.NetworkConfigurationPropertyAn object representing a constraint on task placement.A builder forCfnRule.PlacementConstraintPropertyAn implementation forCfnRule.PlacementConstraintPropertyThe task placement strategy for a task or service.A builder forCfnRule.PlacementStrategyPropertyAn implementation forCfnRule.PlacementStrategyPropertyThese are custom parameters to be used when the target is a Amazon Redshift cluster to invoke the Amazon Redshift Data API ExecuteStatement based on EventBridge events.A builder forCfnRule.RedshiftDataParametersPropertyAn implementation forCfnRule.RedshiftDataParametersPropertyARetryPolicyobject that includes information about the retry policy settings.A builder forCfnRule.RetryPolicyPropertyAn implementation forCfnRule.RetryPolicyPropertyThis parameter contains the criteria (either InstanceIds or a tag) used to specify which EC2 instances are to be sent the command.A builder forCfnRule.RunCommandParametersPropertyAn implementation forCfnRule.RunCommandParametersPropertyInformation about the EC2 instances that are to be sent the command, specified as key-value pairs.A builder forCfnRule.RunCommandTargetPropertyAn implementation forCfnRule.RunCommandTargetPropertyName/Value pair of a parameter to start execution of a SageMaker AI Model Building Pipeline.A builder forCfnRule.SageMakerPipelineParameterPropertyAn implementation forCfnRule.SageMakerPipelineParameterPropertyThese are custom parameters to use when the target is a SageMaker AI Model Building Pipeline that starts based on EventBridge events.A builder forCfnRule.SageMakerPipelineParametersPropertyAn implementation forCfnRule.SageMakerPipelineParametersPropertyThe custom parameters for EventBridge to use for a target that is an Amazon SQS fair or FIFO queue.A builder forCfnRule.SqsParametersPropertyAn implementation forCfnRule.SqsParametersPropertyA key-value pair associated with an ECS Target of an EventBridge rule.A builder forCfnRule.TagPropertyAn implementation forCfnRule.TagPropertyTargets are the resources to be invoked when a rule is triggered.A builder forCfnRule.TargetPropertyAn implementation forCfnRule.TargetPropertyProperties for defining aCfnRule.A builder forCfnRulePropsAn implementation forCfnRulePropsDefine an EventBridge Connection.A fluent builder forConnection.Interface with properties necessary to import a reusable Connection.A builder forConnectionAttributesAn implementation forConnectionAttributesAn API Destination Connection.A builder forConnectionPropsAn implementation forConnectionPropsA reference to a Connection resource.A builder forConnectionReferenceAn implementation forConnectionReferenceOptions to configure a cron expression.A builder forCronOptionsAn implementation forCronOptionsA reference to a Endpoint resource.A builder forEndpointReferenceAn implementation forEndpointReferenceDefine an EventBridge EventBus.A fluent builder forEventBus.Interface with properties necessary to import a reusable EventBus.A builder forEventBusAttributesAn implementation forEventBusAttributesThe policy for an Event Bus.A fluent builder forEventBusPolicy.Properties to associate Event Buses with a policy.A builder forEventBusPolicyPropsAn implementation forEventBusPolicyPropsA reference to a EventBusPolicy resource.A builder forEventBusPolicyReferenceAn implementation forEventBusPolicyReferenceProperties to define an event bus.A builder forEventBusPropsAn implementation forEventBusPropsA reference to a EventBus resource.A builder forEventBusReferenceAn implementation forEventBusReferenceCommon options for Events.A builder forEventCommonOptionsAn implementation forEventCommonOptionsRepresents a field in the event pattern.Events in Amazon CloudWatch Events are represented as JSON objects.A builder forEventPatternAn implementation forEventPatternSupported HTTP operations.An additional HTTP parameter to send along with the OAuth request.Interface for API Destinations.Internal default implementation forIApiDestination.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a ApiDestination.Internal default implementation forIApiDestinationRef.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a Archive.Internal default implementation forIArchiveRef.A proxy class which represents a concrete javascript instance of this type.Interface for EventBus Connections.Internal default implementation forIConnection.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a Connection.Internal default implementation forIConnectionRef.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a Endpoint.Internal default implementation forIEndpointRef.A proxy class which represents a concrete javascript instance of this type.Interface which all EventBus based classes MUST implement.Internal default implementation forIEventBus.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a EventBusPolicy.Internal default implementation forIEventBusPolicyRef.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a EventBus.Internal default implementation forIEventBusRef.A proxy class which represents a concrete javascript instance of this type.Whether EventBridge include detailed event information in the records it generates.Represents an EventBridge Rule.Internal default implementation forIRule.A proxy class which represents a concrete javascript instance of this type.(experimental) Indicates that this resource can be referenced as a Rule.Internal default implementation forIRuleRef.A proxy class which represents a concrete javascript instance of this type.An abstract target for EventRules.Internal default implementation forIRuleTarget.A proxy class which represents a concrete javascript instance of this type.The level of logging detail to include.Interface for Logging Configuration of the Event Bus.A builder forLogConfigAn implementation forLogConfigAn event pattern matcher.Properties forAuthorization.oauth().A builder forOAuthAuthorizationPropsAn implementation forOAuthAuthorizationPropsStandard set of options foronXxxevent handlers on construct.A builder forOnEventOptionsAn implementation forOnEventOptionsDefines an EventBridge Rule in this stack.A fluent builder forRule.Properties for defining an EventBridge Rule.A builder forRulePropsAn implementation forRulePropsA reference to a Rule resource.A builder forRuleReferenceAn implementation forRuleReferenceProperties for an event rule target.A builder forRuleTargetConfigAn implementation forRuleTargetConfigThe input to send to the event target.The input properties for an event target.A builder forRuleTargetInputPropertiesAn implementation forRuleTargetInputPropertiesSchedule for scheduled event rules.