module Stratosphere.CloudFormation.LambdaHook.StackNamesProperty (
        StackNamesProperty(..), mkStackNamesProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data StackNamesProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-lambdahook-stacknames.html>
    StackNamesProperty {StackNamesProperty -> ()
haddock_workaround_ :: (),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-lambdahook-stacknames.html#cfn-cloudformation-lambdahook-stacknames-exclude>
                        StackNamesProperty -> Maybe (ValueList Text)
exclude :: (Prelude.Maybe (ValueList Prelude.Text)),
                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudformation-lambdahook-stacknames.html#cfn-cloudformation-lambdahook-stacknames-include>
                        StackNamesProperty -> Maybe (ValueList Text)
include :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (StackNamesProperty -> StackNamesProperty -> Bool
(StackNamesProperty -> StackNamesProperty -> Bool)
-> (StackNamesProperty -> StackNamesProperty -> Bool)
-> Eq StackNamesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: StackNamesProperty -> StackNamesProperty -> Bool
== :: StackNamesProperty -> StackNamesProperty -> Bool
$c/= :: StackNamesProperty -> StackNamesProperty -> Bool
/= :: StackNamesProperty -> StackNamesProperty -> Bool
Prelude.Eq, Int -> StackNamesProperty -> ShowS
[StackNamesProperty] -> ShowS
StackNamesProperty -> String
(Int -> StackNamesProperty -> ShowS)
-> (StackNamesProperty -> String)
-> ([StackNamesProperty] -> ShowS)
-> Show StackNamesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> StackNamesProperty -> ShowS
showsPrec :: Int -> StackNamesProperty -> ShowS
$cshow :: StackNamesProperty -> String
show :: StackNamesProperty -> String
$cshowList :: [StackNamesProperty] -> ShowS
showList :: [StackNamesProperty] -> ShowS
Prelude.Show)
mkStackNamesProperty :: StackNamesProperty
mkStackNamesProperty :: StackNamesProperty
mkStackNamesProperty
  = StackNamesProperty
      {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 StackNamesProperty where
  toResourceProperties :: StackNamesProperty -> ResourceProperties
toResourceProperties StackNamesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StackNamesProperty -> ()
exclude :: StackNamesProperty -> Maybe (ValueList Text)
include :: StackNamesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CloudFormation::LambdaHook.StackNames",
         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 StackNamesProperty where
  toJSON :: StackNamesProperty -> Value
toJSON StackNamesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StackNamesProperty -> ()
exclude :: StackNamesProperty -> Maybe (ValueList Text)
include :: StackNamesProperty -> 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" StackNamesProperty where
  type PropertyType "Exclude" StackNamesProperty = ValueList Prelude.Text
  set :: PropertyType "Exclude" StackNamesProperty
-> StackNamesProperty -> StackNamesProperty
set PropertyType "Exclude" StackNamesProperty
newValue StackNamesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StackNamesProperty -> ()
exclude :: StackNamesProperty -> Maybe (ValueList Text)
include :: StackNamesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = StackNamesProperty {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" StackNamesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
include :: Maybe (ValueList Text)
haddock_workaround_ :: ()
include :: Maybe (ValueList Text)
..}
instance Property "Include" StackNamesProperty where
  type PropertyType "Include" StackNamesProperty = ValueList Prelude.Text
  set :: PropertyType "Include" StackNamesProperty
-> StackNamesProperty -> StackNamesProperty
set PropertyType "Include" StackNamesProperty
newValue StackNamesProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: StackNamesProperty -> ()
exclude :: StackNamesProperty -> Maybe (ValueList Text)
include :: StackNamesProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
include :: Maybe (ValueList Text)
..}
    = StackNamesProperty {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" StackNamesProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
haddock_workaround_ :: ()
exclude :: Maybe (ValueList Text)
..}