# Copyright (c) 2012-2026, 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, Tags
from .validators import boolean, integer
from .validators.kinesis import kinesis_stream_mode, validate_tags_or_list
[docs]class EncryptionConfiguration(AWSProperty):
"""
`EncryptionConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-encryptionconfiguration.html>`__
"""
props: PropsDictType = {
"EncryptionType": (str, True),
"KeyId": (str, True),
}
[docs]class CloudWatchLogsConfiguration(AWSProperty):
"""
`CloudWatchLogsConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-cloudwatchlogsconfiguration.html>`__
"""
props: PropsDictType = {
"Enabled": (boolean, True),
"LogGroupName": (str, False),
"LogStreamName": (str, False),
}
[docs]class LoggingConfiguration(AWSProperty):
"""
`LoggingConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-loggingconfiguration.html>`__
"""
props: PropsDictType = {
"CloudWatchLogs": (CloudWatchLogsConfiguration, True),
}
[docs]class DeadLetterQueueS3Configuration(AWSProperty):
"""
`DeadLetterQueueS3Configuration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-deadletterqueues3configuration.html>`__
"""
props: PropsDictType = {
"BucketARN": (str, True),
"ErrorOutputPrefix": (str, False),
"ExpectedBucketOwner": (str, True),
}
[docs]class S3StorageConfiguration(AWSProperty):
"""
`S3StorageConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-s3storageconfiguration.html>`__
"""
props: PropsDictType = {
"BucketARN": (str, True),
"CompressionType": (str, True),
"ExpectedBucketOwner": (str, True),
"OutputKeyTemplate": (str, False),
"StorageClass": (str, False),
}
[docs]class S3DestinationConfiguration(AWSProperty):
"""
`S3DestinationConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-s3destinationconfiguration.html>`__
"""
props: PropsDictType = {
"DataFreshnessInSeconds": (integer, False),
"DeadLetterQueueS3Configuration": (DeadLetterQueueS3Configuration, False),
"StorageConfiguration": (S3StorageConfiguration, True),
}
[docs]class PartitionField(AWSProperty):
"""
`PartitionField <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-partitionfield.html>`__
"""
props: PropsDictType = {
"SourceName": (str, True),
"Transform": (str, True),
}
[docs]class PartitionSpec(AWSProperty):
"""
`PartitionSpec <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-partitionspec.html>`__
"""
props: PropsDictType = {
"PartitionFields": ([PartitionField], True),
}
[docs]class S3TableConfiguration(AWSProperty):
"""
`S3TableConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-s3tableconfiguration.html>`__
"""
props: PropsDictType = {
"CompressionType": (str, True),
"Namespace": (str, True),
"PartitionSpec": (PartitionSpec, False),
"TableBucketARN": (str, True),
"TableName": (str, True),
}
[docs]class S3TablesDestinationConfiguration(AWSProperty):
"""
`S3TablesDestinationConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-s3tablesdestinationconfiguration.html>`__
"""
props: PropsDictType = {
"DataFreshnessInSeconds": (integer, False),
"DeadLetterQueueS3Configuration": (DeadLetterQueueS3Configuration, True),
"S3TablesConfigurationList": ([S3TableConfiguration], True),
}
[docs]class RecordConfiguration(AWSProperty):
"""
`RecordConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-recordconfiguration.html>`__
"""
props: PropsDictType = {
"GSRSchemaARN": (str, False),
"RecordFormatType": (str, True),
}
[docs]class StreamConfiguration(AWSProperty):
"""
`StreamConfiguration <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-channel-streamconfiguration.html>`__
"""
props: PropsDictType = {
"RecordConfiguration": (RecordConfiguration, True),
"StreamARN": (str, True),
}
[docs]class Channel(AWSObject):
"""
`Channel <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-channel.html>`__
"""
resource_type = "AWS::Kinesis::Channel"
props: PropsDictType = {
"ChannelName": (str, True),
"EncryptionConfiguration": (EncryptionConfiguration, False),
"LoggingConfiguration": (LoggingConfiguration, False),
"S3DestinationConfiguration": (S3DestinationConfiguration, False),
"S3TablesDestinationConfiguration": (S3TablesDestinationConfiguration, False),
"ServiceExecutionRoleARN": (str, True),
"StreamConfigurationList": ([StreamConfiguration], True),
"Tags": (Tags, False),
}
[docs]class ResourcePolicy(AWSObject):
"""
`ResourcePolicy <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-resourcepolicy.html>`__
"""
resource_type = "AWS::Kinesis::ResourcePolicy"
props: PropsDictType = {
"ResourceArn": (str, True),
"ResourcePolicy": (dict, True),
}
[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 = {
"DesiredShardLevelMetrics": ([str], False),
"MaxRecordSizeInKiB": (integer, False),
"Name": (str, False),
"RecordDistributionStrategy": (str, False),
"RetentionPeriodHours": (integer, False),
"ShardCount": (integer, False),
"StreamEncryption": (StreamEncryption, False),
"StreamModeDetails": (StreamModeDetails, False),
"Tags": (validate_tags_or_list, False),
"WarmThroughputMiBps": (integer, 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),
"Tags": (Tags, False),
}
[docs]class WarmThroughputObject(AWSProperty):
"""
`WarmThroughputObject <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesis-stream-warmthroughputobject.html>`__
"""
props: PropsDictType = {
"CurrentMiBps": (integer, False),
"TargetMiBps": (integer, False),
}