smithy4s.smithy.rules.OperationInputs.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
/** A list of operation input descriptions for an endpoint rule-set test case.
* @param member
* The service operation configuration to be used for testing the rules-engine.
*/
object OperationInputs extends Newtype[List[OperationInput]] {
val id: ShapeId = ShapeId("smithy.rules", "OperationInputs")
val hints: Hints = Hints(
smithy.api.Documentation("A list of operation input descriptions for an endpoint rule-set test case."),
smithy.api.Unstable(),
smithy.api.Private(),
).lazily
val underlyingSchema: Schema[List[OperationInput]] = list(OperationInput.schema.addMemberHints(smithy.api.Documentation("The service operation configuration to be used for testing the rules-engine."))).withId(id).addHints(hints)
implicit val schema: Schema[OperationInputs] = bijection(underlyingSchema, asBijection)
}