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