@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.188Z") @Stability(value=Stable) public interface CfnStreamProps extends software.amazon.jsii.JsiiSerializable
Example:
// 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()
.name("name")
.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()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnStreamProps.Builder
A builder for
CfnStreamProps |
static class |
CfnStreamProps.Jsii$Proxy
An implementation for
CfnStreamProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnStreamProps.Builder |
builder() |
default String |
getName()
The name of the Kinesis stream.
|
default Number |
getRetentionPeriodHours()
The number of hours for the data records that are stored in shards to remain accessible.
|
default Number |
getShardCount()
The number of shards that the stream uses.
|
default Object |
getStreamEncryption()
When specified, enables or updates server-side encryption using an AWS KMS key for a specified stream.
|
default Object |
getStreamModeDetails()
Specifies the capacity mode to which you want to set your data stream.
|
default List<CfnTag> |
getTags()
An arbitrary set of tags (key–value pairs) to associate with the Kinesis stream.
|
@Stability(value=Stable) @Nullable default String getName()
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.
@Stability(value=Stable) @Nullable default Number getRetentionPeriodHours()
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.
@Stability(value=Stable) @Nullable default Number getShardCount()
For greater provisioned throughput, increase the number of shards.
@Stability(value=Stable) @Nullable default Object getStreamEncryption()
Removing this property from your stack template and updating your stack disables encryption.
@Stability(value=Stable) @Nullable default Object getStreamModeDetails()
Currently, in Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
For information about constraints for this property, see Tag Restrictions in the Amazon Kinesis Developer Guide .
@Stability(value=Stable) static CfnStreamProps.Builder builder()
CfnStreamProps.Builder of CfnStreamPropsCopyright © 2022. All rights reserved.