module Stratosphere.DevOpsGuru.ResourceCollection.ResourceCollectionFilterProperty (
module Exports, ResourceCollectionFilterProperty(..),
mkResourceCollectionFilterProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DevOpsGuru.ResourceCollection.CloudFormationCollectionFilterProperty as Exports
import {-# SOURCE #-} Stratosphere.DevOpsGuru.ResourceCollection.TagCollectionProperty as Exports
import Stratosphere.ResourceProperties
data ResourceCollectionFilterProperty
=
ResourceCollectionFilterProperty {ResourceCollectionFilterProperty -> ()
haddock_workaround_ :: (),
ResourceCollectionFilterProperty
-> Maybe CloudFormationCollectionFilterProperty
cloudFormation :: (Prelude.Maybe CloudFormationCollectionFilterProperty),
ResourceCollectionFilterProperty -> Maybe [TagCollectionProperty]
tags :: (Prelude.Maybe [TagCollectionProperty])}
deriving stock (ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty -> Bool
(ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty -> Bool)
-> (ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty -> Bool)
-> Eq ResourceCollectionFilterProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty -> Bool
== :: ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty -> Bool
$c/= :: ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty -> Bool
/= :: ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty -> Bool
Prelude.Eq, Int -> ResourceCollectionFilterProperty -> ShowS
[ResourceCollectionFilterProperty] -> ShowS
ResourceCollectionFilterProperty -> String
(Int -> ResourceCollectionFilterProperty -> ShowS)
-> (ResourceCollectionFilterProperty -> String)
-> ([ResourceCollectionFilterProperty] -> ShowS)
-> Show ResourceCollectionFilterProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ResourceCollectionFilterProperty -> ShowS
showsPrec :: Int -> ResourceCollectionFilterProperty -> ShowS
$cshow :: ResourceCollectionFilterProperty -> String
show :: ResourceCollectionFilterProperty -> String
$cshowList :: [ResourceCollectionFilterProperty] -> ShowS
showList :: [ResourceCollectionFilterProperty] -> ShowS
Prelude.Show)
mkResourceCollectionFilterProperty ::
ResourceCollectionFilterProperty
mkResourceCollectionFilterProperty :: ResourceCollectionFilterProperty
mkResourceCollectionFilterProperty
= ResourceCollectionFilterProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), cloudFormation :: Maybe CloudFormationCollectionFilterProperty
cloudFormation = Maybe CloudFormationCollectionFilterProperty
forall a. Maybe a
Prelude.Nothing,
tags :: Maybe [TagCollectionProperty]
tags = Maybe [TagCollectionProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ResourceCollectionFilterProperty where
toResourceProperties :: ResourceCollectionFilterProperty -> ResourceProperties
toResourceProperties ResourceCollectionFilterProperty {Maybe [TagCollectionProperty]
Maybe CloudFormationCollectionFilterProperty
()
haddock_workaround_ :: ResourceCollectionFilterProperty -> ()
cloudFormation :: ResourceCollectionFilterProperty
-> Maybe CloudFormationCollectionFilterProperty
tags :: ResourceCollectionFilterProperty -> Maybe [TagCollectionProperty]
haddock_workaround_ :: ()
cloudFormation :: Maybe CloudFormationCollectionFilterProperty
tags :: Maybe [TagCollectionProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::DevOpsGuru::ResourceCollection.ResourceCollectionFilter",
supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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 -> CloudFormationCollectionFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudFormation" (CloudFormationCollectionFilterProperty -> (Key, Value))
-> Maybe CloudFormationCollectionFilterProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudFormationCollectionFilterProperty
cloudFormation,
Key -> [TagCollectionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([TagCollectionProperty] -> (Key, Value))
-> Maybe [TagCollectionProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TagCollectionProperty]
tags])}
instance JSON.ToJSON ResourceCollectionFilterProperty where
toJSON :: ResourceCollectionFilterProperty -> Value
toJSON ResourceCollectionFilterProperty {Maybe [TagCollectionProperty]
Maybe CloudFormationCollectionFilterProperty
()
haddock_workaround_ :: ResourceCollectionFilterProperty -> ()
cloudFormation :: ResourceCollectionFilterProperty
-> Maybe CloudFormationCollectionFilterProperty
tags :: ResourceCollectionFilterProperty -> Maybe [TagCollectionProperty]
haddock_workaround_ :: ()
cloudFormation :: Maybe CloudFormationCollectionFilterProperty
tags :: Maybe [TagCollectionProperty]
..}
= [(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 -> CloudFormationCollectionFilterProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CloudFormation" (CloudFormationCollectionFilterProperty -> (Key, Value))
-> Maybe CloudFormationCollectionFilterProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe CloudFormationCollectionFilterProperty
cloudFormation,
Key -> [TagCollectionProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([TagCollectionProperty] -> (Key, Value))
-> Maybe [TagCollectionProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [TagCollectionProperty]
tags]))
instance Property "CloudFormation" ResourceCollectionFilterProperty where
type PropertyType "CloudFormation" ResourceCollectionFilterProperty = CloudFormationCollectionFilterProperty
set :: PropertyType "CloudFormation" ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty
set PropertyType "CloudFormation" ResourceCollectionFilterProperty
newValue ResourceCollectionFilterProperty {Maybe [TagCollectionProperty]
Maybe CloudFormationCollectionFilterProperty
()
haddock_workaround_ :: ResourceCollectionFilterProperty -> ()
cloudFormation :: ResourceCollectionFilterProperty
-> Maybe CloudFormationCollectionFilterProperty
tags :: ResourceCollectionFilterProperty -> Maybe [TagCollectionProperty]
haddock_workaround_ :: ()
cloudFormation :: Maybe CloudFormationCollectionFilterProperty
tags :: Maybe [TagCollectionProperty]
..}
= ResourceCollectionFilterProperty
{cloudFormation :: Maybe CloudFormationCollectionFilterProperty
cloudFormation = CloudFormationCollectionFilterProperty
-> Maybe CloudFormationCollectionFilterProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CloudFormation" ResourceCollectionFilterProperty
CloudFormationCollectionFilterProperty
newValue, Maybe [TagCollectionProperty]
()
haddock_workaround_ :: ()
tags :: Maybe [TagCollectionProperty]
haddock_workaround_ :: ()
tags :: Maybe [TagCollectionProperty]
..}
instance Property "Tags" ResourceCollectionFilterProperty where
type PropertyType "Tags" ResourceCollectionFilterProperty = [TagCollectionProperty]
set :: PropertyType "Tags" ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty
-> ResourceCollectionFilterProperty
set PropertyType "Tags" ResourceCollectionFilterProperty
newValue ResourceCollectionFilterProperty {Maybe [TagCollectionProperty]
Maybe CloudFormationCollectionFilterProperty
()
haddock_workaround_ :: ResourceCollectionFilterProperty -> ()
cloudFormation :: ResourceCollectionFilterProperty
-> Maybe CloudFormationCollectionFilterProperty
tags :: ResourceCollectionFilterProperty -> Maybe [TagCollectionProperty]
haddock_workaround_ :: ()
cloudFormation :: Maybe CloudFormationCollectionFilterProperty
tags :: Maybe [TagCollectionProperty]
..}
= ResourceCollectionFilterProperty
{tags :: Maybe [TagCollectionProperty]
tags = [TagCollectionProperty] -> Maybe [TagCollectionProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [TagCollectionProperty]
PropertyType "Tags" ResourceCollectionFilterProperty
newValue, Maybe CloudFormationCollectionFilterProperty
()
haddock_workaround_ :: ()
cloudFormation :: Maybe CloudFormationCollectionFilterProperty
haddock_workaround_ :: ()
cloudFormation :: Maybe CloudFormationCollectionFilterProperty
..}