module Stratosphere.SSMQuickSetup.ConfigurationManager (
module Exports, ConfigurationManager(..), mkConfigurationManager
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.SSMQuickSetup.ConfigurationManager.ConfigurationDefinitionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ConfigurationManager
=
ConfigurationManager {ConfigurationManager -> ()
haddock_workaround_ :: (),
ConfigurationManager -> [ConfigurationDefinitionProperty]
configurationDefinitions :: [ConfigurationDefinitionProperty],
ConfigurationManager -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
ConfigurationManager -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
ConfigurationManager -> Maybe (Map Text (Value Text))
tags :: (Prelude.Maybe (Prelude.Map Prelude.Text (Value Prelude.Text)))}
deriving stock (ConfigurationManager -> ConfigurationManager -> Bool
(ConfigurationManager -> ConfigurationManager -> Bool)
-> (ConfigurationManager -> ConfigurationManager -> Bool)
-> Eq ConfigurationManager
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ConfigurationManager -> ConfigurationManager -> Bool
== :: ConfigurationManager -> ConfigurationManager -> Bool
$c/= :: ConfigurationManager -> ConfigurationManager -> Bool
/= :: ConfigurationManager -> ConfigurationManager -> Bool
Prelude.Eq, Int -> ConfigurationManager -> ShowS
[ConfigurationManager] -> ShowS
ConfigurationManager -> String
(Int -> ConfigurationManager -> ShowS)
-> (ConfigurationManager -> String)
-> ([ConfigurationManager] -> ShowS)
-> Show ConfigurationManager
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ConfigurationManager -> ShowS
showsPrec :: Int -> ConfigurationManager -> ShowS
$cshow :: ConfigurationManager -> String
show :: ConfigurationManager -> String
$cshowList :: [ConfigurationManager] -> ShowS
showList :: [ConfigurationManager] -> ShowS
Prelude.Show)
mkConfigurationManager ::
[ConfigurationDefinitionProperty] -> ConfigurationManager
mkConfigurationManager :: [ConfigurationDefinitionProperty] -> ConfigurationManager
mkConfigurationManager [ConfigurationDefinitionProperty]
configurationDefinitions
= ConfigurationManager
{haddock_workaround_ :: ()
haddock_workaround_ = (),
configurationDefinitions :: [ConfigurationDefinitionProperty]
configurationDefinitions = [ConfigurationDefinitionProperty]
configurationDefinitions,
description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe (Map Text (Value Text))
tags = Maybe (Map Text (Value Text))
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ConfigurationManager where
toResourceProperties :: ConfigurationManager -> ResourceProperties
toResourceProperties ConfigurationManager {[ConfigurationDefinitionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationManager -> ()
configurationDefinitions :: ConfigurationManager -> [ConfigurationDefinitionProperty]
description :: ConfigurationManager -> Maybe (Value Text)
name :: ConfigurationManager -> Maybe (Value Text)
tags :: ConfigurationManager -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::SSMQuickSetup::ConfigurationManager",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"ConfigurationDefinitions" Key -> [ConfigurationDefinitionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ConfigurationDefinitionProperty]
configurationDefinitions]
([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
"Description" (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)
description,
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
"Name" (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)
name,
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
"Tags" (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))
tags]))}
instance JSON.ToJSON ConfigurationManager where
toJSON :: ConfigurationManager -> Value
toJSON ConfigurationManager {[ConfigurationDefinitionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationManager -> ()
configurationDefinitions :: ConfigurationManager -> [ConfigurationDefinitionProperty]
description :: ConfigurationManager -> Maybe (Value Text)
name :: ConfigurationManager -> Maybe (Value Text)
tags :: ConfigurationManager -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (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
"ConfigurationDefinitions" Key -> [ConfigurationDefinitionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [ConfigurationDefinitionProperty]
configurationDefinitions]
([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
"Description" (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)
description,
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
"Name" (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)
name,
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
"Tags" (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))
tags])))
instance Property "ConfigurationDefinitions" ConfigurationManager where
type PropertyType "ConfigurationDefinitions" ConfigurationManager = [ConfigurationDefinitionProperty]
set :: PropertyType "ConfigurationDefinitions" ConfigurationManager
-> ConfigurationManager -> ConfigurationManager
set PropertyType "ConfigurationDefinitions" ConfigurationManager
newValue ConfigurationManager {[ConfigurationDefinitionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationManager -> ()
configurationDefinitions :: ConfigurationManager -> [ConfigurationDefinitionProperty]
description :: ConfigurationManager -> Maybe (Value Text)
name :: ConfigurationManager -> Maybe (Value Text)
tags :: ConfigurationManager -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= ConfigurationManager {configurationDefinitions :: [ConfigurationDefinitionProperty]
configurationDefinitions = [ConfigurationDefinitionProperty]
PropertyType "ConfigurationDefinitions" ConfigurationManager
newValue, Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Description" ConfigurationManager where
type PropertyType "Description" ConfigurationManager = Value Prelude.Text
set :: PropertyType "Description" ConfigurationManager
-> ConfigurationManager -> ConfigurationManager
set PropertyType "Description" ConfigurationManager
newValue ConfigurationManager {[ConfigurationDefinitionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationManager -> ()
configurationDefinitions :: ConfigurationManager -> [ConfigurationDefinitionProperty]
description :: ConfigurationManager -> Maybe (Value Text)
name :: ConfigurationManager -> Maybe (Value Text)
tags :: ConfigurationManager -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= ConfigurationManager {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" ConfigurationManager
Value Text
newValue, [ConfigurationDefinitionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Name" ConfigurationManager where
type PropertyType "Name" ConfigurationManager = Value Prelude.Text
set :: PropertyType "Name" ConfigurationManager
-> ConfigurationManager -> ConfigurationManager
set PropertyType "Name" ConfigurationManager
newValue ConfigurationManager {[ConfigurationDefinitionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationManager -> ()
configurationDefinitions :: ConfigurationManager -> [ConfigurationDefinitionProperty]
description :: ConfigurationManager -> Maybe (Value Text)
name :: ConfigurationManager -> Maybe (Value Text)
tags :: ConfigurationManager -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= ConfigurationManager {name :: Maybe (Value Text)
name = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Name" ConfigurationManager
Value Text
newValue, [ConfigurationDefinitionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
instance Property "Tags" ConfigurationManager where
type PropertyType "Tags" ConfigurationManager = Prelude.Map Prelude.Text (Value Prelude.Text)
set :: PropertyType "Tags" ConfigurationManager
-> ConfigurationManager -> ConfigurationManager
set PropertyType "Tags" ConfigurationManager
newValue ConfigurationManager {[ConfigurationDefinitionProperty]
Maybe (Map Text (Value Text))
Maybe (Value Text)
()
haddock_workaround_ :: ConfigurationManager -> ()
configurationDefinitions :: ConfigurationManager -> [ConfigurationDefinitionProperty]
description :: ConfigurationManager -> Maybe (Value Text)
name :: ConfigurationManager -> Maybe (Value Text)
tags :: ConfigurationManager -> Maybe (Map Text (Value Text))
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
tags :: Maybe (Map Text (Value Text))
..}
= ConfigurationManager {tags :: Maybe (Map Text (Value Text))
tags = 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 "Tags" ConfigurationManager
newValue, [ConfigurationDefinitionProperty]
Maybe (Value Text)
()
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
haddock_workaround_ :: ()
configurationDefinitions :: [ConfigurationDefinitionProperty]
description :: Maybe (Value Text)
name :: Maybe (Value Text)
..}