module Stratosphere.SageMaker.ModelExplainabilityJobDefinition.JsonProperty (
JsonProperty(..), mkJsonProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data JsonProperty
=
JsonProperty {JsonProperty -> ()
haddock_workaround_ :: (),
JsonProperty -> Maybe (Value Bool)
line :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (JsonProperty -> JsonProperty -> Bool
(JsonProperty -> JsonProperty -> Bool)
-> (JsonProperty -> JsonProperty -> Bool) -> Eq JsonProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: JsonProperty -> JsonProperty -> Bool
== :: JsonProperty -> JsonProperty -> Bool
$c/= :: JsonProperty -> JsonProperty -> Bool
/= :: JsonProperty -> JsonProperty -> Bool
Prelude.Eq, Int -> JsonProperty -> ShowS
[JsonProperty] -> ShowS
JsonProperty -> String
(Int -> JsonProperty -> ShowS)
-> (JsonProperty -> String)
-> ([JsonProperty] -> ShowS)
-> Show JsonProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> JsonProperty -> ShowS
showsPrec :: Int -> JsonProperty -> ShowS
$cshow :: JsonProperty -> String
show :: JsonProperty -> String
$cshowList :: [JsonProperty] -> ShowS
showList :: [JsonProperty] -> ShowS
Prelude.Show)
mkJsonProperty :: JsonProperty
mkJsonProperty :: JsonProperty
mkJsonProperty
= JsonProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), line :: Maybe (Value Bool)
line = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties JsonProperty where
toResourceProperties :: JsonProperty -> ResourceProperties
toResourceProperties JsonProperty {Maybe (Value Bool)
()
haddock_workaround_ :: JsonProperty -> ()
line :: JsonProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
line :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SageMaker::ModelExplainabilityJobDefinition.Json",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Line" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
line])}
instance JSON.ToJSON JsonProperty where
toJSON :: JsonProperty -> Value
toJSON JsonProperty {Maybe (Value Bool)
()
haddock_workaround_ :: JsonProperty -> ()
line :: JsonProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
line :: Maybe (Value Bool)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Line" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
line]))
instance Property "Line" JsonProperty where
type PropertyType "Line" JsonProperty = Value Prelude.Bool
set :: PropertyType "Line" JsonProperty -> JsonProperty -> JsonProperty
set PropertyType "Line" JsonProperty
newValue JsonProperty {Maybe (Value Bool)
()
haddock_workaround_ :: JsonProperty -> ()
line :: JsonProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
line :: Maybe (Value Bool)
..}
= JsonProperty {line :: Maybe (Value Bool)
line = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Line" JsonProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}