module Stratosphere.Pipes.Pipe.BatchArrayPropertiesProperty (
BatchArrayPropertiesProperty(..), mkBatchArrayPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BatchArrayPropertiesProperty
=
BatchArrayPropertiesProperty {BatchArrayPropertiesProperty -> ()
haddock_workaround_ :: (),
BatchArrayPropertiesProperty -> Maybe (Value Integer)
size :: (Prelude.Maybe (Value Prelude.Integer))}
deriving stock (BatchArrayPropertiesProperty
-> BatchArrayPropertiesProperty -> Bool
(BatchArrayPropertiesProperty
-> BatchArrayPropertiesProperty -> Bool)
-> (BatchArrayPropertiesProperty
-> BatchArrayPropertiesProperty -> Bool)
-> Eq BatchArrayPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BatchArrayPropertiesProperty
-> BatchArrayPropertiesProperty -> Bool
== :: BatchArrayPropertiesProperty
-> BatchArrayPropertiesProperty -> Bool
$c/= :: BatchArrayPropertiesProperty
-> BatchArrayPropertiesProperty -> Bool
/= :: BatchArrayPropertiesProperty
-> BatchArrayPropertiesProperty -> Bool
Prelude.Eq, Int -> BatchArrayPropertiesProperty -> ShowS
[BatchArrayPropertiesProperty] -> ShowS
BatchArrayPropertiesProperty -> String
(Int -> BatchArrayPropertiesProperty -> ShowS)
-> (BatchArrayPropertiesProperty -> String)
-> ([BatchArrayPropertiesProperty] -> ShowS)
-> Show BatchArrayPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BatchArrayPropertiesProperty -> ShowS
showsPrec :: Int -> BatchArrayPropertiesProperty -> ShowS
$cshow :: BatchArrayPropertiesProperty -> String
show :: BatchArrayPropertiesProperty -> String
$cshowList :: [BatchArrayPropertiesProperty] -> ShowS
showList :: [BatchArrayPropertiesProperty] -> ShowS
Prelude.Show)
mkBatchArrayPropertiesProperty :: BatchArrayPropertiesProperty
mkBatchArrayPropertiesProperty :: BatchArrayPropertiesProperty
mkBatchArrayPropertiesProperty
= BatchArrayPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), size :: Maybe (Value Integer)
size = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BatchArrayPropertiesProperty where
toResourceProperties :: BatchArrayPropertiesProperty -> ResourceProperties
toResourceProperties BatchArrayPropertiesProperty {Maybe (Value Integer)
()
haddock_workaround_ :: BatchArrayPropertiesProperty -> ()
size :: BatchArrayPropertiesProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
size :: Maybe (Value Integer)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Pipes::Pipe.BatchArrayProperties",
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
"Size" (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)
size])}
instance JSON.ToJSON BatchArrayPropertiesProperty where
toJSON :: BatchArrayPropertiesProperty -> Value
toJSON BatchArrayPropertiesProperty {Maybe (Value Integer)
()
haddock_workaround_ :: BatchArrayPropertiesProperty -> ()
size :: BatchArrayPropertiesProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
size :: 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
"Size" (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)
size]))
instance Property "Size" BatchArrayPropertiesProperty where
type PropertyType "Size" BatchArrayPropertiesProperty = Value Prelude.Integer
set :: PropertyType "Size" BatchArrayPropertiesProperty
-> BatchArrayPropertiesProperty -> BatchArrayPropertiesProperty
set PropertyType "Size" BatchArrayPropertiesProperty
newValue BatchArrayPropertiesProperty {Maybe (Value Integer)
()
haddock_workaround_ :: BatchArrayPropertiesProperty -> ()
size :: BatchArrayPropertiesProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
size :: Maybe (Value Integer)
..}
= BatchArrayPropertiesProperty {size :: Maybe (Value Integer)
size = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Size" BatchArrayPropertiesProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}