smithy.api.IdempotencyToken.scala Maven / Gradle / Ivy
package smithy.api
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** Defines the input member of an operation that is used by the server to
* identify and discard replayed requests.
*/
final case class IdempotencyToken()
object IdempotencyToken extends ShapeTag.Companion[IdempotencyToken] {
val id: ShapeId = ShapeId("smithy.api", "idempotencyToken")
val hints: Hints = Hints(
smithy.api.NotProperty(),
smithy.api.Documentation("Defines the input member of an operation that is used by the server to\nidentify and discard replayed requests."),
smithy.api.Trait(selector = Some("structure > :test(member > string)"), structurallyExclusive = Some(smithy.api.StructurallyExclusive.MEMBER.widen), conflicts = None, breakingChanges = Some(List(smithy.api.TraitDiffRule(change = smithy.api.TraitChangeType.REMOVE.widen, severity = smithy.api.Severity.ERROR.widen, path = None, message = None)))),
).lazily
implicit val schema: Schema[IdempotencyToken] = constant(IdempotencyToken()).withId(id).addHints(hints)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy