module Stratosphere.KinesisFirehose.DeliveryStream.DirectPutSourceConfigurationProperty (
        DirectPutSourceConfigurationProperty(..),
        mkDirectPutSourceConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DirectPutSourceConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-directputsourceconfiguration.html>
    DirectPutSourceConfigurationProperty {DirectPutSourceConfigurationProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-directputsourceconfiguration.html#cfn-kinesisfirehose-deliverystream-directputsourceconfiguration-throughputhintinmbs>
                                          DirectPutSourceConfigurationProperty -> Maybe (Value Integer)
throughputHintInMBs :: (Prelude.Maybe (Value Prelude.Integer))}
  deriving stock (DirectPutSourceConfigurationProperty
-> DirectPutSourceConfigurationProperty -> Bool
(DirectPutSourceConfigurationProperty
 -> DirectPutSourceConfigurationProperty -> Bool)
-> (DirectPutSourceConfigurationProperty
    -> DirectPutSourceConfigurationProperty -> Bool)
-> Eq DirectPutSourceConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DirectPutSourceConfigurationProperty
-> DirectPutSourceConfigurationProperty -> Bool
== :: DirectPutSourceConfigurationProperty
-> DirectPutSourceConfigurationProperty -> Bool
$c/= :: DirectPutSourceConfigurationProperty
-> DirectPutSourceConfigurationProperty -> Bool
/= :: DirectPutSourceConfigurationProperty
-> DirectPutSourceConfigurationProperty -> Bool
Prelude.Eq, Int -> DirectPutSourceConfigurationProperty -> ShowS
[DirectPutSourceConfigurationProperty] -> ShowS
DirectPutSourceConfigurationProperty -> String
(Int -> DirectPutSourceConfigurationProperty -> ShowS)
-> (DirectPutSourceConfigurationProperty -> String)
-> ([DirectPutSourceConfigurationProperty] -> ShowS)
-> Show DirectPutSourceConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DirectPutSourceConfigurationProperty -> ShowS
showsPrec :: Int -> DirectPutSourceConfigurationProperty -> ShowS
$cshow :: DirectPutSourceConfigurationProperty -> String
show :: DirectPutSourceConfigurationProperty -> String
$cshowList :: [DirectPutSourceConfigurationProperty] -> ShowS
showList :: [DirectPutSourceConfigurationProperty] -> ShowS
Prelude.Show)
mkDirectPutSourceConfigurationProperty ::
  DirectPutSourceConfigurationProperty
mkDirectPutSourceConfigurationProperty :: DirectPutSourceConfigurationProperty
mkDirectPutSourceConfigurationProperty
  = DirectPutSourceConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), throughputHintInMBs :: Maybe (Value Integer)
throughputHintInMBs = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DirectPutSourceConfigurationProperty where
  toResourceProperties :: DirectPutSourceConfigurationProperty -> ResourceProperties
toResourceProperties DirectPutSourceConfigurationProperty {Maybe (Value Integer)
()
haddock_workaround_ :: DirectPutSourceConfigurationProperty -> ()
throughputHintInMBs :: DirectPutSourceConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
throughputHintInMBs :: Maybe (Value Integer)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.DirectPutSourceConfiguration",
         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
"ThroughputHintInMBs" (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)
throughputHintInMBs])}
instance JSON.ToJSON DirectPutSourceConfigurationProperty where
  toJSON :: DirectPutSourceConfigurationProperty -> Value
toJSON DirectPutSourceConfigurationProperty {Maybe (Value Integer)
()
haddock_workaround_ :: DirectPutSourceConfigurationProperty -> ()
throughputHintInMBs :: DirectPutSourceConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
throughputHintInMBs :: 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
"ThroughputHintInMBs" (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)
throughputHintInMBs]))
instance Property "ThroughputHintInMBs" DirectPutSourceConfigurationProperty where
  type PropertyType "ThroughputHintInMBs" DirectPutSourceConfigurationProperty = Value Prelude.Integer
  set :: PropertyType
  "ThroughputHintInMBs" DirectPutSourceConfigurationProperty
-> DirectPutSourceConfigurationProperty
-> DirectPutSourceConfigurationProperty
set PropertyType
  "ThroughputHintInMBs" DirectPutSourceConfigurationProperty
newValue DirectPutSourceConfigurationProperty {Maybe (Value Integer)
()
haddock_workaround_ :: DirectPutSourceConfigurationProperty -> ()
throughputHintInMBs :: DirectPutSourceConfigurationProperty -> Maybe (Value Integer)
haddock_workaround_ :: ()
throughputHintInMBs :: Maybe (Value Integer)
..}
    = DirectPutSourceConfigurationProperty
        {throughputHintInMBs :: Maybe (Value Integer)
throughputHintInMBs = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "ThroughputHintInMBs" DirectPutSourceConfigurationProperty
Value Integer
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}