smithy4s.com.amazonaws.kinesis.ResourceNotFoundException.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_sjs1_3 Show documentation
Show all versions of kinesis4cats-smithy4s-client_sjs1_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.Smithy4sThrowable
import smithy4s.schema.Schema.struct
/** The requested resource could not be found. The stream might not be specified
* correctly.
* @param message
* A message that provides information about the error.
*/
final case class ResourceNotFoundException(message: Option[ErrorMessage] = None) extends Smithy4sThrowable {
override def getMessage(): String = message.map(_.value).orNull
}
object ResourceNotFoundException extends ShapeTag.Companion[ResourceNotFoundException] {
val id: ShapeId = ShapeId("com.amazonaws.kinesis", "ResourceNotFoundException")
val hints: Hints = Hints(
smithy.api.Error.CLIENT.widen,
smithy.api.Documentation("The requested resource could not be found. The stream might not be specified\n correctly.
"),
).lazily
// constructor using the original order from the spec
private def make(message: Option[ErrorMessage]): ResourceNotFoundException = ResourceNotFoundException(message)
implicit val schema: Schema[ResourceNotFoundException] = struct(
ErrorMessage.schema.optional[ResourceNotFoundException]("message", _.message).addHints(smithy.api.Documentation("A message that provides information about the error.
")),
)(make).withId(id).addHints(hints)
}