scala.com.amazonaws.kinesis.MergeShardsInput.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Cats tooling for the Smithy4s Kinesis Client
package com.amazonaws.kinesis
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.struct
/** Represents the input for MergeShards
.
* @param StreamName
* The name of the stream for the merge.
* @param ShardToMerge
* The shard ID of the shard to combine with the adjacent shard for the merge.
* @param AdjacentShardToMerge
* The shard ID of the adjacent shard for the merge.
* @param StreamARN
* The ARN of the stream.
*/
final case class MergeShardsInput(shardToMerge: ShardId, adjacentShardToMerge: ShardId, streamName: Option[StreamName] = None, streamARN: Option[StreamARN] = None)
object MergeShardsInput extends ShapeTag.Companion[MergeShardsInput] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "MergeShardsInput")
val hints: Hints = Hints(
smithy.api.Documentation("Represents the input for MergeShards
.
"),
smithy.api.Input(),
)
implicit val schema: Schema[MergeShardsInput] = struct(
ShardId.schema.required[MergeShardsInput]("ShardToMerge", _.shardToMerge).addHints(smithy.api.Documentation("The shard ID of the shard to combine with the adjacent shard for the merge.
")),
ShardId.schema.required[MergeShardsInput]("AdjacentShardToMerge", _.adjacentShardToMerge).addHints(smithy.api.Documentation("The shard ID of the adjacent shard for the merge.
")),
StreamName.schema.optional[MergeShardsInput]("StreamName", _.streamName).addHints(smithy.api.Documentation("The name of the stream for the merge.
")),
StreamARN.schema.optional[MergeShardsInput]("StreamARN", _.streamARN).addHints(smithy.api.Documentation("The ARN of the stream.
")),
){
MergeShardsInput.apply
}.withId(id).addHints(hints)
}