@Stability(value=Stable) public static final class CfnStreamProps.Builder extends Object implements software.amazon.jsii.Builder<CfnStreamProps>
CfnStreamProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnStreamProps.Builder name(String name)
CfnStreamProps.getName()name - 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.
this@Stability(value=Stable) public CfnStreamProps.Builder retentionPeriodHours(Number retentionPeriodHours)
CfnStreamProps.getRetentionPeriodHours()retentionPeriodHours - 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.this@Stability(value=Stable) public CfnStreamProps.Builder shardCount(Number shardCount)
CfnStreamProps.getShardCount()shardCount - The number of shards that the stream uses.
For greater provisioned throughput, increase the number of shards.this@Stability(value=Stable) public CfnStreamProps.Builder streamEncryption(CfnStream.StreamEncryptionProperty streamEncryption)
CfnStreamProps.getStreamEncryption()streamEncryption - 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.this@Stability(value=Stable) public CfnStreamProps.Builder streamEncryption(IResolvable streamEncryption)
CfnStreamProps.getStreamEncryption()streamEncryption - 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.this@Stability(value=Stable) public CfnStreamProps.Builder streamModeDetails(CfnStream.StreamModeDetailsProperty streamModeDetails)
CfnStreamProps.getStreamModeDetails()streamModeDetails - 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.this@Stability(value=Stable) public CfnStreamProps.Builder streamModeDetails(IResolvable streamModeDetails)
CfnStreamProps.getStreamModeDetails()streamModeDetails - 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.this@Stability(value=Stable) public CfnStreamProps.Builder tags(List<? extends CfnTag> tags)
CfnStreamProps.getTags()tags - 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 .this@Stability(value=Stable) public CfnStreamProps build()
build in interface software.amazon.jsii.Builder<CfnStreamProps>CfnStreamPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.