scala.smithy.rules.StaticContextParamDefinition.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Show all versions of kinesis4cats-smithy4s-client_3 Show documentation
Cats tooling for the Smithy4s Kinesis Client
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(),
)
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)
}