module Stratosphere.KinesisFirehose.DeliveryStream.InputFormatConfigurationProperty (
        module Exports, InputFormatConfigurationProperty(..),
        mkInputFormatConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisFirehose.DeliveryStream.DeserializerProperty as Exports
import Stratosphere.ResourceProperties
data InputFormatConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-inputformatconfiguration.html>
    InputFormatConfigurationProperty {InputFormatConfigurationProperty -> ()
haddock_workaround_ :: (),
                                      -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisfirehose-deliverystream-inputformatconfiguration.html#cfn-kinesisfirehose-deliverystream-inputformatconfiguration-deserializer>
                                      InputFormatConfigurationProperty -> Maybe DeserializerProperty
deserializer :: (Prelude.Maybe DeserializerProperty)}
  deriving stock (InputFormatConfigurationProperty
-> InputFormatConfigurationProperty -> Bool
(InputFormatConfigurationProperty
 -> InputFormatConfigurationProperty -> Bool)
-> (InputFormatConfigurationProperty
    -> InputFormatConfigurationProperty -> Bool)
-> Eq InputFormatConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputFormatConfigurationProperty
-> InputFormatConfigurationProperty -> Bool
== :: InputFormatConfigurationProperty
-> InputFormatConfigurationProperty -> Bool
$c/= :: InputFormatConfigurationProperty
-> InputFormatConfigurationProperty -> Bool
/= :: InputFormatConfigurationProperty
-> InputFormatConfigurationProperty -> Bool
Prelude.Eq, Int -> InputFormatConfigurationProperty -> ShowS
[InputFormatConfigurationProperty] -> ShowS
InputFormatConfigurationProperty -> String
(Int -> InputFormatConfigurationProperty -> ShowS)
-> (InputFormatConfigurationProperty -> String)
-> ([InputFormatConfigurationProperty] -> ShowS)
-> Show InputFormatConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputFormatConfigurationProperty -> ShowS
showsPrec :: Int -> InputFormatConfigurationProperty -> ShowS
$cshow :: InputFormatConfigurationProperty -> String
show :: InputFormatConfigurationProperty -> String
$cshowList :: [InputFormatConfigurationProperty] -> ShowS
showList :: [InputFormatConfigurationProperty] -> ShowS
Prelude.Show)
mkInputFormatConfigurationProperty ::
  InputFormatConfigurationProperty
mkInputFormatConfigurationProperty :: InputFormatConfigurationProperty
mkInputFormatConfigurationProperty
  = InputFormatConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), deserializer :: Maybe DeserializerProperty
deserializer = Maybe DeserializerProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputFormatConfigurationProperty where
  toResourceProperties :: InputFormatConfigurationProperty -> ResourceProperties
toResourceProperties InputFormatConfigurationProperty {Maybe DeserializerProperty
()
haddock_workaround_ :: InputFormatConfigurationProperty -> ()
deserializer :: InputFormatConfigurationProperty -> Maybe DeserializerProperty
haddock_workaround_ :: ()
deserializer :: Maybe DeserializerProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisFirehose::DeliveryStream.InputFormatConfiguration",
         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 -> DeserializerProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Deserializer" (DeserializerProperty -> (Key, Value))
-> Maybe DeserializerProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeserializerProperty
deserializer])}
instance JSON.ToJSON InputFormatConfigurationProperty where
  toJSON :: InputFormatConfigurationProperty -> Value
toJSON InputFormatConfigurationProperty {Maybe DeserializerProperty
()
haddock_workaround_ :: InputFormatConfigurationProperty -> ()
deserializer :: InputFormatConfigurationProperty -> Maybe DeserializerProperty
haddock_workaround_ :: ()
deserializer :: Maybe DeserializerProperty
..}
    = [(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 -> DeserializerProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Deserializer" (DeserializerProperty -> (Key, Value))
-> Maybe DeserializerProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeserializerProperty
deserializer]))
instance Property "Deserializer" InputFormatConfigurationProperty where
  type PropertyType "Deserializer" InputFormatConfigurationProperty = DeserializerProperty
  set :: PropertyType "Deserializer" InputFormatConfigurationProperty
-> InputFormatConfigurationProperty
-> InputFormatConfigurationProperty
set PropertyType "Deserializer" InputFormatConfigurationProperty
newValue InputFormatConfigurationProperty {Maybe DeserializerProperty
()
haddock_workaround_ :: InputFormatConfigurationProperty -> ()
deserializer :: InputFormatConfigurationProperty -> Maybe DeserializerProperty
haddock_workaround_ :: ()
deserializer :: Maybe DeserializerProperty
..}
    = InputFormatConfigurationProperty
        {deserializer :: Maybe DeserializerProperty
deserializer = DeserializerProperty -> Maybe DeserializerProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Deserializer" InputFormatConfigurationProperty
DeserializerProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}