smithy4s.com.amazonaws.kinesis.UpdateStreamModeInput.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
The newest version!
package com.amazonaws.kinesis
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.struct
/** @param StreamARN
* Specifies the ARN of the data stream whose capacity mode you want to update.
* @param StreamModeDetails
* Specifies the capacity mode to which you want to set your data stream. Currently, in
* Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
*/
final case class UpdateStreamModeInput(streamARN: StreamARN, streamModeDetails: StreamModeDetails)
object UpdateStreamModeInput extends ShapeTag.Companion[UpdateStreamModeInput] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "UpdateStreamModeInput")
val hints: Hints = Hints(
smithy.api.Input(),
).lazily
// constructor using the original order from the spec
private def make(streamARN: StreamARN, streamModeDetails: StreamModeDetails): UpdateStreamModeInput = UpdateStreamModeInput(streamARN, streamModeDetails)
implicit val schema: Schema[UpdateStreamModeInput] = struct(
StreamARN.schema.required[UpdateStreamModeInput]("StreamARN", _.streamARN).addHints(smithy.api.Documentation(" Specifies the ARN of the data stream whose capacity mode you want to update.
")),
StreamModeDetails.schema.required[UpdateStreamModeInput]("StreamModeDetails", _.streamModeDetails).addHints(smithy.api.Documentation(" Specifies the capacity mode to which you want to set your data stream. Currently, in\n Kinesis Data Streams, you can choose between an on-demand capacity mode and a provisioned capacity mode for your data streams.
")),
)(make).withId(id).addHints(hints)
}