scala.com.amazonaws.kinesis.KMSAccessDeniedException.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 ciphertext references a key that doesn't exist or that you don't have access
* to.
* @param message
* A message that provides information about the error.
*/
final case class KMSAccessDeniedException(message: Option[ErrorMessage] = None) extends Smithy4sThrowable {
override def getMessage(): String = message.map(_.value).orNull
}
object KMSAccessDeniedException extends ShapeTag.Companion[KMSAccessDeniedException] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "KMSAccessDeniedException")
val hints: Hints = Hints(
smithy.api.Error.CLIENT.widen,
smithy.api.Documentation("The ciphertext references a key that doesn\'t exist or that you don\'t have access\n to.
"),
)
implicit val schema: Schema[KMSAccessDeniedException] = struct(
ErrorMessage.schema.optional[KMSAccessDeniedException]("message", _.message).addHints(smithy.api.Documentation("A message that provides information about the error.
")),
){
KMSAccessDeniedException.apply
}.withId(id).addHints(hints)
}