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/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
ModifierConstructorDescriptionKinesisStream
(IStream stream) KinesisStream
(IStream stream, KinesisStreamProps props) protected
KinesisStream
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
KinesisStream
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionReturns a RuleTarget that can be used to trigger this Kinesis Stream as a result from a CloudWatch event.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
- 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 interfaceIRuleTarget
- Parameters:
_rule
- This parameter is required._id
-
-
bind
Returns a RuleTarget that can be used to trigger this Kinesis Stream as a result from a CloudWatch event.- Specified by:
bind
in interfaceIRuleTarget
- Parameters:
_rule
- This parameter is required.
-