module Stratosphere.CodePipeline.Pipeline.InputArtifactProperty (
        InputArtifactProperty(..), mkInputArtifactProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data InputArtifactProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-inputartifact.html>
    InputArtifactProperty {InputArtifactProperty -> ()
haddock_workaround_ :: (),
                           -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codepipeline-pipeline-inputartifact.html#cfn-codepipeline-pipeline-inputartifact-name>
                           InputArtifactProperty -> Value Text
name :: (Value Prelude.Text)}
  deriving stock (InputArtifactProperty -> InputArtifactProperty -> Bool
(InputArtifactProperty -> InputArtifactProperty -> Bool)
-> (InputArtifactProperty -> InputArtifactProperty -> Bool)
-> Eq InputArtifactProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputArtifactProperty -> InputArtifactProperty -> Bool
== :: InputArtifactProperty -> InputArtifactProperty -> Bool
$c/= :: InputArtifactProperty -> InputArtifactProperty -> Bool
/= :: InputArtifactProperty -> InputArtifactProperty -> Bool
Prelude.Eq, Int -> InputArtifactProperty -> ShowS
[InputArtifactProperty] -> ShowS
InputArtifactProperty -> String
(Int -> InputArtifactProperty -> ShowS)
-> (InputArtifactProperty -> String)
-> ([InputArtifactProperty] -> ShowS)
-> Show InputArtifactProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputArtifactProperty -> ShowS
showsPrec :: Int -> InputArtifactProperty -> ShowS
$cshow :: InputArtifactProperty -> String
show :: InputArtifactProperty -> String
$cshowList :: [InputArtifactProperty] -> ShowS
showList :: [InputArtifactProperty] -> ShowS
Prelude.Show)
mkInputArtifactProperty ::
  Value Prelude.Text -> InputArtifactProperty
mkInputArtifactProperty :: Value Text -> InputArtifactProperty
mkInputArtifactProperty Value Text
name
  = InputArtifactProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), name :: Value Text
name = Value Text
name}
instance ToResourceProperties InputArtifactProperty where
  toResourceProperties :: InputArtifactProperty -> ResourceProperties
toResourceProperties InputArtifactProperty {()
Value Text
haddock_workaround_ :: InputArtifactProperty -> ()
name :: InputArtifactProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::CodePipeline::Pipeline.InputArtifact",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"Name" 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
name]}
instance JSON.ToJSON InputArtifactProperty where
  toJSON :: InputArtifactProperty -> Value
toJSON InputArtifactProperty {()
Value Text
haddock_workaround_ :: InputArtifactProperty -> ()
name :: InputArtifactProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Name" 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
name]
instance Property "Name" InputArtifactProperty where
  type PropertyType "Name" InputArtifactProperty = Value Prelude.Text
  set :: PropertyType "Name" InputArtifactProperty
-> InputArtifactProperty -> InputArtifactProperty
set PropertyType "Name" InputArtifactProperty
newValue InputArtifactProperty {()
Value Text
haddock_workaround_ :: InputArtifactProperty -> ()
name :: InputArtifactProperty -> Value Text
haddock_workaround_ :: ()
name :: Value Text
..}
    = InputArtifactProperty {name :: Value Text
name = PropertyType "Name" InputArtifactProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}