module Stratosphere.Pipes.Pipe.PipeSourceSqsQueueParametersProperty (
        PipeSourceSqsQueueParametersProperty(..),
        mkPipeSourceSqsQueueParametersProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PipeSourceSqsQueueParametersProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcesqsqueueparameters.html>
    PipeSourceSqsQueueParametersProperty {PipeSourceSqsQueueParametersProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcesqsqueueparameters.html#cfn-pipes-pipe-pipesourcesqsqueueparameters-batchsize>
                                          PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
batchSize :: (Prelude.Maybe (Value Prelude.Integer)),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-pipes-pipe-pipesourcesqsqueueparameters.html#cfn-pipes-pipe-pipesourcesqsqueueparameters-maximumbatchingwindowinseconds>
                                          PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
maximumBatchingWindowInSeconds :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty -> Bool
(PipeSourceSqsQueueParametersProperty
 -> PipeSourceSqsQueueParametersProperty -> Bool)
-> (PipeSourceSqsQueueParametersProperty
    -> PipeSourceSqsQueueParametersProperty -> Bool)
-> Eq PipeSourceSqsQueueParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty -> Bool
== :: PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty -> Bool
$c/= :: PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty -> Bool
/= :: PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty -> Bool
Prelude.Eq, Int -> PipeSourceSqsQueueParametersProperty -> ShowS
[PipeSourceSqsQueueParametersProperty] -> ShowS
PipeSourceSqsQueueParametersProperty -> String
(Int -> PipeSourceSqsQueueParametersProperty -> ShowS)
-> (PipeSourceSqsQueueParametersProperty -> String)
-> ([PipeSourceSqsQueueParametersProperty] -> ShowS)
-> Show PipeSourceSqsQueueParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PipeSourceSqsQueueParametersProperty -> ShowS
showsPrec :: Int -> PipeSourceSqsQueueParametersProperty -> ShowS
$cshow :: PipeSourceSqsQueueParametersProperty -> String
show :: PipeSourceSqsQueueParametersProperty -> String
$cshowList :: [PipeSourceSqsQueueParametersProperty] -> ShowS
showList :: [PipeSourceSqsQueueParametersProperty] -> ShowS
Prelude.Show)
mkPipeSourceSqsQueueParametersProperty ::
  PipeSourceSqsQueueParametersProperty
mkPipeSourceSqsQueueParametersProperty :: PipeSourceSqsQueueParametersProperty
mkPipeSourceSqsQueueParametersProperty
  = PipeSourceSqsQueueParametersProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), batchSize :: Maybe (Value Integer)
batchSize = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing,
       maximumBatchingWindowInSeconds :: Maybe (Value Integer)
maximumBatchingWindowInSeconds = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PipeSourceSqsQueueParametersProperty where
  toResourceProperties :: PipeSourceSqsQueueParametersProperty -> ResourceProperties
toResourceProperties PipeSourceSqsQueueParametersProperty {Maybe (Value Integer)
()
haddock_workaround_ :: PipeSourceSqsQueueParametersProperty -> ()
batchSize :: PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
maximumBatchingWindowInSeconds :: PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.PipeSourceSqsQueueParameters",
         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 -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BatchSize" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
batchSize,
                            Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaximumBatchingWindowInSeconds"
                              (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maximumBatchingWindowInSeconds])}
instance JSON.ToJSON PipeSourceSqsQueueParametersProperty where
  toJSON :: PipeSourceSqsQueueParametersProperty -> Value
toJSON PipeSourceSqsQueueParametersProperty {Maybe (Value Integer)
()
haddock_workaround_ :: PipeSourceSqsQueueParametersProperty -> ()
batchSize :: PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
maximumBatchingWindowInSeconds :: PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
..}
    = [(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 -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"BatchSize" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
batchSize,
               Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MaximumBatchingWindowInSeconds"
                 (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
maximumBatchingWindowInSeconds]))
instance Property "BatchSize" PipeSourceSqsQueueParametersProperty where
  type PropertyType "BatchSize" PipeSourceSqsQueueParametersProperty = Value Prelude.Integer
  set :: PropertyType "BatchSize" PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty
set PropertyType "BatchSize" PipeSourceSqsQueueParametersProperty
newValue PipeSourceSqsQueueParametersProperty {Maybe (Value Integer)
()
haddock_workaround_ :: PipeSourceSqsQueueParametersProperty -> ()
batchSize :: PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
maximumBatchingWindowInSeconds :: PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
..}
    = PipeSourceSqsQueueParametersProperty
        {batchSize :: Maybe (Value Integer)
batchSize = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "BatchSize" PipeSourceSqsQueueParametersProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
..}
instance Property "MaximumBatchingWindowInSeconds" PipeSourceSqsQueueParametersProperty where
  type PropertyType "MaximumBatchingWindowInSeconds" PipeSourceSqsQueueParametersProperty = Value Prelude.Integer
  set :: PropertyType
  "MaximumBatchingWindowInSeconds"
  PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty
-> PipeSourceSqsQueueParametersProperty
set PropertyType
  "MaximumBatchingWindowInSeconds"
  PipeSourceSqsQueueParametersProperty
newValue PipeSourceSqsQueueParametersProperty {Maybe (Value Integer)
()
haddock_workaround_ :: PipeSourceSqsQueueParametersProperty -> ()
batchSize :: PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
maximumBatchingWindowInSeconds :: PipeSourceSqsQueueParametersProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
..}
    = PipeSourceSqsQueueParametersProperty
        {maximumBatchingWindowInSeconds :: Maybe (Value Integer)
maximumBatchingWindowInSeconds = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "MaximumBatchingWindowInSeconds"
  PipeSourceSqsQueueParametersProperty
Value Integer
newValue, Maybe (Value Integer)
()
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
..}