module Stratosphere.CloudFormation.LambdaHook.StackRolesProperty (
StackRolesProperty(..), mkStackRolesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StackRolesProperty
=
StackRolesProperty {StackRolesProperty -> ()
haddock_workaround_ :: (),
StackRolesProperty -> Maybe (ValueList Text)
exclude :: (Prelude.Maybe (ValueList Prelude.Text)),
StackRolesProperty -> Maybe (ValueList Text)
include :: (Prelude.Maybe (ValueList Prelude.Text))}
deriving stock (StackRolesProperty -> StackRolesProperty -> Bool
(StackRolesProperty -> StackRolesProperty -> Bool)
-> (StackRolesProperty -> StackRolesProperty -> Bool)
-> Eq StackRolesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StackRolesProperty -> StackRolesProperty -> Bool
== :: StackRolesProperty -> StackRolesProperty -> Bool
$c/= :: StackRolesProperty -> StackRolesProperty -> Bool
/= :: StackRolesProperty -> StackRolesProperty -> Bool
Prelude.Eq, Int -> StackRolesProperty -> ShowS
[StackRolesProperty] -> ShowS
StackRolesProperty -> String
(Int -> StackRolesProperty -> ShowS)
-> (StackRolesProperty -> String)
-> ([StackRolesProperty] -> ShowS)
-> Show StackRolesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StackRolesProperty -> ShowS
showsPrec :: Int -> StackRolesProperty -> ShowS
$cshow :: StackRolesProperty -> String
show :: StackRolesProperty -> String
$cshowList :: [StackRolesProperty] -> ShowS
showList :: [StackRolesProperty] -> ShowS
Prelude.Show)
mkStackRolesProperty :: StackRolesProperty
mkStackRolesProperty :: StackRolesProperty
mkStackRolesProperty
= StackRolesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), exclude :: Maybe (ValueList Text)
exclude = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing,
include :: Maybe (ValueList Text)
include = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties StackRolesProperty where
toResourceProperties :: StackRolesProperty -> ResourceProperties
toResourceProperties StackRolesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StackRolesProperty -> ()
exclude :: StackRolesProperty -> Maybe (ValueList Text)
include :: StackRolesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CloudFormation::LambdaHook.StackRoles",
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
"Exclude" (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)
exclude,
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
"Include" (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)
include])}
instance JSON.ToJSON StackRolesProperty where
toJSON :: StackRolesProperty -> Value
toJSON StackRolesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StackRolesProperty -> ()
exclude :: StackRolesProperty -> Maybe (ValueList Text)
include :: StackRolesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: 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
"Exclude" (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)
exclude,
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
"Include" (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)
include]))
instance Property "Exclude" StackRolesProperty where
type PropertyType "Exclude" StackRolesProperty = ValueList Prelude.Text
set :: PropertyType "Exclude" StackRolesProperty
-> StackRolesProperty -> StackRolesProperty
set PropertyType "Exclude" StackRolesProperty
newValue StackRolesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StackRolesProperty -> ()
exclude :: StackRolesProperty -> Maybe (ValueList Text)
include :: StackRolesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
= StackRolesProperty {exclude :: Maybe (ValueList Text)
exclude = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Exclude" StackRolesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
include :: Maybe (ValueList Text)
haddock_workaround_ :: ()
include :: Maybe (ValueList Text)
..}
instance Property "Include" StackRolesProperty where
type PropertyType "Include" StackRolesProperty = ValueList Prelude.Text
set :: PropertyType "Include" StackRolesProperty
-> StackRolesProperty -> StackRolesProperty
set PropertyType "Include" StackRolesProperty
newValue StackRolesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StackRolesProperty -> ()
exclude :: StackRolesProperty -> Maybe (ValueList Text)
include :: StackRolesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
= StackRolesProperty {include :: Maybe (ValueList Text)
include = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Include" StackRolesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
..}