Interface IStreamConsumerProps
Properties for a Kinesis Stream Consumer.
Namespace: Amazon.CDK.AWS.Kinesis
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IStreamConsumerProps
Syntax (vb)
Public Interface IStreamConsumerProps
Remarks
ExampleMetadata: infused
Examples
var lambdaRole = new Role(this, "Role", new RoleProps {
AssumedBy = new ServicePrincipal("lambda.amazonaws.com"),
Description = "Example role..."
});
var stream = new Stream(this, "MyEncryptedStream", new StreamProps {
Encryption = StreamEncryption.KMS
});
var streamConsumer = new StreamConsumer(this, "MyStreamConsumer", new StreamConsumerProps {
StreamConsumerName = "MyStreamConsumer",
Stream = stream
});
// give lambda permissions to read stream via the stream consumer
streamConsumer.GrantRead(lambdaRole);
Synopsis
Properties
Stream | The Kinesis data stream to associate this consumer with. |
Stream |
The name of the stream consumer. |
Properties
Stream
The Kinesis data stream to associate this consumer with.
IStream Stream { get; }
Property Value
StreamConsumerName
The name of the stream consumer.
string StreamConsumerName { get; }
Property Value
System.