module Stratosphere.CodePipeline.Pipeline.GitFilePathFilterCriteriaProperty (
        GitFilePathFilterCriteriaProperty(..),
        mkGitFilePathFilterCriteriaProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GitFilePathFilterCriteriaProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitfilepathfiltercriteria.html>
    GitFilePathFilterCriteriaProperty {GitFilePathFilterCriteriaProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitfilepathfiltercriteria.html#cfn-codepipeline-pipeline-gitfilepathfiltercriteria-excludes>
                                       GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
excludes :: (Prelude.Maybe (ValueList Prelude.Text)),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-gitfilepathfiltercriteria.html#cfn-codepipeline-pipeline-gitfilepathfiltercriteria-includes>
                                       GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
includes :: (Prelude.Maybe (ValueList Prelude.Text))}
  deriving stock (GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty -> Bool
(GitFilePathFilterCriteriaProperty
 -> GitFilePathFilterCriteriaProperty -> Bool)
-> (GitFilePathFilterCriteriaProperty
    -> GitFilePathFilterCriteriaProperty -> Bool)
-> Eq GitFilePathFilterCriteriaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty -> Bool
== :: GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty -> Bool
$c/= :: GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty -> Bool
/= :: GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty -> Bool
Prelude.Eq, Int -> GitFilePathFilterCriteriaProperty -> ShowS
[GitFilePathFilterCriteriaProperty] -> ShowS
GitFilePathFilterCriteriaProperty -> String
(Int -> GitFilePathFilterCriteriaProperty -> ShowS)
-> (GitFilePathFilterCriteriaProperty -> String)
-> ([GitFilePathFilterCriteriaProperty] -> ShowS)
-> Show GitFilePathFilterCriteriaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GitFilePathFilterCriteriaProperty -> ShowS
showsPrec :: Int -> GitFilePathFilterCriteriaProperty -> ShowS
$cshow :: GitFilePathFilterCriteriaProperty -> String
show :: GitFilePathFilterCriteriaProperty -> String
$cshowList :: [GitFilePathFilterCriteriaProperty] -> ShowS
showList :: [GitFilePathFilterCriteriaProperty] -> ShowS
Prelude.Show)
mkGitFilePathFilterCriteriaProperty ::
  GitFilePathFilterCriteriaProperty
mkGitFilePathFilterCriteriaProperty :: GitFilePathFilterCriteriaProperty
mkGitFilePathFilterCriteriaProperty
  = GitFilePathFilterCriteriaProperty
      {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 GitFilePathFilterCriteriaProperty where
  toResourceProperties :: GitFilePathFilterCriteriaProperty -> ResourceProperties
toResourceProperties GitFilePathFilterCriteriaProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: GitFilePathFilterCriteriaProperty -> ()
excludes :: GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
includes :: GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
excludes :: Maybe (ValueList Text)
includes :: Maybe (ValueList Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CodePipeline::Pipeline.GitFilePathFilterCriteria",
         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 GitFilePathFilterCriteriaProperty where
  toJSON :: GitFilePathFilterCriteriaProperty -> Value
toJSON GitFilePathFilterCriteriaProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: GitFilePathFilterCriteriaProperty -> ()
excludes :: GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
includes :: GitFilePathFilterCriteriaProperty -> 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" GitFilePathFilterCriteriaProperty where
  type PropertyType "Excludes" GitFilePathFilterCriteriaProperty = ValueList Prelude.Text
  set :: PropertyType "Excludes" GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty
set PropertyType "Excludes" GitFilePathFilterCriteriaProperty
newValue GitFilePathFilterCriteriaProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: GitFilePathFilterCriteriaProperty -> ()
excludes :: GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
includes :: GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
excludes :: Maybe (ValueList Text)
includes :: Maybe (ValueList Text)
..}
    = GitFilePathFilterCriteriaProperty
        {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" GitFilePathFilterCriteriaProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
includes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
includes :: Maybe (ValueList Text)
..}
instance Property "Includes" GitFilePathFilterCriteriaProperty where
  type PropertyType "Includes" GitFilePathFilterCriteriaProperty = ValueList Prelude.Text
  set :: PropertyType "Includes" GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty
-> GitFilePathFilterCriteriaProperty
set PropertyType "Includes" GitFilePathFilterCriteriaProperty
newValue GitFilePathFilterCriteriaProperty {Maybe (ValueList Text)
()
haddock_workaround_ :: GitFilePathFilterCriteriaProperty -> ()
excludes :: GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
includes :: GitFilePathFilterCriteriaProperty -> Maybe (ValueList Text)
haddock_workaround_ :: ()
excludes :: Maybe (ValueList Text)
includes :: Maybe (ValueList Text)
..}
    = GitFilePathFilterCriteriaProperty
        {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" GitFilePathFilterCriteriaProperty
ValueList Text
newValue, Maybe (ValueList Text)
()
haddock_workaround_ :: ()
excludes :: Maybe (ValueList Text)
haddock_workaround_ :: ()
excludes :: Maybe (ValueList Text)
..}