CfnStreamConsumerPropsMixin
- class aws_cdk.cfn_property_mixins.aws_kinesis.CfnStreamConsumerPropsMixin(props, *, strategy=None)
Bases:
MixinUse the AWS CloudFormation
AWS::Kinesis::StreamConsumerresource 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 20 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 .
- See:
- CloudformationResource:
AWS::Kinesis::StreamConsumer
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_kinesis as kinesis import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_stream_consumer_props_mixin = kinesis.CfnStreamConsumerPropsMixin(kinesis.CfnStreamConsumerMixinProps( consumer_name="consumerName", stream_arn="streamArn", tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Kinesis::StreamConsumer.- Parameters:
props (
Union[CfnStreamConsumerMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['consumerName', 'streamArn', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.