module Stratosphere.SSMQuickSetup.ConfigurationManager.StatusSummaryProperty (
StatusSummaryProperty(..), mkStatusSummaryProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StatusSummaryProperty
=
StatusSummaryProperty {StatusSummaryProperty -> ()
haddock_workaround_ :: (),
StatusSummaryProperty -> Value Text
lastUpdatedAt :: (Value Prelude.Text),
StatusSummaryProperty -> Maybe (Value Text)
status :: (Prelude.Maybe (Value Prelude.Text)),
StatusSummaryProperty -> Maybe (Map Text (Value Text))
statusDetails :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text))),
StatusSummaryProperty -> Maybe (Value Text)
statusMessage :: (Prelude.Maybe (Value Prelude.Text)),
StatusSummaryProperty -> Value Text
statusType :: (Value Prelude.Text)}
deriving stock (StatusSummaryProperty -> StatusSummaryProperty -> Bool
(StatusSummaryProperty -> StatusSummaryProperty -> Bool)
-> (StatusSummaryProperty -> StatusSummaryProperty -> Bool)
-> Eq StatusSummaryProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StatusSummaryProperty -> StatusSummaryProperty -> Bool
== :: StatusSummaryProperty -> StatusSummaryProperty -> Bool
$c/= :: StatusSummaryProperty -> StatusSummaryProperty -> Bool
/= :: StatusSummaryProperty -> StatusSummaryProperty -> Bool
Prelude.Eq, Int -> StatusSummaryProperty -> ShowS
[StatusSummaryProperty] -> ShowS
StatusSummaryProperty -> String
(Int -> StatusSummaryProperty -> ShowS)
-> (StatusSummaryProperty -> String)
-> ([StatusSummaryProperty] -> ShowS)
-> Show StatusSummaryProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StatusSummaryProperty -> ShowS
showsPrec :: Int -> StatusSummaryProperty -> ShowS
$cshow :: StatusSummaryProperty -> String
show :: StatusSummaryProperty -> String
$cshowList :: [StatusSummaryProperty] -> ShowS
showList :: [StatusSummaryProperty] -> ShowS
Prelude.Show)
mkStatusSummaryProperty ::
Value Prelude.Text -> Value Prelude.Text -> StatusSummaryProperty
mkStatusSummaryProperty :: Value Text -> Value Text -> StatusSummaryProperty
mkStatusSummaryProperty Value Text
lastUpdatedAt Value Text
statusType
= StatusSummaryProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), lastUpdatedAt :: Value Text
lastUpdatedAt = Value Text
lastUpdatedAt,
statusType :: Value Text
statusType = Value Text
statusType, status :: Maybe (Value Text)
status = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
statusDetails :: Maybe (Map Text (Value Text))
statusDetails = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing, statusMessage :: Maybe (Value Text)
statusMessage = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StatusSummaryProperty where
toResourceProperties :: StatusSummaryProperty -> ResourceProperties
toResourceProperties StatusSummaryProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StatusSummaryProperty -> ()
lastUpdatedAt :: StatusSummaryProperty -> Value Text
status :: StatusSummaryProperty -> Maybe (Value Text)
statusDetails :: StatusSummaryProperty -> Maybe (Map Text (Value Text))
statusMessage :: StatusSummaryProperty -> Maybe (Value Text)
statusType :: StatusSummaryProperty -> Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSMQuickSetup::ConfigurationManager.StatusSummary",
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
"LastUpdatedAt" 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
lastUpdatedAt,
Key
"StatusType" 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
statusType]
([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
"Status" (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)
status,
Key -> Map Text (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
"StatusDetails" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
statusDetails,
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
"StatusMessage" (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)
statusMessage]))}
instance JSON.ToJSON StatusSummaryProperty where
toJSON :: StatusSummaryProperty -> Value
toJSON StatusSummaryProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StatusSummaryProperty -> ()
lastUpdatedAt :: StatusSummaryProperty -> Value Text
status :: StatusSummaryProperty -> Maybe (Value Text)
statusDetails :: StatusSummaryProperty -> Maybe (Map Text (Value Text))
statusMessage :: StatusSummaryProperty -> Maybe (Value Text)
statusType :: StatusSummaryProperty -> Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: 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
"LastUpdatedAt" 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
lastUpdatedAt,
Key
"StatusType" 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
statusType]
([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
"Status" (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)
status,
Key -> Map Text (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
"StatusDetails" (Map Text (Value Text) -> (Key, Value))
-> Maybe (Map Text (Value Text)) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Map Text (Value Text))
statusDetails,
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
"StatusMessage" (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)
statusMessage])))
instance Property "LastUpdatedAt" StatusSummaryProperty where
type PropertyType "LastUpdatedAt" StatusSummaryProperty = Value Prelude.Text
set :: PropertyType "LastUpdatedAt" StatusSummaryProperty
-> StatusSummaryProperty -> StatusSummaryProperty
set PropertyType "LastUpdatedAt" StatusSummaryProperty
newValue StatusSummaryProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StatusSummaryProperty -> ()
lastUpdatedAt :: StatusSummaryProperty -> Value Text
status :: StatusSummaryProperty -> Maybe (Value Text)
statusDetails :: StatusSummaryProperty -> Maybe (Map Text (Value Text))
statusMessage :: StatusSummaryProperty -> Maybe (Value Text)
statusType :: StatusSummaryProperty -> Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
= StatusSummaryProperty {lastUpdatedAt :: Value Text
lastUpdatedAt = PropertyType "LastUpdatedAt" StatusSummaryProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
haddock_workaround_ :: ()
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
instance Property "Status" StatusSummaryProperty where
type PropertyType "Status" StatusSummaryProperty = Value Prelude.Text
set :: PropertyType "Status" StatusSummaryProperty
-> StatusSummaryProperty -> StatusSummaryProperty
set PropertyType "Status" StatusSummaryProperty
newValue StatusSummaryProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StatusSummaryProperty -> ()
lastUpdatedAt :: StatusSummaryProperty -> Value Text
status :: StatusSummaryProperty -> Maybe (Value Text)
statusDetails :: StatusSummaryProperty -> Maybe (Map Text (Value Text))
statusMessage :: StatusSummaryProperty -> Maybe (Value Text)
statusType :: StatusSummaryProperty -> Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
= StatusSummaryProperty {status :: Maybe (Value Text)
status = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Status" StatusSummaryProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
instance Property "StatusDetails" StatusSummaryProperty where
type PropertyType "StatusDetails" StatusSummaryProperty = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "StatusDetails" StatusSummaryProperty
-> StatusSummaryProperty -> StatusSummaryProperty
set PropertyType "StatusDetails" StatusSummaryProperty
newValue StatusSummaryProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StatusSummaryProperty -> ()
lastUpdatedAt :: StatusSummaryProperty -> Value Text
status :: StatusSummaryProperty -> Maybe (Value Text)
statusDetails :: StatusSummaryProperty -> Maybe (Map Text (Value Text))
statusMessage :: StatusSummaryProperty -> Maybe (Value Text)
statusType :: StatusSummaryProperty -> Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
= StatusSummaryProperty {statusDetails :: Maybe (Map Text (Value Text))
statusDetails = Map Text (Value Text) -> Maybe (Map Text (Value Text))
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure Map Text (Value Text)
PropertyType "StatusDetails" StatusSummaryProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusMessage :: Maybe (Value Text)
statusType :: Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
instance Property "StatusMessage" StatusSummaryProperty where
type PropertyType "StatusMessage" StatusSummaryProperty = Value Prelude.Text
set :: PropertyType "StatusMessage" StatusSummaryProperty
-> StatusSummaryProperty -> StatusSummaryProperty
set PropertyType "StatusMessage" StatusSummaryProperty
newValue StatusSummaryProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StatusSummaryProperty -> ()
lastUpdatedAt :: StatusSummaryProperty -> Value Text
status :: StatusSummaryProperty -> Maybe (Value Text)
statusDetails :: StatusSummaryProperty -> Maybe (Map Text (Value Text))
statusMessage :: StatusSummaryProperty -> Maybe (Value Text)
statusType :: StatusSummaryProperty -> Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
= StatusSummaryProperty {statusMessage :: Maybe (Value Text)
statusMessage = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "StatusMessage" StatusSummaryProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusType :: Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusType :: Value Text
..}
instance Property "StatusType" StatusSummaryProperty where
type PropertyType "StatusType" StatusSummaryProperty = Value Prelude.Text
set :: PropertyType "StatusType" StatusSummaryProperty
-> StatusSummaryProperty -> StatusSummaryProperty
set PropertyType "StatusType" StatusSummaryProperty
newValue StatusSummaryProperty {Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: StatusSummaryProperty -> ()
lastUpdatedAt :: StatusSummaryProperty -> Value Text
status :: StatusSummaryProperty -> Maybe (Value Text)
statusDetails :: StatusSummaryProperty -> Maybe (Map Text (Value Text))
statusMessage :: StatusSummaryProperty -> Maybe (Value Text)
statusType :: StatusSummaryProperty -> Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
statusType :: Value Text
..}
= StatusSummaryProperty {statusType :: Value Text
statusType = PropertyType "StatusType" StatusSummaryProperty
Value Text
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
haddock_workaround_ :: ()
lastUpdatedAt :: Value Text
status :: Maybe (Value Text)
statusDetails :: Maybe (Map Text (Value Text))
statusMessage :: Maybe (Value Text)
..}