smithy4s.com.amazonaws.kinesis.AccessDeniedException.scala Maven / Gradle / Ivy
package com.amazonaws.kinesis
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.Smithy4sThrowable
import smithy4s.schema.Schema.struct
/** Specifies that you do not have the permissions required to perform this
* operation.
*/
final case class AccessDeniedException(message: Option[ErrorMessage] = None) extends Smithy4sThrowable {
override def getMessage(): String = message.map(_.value).orNull
}
object AccessDeniedException extends ShapeTag.Companion[AccessDeniedException] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "AccessDeniedException")
val hints: Hints = Hints(
smithy.api.Error.CLIENT.widen,
smithy.api.Documentation("Specifies that you do not have the permissions required to perform this\n operation.
"),
).lazily
// constructor using the original order from the spec
private def make(message: Option[ErrorMessage]): AccessDeniedException = AccessDeniedException(message)
implicit val schema: Schema[AccessDeniedException] = struct(
ErrorMessage.schema.optional[AccessDeniedException]("message", _.message),
)(make).withId(id).addHints(hints)
}