Interface StreamProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
StreamProps.Jsii$Proxy
Example:
Key key = new Key(this, "MyKey");
Stream.Builder.create(this, "MyEncryptedStream")
.encryption(StreamEncryption.KMS)
.encryptionKey(key)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forStreamPropsstatic final classAn implementation forStreamProps -
Method Summary
Modifier and TypeMethodDescriptionstatic StreamProps.Builderbuilder()default StreamEncryptionThe kind of server-side encryption to apply to this stream.default IKeyExternal KMS key to use for stream encryption.default RemovalPolicyPolicy to apply when the stream is removed from the stack.default DurationThe number of hours for the data records that are stored in shards to remain accessible.default NumberThe number of shards for the stream.default List<ShardLevelMetrics> A list of shard-level metrics in properties to enable enhanced monitoring mode.default StreamModeThe capacity mode of this stream.default StringEnforces a particular physical stream name.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEncryption
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.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
-
getEncryptionKey
External KMS key to use for stream encryption.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.
-
getRemovalPolicy
Policy to apply when the stream is removed from the stack.Default: RemovalPolicy.RETAIN
-
getRetentionPeriod
The number of hours for the data records that are stored in shards to remain accessible.Default: Duration.hours(24)
-
getShardCount
The number of shards for the stream.Can only be provided if streamMode is Provisioned.
Default: 1
-
getShardLevelMetrics
A list of shard-level metrics in properties to enable enhanced monitoring mode.Default: undefined - AWS Kinesis default is disabled
- See Also:
-
getStreamMode
The capacity mode of this stream.Default: StreamMode.PROVISIONED
-
getStreamName
Enforces a particular physical stream name.Default:
-
builder
- Returns:
- a
StreamProps.BuilderofStreamProps
-