module Stratosphere.Pipes.Pipe.BatchResourceRequirementProperty (
        BatchResourceRequirementProperty(..),
        mkBatchResourceRequirementProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BatchResourceRequirementProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-batchresourcerequirement.html>
    BatchResourceRequirementProperty {BatchResourceRequirementProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-batchresourcerequirement.html#cfn-pipes-pipe-batchresourcerequirement-type>
                                      BatchResourceRequirementProperty -> Value Text
type' :: (Value Prelude.Text),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-batchresourcerequirement.html#cfn-pipes-pipe-batchresourcerequirement-value>
                                      BatchResourceRequirementProperty -> Value Text
value :: (Value Prelude.Text)}
  deriving stock (BatchResourceRequirementProperty
-> BatchResourceRequirementProperty -> Bool
(BatchResourceRequirementProperty
 -> BatchResourceRequirementProperty -> Bool)
-> (BatchResourceRequirementProperty
    -> BatchResourceRequirementProperty -> Bool)
-> Eq BatchResourceRequirementProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BatchResourceRequirementProperty
-> BatchResourceRequirementProperty -> Bool
== :: BatchResourceRequirementProperty
-> BatchResourceRequirementProperty -> Bool
$c/= :: BatchResourceRequirementProperty
-> BatchResourceRequirementProperty -> Bool
/= :: BatchResourceRequirementProperty
-> BatchResourceRequirementProperty -> Bool
Prelude.Eq, Int -> BatchResourceRequirementProperty -> ShowS
[BatchResourceRequirementProperty] -> ShowS
BatchResourceRequirementProperty -> String
(Int -> BatchResourceRequirementProperty -> ShowS)
-> (BatchResourceRequirementProperty -> String)
-> ([BatchResourceRequirementProperty] -> ShowS)
-> Show BatchResourceRequirementProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BatchResourceRequirementProperty -> ShowS
showsPrec :: Int -> BatchResourceRequirementProperty -> ShowS
$cshow :: BatchResourceRequirementProperty -> String
show :: BatchResourceRequirementProperty -> String
$cshowList :: [BatchResourceRequirementProperty] -> ShowS
showList :: [BatchResourceRequirementProperty] -> ShowS
Prelude.Show)
mkBatchResourceRequirementProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> BatchResourceRequirementProperty
mkBatchResourceRequirementProperty :: Value Text -> Value Text -> BatchResourceRequirementProperty
mkBatchResourceRequirementProperty Value Text
type' Value Text
value
  = BatchResourceRequirementProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type', value :: Value Text
value = Value Text
value}
instance ToResourceProperties BatchResourceRequirementProperty where
  toResourceProperties :: BatchResourceRequirementProperty -> ResourceProperties
toResourceProperties BatchResourceRequirementProperty {()
Value Text
haddock_workaround_ :: BatchResourceRequirementProperty -> ()
type' :: BatchResourceRequirementProperty -> Value Text
value :: BatchResourceRequirementProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.BatchResourceRequirement",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Type" 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
type', Key
"Value" 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
value]}
instance JSON.ToJSON BatchResourceRequirementProperty where
  toJSON :: BatchResourceRequirementProperty -> Value
toJSON BatchResourceRequirementProperty {()
Value Text
haddock_workaround_ :: BatchResourceRequirementProperty -> ()
type' :: BatchResourceRequirementProperty -> Value Text
value :: BatchResourceRequirementProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Type" 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
type', Key
"Value" 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
value]
instance Property "Type" BatchResourceRequirementProperty where
  type PropertyType "Type" BatchResourceRequirementProperty = Value Prelude.Text
  set :: PropertyType "Type" BatchResourceRequirementProperty
-> BatchResourceRequirementProperty
-> BatchResourceRequirementProperty
set PropertyType "Type" BatchResourceRequirementProperty
newValue BatchResourceRequirementProperty {()
Value Text
haddock_workaround_ :: BatchResourceRequirementProperty -> ()
type' :: BatchResourceRequirementProperty -> Value Text
value :: BatchResourceRequirementProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = BatchResourceRequirementProperty {type' :: Value Text
type' = PropertyType "Type" BatchResourceRequirementProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
value :: Value Text
haddock_workaround_ :: ()
value :: Value Text
..}
instance Property "Value" BatchResourceRequirementProperty where
  type PropertyType "Value" BatchResourceRequirementProperty = Value Prelude.Text
  set :: PropertyType "Value" BatchResourceRequirementProperty
-> BatchResourceRequirementProperty
-> BatchResourceRequirementProperty
set PropertyType "Value" BatchResourceRequirementProperty
newValue BatchResourceRequirementProperty {()
Value Text
haddock_workaround_ :: BatchResourceRequirementProperty -> ()
type' :: BatchResourceRequirementProperty -> Value Text
value :: BatchResourceRequirementProperty -> Value Text
haddock_workaround_ :: ()
type' :: Value Text
value :: Value Text
..}
    = BatchResourceRequirementProperty {value :: Value Text
value = PropertyType "Value" BatchResourceRequirementProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
type' :: Value Text
haddock_workaround_ :: ()
type' :: Value Text
..}