module Stratosphere.OpsWorks.Layer.RecipesProperty (
RecipesProperty(..), mkRecipesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RecipesProperty
=
RecipesProperty {RecipesProperty -> ()
haddock_workaround_ :: (),
RecipesProperty -> Maybe (ValueList Text)
configure :: (Prelude.Maybe (ValueList Prelude.Text)),
RecipesProperty -> Maybe (ValueList Text)
deploy :: (Prelude.Maybe (ValueList Prelude.Text)),
RecipesProperty -> Maybe (ValueList Text)
setup :: (Prelude.Maybe (ValueList Prelude.Text)),
RecipesProperty -> Maybe (ValueList Text)
shutdown :: (Prelude.Maybe (ValueList Prelude.Text)),
RecipesProperty -> Maybe (ValueList Text)
undeploy :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (RecipesProperty -> RecipesProperty -> Bool
(RecipesProperty -> RecipesProperty -> Bool)
-> (RecipesProperty -> RecipesProperty -> Bool)
-> Eq RecipesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RecipesProperty -> RecipesProperty -> Bool
== :: RecipesProperty -> RecipesProperty -> Bool
$c/= :: RecipesProperty -> RecipesProperty -> Bool
/= :: RecipesProperty -> RecipesProperty -> Bool
Prelude.Eq, Int -> RecipesProperty -> ShowS
[RecipesProperty] -> ShowS
RecipesProperty -> String
(Int -> RecipesProperty -> ShowS)
-> (RecipesProperty -> String)
-> ([RecipesProperty] -> ShowS)
-> Show RecipesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RecipesProperty -> ShowS
showsPrec :: Int -> RecipesProperty -> ShowS
$cshow :: RecipesProperty -> String
show :: RecipesProperty -> String
$cshowList :: [RecipesProperty] -> ShowS
showList :: [RecipesProperty] -> ShowS
Prelude.Show)
mkRecipesProperty :: RecipesProperty
mkRecipesProperty :: RecipesProperty
mkRecipesProperty
= RecipesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), configure :: Maybe (ValueList Text)
configure = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
deploy :: Maybe (ValueList Text)
deploy = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, setup :: Maybe (ValueList Text)
setup = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
shutdown :: Maybe (ValueList Text)
shutdown = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, undeploy :: Maybe (ValueList Text)
undeploy = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RecipesProperty where
toResourceProperties :: RecipesProperty -> ResourceProperties
toResourceProperties RecipesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RecipesProperty -> ()
configure :: RecipesProperty -> Maybe (ValueList Text)
deploy :: RecipesProperty -> Maybe (ValueList Text)
setup :: RecipesProperty -> Maybe (ValueList Text)
shutdown :: RecipesProperty -> Maybe (ValueList Text)
undeploy :: RecipesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::OpsWorks::Layer.Recipes",
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 -> ValueList 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
"Configure" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
configure,
Key -> ValueList 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
"Deploy" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
deploy,
Key -> ValueList 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
"Setup" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
setup,
Key -> ValueList 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
"Shutdown" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
shutdown,
Key -> ValueList 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
"Undeploy" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
undeploy])}
instance JSON.ToJSON RecipesProperty where
toJSON :: RecipesProperty -> Value
toJSON RecipesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RecipesProperty -> ()
configure :: RecipesProperty -> Maybe (ValueList Text)
deploy :: RecipesProperty -> Maybe (ValueList Text)
setup :: RecipesProperty -> Maybe (ValueList Text)
shutdown :: RecipesProperty -> Maybe (ValueList Text)
undeploy :: RecipesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList 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 -> ValueList 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
"Configure" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
configure,
Key -> ValueList 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
"Deploy" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
deploy,
Key -> ValueList 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
"Setup" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
setup,
Key -> ValueList 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
"Shutdown" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
shutdown,
Key -> ValueList 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
"Undeploy" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
undeploy]))
instance Property "Configure" RecipesProperty where
type PropertyType "Configure" RecipesProperty = ValueList Prelude.Text
set :: PropertyType "Configure" RecipesProperty
-> RecipesProperty -> RecipesProperty
set PropertyType "Configure" RecipesProperty
newValue RecipesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RecipesProperty -> ()
configure :: RecipesProperty -> Maybe (ValueList Text)
deploy :: RecipesProperty -> Maybe (ValueList Text)
setup :: RecipesProperty -> Maybe (ValueList Text)
shutdown :: RecipesProperty -> Maybe (ValueList Text)
undeploy :: RecipesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
= RecipesProperty {configure :: Maybe (ValueList Text)
configure = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Configure" RecipesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
haddock_workaround_ :: ()
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
instance Property "Deploy" RecipesProperty where
type PropertyType "Deploy" RecipesProperty = ValueList Prelude.Text
set :: PropertyType "Deploy" RecipesProperty
-> RecipesProperty -> RecipesProperty
set PropertyType "Deploy" RecipesProperty
newValue RecipesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RecipesProperty -> ()
configure :: RecipesProperty -> Maybe (ValueList Text)
deploy :: RecipesProperty -> Maybe (ValueList Text)
setup :: RecipesProperty -> Maybe (ValueList Text)
shutdown :: RecipesProperty -> Maybe (ValueList Text)
undeploy :: RecipesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
= RecipesProperty {deploy :: Maybe (ValueList Text)
deploy = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Deploy" RecipesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
instance Property "Setup" RecipesProperty where
type PropertyType "Setup" RecipesProperty = ValueList Prelude.Text
set :: PropertyType "Setup" RecipesProperty
-> RecipesProperty -> RecipesProperty
set PropertyType "Setup" RecipesProperty
newValue RecipesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RecipesProperty -> ()
configure :: RecipesProperty -> Maybe (ValueList Text)
deploy :: RecipesProperty -> Maybe (ValueList Text)
setup :: RecipesProperty -> Maybe (ValueList Text)
shutdown :: RecipesProperty -> Maybe (ValueList Text)
undeploy :: RecipesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
= RecipesProperty {setup :: Maybe (ValueList Text)
setup = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Setup" RecipesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
instance Property "Shutdown" RecipesProperty where
type PropertyType "Shutdown" RecipesProperty = ValueList Prelude.Text
set :: PropertyType "Shutdown" RecipesProperty
-> RecipesProperty -> RecipesProperty
set PropertyType "Shutdown" RecipesProperty
newValue RecipesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RecipesProperty -> ()
configure :: RecipesProperty -> Maybe (ValueList Text)
deploy :: RecipesProperty -> Maybe (ValueList Text)
setup :: RecipesProperty -> Maybe (ValueList Text)
shutdown :: RecipesProperty -> Maybe (ValueList Text)
undeploy :: RecipesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
= RecipesProperty {shutdown :: Maybe (ValueList Text)
shutdown = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Shutdown" RecipesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
instance Property "Undeploy" RecipesProperty where
type PropertyType "Undeploy" RecipesProperty = ValueList Prelude.Text
set :: PropertyType "Undeploy" RecipesProperty
-> RecipesProperty -> RecipesProperty
set PropertyType "Undeploy" RecipesProperty
newValue RecipesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: RecipesProperty -> ()
configure :: RecipesProperty -> Maybe (ValueList Text)
deploy :: RecipesProperty -> Maybe (ValueList Text)
setup :: RecipesProperty -> Maybe (ValueList Text)
shutdown :: RecipesProperty -> Maybe (ValueList Text)
undeploy :: RecipesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
undeploy :: Maybe (ValueList Text)
..}
= RecipesProperty {undeploy :: Maybe (ValueList Text)
undeploy = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Undeploy" RecipesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
haddock_workaround_ :: ()
configure :: Maybe (ValueList Text)
deploy :: Maybe (ValueList Text)
setup :: Maybe (ValueList Text)
shutdown :: Maybe (ValueList Text)
..}