Class KinesisStream

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.events.targets.KinesisStream
All Implemented Interfaces:
IRuleTarget, software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:10.350Z") @Stability(Stable) public class KinesisStream extends software.amazon.jsii.JsiiObject implements IRuleTarget
Use a Kinesis Stream as a target for AWS CloudWatch event rules.

Example:

 // put to a Kinesis stream every time code is committed
 // to a CodeCommit repository
 repository.onCommit("onCommit", OnCommitOptions.builder().target(new KinesisStream(stream)).build());
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for KinesisStream.

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.events.IRuleTarget

    IRuleTarget.Jsii$Default, IRuleTarget.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
     
     
    protected
    KinesisStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    KinesisStream(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    bind(IRule _rule)
    Returns a RuleTarget that can be used to trigger this Kinesis Stream as a result from a CloudWatch event.
    bind(IRule _rule, String _id)
    Returns a RuleTarget that can be used to trigger this Kinesis Stream as a result from a CloudWatch event.

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • KinesisStream

      protected KinesisStream(software.amazon.jsii.JsiiObjectRef objRef)
    • KinesisStream

      protected KinesisStream(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • KinesisStream

      @Stability(Stable) public KinesisStream(@NotNull IStream stream, @Nullable KinesisStreamProps props)
      Parameters:
      stream - This parameter is required.
      props -
    • KinesisStream

      @Stability(Stable) public KinesisStream(@NotNull IStream stream)
      Parameters:
      stream - This parameter is required.
  • Method Details

    • bind

      @Stability(Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule, @Nullable String _id)
      Returns a RuleTarget that can be used to trigger this Kinesis Stream as a result from a CloudWatch event.

      Specified by:
      bind in interface IRuleTarget
      Parameters:
      _rule - This parameter is required.
      _id -
    • bind

      @Stability(Stable) @NotNull public RuleTargetConfig bind(@NotNull IRule _rule)
      Returns a RuleTarget that can be used to trigger this Kinesis Stream as a result from a CloudWatch event.

      Specified by:
      bind in interface IRuleTarget
      Parameters:
      _rule - This parameter is required.