io.burkard.cdk.services.kinesis.Stream.scala Maven / Gradle / Ivy
The newest version!
package io.burkard.cdk.services.kinesis
@SuppressWarnings(Array("org.wartremover.warts.DefaultArguments", "org.wartremover.warts.Null", "DisableSyntax.null"))
object Stream {
def apply(
internalResourceId: String,
retentionPeriod: Option[software.amazon.awscdk.Duration] = None,
encryption: Option[software.amazon.awscdk.services.kinesis.StreamEncryption] = None,
shardCount: Option[Number] = None,
streamMode: Option[software.amazon.awscdk.services.kinesis.StreamMode] = None,
encryptionKey: Option[software.amazon.awscdk.services.kms.IKey] = None,
streamName: Option[String] = None
)(implicit stackCtx: software.amazon.awscdk.Stack): software.amazon.awscdk.services.kinesis.Stream =
software.amazon.awscdk.services.kinesis.Stream.Builder
.create(stackCtx, internalResourceId)
.retentionPeriod(retentionPeriod.orNull)
.encryption(encryption.orNull)
.shardCount(shardCount.orNull)
.streamMode(streamMode.orNull)
.encryptionKey(encryptionKey.orNull)
.streamName(streamName.orNull)
.build()
}