module Stratosphere.Evidently.Experiment.RunningStatusObjectProperty (
RunningStatusObjectProperty(..), mkRunningStatusObjectProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RunningStatusObjectProperty
=
RunningStatusObjectProperty {RunningStatusObjectProperty -> ()
haddock_workaround_ :: (),
RunningStatusObjectProperty -> Maybe (Value Text)
analysisCompleteTime :: (Prelude.Maybe (Value Prelude.Text)),
RunningStatusObjectProperty -> Maybe (Value Text)
desiredState :: (Prelude.Maybe (Value Prelude.Text)),
RunningStatusObjectProperty -> Maybe (Value Text)
reason :: (Prelude.Maybe (Value Prelude.Text)),
RunningStatusObjectProperty -> Value Text
status :: (Value Prelude.Text)}
deriving stock (RunningStatusObjectProperty -> RunningStatusObjectProperty -> Bool
(RunningStatusObjectProperty
-> RunningStatusObjectProperty -> Bool)
-> (RunningStatusObjectProperty
-> RunningStatusObjectProperty -> Bool)
-> Eq RunningStatusObjectProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RunningStatusObjectProperty -> RunningStatusObjectProperty -> Bool
== :: RunningStatusObjectProperty -> RunningStatusObjectProperty -> Bool
$c/= :: RunningStatusObjectProperty -> RunningStatusObjectProperty -> Bool
/= :: RunningStatusObjectProperty -> RunningStatusObjectProperty -> Bool
Prelude.Eq, Int -> RunningStatusObjectProperty -> ShowS
[RunningStatusObjectProperty] -> ShowS
RunningStatusObjectProperty -> String
(Int -> RunningStatusObjectProperty -> ShowS)
-> (RunningStatusObjectProperty -> String)
-> ([RunningStatusObjectProperty] -> ShowS)
-> Show RunningStatusObjectProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RunningStatusObjectProperty -> ShowS
showsPrec :: Int -> RunningStatusObjectProperty -> ShowS
$cshow :: RunningStatusObjectProperty -> String
show :: RunningStatusObjectProperty -> String
$cshowList :: [RunningStatusObjectProperty] -> ShowS
showList :: [RunningStatusObjectProperty] -> ShowS
Prelude.Show)
mkRunningStatusObjectProperty ::
Value Prelude.Text -> RunningStatusObjectProperty
mkRunningStatusObjectProperty :: Value Text -> RunningStatusObjectProperty
mkRunningStatusObjectProperty Value Text
status
= RunningStatusObjectProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Value Text
status = Value Text
status,
analysisCompleteTime :: Maybe (Value Text)
analysisCompleteTime = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
desiredState :: Maybe (Value Text)
desiredState = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, reason :: Maybe (Value Text)
reason = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RunningStatusObjectProperty where
toResourceProperties :: RunningStatusObjectProperty -> ResourceProperties
toResourceProperties RunningStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RunningStatusObjectProperty -> ()
analysisCompleteTime :: RunningStatusObjectProperty -> Maybe (Value Text)
desiredState :: RunningStatusObjectProperty -> Maybe (Value Text)
reason :: RunningStatusObjectProperty -> Maybe (Value Text)
status :: RunningStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Evidently::Experiment.RunningStatusObject",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Status" 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
status]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AnalysisCompleteTime" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
analysisCompleteTime,
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..=) Key
"DesiredState" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
desiredState,
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..=) Key
"Reason" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
reason]))}
instance JSON.ToJSON RunningStatusObjectProperty where
toJSON :: RunningStatusObjectProperty -> Value
toJSON RunningStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RunningStatusObjectProperty -> ()
analysisCompleteTime :: RunningStatusObjectProperty -> Maybe (Value Text)
desiredState :: RunningStatusObjectProperty -> Maybe (Value Text)
reason :: RunningStatusObjectProperty -> Maybe (Value Text)
status :: RunningStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Status" 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
status]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"AnalysisCompleteTime" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
analysisCompleteTime,
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..=) Key
"DesiredState" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
desiredState,
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..=) Key
"Reason" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
reason])))
instance Property "AnalysisCompleteTime" RunningStatusObjectProperty where
type PropertyType "AnalysisCompleteTime" RunningStatusObjectProperty = Value Prelude.Text
set :: PropertyType "AnalysisCompleteTime" RunningStatusObjectProperty
-> RunningStatusObjectProperty -> RunningStatusObjectProperty
set PropertyType "AnalysisCompleteTime" RunningStatusObjectProperty
newValue RunningStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RunningStatusObjectProperty -> ()
analysisCompleteTime :: RunningStatusObjectProperty -> Maybe (Value Text)
desiredState :: RunningStatusObjectProperty -> Maybe (Value Text)
reason :: RunningStatusObjectProperty -> Maybe (Value Text)
status :: RunningStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= RunningStatusObjectProperty
{analysisCompleteTime :: Maybe (Value Text)
analysisCompleteTime = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AnalysisCompleteTime" RunningStatusObjectProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
instance Property "DesiredState" RunningStatusObjectProperty where
type PropertyType "DesiredState" RunningStatusObjectProperty = Value Prelude.Text
set :: PropertyType "DesiredState" RunningStatusObjectProperty
-> RunningStatusObjectProperty -> RunningStatusObjectProperty
set PropertyType "DesiredState" RunningStatusObjectProperty
newValue RunningStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RunningStatusObjectProperty -> ()
analysisCompleteTime :: RunningStatusObjectProperty -> Maybe (Value Text)
desiredState :: RunningStatusObjectProperty -> Maybe (Value Text)
reason :: RunningStatusObjectProperty -> Maybe (Value Text)
status :: RunningStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= RunningStatusObjectProperty
{desiredState :: Maybe (Value Text)
desiredState = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DesiredState" RunningStatusObjectProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
instance Property "Reason" RunningStatusObjectProperty where
type PropertyType "Reason" RunningStatusObjectProperty = Value Prelude.Text
set :: PropertyType "Reason" RunningStatusObjectProperty
-> RunningStatusObjectProperty -> RunningStatusObjectProperty
set PropertyType "Reason" RunningStatusObjectProperty
newValue RunningStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RunningStatusObjectProperty -> ()
analysisCompleteTime :: RunningStatusObjectProperty -> Maybe (Value Text)
desiredState :: RunningStatusObjectProperty -> Maybe (Value Text)
reason :: RunningStatusObjectProperty -> Maybe (Value Text)
status :: RunningStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= RunningStatusObjectProperty {reason :: Maybe (Value Text)
reason = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Reason" RunningStatusObjectProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
status :: Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
status :: Value Text
..}
instance Property "Status" RunningStatusObjectProperty where
type PropertyType "Status" RunningStatusObjectProperty = Value Prelude.Text
set :: PropertyType "Status" RunningStatusObjectProperty
-> RunningStatusObjectProperty -> RunningStatusObjectProperty
set PropertyType "Status" RunningStatusObjectProperty
newValue RunningStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RunningStatusObjectProperty -> ()
analysisCompleteTime :: RunningStatusObjectProperty -> Maybe (Value Text)
desiredState :: RunningStatusObjectProperty -> Maybe (Value Text)
reason :: RunningStatusObjectProperty -> Maybe (Value Text)
status :: RunningStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= RunningStatusObjectProperty {status :: Value Text
status = PropertyType "Status" RunningStatusObjectProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
haddock_workaround_ :: ()
analysisCompleteTime :: Maybe (Value Text)
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
..}