Class StreamProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.kinesis.StreamProps.Jsii$Proxy
All Implemented Interfaces:
StreamProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
StreamProps

@Stability(Stable) @Internal public static final class StreamProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements StreamProps
An implementation for StreamProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(StreamProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the StreamProps.Builder.
  • Method Details

    • getEncryption

      public final StreamEncryption getEncryption()
      Description copied from interface: StreamProps
      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

      Specified by:
      getEncryption in interface StreamProps
    • getEncryptionKey

      public final IKey getEncryptionKey()
      Description copied from interface: StreamProps
      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.

      Specified by:
      getEncryptionKey in interface StreamProps
    • getRemovalPolicy

      public final RemovalPolicy getRemovalPolicy()
      Description copied from interface: StreamProps
      Policy to apply when the stream is removed from the stack.

      Default: RemovalPolicy.RETAIN

      Specified by:
      getRemovalPolicy in interface StreamProps
    • getRetentionPeriod

      public final Duration getRetentionPeriod()
      Description copied from interface: StreamProps
      The number of hours for the data records that are stored in shards to remain accessible.

      Default: Duration.hours(24)

      Specified by:
      getRetentionPeriod in interface StreamProps
    • getShardCount

      public final Number getShardCount()
      Description copied from interface: StreamProps
      The number of shards for the stream.

      Can only be provided if streamMode is Provisioned.

      Default: 1

      Specified by:
      getShardCount in interface StreamProps
    • getShardLevelMetrics

      public final List<ShardLevelMetrics> getShardLevelMetrics()
      Description copied from interface: StreamProps
      A list of shard-level metrics in properties to enable enhanced monitoring mode.

      Default: undefined - AWS Kinesis default is disabled

      Specified by:
      getShardLevelMetrics in interface StreamProps
      See Also:
    • getStreamMode

      public final StreamMode getStreamMode()
      Description copied from interface: StreamProps
      The capacity mode of this stream.

      Default: StreamMode.PROVISIONED

      Specified by:
      getStreamMode in interface StreamProps
    • getStreamName

      public final String getStreamName()
      Description copied from interface: StreamProps
      Enforces a particular physical stream name.

      Default:

      Specified by:
      getStreamName in interface StreamProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object