All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.com.amazonaws.kinesis.Shard.scala Maven / Gradle / Ivy

There is a newer version: 0.0.32
Show newest version
package com.amazonaws.kinesis

import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.struct

/** 

A uniquely identified group of data records in a Kinesis data stream.

* @param ParentShardId *

The shard ID of the shard's parent.

* @param AdjacentParentShardId *

The shard ID of the shard adjacent to the shard's parent.

* @param HashKeyRange *

The range of possible hash key values for the shard, which is a set of ordered * contiguous positive integers.

* @param SequenceNumberRange *

The range of possible sequence numbers for the shard.

* @param ShardId *

The unique identifier of the shard within the stream.

*/ final case class Shard(shardId: ShardId, hashKeyRange: HashKeyRange, sequenceNumberRange: SequenceNumberRange, parentShardId: Option[ShardId] = None, adjacentParentShardId: Option[ShardId] = None) object Shard extends ShapeTag.Companion[Shard] { val id: ShapeId = ShapeId("com.amazonaws.kinesis", "Shard") val hints: Hints = Hints( smithy.api.Documentation("

A uniquely identified group of data records in a Kinesis data stream.

"), ).lazily implicit val schema: Schema[Shard] = struct( ShardId.schema.required[Shard]("ShardId", _.shardId).addHints(smithy.api.Documentation("

The unique identifier of the shard within the stream.

")), HashKeyRange.schema.required[Shard]("HashKeyRange", _.hashKeyRange).addHints(smithy.api.Documentation("

The range of possible hash key values for the shard, which is a set of ordered\n contiguous positive integers.

")), SequenceNumberRange.schema.required[Shard]("SequenceNumberRange", _.sequenceNumberRange).addHints(smithy.api.Documentation("

The range of possible sequence numbers for the shard.

")), ShardId.schema.optional[Shard]("ParentShardId", _.parentShardId).addHints(smithy.api.Documentation("

The shard ID of the shard\'s parent.

")), ShardId.schema.optional[Shard]("AdjacentParentShardId", _.adjacentParentShardId).addHints(smithy.api.Documentation("

The shard ID of the shard adjacent to the shard\'s parent.

")), ){ Shard.apply }.withId(id).addHints(hints) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy