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

scala.smithy.rules.StaticContextParamDefinition.scala Maven / Gradle / Ivy

There is a newer version: 0.0.32
Show newest version
package smithy.rules

import smithy4s.Document
import smithy4s.Hints
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.ShapeTag
import smithy4s.schema.Schema.document
import smithy4s.schema.Schema.struct

/** A static context parameter definition.
  * @param value
  *   The value to set the associated rule-set parameter to.
  */
final case class StaticContextParamDefinition(value: Document)

object StaticContextParamDefinition extends ShapeTag.Companion[StaticContextParamDefinition] {
  val id: ShapeId = ShapeId("smithy.rules", "StaticContextParamDefinition")

  val hints: Hints = Hints(
    smithy.api.Documentation("A static context parameter definition."),
    smithy.api.Unstable(),
    smithy.api.Private(),
  ).lazily

  implicit val schema: Schema[StaticContextParamDefinition] = struct(
    document.required[StaticContextParamDefinition]("value", _.value).addHints(smithy.api.Documentation("The value to set the associated rule-set parameter to.")),
  ){
    StaticContextParamDefinition.apply
  }.withId(id).addHints(hints)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy