CfnStreamProps
Properties for defining a CfnStream.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kinesis as kinesis } from 'aws-cdk-lib';
const cfnStreamProps: kinesis.CfnStreamProps = {
desiredShardLevelMetrics: ['desiredShardLevelMetrics'],
maxRecordSizeInKiB: 123,
name: 'name',
recordDistributionStrategy: 'recordDistributionStrategy',
retentionPeriodHours: 123,
shardCount: 123,
streamEncryption: {
encryptionType: 'encryptionType',
keyId: 'keyId',
},
streamModeDetails: {
streamMode: 'streamMode',
},
tags: [{
key: 'key',
value: 'value',
}],
warmThroughputMiBps: 123,
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kinesis as kinesis
cfn_stream_props = kinesis.CfnStreamProps(
desired_shard_level_metrics=["desiredShardLevelMetrics"],
max_record_size_in_ki_b=123,
name="name",
record_distribution_strategy="recordDistributionStrategy",
retention_period_hours=123,
shard_count=123,
stream_encryption=kinesis.CfnStream.StreamEncryptionProperty(
encryption_type="encryptionType",
key_id="keyId"
),
stream_mode_details=kinesis.CfnStream.StreamModeDetailsProperty(
stream_mode="streamMode"
),
tags=[CfnTag(
key="key",
value="value"
)],
warm_throughput_mi_bps=123
)
// 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.*;
CfnStreamProps cfnStreamProps = CfnStreamProps.builder()
.desiredShardLevelMetrics(List.of("desiredShardLevelMetrics"))
.maxRecordSizeInKiB(123)
.name("name")
.recordDistributionStrategy("recordDistributionStrategy")
.retentionPeriodHours(123)
.shardCount(123)
.streamEncryption(StreamEncryptionProperty.builder()
.encryptionType("encryptionType")
.keyId("keyId")
.build())
.streamModeDetails(StreamModeDetailsProperty.builder()
.streamMode("streamMode")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.warmThroughputMiBps(123)
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Kinesis;
var cfnStreamProps = new CfnStreamProps {
DesiredShardLevelMetrics = new [] { "desiredShardLevelMetrics" },
MaxRecordSizeInKiB = 123,
Name = "name",
RecordDistributionStrategy = "recordDistributionStrategy",
RetentionPeriodHours = 123,
ShardCount = 123,
StreamEncryption = new StreamEncryptionProperty {
EncryptionType = "encryptionType",
KeyId = "keyId"
},
StreamModeDetails = new StreamModeDetailsProperty {
StreamMode = "streamMode"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
WarmThroughputMiBps = 123
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnStreamProps := &CfnStreamProps{
DesiredShardLevelMetrics: []*string{
jsii.String("desiredShardLevelMetrics"),
},
MaxRecordSizeInKiB: jsii.Number(123),
Name: jsii.String("name"),
RecordDistributionStrategy: jsii.String("recordDistributionStrategy"),
RetentionPeriodHours: jsii.Number(123),
ShardCount: jsii.Number(123),
StreamEncryption: &StreamEncryptionProperty{
EncryptionType: jsii.String("encryptionType"),
KeyId: jsii.String("keyId"),
},
StreamModeDetails: &StreamModeDetailsProperty{
StreamMode: jsii.String("streamMode"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
WarmThroughputMiBps: jsii.Number(123),
}
Properties
desiredShardLevelMetricsoptionalstring[]desired_shard_level_metricsoptionaltyping.List[str]desiredShardLevelMetricsoptionalList<String>DesiredShardLevelMetricsoptionalstring[]DesiredShardLevelMetricsoptional*[]*string #maxRecordSizeInKiBoptionalnumbermax_record_size_in_ki_boptionalint | floatmaxRecordSizeInKiBoptionalNumberMaxRecordSizeInKiBoptionaldoubleMaxRecordSizeInKiBoptional*float64 #notes
If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the stream name. For more information, see Name Type .
If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
recordDistributionStrategyoptionalstringrecord_distribution_strategyoptionalstrrecordDistributionStrategyoptionalStringRecordDistributionStrategyoptionalstringRecordDistributionStrategyoptional*string #This property can ONLY be set when StreamMode is ON_DEMAND
retentionPeriodHoursoptionalnumberretention_period_hoursoptionalint | floatretentionPeriodHoursoptionalNumberRetentionPeriodHoursoptionaldoubleRetentionPeriodHoursoptional*float64 #The default value is 24. For more information about the stream retention period, see Changing the Data Retention Period in the Amazon Kinesis Developer Guide.
shardCountoptionalnumbershard_countoptionalint | floatshardCountoptionalNumberShardCountoptionaldoubleShardCountoptional*float64 #For greater provisioned throughput, increase the number of shards.
streamEncryptionoptionalIResolvable | CfnStream.stream_encryptionoptionaltyping.Union[IResolvable, StreamEncryptionProperty]streamEncryptionoptionalIResolvableStreamEncryptionoptionalIResolvableStreamEncryptionoptionalinterface{} #Removing this property from your stack template and updating your stack disables encryption.
streamModeDetailsoptionalIResolvable | CfnStream.stream_mode_detailsoptionaltyping.Union[IResolvable, StreamModeDetailsProperty]streamModeDetailsoptionalIResolvableStreamModeDetailsoptionalIResolvableStreamModeDetailsoptionalinterface{} #Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #For information about constraints for this property, see Tag Restrictions in the Amazon Kinesis Developer Guide .
warmThroughputMiBpsoptionalnumberwarm_throughput_mi_bpsoptionalint | floatwarmThroughputMiBpsoptionalNumberWarmThroughputMiBpsoptionaldoubleWarmThroughputMiBpsoptional*float64 #This represents the throughput capacity that will be immediately available for write operations.