smithy4s.smithy.rules.EndpointHeaderValue.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
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)
}