{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.DevOpsGuru.Types.UpdateCloudFormationCollectionFilter where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data UpdateCloudFormationCollectionFilter = UpdateCloudFormationCollectionFilter'
{
UpdateCloudFormationCollectionFilter -> Maybe [Text]
stackNames :: Prelude.Maybe [Prelude.Text]
}
deriving (UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
(UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool)
-> (UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool)
-> Eq UpdateCloudFormationCollectionFilter
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
$c/= :: UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
== :: UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
$c== :: UpdateCloudFormationCollectionFilter
-> UpdateCloudFormationCollectionFilter -> Bool
Prelude.Eq, ReadPrec [UpdateCloudFormationCollectionFilter]
ReadPrec UpdateCloudFormationCollectionFilter
Int -> ReadS UpdateCloudFormationCollectionFilter
ReadS [UpdateCloudFormationCollectionFilter]
(Int -> ReadS UpdateCloudFormationCollectionFilter)
-> ReadS [UpdateCloudFormationCollectionFilter]
-> ReadPrec UpdateCloudFormationCollectionFilter
-> ReadPrec [UpdateCloudFormationCollectionFilter]
-> Read UpdateCloudFormationCollectionFilter
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateCloudFormationCollectionFilter]
$creadListPrec :: ReadPrec [UpdateCloudFormationCollectionFilter]
readPrec :: ReadPrec UpdateCloudFormationCollectionFilter
$creadPrec :: ReadPrec UpdateCloudFormationCollectionFilter
readList :: ReadS [UpdateCloudFormationCollectionFilter]
$creadList :: ReadS [UpdateCloudFormationCollectionFilter]
readsPrec :: Int -> ReadS UpdateCloudFormationCollectionFilter
$creadsPrec :: Int -> ReadS UpdateCloudFormationCollectionFilter
Prelude.Read, Int -> UpdateCloudFormationCollectionFilter -> ShowS
[UpdateCloudFormationCollectionFilter] -> ShowS
UpdateCloudFormationCollectionFilter -> String
(Int -> UpdateCloudFormationCollectionFilter -> ShowS)
-> (UpdateCloudFormationCollectionFilter -> String)
-> ([UpdateCloudFormationCollectionFilter] -> ShowS)
-> Show UpdateCloudFormationCollectionFilter
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateCloudFormationCollectionFilter] -> ShowS
$cshowList :: [UpdateCloudFormationCollectionFilter] -> ShowS
show :: UpdateCloudFormationCollectionFilter -> String
$cshow :: UpdateCloudFormationCollectionFilter -> String
showsPrec :: Int -> UpdateCloudFormationCollectionFilter -> ShowS
$cshowsPrec :: Int -> UpdateCloudFormationCollectionFilter -> ShowS
Prelude.Show, (forall x.
UpdateCloudFormationCollectionFilter
-> Rep UpdateCloudFormationCollectionFilter x)
-> (forall x.
Rep UpdateCloudFormationCollectionFilter x
-> UpdateCloudFormationCollectionFilter)
-> Generic UpdateCloudFormationCollectionFilter
forall x.
Rep UpdateCloudFormationCollectionFilter x
-> UpdateCloudFormationCollectionFilter
forall x.
UpdateCloudFormationCollectionFilter
-> Rep UpdateCloudFormationCollectionFilter x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateCloudFormationCollectionFilter x
-> UpdateCloudFormationCollectionFilter
$cfrom :: forall x.
UpdateCloudFormationCollectionFilter
-> Rep UpdateCloudFormationCollectionFilter x
Prelude.Generic)
newUpdateCloudFormationCollectionFilter ::
UpdateCloudFormationCollectionFilter
newUpdateCloudFormationCollectionFilter :: UpdateCloudFormationCollectionFilter
newUpdateCloudFormationCollectionFilter =
UpdateCloudFormationCollectionFilter' :: Maybe [Text] -> UpdateCloudFormationCollectionFilter
UpdateCloudFormationCollectionFilter'
{ $sel:stackNames:UpdateCloudFormationCollectionFilter' :: Maybe [Text]
stackNames =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing
}
updateCloudFormationCollectionFilter_stackNames :: Lens.Lens' UpdateCloudFormationCollectionFilter (Prelude.Maybe [Prelude.Text])
updateCloudFormationCollectionFilter_stackNames :: (Maybe [Text] -> f (Maybe [Text]))
-> UpdateCloudFormationCollectionFilter
-> f UpdateCloudFormationCollectionFilter
updateCloudFormationCollectionFilter_stackNames = (UpdateCloudFormationCollectionFilter -> Maybe [Text])
-> (UpdateCloudFormationCollectionFilter
-> Maybe [Text] -> UpdateCloudFormationCollectionFilter)
-> Lens
UpdateCloudFormationCollectionFilter
UpdateCloudFormationCollectionFilter
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateCloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:UpdateCloudFormationCollectionFilter' :: UpdateCloudFormationCollectionFilter -> Maybe [Text]
stackNames} -> Maybe [Text]
stackNames) (\s :: UpdateCloudFormationCollectionFilter
s@UpdateCloudFormationCollectionFilter' {} Maybe [Text]
a -> UpdateCloudFormationCollectionFilter
s {$sel:stackNames:UpdateCloudFormationCollectionFilter' :: Maybe [Text]
stackNames = Maybe [Text]
a} :: UpdateCloudFormationCollectionFilter) ((Maybe [Text] -> f (Maybe [Text]))
-> UpdateCloudFormationCollectionFilter
-> f UpdateCloudFormationCollectionFilter)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> UpdateCloudFormationCollectionFilter
-> f UpdateCloudFormationCollectionFilter
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.Hashable
UpdateCloudFormationCollectionFilter
instance
Prelude.NFData
UpdateCloudFormationCollectionFilter
instance
Core.ToJSON
UpdateCloudFormationCollectionFilter
where
toJSON :: UpdateCloudFormationCollectionFilter -> Value
toJSON UpdateCloudFormationCollectionFilter' {Maybe [Text]
stackNames :: Maybe [Text]
$sel:stackNames:UpdateCloudFormationCollectionFilter' :: UpdateCloudFormationCollectionFilter -> Maybe [Text]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"StackNames" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
stackNames]
)