![JAR search and dependency download from the Maven repository](/logo.png)
cognitect.aws.personalize_runtime.specs.clj Maven / Gradle / Ivy
;; Copyright (c) Cognitect, Inc.
;; All rights reserved.
(ns cognitect.aws.personalize-runtime.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.personalize-runtime/GetRecommendationsResponse
(s/keys
:opt-un
[:cognitect.aws.personalize-runtime.GetRecommendationsResponse/itemList
:cognitect.aws.personalize-runtime.GetRecommendationsResponse/recommendationId]))
(s/def
:cognitect.aws.personalize-runtime/GetPersonalizedRankingResponse
(s/keys
:opt-un
[:cognitect.aws.personalize-runtime.GetPersonalizedRankingResponse/personalizedRanking
:cognitect.aws.personalize-runtime.GetPersonalizedRankingResponse/recommendationId]))
(s/def
:cognitect.aws.personalize-runtime/ItemID
(s/spec
(s/and string? #(>= 256 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 256) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/FilterValues
(s/map-of
:cognitect.aws.personalize-runtime/FilterAttributeName
:cognitect.aws.personalize-runtime/FilterAttributeValue
:max-count
25))
(s/def
:cognitect.aws.personalize-runtime/ActionID
(s/spec
(s/and string? #(>= 256 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 256) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/NumResults
(s/spec (s/and int? #(<= 0 %)) :gen #(gen/choose 0 Long/MAX_VALUE)))
(s/def
:cognitect.aws.personalize-runtime/Score
(s/spec double? :gen #(gen/double* {:infinite? false, :NaN? false})))
(s/def
:cognitect.aws.personalize-runtime/PredictedItem
(s/keys
:opt-un
[:cognitect.aws.personalize-runtime.PredictedItem/score
:cognitect.aws.personalize-runtime.PredictedItem/promotionName
:cognitect.aws.personalize-runtime.PredictedItem/metadata
:cognitect.aws.personalize-runtime.PredictedItem/reason
:cognitect.aws.personalize-runtime.PredictedItem/itemId]))
(s/def
:cognitect.aws.personalize-runtime/GetPersonalizedRankingRequest
(s/keys
:req-un
[:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/campaignArn
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/inputList
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/userId]
:opt-un
[:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/metadataColumns
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/filterArn
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/context
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/filterValues]))
(s/def
:cognitect.aws.personalize-runtime/GetActionRecommendationsResponse
(s/keys
:opt-un
[:cognitect.aws.personalize-runtime.GetActionRecommendationsResponse/actionList
:cognitect.aws.personalize-runtime.GetActionRecommendationsResponse/recommendationId]))
(s/def
:cognitect.aws.personalize-runtime/ActionList
(s/coll-of :cognitect.aws.personalize-runtime/PredictedAction))
(s/def
:cognitect.aws.personalize-runtime/Reason
(s/spec
(s/and string? #(>= 256 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 256) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/FilterAttributeName
(s/spec #(re-matches (re-pattern "[A-Za-z0-9_]+") %) :gen #(gen/string)))
(s/def
:cognitect.aws.personalize-runtime/ColumnName
(s/spec
(s/and string? #(>= 150 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 150) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/Context
(s/map-of
:cognitect.aws.personalize-runtime/AttributeName
:cognitect.aws.personalize-runtime/AttributeValue
:max-count
150))
(s/def
:cognitect.aws.personalize-runtime/GetActionRecommendationsRequest
(s/keys
:opt-un
[:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/filterArn
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/userId
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/filterValues
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/campaignArn
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/numResults]))
(s/def
:cognitect.aws.personalize-runtime/GetRecommendationsRequest
(s/keys
:opt-un
[:cognitect.aws.personalize-runtime.GetRecommendationsRequest/metadataColumns
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/filterArn
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/userId
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/context
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/recommenderArn
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/itemId
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/filterValues
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/promotions
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/campaignArn
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/numResults]))
(s/def
:cognitect.aws.personalize-runtime/DatasetType
(s/spec
(s/and string? #(>= 256 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 256) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/Metadata
(s/map-of
:cognitect.aws.personalize-runtime/ColumnName
:cognitect.aws.personalize-runtime/ColumnValue))
(s/def
:cognitect.aws.personalize-runtime/Promotion
(s/keys
:opt-un
[:cognitect.aws.personalize-runtime.Promotion/filterArn
:cognitect.aws.personalize-runtime.Promotion/name
:cognitect.aws.personalize-runtime.Promotion/filterValues
:cognitect.aws.personalize-runtime.Promotion/percentPromotedItems]))
(s/def
:cognitect.aws.personalize-runtime/UserID
(s/spec
(s/and string? #(>= 256 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 256) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/PredictedAction
(s/keys
:opt-un
[:cognitect.aws.personalize-runtime.PredictedAction/score
:cognitect.aws.personalize-runtime.PredictedAction/actionId]))
(s/def
:cognitect.aws.personalize-runtime/Arn
(s/spec #(re-matches (re-pattern "arn:([a-z\\d-]+):personalize:.*:.*:.+") %) :gen #(gen/string)))
(s/def
:cognitect.aws.personalize-runtime/AttributeName
(s/spec #(re-matches (re-pattern "[A-Za-z\\d_]+") %) :gen #(gen/string)))
(s/def
:cognitect.aws.personalize-runtime/Name
(s/spec #(re-matches (re-pattern "^[a-zA-Z0-9][a-zA-Z0-9\\-_]*") %) :gen #(gen/string)))
(s/def
:cognitect.aws.personalize-runtime/ReasonList
(s/coll-of :cognitect.aws.personalize-runtime/Reason))
(s/def
:cognitect.aws.personalize-runtime/FilterAttributeValue
(s/spec
(s/and string? #(>= 1000 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 1000) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/PercentPromotedItems
(s/spec (s/and int? #(<= 1 % 100)) :gen #(gen/choose 1 100)))
(s/def
:cognitect.aws.personalize-runtime/InputList
(s/coll-of :cognitect.aws.personalize-runtime/ItemID))
(s/def :cognitect.aws.personalize-runtime/RecommendationID string?)
(s/def
:cognitect.aws.personalize-runtime/ColumnValue
(s/spec
(s/and string? #(>= 20000 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 20000) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/AttributeValue
(s/spec
(s/and string? #(>= 1000 (count %)))
:gen
(fn []
(gen/fmap #(apply str %) (gen/bind (gen/choose 0 1000) #(gen/vector (gen/char-alpha) %))))))
(s/def
:cognitect.aws.personalize-runtime/PromotionList
(s/coll-of :cognitect.aws.personalize-runtime/Promotion :max-count 1))
(s/def
:cognitect.aws.personalize-runtime/ItemList
(s/coll-of :cognitect.aws.personalize-runtime/PredictedItem))
(s/def
:cognitect.aws.personalize-runtime/ColumnNamesList
(s/coll-of :cognitect.aws.personalize-runtime/ColumnName :max-count 99))
(s/def
:cognitect.aws.personalize-runtime/MetadataColumns
(s/map-of
:cognitect.aws.personalize-runtime/DatasetType
:cognitect.aws.personalize-runtime/ColumnNamesList
:max-count
1))
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsResponse/itemList
:cognitect.aws.personalize-runtime/ItemList)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsResponse/recommendationId
:cognitect.aws.personalize-runtime/RecommendationID)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingResponse/personalizedRanking
:cognitect.aws.personalize-runtime/ItemList)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingResponse/recommendationId
:cognitect.aws.personalize-runtime/RecommendationID)
(s/def
:cognitect.aws.personalize-runtime.PredictedItem/itemId
:cognitect.aws.personalize-runtime/ItemID)
(s/def
:cognitect.aws.personalize-runtime.PredictedItem/score
:cognitect.aws.personalize-runtime/Score)
(s/def
:cognitect.aws.personalize-runtime.PredictedItem/promotionName
:cognitect.aws.personalize-runtime/Name)
(s/def
:cognitect.aws.personalize-runtime.PredictedItem/metadata
:cognitect.aws.personalize-runtime/Metadata)
(s/def
:cognitect.aws.personalize-runtime.PredictedItem/reason
:cognitect.aws.personalize-runtime/ReasonList)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/campaignArn
:cognitect.aws.personalize-runtime/Arn)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/inputList
:cognitect.aws.personalize-runtime/InputList)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/userId
:cognitect.aws.personalize-runtime/UserID)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/context
:cognitect.aws.personalize-runtime/Context)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/filterArn
:cognitect.aws.personalize-runtime/Arn)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/filterValues
:cognitect.aws.personalize-runtime/FilterValues)
(s/def
:cognitect.aws.personalize-runtime.GetPersonalizedRankingRequest/metadataColumns
:cognitect.aws.personalize-runtime/MetadataColumns)
(s/def
:cognitect.aws.personalize-runtime.GetActionRecommendationsResponse/actionList
:cognitect.aws.personalize-runtime/ActionList)
(s/def
:cognitect.aws.personalize-runtime.GetActionRecommendationsResponse/recommendationId
:cognitect.aws.personalize-runtime/RecommendationID)
(s/def
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/campaignArn
:cognitect.aws.personalize-runtime/Arn)
(s/def
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/userId
:cognitect.aws.personalize-runtime/UserID)
(s/def
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/numResults
:cognitect.aws.personalize-runtime/NumResults)
(s/def
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/filterArn
:cognitect.aws.personalize-runtime/Arn)
(s/def
:cognitect.aws.personalize-runtime.GetActionRecommendationsRequest/filterValues
:cognitect.aws.personalize-runtime/FilterValues)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/promotions
:cognitect.aws.personalize-runtime/PromotionList)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/recommenderArn
:cognitect.aws.personalize-runtime/Arn)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/numResults
:cognitect.aws.personalize-runtime/NumResults)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/filterArn
:cognitect.aws.personalize-runtime/Arn)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/context
:cognitect.aws.personalize-runtime/Context)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/userId
:cognitect.aws.personalize-runtime/UserID)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/metadataColumns
:cognitect.aws.personalize-runtime/MetadataColumns)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/filterValues
:cognitect.aws.personalize-runtime/FilterValues)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/itemId
:cognitect.aws.personalize-runtime/ItemID)
(s/def
:cognitect.aws.personalize-runtime.GetRecommendationsRequest/campaignArn
:cognitect.aws.personalize-runtime/Arn)
(s/def :cognitect.aws.personalize-runtime.Promotion/name :cognitect.aws.personalize-runtime/Name)
(s/def
:cognitect.aws.personalize-runtime.Promotion/percentPromotedItems
:cognitect.aws.personalize-runtime/PercentPromotedItems)
(s/def
:cognitect.aws.personalize-runtime.Promotion/filterArn
:cognitect.aws.personalize-runtime/Arn)
(s/def
:cognitect.aws.personalize-runtime.Promotion/filterValues
:cognitect.aws.personalize-runtime/FilterValues)
(s/def
:cognitect.aws.personalize-runtime.PredictedAction/actionId
:cognitect.aws.personalize-runtime/ActionID)
(s/def
:cognitect.aws.personalize-runtime.PredictedAction/score
:cognitect.aws.personalize-runtime/Score)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy