interface CfnStreamProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Kinesis.CfnStreamProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awskinesis#CfnStreamProps |
![]() | software.amazon.awscdk.services.kinesis.CfnStreamProps |
![]() | aws_cdk.aws_kinesis.CfnStreamProps |
![]() | aws-cdk-lib » aws_kinesis » CfnStreamProps |
Properties for defining a CfnStream
.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-kinesis-stream.html
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 = {
name: 'name',
retentionPeriodHours: 123,
shardCount: 123,
streamEncryption: {
encryptionType: 'encryptionType',
keyId: 'keyId',
},
streamModeDetails: {
streamMode: 'streamMode',
},
tags: [{
key: 'key',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
name? | string | The name of the Kinesis stream. |
retention | number | The number of hours for the data records that are stored in shards to remain accessible. |
shard | number | The number of shards that the stream uses. |
stream | IResolvable | Stream | When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream. |
stream | IResolvable | Stream | Specifies the capacity mode to which you want to set your data stream. |
tags? | Cfn [] | An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream. |
name?
Type:
string
(optional)
The name of the Kinesis stream.
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.
retentionPeriodHours?
Type:
number
(optional)
The number of hours for the data records that are stored in shards to remain accessible.
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.
shardCount?
Type:
number
(optional)
The number of shards that the stream uses.
For greater provisioned throughput, increase the number of shards.
streamEncryption?
Type:
IResolvable
|
Stream
(optional)
When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.
Removing this property from your stack template and updating your stack disables encryption.
streamModeDetails?
Type:
IResolvable
|
Stream
(optional)
Specifies the capacity mode to which you want to set your data stream.
Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
tags?
Type:
Cfn
[]
(optional)
An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.
For information about constraints for this property, see Tag Restrictions in the Amazon Kinesis Developer Guide .