CfnStreamConsumerPropsMixin
- class aws_cdk.mixins_preview.aws_kinesis.mixins.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.mixins_preview import mixins from aws_cdk.mixins_preview.aws_kinesis import mixins as kinesis_mixins cfn_stream_consumer_props_mixin = kinesis_mixins.CfnStreamConsumerPropsMixin(kinesis_mixins.CfnStreamConsumerMixinProps( consumer_name="consumerName", stream_arn="streamArn", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Kinesis::StreamConsumer.- Parameters:
props (
Union[CfnStreamConsumerMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- 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)
(experimental) 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.- Stability:
experimental