Class KinesisStream
Use a Kinesis Stream as a target for AWS CloudWatch event rules.
Inheritance
System.Object
KinesisStream
Implements
Namespace: Amazon.CDK.AWS.Events.Targets
Assembly: Amazon.CDK.AWS.Events.Targets.dll
Syntax (csharp)
public class KinesisStream : DeputyBase, IRuleTarget
Syntax (vb)
Public Class KinesisStream
Inherits DeputyBase
Implements IRuleTarget
Examples
// put to a Kinesis stream every time code is committed
// to a CodeCommit repository
repository.OnCommit("onCommit", new OnCommitOptions { Target = new KinesisStream(stream) });
Synopsis
Constructors
KinesisStream(IStream, IKinesisStreamProps) | |
KinesisStream(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
KinesisStream(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Methods
Bind(IRule, String) | Returns a RuleTarget that can be used to trigger this Kinesis Stream as a result from a CloudWatch event. |
Constructors
KinesisStream(IStream, IKinesisStreamProps)
public KinesisStream(IStream stream, IKinesisStreamProps props = null)
Parameters
- stream IStream
- props IKinesisStreamProps
KinesisStream(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected KinesisStream(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
KinesisStream(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected KinesisStream(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Methods
Bind(IRule, String)
Returns a RuleTarget that can be used to trigger this Kinesis Stream as a result from a CloudWatch event.
public virtual IRuleTargetConfig Bind(IRule rule, string id = null)
Parameters
- rule IRule
- id System.String
Returns