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