smithy.api.HttpChecksumRequired.scala Maven / Gradle / Ivy
package smithy.api
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** Marks an operation as requiring checksum in its HTTP request.
* By default, the checksum used for a service is a MD5 checksum
* passed in the Content-MD5 header.
*/
final case class HttpChecksumRequired()
object HttpChecksumRequired extends ShapeTag.Companion[HttpChecksumRequired] {
val id: ShapeId = ShapeId("smithy.api", "httpChecksumRequired")
val hints: Hints = Hints(
smithy.api.Documentation("Marks an operation as requiring checksum in its HTTP request.\nBy default, the checksum used for a service is a MD5 checksum\npassed in the Content-MD5 header."),
smithy.api.Unstable(),
smithy.api.Trait(selector = Some("operation"), structurallyExclusive = None, conflicts = None, breakingChanges = None),
).lazily
implicit val schema: Schema[HttpChecksumRequired] = constant(HttpChecksumRequired()).withId(id).addHints(hints)
}