smithy4s.com.amazonaws.kinesis.UpdateShardCountOutput.scala Maven / Gradle / Ivy
package com.amazonaws.kinesis
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.struct
/** @param StreamName
* The name of the stream.
* @param CurrentShardCount
* The current number of shards.
* @param TargetShardCount
* The updated number of shards.
* @param StreamARN
* The ARN of the stream.
*/
final case class UpdateShardCountOutput(streamName: Option[StreamName] = None, currentShardCount: Option[PositiveIntegerObject] = None, targetShardCount: Option[PositiveIntegerObject] = None, streamARN: Option[StreamARN] = None)
object UpdateShardCountOutput extends ShapeTag.Companion[UpdateShardCountOutput] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "UpdateShardCountOutput")
val hints: Hints = Hints(
smithy.api.Output(),
).lazily
// constructor using the original order from the spec
private def make(streamName: Option[StreamName], currentShardCount: Option[PositiveIntegerObject], targetShardCount: Option[PositiveIntegerObject], streamARN: Option[StreamARN]): UpdateShardCountOutput = UpdateShardCountOutput(streamName, currentShardCount, targetShardCount, streamARN)
implicit val schema: Schema[UpdateShardCountOutput] = struct(
StreamName.schema.optional[UpdateShardCountOutput]("StreamName", _.streamName).addHints(smithy.api.Documentation("The name of the stream.
")),
PositiveIntegerObject.schema.optional[UpdateShardCountOutput]("CurrentShardCount", _.currentShardCount).addHints(smithy.api.Documentation("The current number of shards.
")),
PositiveIntegerObject.schema.optional[UpdateShardCountOutput]("TargetShardCount", _.targetShardCount).addHints(smithy.api.Documentation("The updated number of shards.
")),
StreamARN.schema.optional[UpdateShardCountOutput]("StreamARN", _.streamARN).addHints(smithy.api.Documentation("The ARN of the stream.
")),
)(make).withId(id).addHints(hints)
}