smithy.api.NoReplace.scala Maven / Gradle / Ivy
package smithy.api
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.constant
/** Indicates that the put lifecycle operation of a resource can only be used
* to create a resource and cannot replace an existing resource.
*/
final case class NoReplace()
object NoReplace extends ShapeTag.Companion[NoReplace] {
val id: ShapeId = ShapeId("smithy.api", "noReplace")
val hints: Hints = Hints(
smithy.api.Documentation("Indicates that the put lifecycle operation of a resource can only be used\nto create a resource and cannot replace an existing resource."),
smithy.api.Trait(selector = Some("resource:test(-[put]->)"), structurallyExclusive = None, conflicts = None, breakingChanges = None),
).lazily
implicit val schema: Schema[NoReplace] = constant(NoReplace()).withId(id).addHints(hints)
}