cognitect.aws.runtime_sagemaker.specs.clj Maven / Gradle / Ivy
;; Copyright (c) Cognitect, Inc.
;; All rights reserved.
(ns cognitect.aws.runtime-sagemaker.specs
(:require [clojure.spec.alpha :as s] [clojure.spec.gen.alpha :as gen]))
(s/def :cognitect.aws/client map?)
(s/def :core.async/channel any?)
(s/def
:cognitect.aws.runtime-sagemaker/BodyBlob
(s/with-gen
(s/or
:byte-array
(s/and bytes? #(>= 5242880 (count %)))
:input-stream
#(instance? java.io.InputStream %))
(fn []
(gen/bind
(gen/choose (or nil 0) (or 5242880 100))
#(gen/return (byte-array % (repeatedly (fn [] (rand-int 256)))))))))
(s/def
:cognitect.aws.runtime-sagemaker/CustomAttributesHeader
(s/with-gen
(s/and string? #(>= 1024 (count %)))
(fn []
(gen/fmap
#(apply str %)
(gen/bind (gen/choose (or nil 0) (or 1024 100)) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.runtime-sagemaker/EndpointName
(s/with-gen #(re-matches (re-pattern "^[a-zA-Z0-9](-*[a-zA-Z0-9])*") %) #(gen/string)))
(s/def
:cognitect.aws.runtime-sagemaker/Header
(s/with-gen
(s/and string? #(>= 1024 (count %)))
(fn []
(gen/fmap
#(apply str %)
(gen/bind (gen/choose (or nil 0) (or 1024 100)) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.runtime-sagemaker/InvokeEndpointInput
(s/keys
:req-un
[:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/EndpointName
:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/Body]
:opt-un
[:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/ContentType
:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/CustomAttributes
:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/Accept]))
(s/def
:cognitect.aws.runtime-sagemaker/InvokeEndpointOutput
(s/keys
:req-un
[:cognitect.aws.runtime-sagemaker.InvokeEndpointOutput/Body]
:opt-un
[:cognitect.aws.runtime-sagemaker.InvokeEndpointOutput/ContentType
:cognitect.aws.runtime-sagemaker.InvokeEndpointOutput/CustomAttributes
:cognitect.aws.runtime-sagemaker.InvokeEndpointOutput/InvokedProductionVariant]))
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/EndpointName
:cognitect.aws.runtime-sagemaker/EndpointName)
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/Body
:cognitect.aws.runtime-sagemaker/BodyBlob)
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/ContentType
:cognitect.aws.runtime-sagemaker/Header)
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/Accept
:cognitect.aws.runtime-sagemaker/Header)
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointInput/CustomAttributes
:cognitect.aws.runtime-sagemaker/CustomAttributesHeader)
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointOutput/Body
:cognitect.aws.runtime-sagemaker/BodyBlob)
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointOutput/ContentType
:cognitect.aws.runtime-sagemaker/Header)
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointOutput/InvokedProductionVariant
:cognitect.aws.runtime-sagemaker/Header)
(s/def
:cognitect.aws.runtime-sagemaker.InvokeEndpointOutput/CustomAttributes
:cognitect.aws.runtime-sagemaker/CustomAttributesHeader)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy