module Stratosphere.Evidently.Launch.ExecutionStatusObjectProperty (
ExecutionStatusObjectProperty(..), mkExecutionStatusObjectProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExecutionStatusObjectProperty
=
ExecutionStatusObjectProperty {ExecutionStatusObjectProperty -> ()
haddock_workaround_ :: (),
ExecutionStatusObjectProperty -> Maybe (Value Text)
desiredState :: (Prelude.Maybe (Value Prelude.Text)),
ExecutionStatusObjectProperty -> Maybe (Value Text)
reason :: (Prelude.Maybe (Value Prelude.Text)),
ExecutionStatusObjectProperty -> Value Text
status :: (Value Prelude.Text)}
deriving stock (ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> Bool
(ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> Bool)
-> (ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> Bool)
-> Eq ExecutionStatusObjectProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> Bool
== :: ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> Bool
$c/= :: ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> Bool
/= :: ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> Bool
Prelude.Eq, Int -> ExecutionStatusObjectProperty -> ShowS
[ExecutionStatusObjectProperty] -> ShowS
ExecutionStatusObjectProperty -> String
(Int -> ExecutionStatusObjectProperty -> ShowS)
-> (ExecutionStatusObjectProperty -> String)
-> ([ExecutionStatusObjectProperty] -> ShowS)
-> Show ExecutionStatusObjectProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExecutionStatusObjectProperty -> ShowS
showsPrec :: Int -> ExecutionStatusObjectProperty -> ShowS
$cshow :: ExecutionStatusObjectProperty -> String
show :: ExecutionStatusObjectProperty -> String
$cshowList :: [ExecutionStatusObjectProperty] -> ShowS
showList :: [ExecutionStatusObjectProperty] -> ShowS
Prelude.Show)
mkExecutionStatusObjectProperty ::
Value Prelude.Text -> ExecutionStatusObjectProperty
mkExecutionStatusObjectProperty :: Value Text -> ExecutionStatusObjectProperty
mkExecutionStatusObjectProperty Value Text
status
= ExecutionStatusObjectProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), status :: Value Text
status = Value Text
status,
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 ExecutionStatusObjectProperty where
toResourceProperties :: ExecutionStatusObjectProperty -> ResourceProperties
toResourceProperties ExecutionStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExecutionStatusObjectProperty -> ()
desiredState :: ExecutionStatusObjectProperty -> Maybe (Value Text)
reason :: ExecutionStatusObjectProperty -> Maybe (Value Text)
status :: ExecutionStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Evidently::Launch.ExecutionStatusObject",
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
"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 ExecutionStatusObjectProperty where
toJSON :: ExecutionStatusObjectProperty -> Value
toJSON ExecutionStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExecutionStatusObjectProperty -> ()
desiredState :: ExecutionStatusObjectProperty -> Maybe (Value Text)
reason :: ExecutionStatusObjectProperty -> Maybe (Value Text)
status :: ExecutionStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
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
"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 "DesiredState" ExecutionStatusObjectProperty where
type PropertyType "DesiredState" ExecutionStatusObjectProperty = Value Prelude.Text
set :: PropertyType "DesiredState" ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> ExecutionStatusObjectProperty
set PropertyType "DesiredState" ExecutionStatusObjectProperty
newValue ExecutionStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExecutionStatusObjectProperty -> ()
desiredState :: ExecutionStatusObjectProperty -> Maybe (Value Text)
reason :: ExecutionStatusObjectProperty -> Maybe (Value Text)
status :: ExecutionStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= ExecutionStatusObjectProperty
{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" ExecutionStatusObjectProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
reason :: Maybe (Value Text)
status :: Value Text
haddock_workaround_ :: ()
reason :: Maybe (Value Text)
status :: Value Text
..}
instance Property "Reason" ExecutionStatusObjectProperty where
type PropertyType "Reason" ExecutionStatusObjectProperty = Value Prelude.Text
set :: PropertyType "Reason" ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> ExecutionStatusObjectProperty
set PropertyType "Reason" ExecutionStatusObjectProperty
newValue ExecutionStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExecutionStatusObjectProperty -> ()
desiredState :: ExecutionStatusObjectProperty -> Maybe (Value Text)
reason :: ExecutionStatusObjectProperty -> Maybe (Value Text)
status :: ExecutionStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= ExecutionStatusObjectProperty
{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" ExecutionStatusObjectProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
status :: Value Text
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
status :: Value Text
..}
instance Property "Status" ExecutionStatusObjectProperty where
type PropertyType "Status" ExecutionStatusObjectProperty = Value Prelude.Text
set :: PropertyType "Status" ExecutionStatusObjectProperty
-> ExecutionStatusObjectProperty -> ExecutionStatusObjectProperty
set PropertyType "Status" ExecutionStatusObjectProperty
newValue ExecutionStatusObjectProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ExecutionStatusObjectProperty -> ()
desiredState :: ExecutionStatusObjectProperty -> Maybe (Value Text)
reason :: ExecutionStatusObjectProperty -> Maybe (Value Text)
status :: ExecutionStatusObjectProperty -> Value Text
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
status :: Value Text
..}
= ExecutionStatusObjectProperty {status :: Value Text
status = PropertyType "Status" ExecutionStatusObjectProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
haddock_workaround_ :: ()
desiredState :: Maybe (Value Text)
reason :: Maybe (Value Text)
..}