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