| Modifier and Type | Method and Description |
|---|---|
Stream |
build() |
static Stream.Builder |
create(software.constructs.Construct scope,
String id) |
Stream.Builder |
encryption(StreamEncryption encryption)
(experimental) The kind of server-side encryption to apply to this stream.
|
Stream.Builder |
encryptionKey(IKey encryptionKey)
(experimental) External KMS key to use for stream encryption.
|
Stream.Builder |
retentionPeriod(Duration retentionPeriod)
(experimental) The number of hours for the data records that are stored in shards to remain accessible.
|
Stream.Builder |
shardCount(Number shardCount)
(experimental) The number of shards for the stream.
|
Stream.Builder |
streamName(String streamName)
(experimental) Enforces a particular physical stream name.
|
@Stability(value=Experimental) public static Stream.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.Stream.Builder.@Stability(value=Experimental) public Stream.Builder encryption(StreamEncryption encryption)
If you choose KMS, you can specify a KMS key via encryptionKey. If
encryption key is not specified, a key will automatically be created.
Default: - StreamEncryption.KMS if encrypted Streams are supported in the region or StreamEncryption.UNENCRYPTED otherwise. StreamEncryption.KMS if an encryption key is supplied through the encryptionKey property
encryption - The kind of server-side encryption to apply to this stream. This parameter is required.this@Stability(value=Experimental) public Stream.Builder encryptionKey(IKey encryptionKey)
The 'encryption' property must be set to "Kms".
Default: - Kinesis Data Streams master key ('/alias/aws/kinesis'). If encryption is set to StreamEncryption.KMS and this property is undefined, a new KMS key will be created and associated with this stream.
encryptionKey - External KMS key to use for stream encryption. This parameter is required.this@Stability(value=Experimental) public Stream.Builder retentionPeriod(Duration retentionPeriod)
Default: Duration.hours(24)
retentionPeriod - The number of hours for the data records that are stored in shards to remain accessible. This parameter is required.this@Stability(value=Experimental) public Stream.Builder shardCount(Number shardCount)
Default: 1
shardCount - The number of shards for the stream. This parameter is required.this@Stability(value=Experimental) public Stream.Builder streamName(String streamName)
Default:
streamName - Enforces a particular physical stream name. This parameter is required.thisCopyright © 2021. All rights reserved.