All Downloads are FREE. Search and download functionalities are using the official Maven repository.

smithy.api.HttpChecksumRequired.scala Maven / Gradle / Ivy

There is a newer version: 0.19.0-41-91762fb
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy