module Stratosphere.OpsWorks.Stack.ChefConfigurationProperty (
ChefConfigurationProperty(..), mkChefConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ChefConfigurationProperty
=
ChefConfigurationProperty {ChefConfigurationProperty -> ()
haddock_workaround_ :: (),
ChefConfigurationProperty -> Maybe (Value Text)
berkshelfVersion :: (Prelude.Maybe (Value Prelude.Text)),
ChefConfigurationProperty -> Maybe (Value Bool)
manageBerkshelf :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (ChefConfigurationProperty -> ChefConfigurationProperty -> Bool
(ChefConfigurationProperty -> ChefConfigurationProperty -> Bool)
-> (ChefConfigurationProperty -> ChefConfigurationProperty -> Bool)
-> Eq ChefConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ChefConfigurationProperty -> ChefConfigurationProperty -> Bool
== :: ChefConfigurationProperty -> ChefConfigurationProperty -> Bool
$c/= :: ChefConfigurationProperty -> ChefConfigurationProperty -> Bool
/= :: ChefConfigurationProperty -> ChefConfigurationProperty -> Bool
Prelude.Eq, Int -> ChefConfigurationProperty -> ShowS
[ChefConfigurationProperty] -> ShowS
ChefConfigurationProperty -> String
(Int -> ChefConfigurationProperty -> ShowS)
-> (ChefConfigurationProperty -> String)
-> ([ChefConfigurationProperty] -> ShowS)
-> Show ChefConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ChefConfigurationProperty -> ShowS
showsPrec :: Int -> ChefConfigurationProperty -> ShowS
$cshow :: ChefConfigurationProperty -> String
show :: ChefConfigurationProperty -> String
$cshowList :: [ChefConfigurationProperty] -> ShowS
showList :: [ChefConfigurationProperty] -> ShowS
Prelude.Show)
mkChefConfigurationProperty :: ChefConfigurationProperty
mkChefConfigurationProperty :: ChefConfigurationProperty
mkChefConfigurationProperty
= ChefConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), berkshelfVersion :: Maybe (Value Text)
berkshelfVersion = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
manageBerkshelf :: Maybe (Value Bool)
manageBerkshelf = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ChefConfigurationProperty where
toResourceProperties :: ChefConfigurationProperty -> ResourceProperties
toResourceProperties ChefConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ChefConfigurationProperty -> ()
berkshelfVersion :: ChefConfigurationProperty -> Maybe (Value Text)
manageBerkshelf :: ChefConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
berkshelfVersion :: Maybe (Value Text)
manageBerkshelf :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::OpsWorks::Stack.ChefConfiguration",
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
"BerkshelfVersion" (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)
berkshelfVersion,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ManageBerkshelf" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
manageBerkshelf])}
instance JSON.ToJSON ChefConfigurationProperty where
toJSON :: ChefConfigurationProperty -> Value
toJSON ChefConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ChefConfigurationProperty -> ()
berkshelfVersion :: ChefConfigurationProperty -> Maybe (Value Text)
manageBerkshelf :: ChefConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
berkshelfVersion :: Maybe (Value Text)
manageBerkshelf :: Maybe (Value Bool)
..}
= [(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
"BerkshelfVersion" (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)
berkshelfVersion,
Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ManageBerkshelf" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
manageBerkshelf]))
instance Property "BerkshelfVersion" ChefConfigurationProperty where
type PropertyType "BerkshelfVersion" ChefConfigurationProperty = Value Prelude.Text
set :: PropertyType "BerkshelfVersion" ChefConfigurationProperty
-> ChefConfigurationProperty -> ChefConfigurationProperty
set PropertyType "BerkshelfVersion" ChefConfigurationProperty
newValue ChefConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ChefConfigurationProperty -> ()
berkshelfVersion :: ChefConfigurationProperty -> Maybe (Value Text)
manageBerkshelf :: ChefConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
berkshelfVersion :: Maybe (Value Text)
manageBerkshelf :: Maybe (Value Bool)
..}
= ChefConfigurationProperty
{berkshelfVersion :: Maybe (Value Text)
berkshelfVersion = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BerkshelfVersion" ChefConfigurationProperty
Value Text
newValue, Maybe (Value Bool)
()
haddock_workaround_ :: ()
manageBerkshelf :: Maybe (Value Bool)
haddock_workaround_ :: ()
manageBerkshelf :: Maybe (Value Bool)
..}
instance Property "ManageBerkshelf" ChefConfigurationProperty where
type PropertyType "ManageBerkshelf" ChefConfigurationProperty = Value Prelude.Bool
set :: PropertyType "ManageBerkshelf" ChefConfigurationProperty
-> ChefConfigurationProperty -> ChefConfigurationProperty
set PropertyType "ManageBerkshelf" ChefConfigurationProperty
newValue ChefConfigurationProperty {Maybe (Value Bool)
Maybe (Value Text)
()
haddock_workaround_ :: ChefConfigurationProperty -> ()
berkshelfVersion :: ChefConfigurationProperty -> Maybe (Value Text)
manageBerkshelf :: ChefConfigurationProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
berkshelfVersion :: Maybe (Value Text)
manageBerkshelf :: Maybe (Value Bool)
..}
= ChefConfigurationProperty
{manageBerkshelf :: Maybe (Value Bool)
manageBerkshelf = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ManageBerkshelf" ChefConfigurationProperty
Value Bool
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
berkshelfVersion :: Maybe (Value Text)
haddock_workaround_ :: ()
berkshelfVersion :: Maybe (Value Text)
..}