module Stratosphere.CodePipeline.Pipeline.PipelineTriggerDeclarationProperty (
        module Exports, PipelineTriggerDeclarationProperty(..),
        mkPipelineTriggerDeclarationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.CodePipeline.Pipeline.GitConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PipelineTriggerDeclarationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-pipelinetriggerdeclaration.html>
    PipelineTriggerDeclarationProperty {PipelineTriggerDeclarationProperty -> ()
haddock_workaround_ :: (),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-pipelinetriggerdeclaration.html#cfn-codepipeline-pipeline-pipelinetriggerdeclaration-gitconfiguration>
                                        PipelineTriggerDeclarationProperty
-> Maybe GitConfigurationProperty
gitConfiguration :: (Prelude.Maybe GitConfigurationProperty),
                                        -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-pipelinetriggerdeclaration.html#cfn-codepipeline-pipeline-pipelinetriggerdeclaration-providertype>
                                        PipelineTriggerDeclarationProperty -> Value Text
providerType :: (Value Prelude.Text)}
  deriving stock (PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty -> Bool
(PipelineTriggerDeclarationProperty
 -> PipelineTriggerDeclarationProperty -> Bool)
-> (PipelineTriggerDeclarationProperty
    -> PipelineTriggerDeclarationProperty -> Bool)
-> Eq PipelineTriggerDeclarationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty -> Bool
== :: PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty -> Bool
$c/= :: PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty -> Bool
/= :: PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty -> Bool
Prelude.Eq, Int -> PipelineTriggerDeclarationProperty -> ShowS
[PipelineTriggerDeclarationProperty] -> ShowS
PipelineTriggerDeclarationProperty -> String
(Int -> PipelineTriggerDeclarationProperty -> ShowS)
-> (PipelineTriggerDeclarationProperty -> String)
-> ([PipelineTriggerDeclarationProperty] -> ShowS)
-> Show PipelineTriggerDeclarationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PipelineTriggerDeclarationProperty -> ShowS
showsPrec :: Int -> PipelineTriggerDeclarationProperty -> ShowS
$cshow :: PipelineTriggerDeclarationProperty -> String
show :: PipelineTriggerDeclarationProperty -> String
$cshowList :: [PipelineTriggerDeclarationProperty] -> ShowS
showList :: [PipelineTriggerDeclarationProperty] -> ShowS
Prelude.Show)
mkPipelineTriggerDeclarationProperty ::
  Value Prelude.Text -> PipelineTriggerDeclarationProperty
mkPipelineTriggerDeclarationProperty :: Value Text -> PipelineTriggerDeclarationProperty
mkPipelineTriggerDeclarationProperty Value Text
providerType
  = PipelineTriggerDeclarationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), providerType :: Value Text
providerType = Value Text
providerType,
       gitConfiguration :: Maybe GitConfigurationProperty
gitConfiguration = Maybe GitConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PipelineTriggerDeclarationProperty where
  toResourceProperties :: PipelineTriggerDeclarationProperty -> ResourceProperties
toResourceProperties PipelineTriggerDeclarationProperty {Maybe GitConfigurationProperty
()
Value Text
haddock_workaround_ :: PipelineTriggerDeclarationProperty -> ()
gitConfiguration :: PipelineTriggerDeclarationProperty
-> Maybe GitConfigurationProperty
providerType :: PipelineTriggerDeclarationProperty -> Value Text
haddock_workaround_ :: ()
gitConfiguration :: Maybe GitConfigurationProperty
providerType :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CodePipeline::Pipeline.PipelineTriggerDeclaration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"ProviderType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
providerType]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> GitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GitConfiguration" (GitConfigurationProperty -> (Key, Value))
-> Maybe GitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GitConfigurationProperty
gitConfiguration]))}
instance JSON.ToJSON PipelineTriggerDeclarationProperty where
  toJSON :: PipelineTriggerDeclarationProperty -> Value
toJSON PipelineTriggerDeclarationProperty {Maybe GitConfigurationProperty
()
Value Text
haddock_workaround_ :: PipelineTriggerDeclarationProperty -> ()
gitConfiguration :: PipelineTriggerDeclarationProperty
-> Maybe GitConfigurationProperty
providerType :: PipelineTriggerDeclarationProperty -> Value Text
haddock_workaround_ :: ()
gitConfiguration :: Maybe GitConfigurationProperty
providerType :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"ProviderType" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
providerType]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> GitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"GitConfiguration" (GitConfigurationProperty -> (Key, Value))
-> Maybe GitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GitConfigurationProperty
gitConfiguration])))
instance Property "GitConfiguration" PipelineTriggerDeclarationProperty where
  type PropertyType "GitConfiguration" PipelineTriggerDeclarationProperty = GitConfigurationProperty
  set :: PropertyType "GitConfiguration" PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty
set PropertyType "GitConfiguration" PipelineTriggerDeclarationProperty
newValue PipelineTriggerDeclarationProperty {Maybe GitConfigurationProperty
()
Value Text
haddock_workaround_ :: PipelineTriggerDeclarationProperty -> ()
gitConfiguration :: PipelineTriggerDeclarationProperty
-> Maybe GitConfigurationProperty
providerType :: PipelineTriggerDeclarationProperty -> Value Text
haddock_workaround_ :: ()
gitConfiguration :: Maybe GitConfigurationProperty
providerType :: Value Text
..}
    = PipelineTriggerDeclarationProperty
        {gitConfiguration :: Maybe GitConfigurationProperty
gitConfiguration = GitConfigurationProperty -> Maybe GitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "GitConfiguration" PipelineTriggerDeclarationProperty
GitConfigurationProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
providerType :: Value Text
haddock_workaround_ :: ()
providerType :: Value Text
..}
instance Property "ProviderType" PipelineTriggerDeclarationProperty where
  type PropertyType "ProviderType" PipelineTriggerDeclarationProperty = Value Prelude.Text
  set :: PropertyType "ProviderType" PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty
-> PipelineTriggerDeclarationProperty
set PropertyType "ProviderType" PipelineTriggerDeclarationProperty
newValue PipelineTriggerDeclarationProperty {Maybe GitConfigurationProperty
()
Value Text
haddock_workaround_ :: PipelineTriggerDeclarationProperty -> ()
gitConfiguration :: PipelineTriggerDeclarationProperty
-> Maybe GitConfigurationProperty
providerType :: PipelineTriggerDeclarationProperty -> Value Text
haddock_workaround_ :: ()
gitConfiguration :: Maybe GitConfigurationProperty
providerType :: Value Text
..}
    = PipelineTriggerDeclarationProperty {providerType :: Value Text
providerType = PropertyType "ProviderType" PipelineTriggerDeclarationProperty
Value Text
newValue, Maybe GitConfigurationProperty
()
haddock_workaround_ :: ()
gitConfiguration :: Maybe GitConfigurationProperty
haddock_workaround_ :: ()
gitConfiguration :: Maybe GitConfigurationProperty
..}