module Stratosphere.OpsWorks.Stack.StackConfigurationManagerProperty (
StackConfigurationManagerProperty(..),
mkStackConfigurationManagerProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StackConfigurationManagerProperty
=
StackConfigurationManagerProperty {StackConfigurationManagerProperty -> ()
haddock_workaround_ :: (),
StackConfigurationManagerProperty -> Maybe (Value Text)
name :: (Prelude.Maybe (Value Prelude.Text)),
StackConfigurationManagerProperty -> Maybe (Value Text)
version :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (StackConfigurationManagerProperty
-> StackConfigurationManagerProperty -> Bool
(StackConfigurationManagerProperty
-> StackConfigurationManagerProperty -> Bool)
-> (StackConfigurationManagerProperty
-> StackConfigurationManagerProperty -> Bool)
-> Eq StackConfigurationManagerProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StackConfigurationManagerProperty
-> StackConfigurationManagerProperty -> Bool
== :: StackConfigurationManagerProperty
-> StackConfigurationManagerProperty -> Bool
$c/= :: StackConfigurationManagerProperty
-> StackConfigurationManagerProperty -> Bool
/= :: StackConfigurationManagerProperty
-> StackConfigurationManagerProperty -> Bool
Prelude.Eq, Int -> StackConfigurationManagerProperty -> ShowS
[StackConfigurationManagerProperty] -> ShowS
StackConfigurationManagerProperty -> String
(Int -> StackConfigurationManagerProperty -> ShowS)
-> (StackConfigurationManagerProperty -> String)
-> ([StackConfigurationManagerProperty] -> ShowS)
-> Show StackConfigurationManagerProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StackConfigurationManagerProperty -> ShowS
showsPrec :: Int -> StackConfigurationManagerProperty -> ShowS
$cshow :: StackConfigurationManagerProperty -> String
show :: StackConfigurationManagerProperty -> String
$cshowList :: [StackConfigurationManagerProperty] -> ShowS
showList :: [StackConfigurationManagerProperty] -> ShowS
Prelude.Show)
mkStackConfigurationManagerProperty ::
StackConfigurationManagerProperty
mkStackConfigurationManagerProperty :: StackConfigurationManagerProperty
mkStackConfigurationManagerProperty
= StackConfigurationManagerProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Maybe (Value Text)
name = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
version :: Maybe (Value Text)
version = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StackConfigurationManagerProperty where
toResourceProperties :: StackConfigurationManagerProperty -> ResourceProperties
toResourceProperties StackConfigurationManagerProperty {Maybe (Value Text)
()
haddock_workaround_ :: StackConfigurationManagerProperty -> ()
name :: StackConfigurationManagerProperty -> Maybe (Value Text)
version :: StackConfigurationManagerProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::OpsWorks::Stack.StackConfigurationManager",
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
"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 -> 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
"Version" (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)
version])}
instance JSON.ToJSON StackConfigurationManagerProperty where
toJSON :: StackConfigurationManagerProperty -> Value
toJSON StackConfigurationManagerProperty {Maybe (Value Text)
()
haddock_workaround_ :: StackConfigurationManagerProperty -> ()
name :: StackConfigurationManagerProperty -> Maybe (Value Text)
version :: StackConfigurationManagerProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
version :: 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
"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 -> 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
"Version" (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)
version]))
instance Property "Name" StackConfigurationManagerProperty where
type PropertyType "Name" StackConfigurationManagerProperty = Value Prelude.Text
set :: PropertyType "Name" StackConfigurationManagerProperty
-> StackConfigurationManagerProperty
-> StackConfigurationManagerProperty
set PropertyType "Name" StackConfigurationManagerProperty
newValue StackConfigurationManagerProperty {Maybe (Value Text)
()
haddock_workaround_ :: StackConfigurationManagerProperty -> ()
name :: StackConfigurationManagerProperty -> Maybe (Value Text)
version :: StackConfigurationManagerProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
= StackConfigurationManagerProperty
{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" StackConfigurationManagerProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
version :: Maybe (Value Text)
haddock_workaround_ :: ()
version :: Maybe (Value Text)
..}
instance Property "Version" StackConfigurationManagerProperty where
type PropertyType "Version" StackConfigurationManagerProperty = Value Prelude.Text
set :: PropertyType "Version" StackConfigurationManagerProperty
-> StackConfigurationManagerProperty
-> StackConfigurationManagerProperty
set PropertyType "Version" StackConfigurationManagerProperty
newValue StackConfigurationManagerProperty {Maybe (Value Text)
()
haddock_workaround_ :: StackConfigurationManagerProperty -> ()
name :: StackConfigurationManagerProperty -> Maybe (Value Text)
version :: StackConfigurationManagerProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
version :: Maybe (Value Text)
..}
= StackConfigurationManagerProperty
{version :: Maybe (Value Text)
version = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Version" StackConfigurationManagerProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
name :: Maybe (Value Text)
haddock_workaround_ :: ()
name :: Maybe (Value Text)
..}