Interface StreamConsumerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StreamConsumerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-20T23:37:23.837Z")
@Stability(Stable)
public interface StreamConsumerProps
extends software.amazon.jsii.JsiiSerializable
Properties for a Kinesis Stream Consumer.
Example:
Role lambdaRole = Role.Builder.create(this, "Role")
.assumedBy(new ServicePrincipal("lambda.amazonaws.com"))
.description("Example role...")
.build();
Stream stream = Stream.Builder.create(this, "MyEncryptedStream")
.encryption(StreamEncryption.KMS)
.build();
StreamConsumer streamConsumer = StreamConsumer.Builder.create(this, "MyStreamConsumer")
.streamConsumerName("MyStreamConsumer")
.stream(stream)
.build();
// give lambda permissions to read stream via the stream consumer
streamConsumer.grantRead(lambdaRole);
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forStreamConsumerPropsstatic final classAn implementation forStreamConsumerProps -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamConsumerProps.Builderbuilder()The Kinesis data stream to associate this consumer with.The name of the stream consumer.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStream
The Kinesis data stream to associate this consumer with. -
getStreamConsumerName
The name of the stream consumer. -
builder
- Returns:
- a
StreamConsumerProps.BuilderofStreamConsumerProps
-