@Stability(value=Experimental) public static final class StreamProps.Builder extends Object implements software.amazon.jsii.Builder<StreamProps>
StreamProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
StreamProps |
build()
Builds the configured instance.
|
StreamProps.Builder |
encryption(StreamEncryption encryption)
Sets the value of
StreamProps.getEncryption() |
StreamProps.Builder |
encryptionKey(IKey encryptionKey)
Sets the value of
StreamProps.getEncryptionKey() |
StreamProps.Builder |
retentionPeriod(Duration retentionPeriod)
Sets the value of
StreamProps.getRetentionPeriod() |
StreamProps.Builder |
shardCount(Number shardCount)
Sets the value of
StreamProps.getShardCount() |
StreamProps.Builder |
streamName(String streamName)
Sets the value of
StreamProps.getStreamName() |
@Stability(value=Experimental) public StreamProps.Builder encryption(StreamEncryption encryption)
StreamProps.getEncryption()encryption - The kind of server-side encryption to apply to this stream.
If you choose KMS, you can specify a KMS key via encryptionKey. If
encryption key is not specified, a key will automatically be created.this@Stability(value=Experimental) public StreamProps.Builder encryptionKey(IKey encryptionKey)
StreamProps.getEncryptionKey()encryptionKey - External KMS key to use for stream encryption.
The 'encryption' property must be set to "Kms".this@Stability(value=Experimental) public StreamProps.Builder retentionPeriod(Duration retentionPeriod)
StreamProps.getRetentionPeriod()retentionPeriod - The number of hours for the data records that are stored in shards to remain accessible.this@Stability(value=Experimental) public StreamProps.Builder shardCount(Number shardCount)
StreamProps.getShardCount()shardCount - The number of shards for the stream.this@Stability(value=Experimental) public StreamProps.Builder streamName(String streamName)
StreamProps.getStreamName()streamName - Enforces a particular physical stream name.this@Stability(value=Experimental) public StreamProps build()
build in interface software.amazon.jsii.Builder<StreamProps>StreamPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.