module Stratosphere.Config.ConformancePack.TemplateSSMDocumentDetailsProperty (
TemplateSSMDocumentDetailsProperty(..),
mkTemplateSSMDocumentDetailsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TemplateSSMDocumentDetailsProperty
=
TemplateSSMDocumentDetailsProperty {TemplateSSMDocumentDetailsProperty -> ()
haddock_workaround_ :: (),
TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
documentName :: (Prelude.Maybe (Value Prelude.Text)),
TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
documentVersion :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty -> Bool
(TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty -> Bool)
-> (TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty -> Bool)
-> Eq TemplateSSMDocumentDetailsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty -> Bool
== :: TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty -> Bool
$c/= :: TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty -> Bool
/= :: TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty -> Bool
Prelude.Eq, Int -> TemplateSSMDocumentDetailsProperty -> ShowS
[TemplateSSMDocumentDetailsProperty] -> ShowS
TemplateSSMDocumentDetailsProperty -> String
(Int -> TemplateSSMDocumentDetailsProperty -> ShowS)
-> (TemplateSSMDocumentDetailsProperty -> String)
-> ([TemplateSSMDocumentDetailsProperty] -> ShowS)
-> Show TemplateSSMDocumentDetailsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TemplateSSMDocumentDetailsProperty -> ShowS
showsPrec :: Int -> TemplateSSMDocumentDetailsProperty -> ShowS
$cshow :: TemplateSSMDocumentDetailsProperty -> String
show :: TemplateSSMDocumentDetailsProperty -> String
$cshowList :: [TemplateSSMDocumentDetailsProperty] -> ShowS
showList :: [TemplateSSMDocumentDetailsProperty] -> ShowS
Prelude.Show)
mkTemplateSSMDocumentDetailsProperty ::
TemplateSSMDocumentDetailsProperty
mkTemplateSSMDocumentDetailsProperty :: TemplateSSMDocumentDetailsProperty
mkTemplateSSMDocumentDetailsProperty
= TemplateSSMDocumentDetailsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), documentName :: Maybe (Value Text)
documentName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
documentVersion :: Maybe (Value Text)
documentVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TemplateSSMDocumentDetailsProperty where
toResourceProperties :: TemplateSSMDocumentDetailsProperty -> ResourceProperties
toResourceProperties TemplateSSMDocumentDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TemplateSSMDocumentDetailsProperty -> ()
documentName :: TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
documentVersion :: TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
documentName :: Maybe (Value Text)
documentVersion :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Config::ConformancePack.TemplateSSMDocumentDetails",
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 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
"DocumentName" (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)
documentName,
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
"DocumentVersion" (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)
documentVersion])}
instance JSON.ToJSON TemplateSSMDocumentDetailsProperty where
toJSON :: TemplateSSMDocumentDetailsProperty -> Value
toJSON TemplateSSMDocumentDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TemplateSSMDocumentDetailsProperty -> ()
documentName :: TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
documentVersion :: TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
documentName :: Maybe (Value Text)
documentVersion :: Maybe (Value Text)
..}
= [(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 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
"DocumentName" (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)
documentName,
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
"DocumentVersion" (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)
documentVersion]))
instance Property "DocumentName" TemplateSSMDocumentDetailsProperty where
type PropertyType "DocumentName" TemplateSSMDocumentDetailsProperty = Value Prelude.Text
set :: PropertyType "DocumentName" TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty
set PropertyType "DocumentName" TemplateSSMDocumentDetailsProperty
newValue TemplateSSMDocumentDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TemplateSSMDocumentDetailsProperty -> ()
documentName :: TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
documentVersion :: TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
documentName :: Maybe (Value Text)
documentVersion :: Maybe (Value Text)
..}
= TemplateSSMDocumentDetailsProperty
{documentName :: Maybe (Value Text)
documentName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DocumentName" TemplateSSMDocumentDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
documentVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
documentVersion :: Maybe (Value Text)
..}
instance Property "DocumentVersion" TemplateSSMDocumentDetailsProperty where
type PropertyType "DocumentVersion" TemplateSSMDocumentDetailsProperty = Value Prelude.Text
set :: PropertyType "DocumentVersion" TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty
-> TemplateSSMDocumentDetailsProperty
set PropertyType "DocumentVersion" TemplateSSMDocumentDetailsProperty
newValue TemplateSSMDocumentDetailsProperty {Maybe (Value Text)
()
haddock_workaround_ :: TemplateSSMDocumentDetailsProperty -> ()
documentName :: TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
documentVersion :: TemplateSSMDocumentDetailsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
documentName :: Maybe (Value Text)
documentVersion :: Maybe (Value Text)
..}
= TemplateSSMDocumentDetailsProperty
{documentVersion :: Maybe (Value Text)
documentVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DocumentVersion" TemplateSSMDocumentDetailsProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
documentName :: Maybe (Value Text)
haddock_workaround_ :: ()
documentName :: Maybe (Value Text)
..}