Interface IStreamConsumer
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IDependable,IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IStreamConsumer.Jsii$Default
- All Known Implementing Classes:
IStreamConsumer.Jsii$Proxy,StreamConsumer
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-04T09:27:43.885Z")
@Stability(Stable)
public interface IStreamConsumer
extends software.amazon.jsii.JsiiSerializable, IResource
A Kinesis Stream Consumer.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInternal default implementation forIStreamConsumer.static final classA proxy class which represents a concrete javascript instance of this type. -
Method Summary
Modifier and TypeMethodDescriptionaddToResourcePolicy(PolicyStatement statement) Adds a statement to the IAM resource policy associated with this stream consumer.The stream associated with this consumer.The ARN of the stream consumer.The name of the stream consumer.grant(IGrantable grantee, String... actions) Grant the indicated permissions on this stream consumer to the provided IAM principal.grantRead(IGrantable grantee) Grant read permissions for this stream consumer and its associated stream to an IAM principal (Role/Group/User).Methods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getStream
The stream associated with this consumer. -
getStreamConsumerArn
The ARN of the stream consumer. -
getStreamConsumerName
The name of the stream consumer. -
addToResourcePolicy
@Stability(Stable) @NotNull AddToResourcePolicyResult addToResourcePolicy(@NotNull PolicyStatement statement) Adds a statement to the IAM resource policy associated with this stream consumer.If this stream consumer was created in this stack (
new StreamConsumer), a resource policy will be automatically created upon the first call toaddToResourcePolicy. If the stream consumer is imported (StreamConsumer.from), then this is a no-op.- Parameters:
statement- This parameter is required.
-
grant
Grant the indicated permissions on this stream consumer to the provided IAM principal.- Parameters:
grantee- This parameter is required.actions- This parameter is required.
-
grantRead
Grant read permissions for this stream consumer and its associated stream to an IAM principal (Role/Group/User).- Parameters:
grantee- This parameter is required.
-