module Stratosphere.SageMaker.ModelCard.InferenceSpecificationProperty (
        module Exports, InferenceSpecificationProperty(..),
        mkInferenceSpecificationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SageMaker.ModelCard.ContainerProperty as Exports
import Stratosphere.ResourceProperties
data InferenceSpecificationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-inferencespecification.html>
    InferenceSpecificationProperty {InferenceSpecificationProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelcard-inferencespecification.html#cfn-sagemaker-modelcard-inferencespecification-containers>
                                    InferenceSpecificationProperty -> [ContainerProperty]
containers :: [ContainerProperty]}
  deriving stock (InferenceSpecificationProperty
-> InferenceSpecificationProperty -> Bool
(InferenceSpecificationProperty
 -> InferenceSpecificationProperty -> Bool)
-> (InferenceSpecificationProperty
    -> InferenceSpecificationProperty -> Bool)
-> Eq InferenceSpecificationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InferenceSpecificationProperty
-> InferenceSpecificationProperty -> Bool
== :: InferenceSpecificationProperty
-> InferenceSpecificationProperty -> Bool
$c/= :: InferenceSpecificationProperty
-> InferenceSpecificationProperty -> Bool
/= :: InferenceSpecificationProperty
-> InferenceSpecificationProperty -> Bool
Prelude.Eq, Int -> InferenceSpecificationProperty -> ShowS
[InferenceSpecificationProperty] -> ShowS
InferenceSpecificationProperty -> String
(Int -> InferenceSpecificationProperty -> ShowS)
-> (InferenceSpecificationProperty -> String)
-> ([InferenceSpecificationProperty] -> ShowS)
-> Show InferenceSpecificationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InferenceSpecificationProperty -> ShowS
showsPrec :: Int -> InferenceSpecificationProperty -> ShowS
$cshow :: InferenceSpecificationProperty -> String
show :: InferenceSpecificationProperty -> String
$cshowList :: [InferenceSpecificationProperty] -> ShowS
showList :: [InferenceSpecificationProperty] -> ShowS
Prelude.Show)
mkInferenceSpecificationProperty ::
  [ContainerProperty] -> InferenceSpecificationProperty
mkInferenceSpecificationProperty :: [ContainerProperty] -> InferenceSpecificationProperty
mkInferenceSpecificationProperty [ContainerProperty]
containers
  = InferenceSpecificationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), containers :: [ContainerProperty]
containers = [ContainerProperty]
containers}
instance ToResourceProperties InferenceSpecificationProperty where
  toResourceProperties :: InferenceSpecificationProperty -> ResourceProperties
toResourceProperties InferenceSpecificationProperty {[ContainerProperty]
()
haddock_workaround_ :: InferenceSpecificationProperty -> ()
containers :: InferenceSpecificationProperty -> [ContainerProperty]
haddock_workaround_ :: ()
containers :: [ContainerProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::SageMaker::ModelCard.InferenceSpecification",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Containers" Key -> [ContainerProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ContainerProperty]
containers]}
instance JSON.ToJSON InferenceSpecificationProperty where
  toJSON :: InferenceSpecificationProperty -> Value
toJSON InferenceSpecificationProperty {[ContainerProperty]
()
haddock_workaround_ :: InferenceSpecificationProperty -> ()
containers :: InferenceSpecificationProperty -> [ContainerProperty]
haddock_workaround_ :: ()
containers :: [ContainerProperty]
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Containers" Key -> [ContainerProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ContainerProperty]
containers]
instance Property "Containers" InferenceSpecificationProperty where
  type PropertyType "Containers" InferenceSpecificationProperty = [ContainerProperty]
  set :: PropertyType "Containers" InferenceSpecificationProperty
-> InferenceSpecificationProperty -> InferenceSpecificationProperty
set PropertyType "Containers" InferenceSpecificationProperty
newValue InferenceSpecificationProperty {[ContainerProperty]
()
haddock_workaround_ :: InferenceSpecificationProperty -> ()
containers :: InferenceSpecificationProperty -> [ContainerProperty]
haddock_workaround_ :: ()
containers :: [ContainerProperty]
..}
    = InferenceSpecificationProperty {containers :: [ContainerProperty]
containers = [ContainerProperty]
PropertyType "Containers" InferenceSpecificationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}