module Stratosphere.Pipes.Pipe.PipeSourceActiveMQBrokerParametersProperty (
module Exports, PipeSourceActiveMQBrokerParametersProperty(..),
mkPipeSourceActiveMQBrokerParametersProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Pipes.Pipe.MQBrokerAccessCredentialsProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PipeSourceActiveMQBrokerParametersProperty
=
PipeSourceActiveMQBrokerParametersProperty {PipeSourceActiveMQBrokerParametersProperty -> ()
haddock_workaround_ :: (),
PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
batchSize :: (Prelude.Maybe (Value Prelude.Integer)),
PipeSourceActiveMQBrokerParametersProperty
-> MQBrokerAccessCredentialsProperty
credentials :: MQBrokerAccessCredentialsProperty,
PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
maximumBatchingWindowInSeconds :: (Prelude.Maybe (Value Prelude.Integer)),
PipeSourceActiveMQBrokerParametersProperty -> Value Text
queueName :: (Value Prelude.Text)}
deriving stock (PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty -> Bool
(PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty -> Bool)
-> (PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty -> Bool)
-> Eq PipeSourceActiveMQBrokerParametersProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty -> Bool
== :: PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty -> Bool
$c/= :: PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty -> Bool
/= :: PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty -> Bool
Prelude.Eq, Int -> PipeSourceActiveMQBrokerParametersProperty -> ShowS
[PipeSourceActiveMQBrokerParametersProperty] -> ShowS
PipeSourceActiveMQBrokerParametersProperty -> String
(Int -> PipeSourceActiveMQBrokerParametersProperty -> ShowS)
-> (PipeSourceActiveMQBrokerParametersProperty -> String)
-> ([PipeSourceActiveMQBrokerParametersProperty] -> ShowS)
-> Show PipeSourceActiveMQBrokerParametersProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PipeSourceActiveMQBrokerParametersProperty -> ShowS
showsPrec :: Int -> PipeSourceActiveMQBrokerParametersProperty -> ShowS
$cshow :: PipeSourceActiveMQBrokerParametersProperty -> String
show :: PipeSourceActiveMQBrokerParametersProperty -> String
$cshowList :: [PipeSourceActiveMQBrokerParametersProperty] -> ShowS
showList :: [PipeSourceActiveMQBrokerParametersProperty] -> ShowS
Prelude.Show)
mkPipeSourceActiveMQBrokerParametersProperty ::
MQBrokerAccessCredentialsProperty
-> Value Prelude.Text -> PipeSourceActiveMQBrokerParametersProperty
mkPipeSourceActiveMQBrokerParametersProperty :: MQBrokerAccessCredentialsProperty
-> Value Text -> PipeSourceActiveMQBrokerParametersProperty
mkPipeSourceActiveMQBrokerParametersProperty MQBrokerAccessCredentialsProperty
credentials Value Text
queueName
= PipeSourceActiveMQBrokerParametersProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), credentials :: MQBrokerAccessCredentialsProperty
credentials = MQBrokerAccessCredentialsProperty
credentials,
queueName :: Value Text
queueName = Value Text
queueName, 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 PipeSourceActiveMQBrokerParametersProperty where
toResourceProperties :: PipeSourceActiveMQBrokerParametersProperty -> ResourceProperties
toResourceProperties
PipeSourceActiveMQBrokerParametersProperty {Maybe (Value Integer)
()
Value Text
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: PipeSourceActiveMQBrokerParametersProperty -> ()
batchSize :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
credentials :: PipeSourceActiveMQBrokerParametersProperty
-> MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
queueName :: PipeSourceActiveMQBrokerParametersProperty -> Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.PipeSourceActiveMQBrokerParameters",
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
"Credentials" Key -> MQBrokerAccessCredentialsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MQBrokerAccessCredentialsProperty
credentials, Key
"QueueName" 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
queueName]
([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 PipeSourceActiveMQBrokerParametersProperty where
toJSON :: PipeSourceActiveMQBrokerParametersProperty -> Value
toJSON PipeSourceActiveMQBrokerParametersProperty {Maybe (Value Integer)
()
Value Text
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: PipeSourceActiveMQBrokerParametersProperty -> ()
batchSize :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
credentials :: PipeSourceActiveMQBrokerParametersProperty
-> MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
queueName :: PipeSourceActiveMQBrokerParametersProperty -> Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: 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
"Credentials" Key -> MQBrokerAccessCredentialsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MQBrokerAccessCredentialsProperty
credentials, Key
"QueueName" 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
queueName]
([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" PipeSourceActiveMQBrokerParametersProperty where
type PropertyType "BatchSize" PipeSourceActiveMQBrokerParametersProperty = Value Prelude.Integer
set :: PropertyType "BatchSize" PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty
set PropertyType "BatchSize" PipeSourceActiveMQBrokerParametersProperty
newValue PipeSourceActiveMQBrokerParametersProperty {Maybe (Value Integer)
()
Value Text
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: PipeSourceActiveMQBrokerParametersProperty -> ()
batchSize :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
credentials :: PipeSourceActiveMQBrokerParametersProperty
-> MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
queueName :: PipeSourceActiveMQBrokerParametersProperty -> Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
..}
= PipeSourceActiveMQBrokerParametersProperty
{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" PipeSourceActiveMQBrokerParametersProperty
Value Integer
newValue, Maybe (Value Integer)
()
Value Text
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: ()
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
haddock_workaround_ :: ()
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
..}
instance Property "Credentials" PipeSourceActiveMQBrokerParametersProperty where
type PropertyType "Credentials" PipeSourceActiveMQBrokerParametersProperty = MQBrokerAccessCredentialsProperty
set :: PropertyType
"Credentials" PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty
set PropertyType
"Credentials" PipeSourceActiveMQBrokerParametersProperty
newValue PipeSourceActiveMQBrokerParametersProperty {Maybe (Value Integer)
()
Value Text
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: PipeSourceActiveMQBrokerParametersProperty -> ()
batchSize :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
credentials :: PipeSourceActiveMQBrokerParametersProperty
-> MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
queueName :: PipeSourceActiveMQBrokerParametersProperty -> Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
..}
= PipeSourceActiveMQBrokerParametersProperty
{credentials :: MQBrokerAccessCredentialsProperty
credentials = PropertyType
"Credentials" PipeSourceActiveMQBrokerParametersProperty
MQBrokerAccessCredentialsProperty
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
..}
instance Property "MaximumBatchingWindowInSeconds" PipeSourceActiveMQBrokerParametersProperty where
type PropertyType "MaximumBatchingWindowInSeconds" PipeSourceActiveMQBrokerParametersProperty = Value Prelude.Integer
set :: PropertyType
"MaximumBatchingWindowInSeconds"
PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty
set PropertyType
"MaximumBatchingWindowInSeconds"
PipeSourceActiveMQBrokerParametersProperty
newValue PipeSourceActiveMQBrokerParametersProperty {Maybe (Value Integer)
()
Value Text
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: PipeSourceActiveMQBrokerParametersProperty -> ()
batchSize :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
credentials :: PipeSourceActiveMQBrokerParametersProperty
-> MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
queueName :: PipeSourceActiveMQBrokerParametersProperty -> Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
..}
= PipeSourceActiveMQBrokerParametersProperty
{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"
PipeSourceActiveMQBrokerParametersProperty
Value Integer
newValue, Maybe (Value Integer)
()
Value Text
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
queueName :: Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
queueName :: Value Text
..}
instance Property "QueueName" PipeSourceActiveMQBrokerParametersProperty where
type PropertyType "QueueName" PipeSourceActiveMQBrokerParametersProperty = Value Prelude.Text
set :: PropertyType "QueueName" PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty
-> PipeSourceActiveMQBrokerParametersProperty
set PropertyType "QueueName" PipeSourceActiveMQBrokerParametersProperty
newValue PipeSourceActiveMQBrokerParametersProperty {Maybe (Value Integer)
()
Value Text
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: PipeSourceActiveMQBrokerParametersProperty -> ()
batchSize :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
credentials :: PipeSourceActiveMQBrokerParametersProperty
-> MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: PipeSourceActiveMQBrokerParametersProperty -> Maybe (Value Integer)
queueName :: PipeSourceActiveMQBrokerParametersProperty -> Value Text
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
queueName :: Value Text
..}
= PipeSourceActiveMQBrokerParametersProperty
{queueName :: Value Text
queueName = PropertyType "QueueName" PipeSourceActiveMQBrokerParametersProperty
Value Text
newValue, Maybe (Value Integer)
()
MQBrokerAccessCredentialsProperty
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
haddock_workaround_ :: ()
batchSize :: Maybe (Value Integer)
credentials :: MQBrokerAccessCredentialsProperty
maximumBatchingWindowInSeconds :: Maybe (Value Integer)
..}