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