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

cognitect.aws.arc_zonal_shift.specs.clj Maven / Gradle / Ivy

;; Copyright (c) Cognitect, Inc.
;; All rights reserved.

(ns cognitect.aws.arc-zonal-shift.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.arc-zonal-shift/AvailabilityZone
  (s/spec
    (s/and string? #(<= 0 (count %) 20))
    :gen
    (fn []
      (gen/fmap #(apply str %) (gen/bind (gen/choose 0 20) #(gen/vector (gen/char-alpha) %))))))

(s/def
  :cognitect.aws.arc-zonal-shift/ManagedResourceSummary
  (s/keys
    :req-un
    [:cognitect.aws.arc-zonal-shift.ManagedResourceSummary/availabilityZones]
    :opt-un
    [:cognitect.aws.arc-zonal-shift.ManagedResourceSummary/arn
     :cognitect.aws.arc-zonal-shift.ManagedResourceSummary/name]))

(s/def
  :cognitect.aws.arc-zonal-shift/ListManagedResourcesResponse
  (s/keys
    :req-un
    [:cognitect.aws.arc-zonal-shift.ListManagedResourcesResponse/items]
    :opt-un
    [:cognitect.aws.arc-zonal-shift.ListManagedResourcesResponse/nextToken]))

(s/def
  :cognitect.aws.arc-zonal-shift/StartZonalShiftRequest
  (s/keys
    :req-un
    [:cognitect.aws.arc-zonal-shift.StartZonalShiftRequest/awayFrom
     :cognitect.aws.arc-zonal-shift.StartZonalShiftRequest/comment
     :cognitect.aws.arc-zonal-shift.StartZonalShiftRequest/expiresIn
     :cognitect.aws.arc-zonal-shift.StartZonalShiftRequest/resourceIdentifier]))

(s/def
  :cognitect.aws.arc-zonal-shift/UpdateZonalShiftRequest
  (s/keys
    :req-un
    [:cognitect.aws.arc-zonal-shift.UpdateZonalShiftRequest/zonalShiftId]
    :opt-un
    [:cognitect.aws.arc-zonal-shift.UpdateZonalShiftRequest/comment
     :cognitect.aws.arc-zonal-shift.UpdateZonalShiftRequest/expiresIn]))

(s/def
  :cognitect.aws.arc-zonal-shift/GetManagedResourceRequest
  (s/keys :req-un [:cognitect.aws.arc-zonal-shift.GetManagedResourceRequest/resourceIdentifier]))

(s/def
  :cognitect.aws.arc-zonal-shift/ZonalShiftStatus
  (s/spec string? :gen #(s/gen #{"CANCELED" "EXPIRED" "ACTIVE"})))

(s/def
  :cognitect.aws.arc-zonal-shift/AppliedStatus
  (s/spec string? :gen #(s/gen #{"APPLIED" "NOT_APPLIED"})))

(s/def
  :cognitect.aws.arc-zonal-shift/ExpiresIn
  (s/spec #(re-matches (re-pattern "^([1-9][0-9]*)(m|h)$") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.arc-zonal-shift/ListZonalShiftsRequest
  (s/keys
    :opt-un
    [:cognitect.aws.arc-zonal-shift.ListZonalShiftsRequest/maxResults
     :cognitect.aws.arc-zonal-shift.ListZonalShiftsRequest/nextToken
     :cognitect.aws.arc-zonal-shift.ListZonalShiftsRequest/status]))

(s/def
  :cognitect.aws.arc-zonal-shift/ZonalShiftInResource
  (s/keys
    :req-un
    [:cognitect.aws.arc-zonal-shift.ZonalShiftInResource/appliedStatus
     :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/awayFrom
     :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/comment
     :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/expiryTime
     :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/resourceIdentifier
     :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/startTime
     :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/zonalShiftId]))

(s/def
  :cognitect.aws.arc-zonal-shift/AvailabilityZones
  (s/coll-of :cognitect.aws.arc-zonal-shift/AvailabilityZone))

(s/def
  :cognitect.aws.arc-zonal-shift/GetManagedResourceResponse
  (s/keys
    :req-un
    [:cognitect.aws.arc-zonal-shift.GetManagedResourceResponse/appliedWeights
     :cognitect.aws.arc-zonal-shift.GetManagedResourceResponse/zonalShifts]
    :opt-un
    [:cognitect.aws.arc-zonal-shift.GetManagedResourceResponse/arn
     :cognitect.aws.arc-zonal-shift.GetManagedResourceResponse/name]))

(s/def
  :cognitect.aws.arc-zonal-shift/AppliedWeights
  (s/map-of :cognitect.aws.arc-zonal-shift/AvailabilityZone :cognitect.aws.arc-zonal-shift/Weight))

(s/def
  :cognitect.aws.arc-zonal-shift/ListZonalShiftsResponse
  (s/keys
    :opt-un
    [:cognitect.aws.arc-zonal-shift.ListZonalShiftsResponse/nextToken
     :cognitect.aws.arc-zonal-shift.ListZonalShiftsResponse/items]))

(s/def :cognitect.aws.arc-zonal-shift/StartTime inst?)

(s/def
  :cognitect.aws.arc-zonal-shift/ZonalShift
  (s/keys
    :req-un
    [:cognitect.aws.arc-zonal-shift.ZonalShift/awayFrom
     :cognitect.aws.arc-zonal-shift.ZonalShift/comment
     :cognitect.aws.arc-zonal-shift.ZonalShift/expiryTime
     :cognitect.aws.arc-zonal-shift.ZonalShift/resourceIdentifier
     :cognitect.aws.arc-zonal-shift.ZonalShift/startTime
     :cognitect.aws.arc-zonal-shift.ZonalShift/status
     :cognitect.aws.arc-zonal-shift.ZonalShift/zonalShiftId]))

(s/def
  :cognitect.aws.arc-zonal-shift/ZonalShiftsInResource
  (s/coll-of :cognitect.aws.arc-zonal-shift/ZonalShiftInResource))

(s/def :cognitect.aws.arc-zonal-shift/ExpiryTime inst?)

(s/def
  :cognitect.aws.arc-zonal-shift/ManagedResourceSummaries
  (s/coll-of :cognitect.aws.arc-zonal-shift/ManagedResourceSummary))

(s/def
  :cognitect.aws.arc-zonal-shift/ZonalShiftComment
  (s/spec
    (s/and string? #(<= 0 (count %) 128))
    :gen
    (fn []
      (gen/fmap #(apply str %) (gen/bind (gen/choose 0 128) #(gen/vector (gen/char-alpha) %))))))

(s/def
  :cognitect.aws.arc-zonal-shift/CancelZonalShiftRequest
  (s/keys :req-un [:cognitect.aws.arc-zonal-shift.CancelZonalShiftRequest/zonalShiftId]))

(s/def
  :cognitect.aws.arc-zonal-shift/MaxResults
  (s/spec (s/and int? #(<= 1 % 100)) :gen #(gen/choose 1 100)))

(s/def
  :cognitect.aws.arc-zonal-shift/ZonalShiftId
  (s/spec #(re-matches (re-pattern "^[A-Za-z0-9-]+$") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.arc-zonal-shift/ZonalShiftSummaries
  (s/coll-of :cognitect.aws.arc-zonal-shift/ZonalShiftSummary))

(s/def
  :cognitect.aws.arc-zonal-shift/ResourceArn
  (s/spec #(re-matches (re-pattern "^arn:.*$") %) :gen #(gen/string)))

(s/def
  :cognitect.aws.arc-zonal-shift/ListManagedResourcesRequest
  (s/keys
    :opt-un
    [:cognitect.aws.arc-zonal-shift.ListManagedResourcesRequest/maxResults
     :cognitect.aws.arc-zonal-shift.ListManagedResourcesRequest/nextToken]))

(s/def
  :cognitect.aws.arc-zonal-shift/Weight
  (s/spec
    (s/and double? #(<= 0 % 1))
    :gen
    #(gen/double* {:infinite? false, :NaN? false, :min 0, :max 1})))

(s/def
  :cognitect.aws.arc-zonal-shift/ZonalShiftSummary
  (s/keys
    :req-un
    [:cognitect.aws.arc-zonal-shift.ZonalShiftSummary/awayFrom
     :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/comment
     :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/expiryTime
     :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/resourceIdentifier
     :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/startTime
     :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/status
     :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/zonalShiftId]))

(s/def
  :cognitect.aws.arc-zonal-shift/ResourceName
  (s/spec
    (s/and string? #(<= 1 (count %) 256))
    :gen
    (fn []
      (gen/fmap #(apply str %) (gen/bind (gen/choose 1 256) #(gen/vector (gen/char-alpha) %))))))

(s/def
  :cognitect.aws.arc-zonal-shift/ResourceIdentifier
  (s/spec
    (s/and string? #(<= 8 (count %) 1024))
    :gen
    (fn []
      (gen/fmap #(apply str %) (gen/bind (gen/choose 8 1024) #(gen/vector (gen/char-alpha) %))))))

(s/def :cognitect.aws.arc-zonal-shift/String string?)

(s/def
  :cognitect.aws.arc-zonal-shift.ManagedResourceSummary/arn
  :cognitect.aws.arc-zonal-shift/ResourceArn)

(s/def
  :cognitect.aws.arc-zonal-shift.ManagedResourceSummary/availabilityZones
  :cognitect.aws.arc-zonal-shift/AvailabilityZones)

(s/def
  :cognitect.aws.arc-zonal-shift.ManagedResourceSummary/name
  :cognitect.aws.arc-zonal-shift/ResourceName)

(s/def
  :cognitect.aws.arc-zonal-shift.ListManagedResourcesResponse/items
  :cognitect.aws.arc-zonal-shift/ManagedResourceSummaries)

(s/def
  :cognitect.aws.arc-zonal-shift.ListManagedResourcesResponse/nextToken
  :cognitect.aws.arc-zonal-shift/String)

(s/def
  :cognitect.aws.arc-zonal-shift.StartZonalShiftRequest/awayFrom
  :cognitect.aws.arc-zonal-shift/AvailabilityZone)

(s/def
  :cognitect.aws.arc-zonal-shift.StartZonalShiftRequest/comment
  :cognitect.aws.arc-zonal-shift/ZonalShiftComment)

(s/def
  :cognitect.aws.arc-zonal-shift.StartZonalShiftRequest/expiresIn
  :cognitect.aws.arc-zonal-shift/ExpiresIn)

(s/def
  :cognitect.aws.arc-zonal-shift.StartZonalShiftRequest/resourceIdentifier
  :cognitect.aws.arc-zonal-shift/ResourceIdentifier)

(s/def
  :cognitect.aws.arc-zonal-shift.UpdateZonalShiftRequest/comment
  :cognitect.aws.arc-zonal-shift/ZonalShiftComment)

(s/def
  :cognitect.aws.arc-zonal-shift.UpdateZonalShiftRequest/expiresIn
  :cognitect.aws.arc-zonal-shift/ExpiresIn)

(s/def
  :cognitect.aws.arc-zonal-shift.UpdateZonalShiftRequest/zonalShiftId
  :cognitect.aws.arc-zonal-shift/ZonalShiftId)

(s/def
  :cognitect.aws.arc-zonal-shift.GetManagedResourceRequest/resourceIdentifier
  :cognitect.aws.arc-zonal-shift/ResourceIdentifier)

(s/def
  :cognitect.aws.arc-zonal-shift.ListZonalShiftsRequest/maxResults
  :cognitect.aws.arc-zonal-shift/MaxResults)

(s/def
  :cognitect.aws.arc-zonal-shift.ListZonalShiftsRequest/nextToken
  :cognitect.aws.arc-zonal-shift/String)

(s/def
  :cognitect.aws.arc-zonal-shift.ListZonalShiftsRequest/status
  :cognitect.aws.arc-zonal-shift/ZonalShiftStatus)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/appliedStatus
  :cognitect.aws.arc-zonal-shift/AppliedStatus)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/awayFrom
  :cognitect.aws.arc-zonal-shift/AvailabilityZone)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/comment
  :cognitect.aws.arc-zonal-shift/ZonalShiftComment)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/expiryTime
  :cognitect.aws.arc-zonal-shift/ExpiryTime)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/resourceIdentifier
  :cognitect.aws.arc-zonal-shift/ResourceIdentifier)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/startTime
  :cognitect.aws.arc-zonal-shift/StartTime)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftInResource/zonalShiftId
  :cognitect.aws.arc-zonal-shift/ZonalShiftId)

(s/def
  :cognitect.aws.arc-zonal-shift.GetManagedResourceResponse/appliedWeights
  :cognitect.aws.arc-zonal-shift/AppliedWeights)

(s/def
  :cognitect.aws.arc-zonal-shift.GetManagedResourceResponse/arn
  :cognitect.aws.arc-zonal-shift/ResourceArn)

(s/def
  :cognitect.aws.arc-zonal-shift.GetManagedResourceResponse/name
  :cognitect.aws.arc-zonal-shift/ResourceName)

(s/def
  :cognitect.aws.arc-zonal-shift.GetManagedResourceResponse/zonalShifts
  :cognitect.aws.arc-zonal-shift/ZonalShiftsInResource)

(s/def
  :cognitect.aws.arc-zonal-shift.ListZonalShiftsResponse/items
  :cognitect.aws.arc-zonal-shift/ZonalShiftSummaries)

(s/def
  :cognitect.aws.arc-zonal-shift.ListZonalShiftsResponse/nextToken
  :cognitect.aws.arc-zonal-shift/String)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShift/awayFrom
  :cognitect.aws.arc-zonal-shift/AvailabilityZone)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShift/comment
  :cognitect.aws.arc-zonal-shift/ZonalShiftComment)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShift/expiryTime
  :cognitect.aws.arc-zonal-shift/ExpiryTime)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShift/resourceIdentifier
  :cognitect.aws.arc-zonal-shift/ResourceIdentifier)

(s/def :cognitect.aws.arc-zonal-shift.ZonalShift/startTime :cognitect.aws.arc-zonal-shift/StartTime)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShift/status
  :cognitect.aws.arc-zonal-shift/ZonalShiftStatus)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShift/zonalShiftId
  :cognitect.aws.arc-zonal-shift/ZonalShiftId)

(s/def
  :cognitect.aws.arc-zonal-shift.CancelZonalShiftRequest/zonalShiftId
  :cognitect.aws.arc-zonal-shift/ZonalShiftId)

(s/def
  :cognitect.aws.arc-zonal-shift.ListManagedResourcesRequest/maxResults
  :cognitect.aws.arc-zonal-shift/MaxResults)

(s/def
  :cognitect.aws.arc-zonal-shift.ListManagedResourcesRequest/nextToken
  :cognitect.aws.arc-zonal-shift/String)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/awayFrom
  :cognitect.aws.arc-zonal-shift/AvailabilityZone)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/comment
  :cognitect.aws.arc-zonal-shift/ZonalShiftComment)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/expiryTime
  :cognitect.aws.arc-zonal-shift/ExpiryTime)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/resourceIdentifier
  :cognitect.aws.arc-zonal-shift/ResourceIdentifier)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/startTime
  :cognitect.aws.arc-zonal-shift/StartTime)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/status
  :cognitect.aws.arc-zonal-shift/ZonalShiftStatus)

(s/def
  :cognitect.aws.arc-zonal-shift.ZonalShiftSummary/zonalShiftId
  :cognitect.aws.arc-zonal-shift/ZonalShiftId)





© 2015 - 2024 Weber Informatics LLC | Privacy Policy