scala.com.amazonaws.kinesis.KMSThrottlingException.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.Smithy4sThrowable
import smithy4s.schema.Schema.struct
/** The request was denied due to request throttling. For more information about
* throttling, see Limits in
* the Amazon Web Services Key Management Service Developer
* Guide.
* @param message
* A message that provides information about the error.
*/
final case class KMSThrottlingException(message: Option[ErrorMessage] = None) extends Smithy4sThrowable {
override def getMessage(): String = message.map(_.value).orNull
}
object KMSThrottlingException extends ShapeTag.Companion[KMSThrottlingException] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "KMSThrottlingException")
val hints: Hints = Hints(
smithy.api.Error.CLIENT.widen,
smithy.api.Documentation("The request was denied due to request throttling. For more information about\n throttling, see Limits in\n the Amazon Web Services Key Management Service Developer\n Guide.
"),
).lazily
implicit val schema: Schema[KMSThrottlingException] = struct(
ErrorMessage.schema.optional[KMSThrottlingException]("message", _.message).addHints(smithy.api.Documentation("A message that provides information about the error.
")),
){
KMSThrottlingException.apply
}.withId(id).addHints(hints)
}