# Copyright (c) 2012-2024, Mark Peek <mark@peek.org>
# All rights reserved.
#
# See LICENSE file for full license.
#
# *** Do not modify - this file is autogenerated ***
from . import AWSObject, AWSProperty, PropsDictType
from .validators import integer
from .validators.kinesis import kinesis_stream_mode, validate_tags_or_list
[docs]class StreamEncryption(AWSProperty):
"""
`StreamEncryption <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streamencryption.html>`__
"""
props: PropsDictType = {
"EncryptionType": (str, True),
"KeyId": (str, True),
}
[docs]class StreamModeDetails(AWSProperty):
"""
`StreamModeDetails <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-streammodedetails.html>`__
"""
props: PropsDictType = {
"StreamMode": (kinesis_stream_mode, True),
}
[docs]class Stream(AWSObject):
"""
`Stream <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html>`__
"""
resource_type = "AWS::Kinesis::Stream"
props: PropsDictType = {
"Name": (str, False),
"RetentionPeriodHours": (integer, False),
"ShardCount": (integer, False),
"StreamEncryption": (StreamEncryption, False),
"StreamModeDetails": (StreamModeDetails, False),
"Tags": (validate_tags_or_list, False),
}
[docs]class StreamConsumer(AWSObject):
"""
`StreamConsumer <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-streamconsumer.html>`__
"""
resource_type = "AWS::Kinesis::StreamConsumer"
props: PropsDictType = {
"ConsumerName": (str, True),
"StreamARN": (str, True),
}