Class CfnStreamPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamPropsMixin>
- Enclosing class:
CfnStreamPropsMixin
CfnStreamPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnStreamPropsMixin.Buildercreate()static CfnStreamPropsMixin.Buildercreate(CfnPropertyMixinOptions options) desiredShardLevelMetrics(List<String> desiredShardLevelMetrics) A list of shard-level metrics in properties to enable enhanced monitoring mode.maxRecordSizeInKiB(Number maxRecordSizeInKiB) The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream.The name of the Kinesis stream.retentionPeriodHours(Number retentionPeriodHours) The number of hours for the data records that are stored in shards to remain accessible.shardCount(Number shardCount) The number of shards that the stream uses.streamEncryption(CfnStreamPropsMixin.StreamEncryptionProperty streamEncryption) When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.streamEncryption(IResolvable streamEncryption) When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.streamModeDetails(CfnStreamPropsMixin.StreamModeDetailsProperty streamModeDetails) Specifies the capacity mode to which you want to set your data stream.streamModeDetails(IResolvable streamModeDetails) Specifies the capacity mode to which you want to set your data stream.An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.warmThroughputMiBps(Number warmThroughputMiBps) The target warm throughput in MB/s that the stream should be scaled to handle.
-
Method Details
-
create
@Stability(Stable) public static CfnStreamPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnStreamPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnStreamPropsMixin.Builder.
-
desiredShardLevelMetrics
@Stability(Stable) public CfnStreamPropsMixin.Builder desiredShardLevelMetrics(List<String> desiredShardLevelMetrics) A list of shard-level metrics in properties to enable enhanced monitoring mode.- Parameters:
desiredShardLevelMetrics- A list of shard-level metrics in properties to enable enhanced monitoring mode. This parameter is required.- Returns:
this- See Also:
-
maxRecordSizeInKiB
The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream.- Parameters:
maxRecordSizeInKiB- The maximum record size of a single record in kibibyte (KiB) that you can write to, and read from a stream. This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
name- The name of the Kinesis stream. This parameter is required.- Returns:
this- See Also:
-
retentionPeriodHours
@Stability(Stable) public CfnStreamPropsMixin.Builder retentionPeriodHours(Number 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.
- Parameters:
retentionPeriodHours- The number of hours for the data records that are stored in shards to remain accessible. This parameter is required.- Returns:
this- See Also:
-
shardCount
The number of shards that the stream uses.For greater provisioned throughput, increase the number of shards.
- Parameters:
shardCount- The number of shards that the stream uses. This parameter is required.- Returns:
this- See Also:
-
streamEncryption
@Stability(Stable) public CfnStreamPropsMixin.Builder streamEncryption(IResolvable 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.
- Parameters:
streamEncryption- When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream. This parameter is required.- Returns:
this- See Also:
-
streamEncryption
@Stability(Stable) public CfnStreamPropsMixin.Builder streamEncryption(CfnStreamPropsMixin.StreamEncryptionProperty 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.
- Parameters:
streamEncryption- When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream. This parameter is required.- Returns:
this- See Also:
-
streamModeDetails
@Stability(Stable) public CfnStreamPropsMixin.Builder streamModeDetails(IResolvable 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.
- Parameters:
streamModeDetails- Specifies the capacity mode to which you want to set your data stream. This parameter is required.- Returns:
this- See Also:
-
streamModeDetails
@Stability(Stable) public CfnStreamPropsMixin.Builder streamModeDetails(CfnStreamPropsMixin.StreamModeDetailsProperty 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.
- Parameters:
streamModeDetails- Specifies the capacity mode to which you want to set your data stream. This parameter is required.- Returns:
this- See Also:
-
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 .
- Parameters:
tags- An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream. This parameter is required.- Returns:
this- See Also:
-
warmThroughputMiBps
@Stability(Stable) public CfnStreamPropsMixin.Builder warmThroughputMiBps(Number warmThroughputMiBps) The target warm throughput in MB/s that the stream should be scaled to handle.This represents the throughput capacity that will be immediately available for write operations.
- Parameters:
warmThroughputMiBps- The target warm throughput in MB/s that the stream should be scaled to handle. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStreamPropsMixin>- Returns:
- a newly built instance of
CfnStreamPropsMixin.
-