scala.com.amazonaws.kinesis.ProvisionedThroughputExceededException.scala Maven / Gradle / Ivy
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
package com.amazonaws.kinesis
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.Smithy4sThrowable
import smithy4s.schema.Schema.struct
/** The request rate for the stream is too high, or the requested data is too large for
* the available throughput. Reduce the frequency or size of your requests. For more
* information, see Streams Limits in the
* Amazon Kinesis Data Streams Developer Guide, and Error Retries and
* Exponential Backoff in Amazon Web Services in the Amazon Web Services General Reference.
* @param message
* A message that provides information about the error.
*/
final case class ProvisionedThroughputExceededException(message: Option[ErrorMessage] = None) extends Smithy4sThrowable {
override def getMessage(): String = message.map(_.value).orNull
}
object ProvisionedThroughputExceededException extends ShapeTag.Companion[ProvisionedThroughputExceededException] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "ProvisionedThroughputExceededException")
val hints: Hints = Hints(
smithy.api.Error.CLIENT.widen,
smithy.api.Documentation("The request rate for the stream is too high, or the requested data is too large for\n the available throughput. Reduce the frequency or size of your requests. For more\n information, see Streams Limits in the\n Amazon Kinesis Data Streams Developer Guide, and Error Retries and\n Exponential Backoff in Amazon Web Services in the Amazon Web Services General Reference.
"),
)
implicit val schema: Schema[ProvisionedThroughputExceededException] = struct(
ErrorMessage.schema.optional[ProvisionedThroughputExceededException]("message", _.message).addHints(smithy.api.Documentation("A message that provides information about the error.
")),
){
ProvisionedThroughputExceededException.apply
}.withId(id).addHints(hints)
}