Class CfnStreamConsumer
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
AWS::Kinesis::StreamConsumer
resource to register a consumer with a Kinesis data stream.
The consumer you register can then call SubscribeToShard to receive data from the stream using enhanced fan-out, at a rate of up to 2 MiB per second for every shard you subscribe to. This rate is unaffected by the total number of consumers that read from the same stream.
You can register up to five consumers per stream. However, you can request a limit increase using the Kinesis Data Streams limits form . A given consumer can only be registered with one stream at a time.
For more information, see Using Consumers with Enhanced Fan-Out .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.kinesis.*; CfnStreamConsumer cfnStreamConsumer = CfnStreamConsumer.Builder.create(this, "MyCfnStreamConsumer") .consumerName("consumerName") .streamArn("streamArn") .build();
- See Also:
-
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.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnStreamConsumer
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnStreamConsumer
(software.amazon.jsii.JsiiObjectRef objRef) CfnStreamConsumer
(software.constructs.Construct scope, String id, CfnStreamConsumerProps props) -
Method Summary
Modifier and TypeMethodDescriptionWhen you register a consumer, Kinesis Data Streams generates an ARN for it.The time at which the consumer was created.The name you gave the consumer when you registered it.A consumer can't read data while in theCREATING
orDELETING
states.The ARN of the data stream with which the consumer is registered.The name of the consumer is something you choose when you register the consumer.The ARN of the stream with which you registered the consumer.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setConsumerName
(String value) The name of the consumer is something you choose when you register the consumer.void
setStreamArn
(String value) The ARN of the stream with which you registered the consumer.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
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, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnStreamConsumer
protected CfnStreamConsumer(software.amazon.jsii.JsiiObjectRef objRef) -
CfnStreamConsumer
protected CfnStreamConsumer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnStreamConsumer
@Stability(Stable) public CfnStreamConsumer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnStreamConsumerProps props) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrConsumerArn
When you register a consumer, Kinesis Data Streams generates an ARN for it.You need this ARN to be able to call SubscribeToShard .
If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs.
-
getAttrConsumerCreationTimestamp
The time at which the consumer was created. -
getAttrConsumerName
The name you gave the consumer when you registered it. -
getAttrConsumerStatus
A consumer can't read data while in theCREATING
orDELETING
states. -
getAttrId
-
getAttrStreamArn
The ARN of the data stream with which the consumer is registered. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getConsumerName
The name of the consumer is something you choose when you register the consumer. -
setConsumerName
The name of the consumer is something you choose when you register the consumer. -
getStreamArn
The ARN of the stream with which you registered the consumer. -
setStreamArn
The ARN of the stream with which you registered the consumer.
-