Interface IRuleTarget

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
IRuleTarget.Jsii$Default
All Known Implementing Classes:
ApiDestination, ApiGateway, ApiGatewayV2, AppSync, AwsApi, BatchJob, CloudWatchLogGroup, CodeBuildProject, CodePipeline, EcsTask, EventBus, FirehoseDeliveryStream, IRuleTarget.Jsii$Proxy, KinesisFirehoseStream, KinesisFirehoseStreamV2, KinesisStream, LambdaFunction, RedshiftQuery, SfnStateMachine, SnsTopic, SqsQueue

@Generated(value="jsii-pacmak/1.126.0 (build 206d44b)", date="2026-02-09T14:39:11.370Z") @Stability(Stable) public interface IRuleTarget extends software.amazon.jsii.JsiiSerializable
An abstract target for EventRules.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Internal default implementation for IRuleTarget.
    static final class 
    A proxy class which represents a concrete javascript instance of this type.
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(IRuleRef rule)
    Returns the rule target specification.
    bind(IRuleRef rule, String id)
    Returns the rule target specification.

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • bind

      @Stability(Stable) @NotNull RuleTargetConfig bind(@NotNull IRuleRef rule, @Nullable String id)
      Returns the rule target specification.

      NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

      Parameters:
      rule - The EventBridge Rule that would trigger this target. This parameter is required.
      id - The id of the target that will be attached to the rule.
    • bind

      @Stability(Stable) @NotNull RuleTargetConfig bind(@NotNull IRuleRef rule)
      Returns the rule target specification.

      NOTE: Do not use the various inputXxx options. They can be set in a call to addTarget.

      Parameters:
      rule - The EventBridge Rule that would trigger this target. This parameter is required.