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

smithy4s.smithy.rules.EndpointHeaderValue.scala Maven / Gradle / Ivy

The newest version!
package smithy.rules

import smithy4s.Hints
import smithy4s.Newtype
import smithy4s.Schema
import smithy4s.ShapeId
import smithy4s.schema.Schema.bijection
import smithy4s.schema.Schema.list
import smithy4s.schema.Schema.string

/** A list of transport header values.
  * @param member
  *   A transport header value.
  */
object EndpointHeaderValue extends Newtype[List[String]] {
  val id: ShapeId = ShapeId("smithy.rules", "EndpointHeaderValue")
  val hints: Hints = Hints(
    smithy.api.Documentation("A list of transport header values."),
    smithy.api.Unstable(),
    smithy.api.Private(),
  ).lazily
  val underlyingSchema: Schema[List[String]] = list(string.addMemberHints(smithy.api.Documentation("A transport header value."))).withId(id).addHints(hints)
  implicit val schema: Schema[EndpointHeaderValue] = bijection(underlyingSchema, asBijection)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy