module Stratosphere.KinesisAnalytics.ApplicationOutput.DestinationSchemaProperty (
        DestinationSchemaProperty(..), mkDestinationSchemaProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DestinationSchemaProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-destinationschema.html>
    DestinationSchemaProperty {DestinationSchemaProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-kinesisanalytics-applicationoutput-destinationschema.html#cfn-kinesisanalytics-applicationoutput-destinationschema-recordformattype>
                               DestinationSchemaProperty -> Maybe (Value Text)
recordFormatType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DestinationSchemaProperty -> DestinationSchemaProperty -> Bool
(DestinationSchemaProperty -> DestinationSchemaProperty -> Bool)
-> (DestinationSchemaProperty -> DestinationSchemaProperty -> Bool)
-> Eq DestinationSchemaProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DestinationSchemaProperty -> DestinationSchemaProperty -> Bool
== :: DestinationSchemaProperty -> DestinationSchemaProperty -> Bool
$c/= :: DestinationSchemaProperty -> DestinationSchemaProperty -> Bool
/= :: DestinationSchemaProperty -> DestinationSchemaProperty -> Bool
Prelude.Eq, Int -> DestinationSchemaProperty -> ShowS
[DestinationSchemaProperty] -> ShowS
DestinationSchemaProperty -> String
(Int -> DestinationSchemaProperty -> ShowS)
-> (DestinationSchemaProperty -> String)
-> ([DestinationSchemaProperty] -> ShowS)
-> Show DestinationSchemaProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DestinationSchemaProperty -> ShowS
showsPrec :: Int -> DestinationSchemaProperty -> ShowS
$cshow :: DestinationSchemaProperty -> String
show :: DestinationSchemaProperty -> String
$cshowList :: [DestinationSchemaProperty] -> ShowS
showList :: [DestinationSchemaProperty] -> ShowS
Prelude.Show)
mkDestinationSchemaProperty :: DestinationSchemaProperty
mkDestinationSchemaProperty :: DestinationSchemaProperty
mkDestinationSchemaProperty
  = DestinationSchemaProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), recordFormatType :: Maybe (Value Text)
recordFormatType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DestinationSchemaProperty where
  toResourceProperties :: DestinationSchemaProperty -> ResourceProperties
toResourceProperties DestinationSchemaProperty {Maybe (Value Text)
()
haddock_workaround_ :: DestinationSchemaProperty -> ()
recordFormatType :: DestinationSchemaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
recordFormatType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::KinesisAnalytics::ApplicationOutput.DestinationSchema",
         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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RecordFormatType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
recordFormatType])}
instance JSON.ToJSON DestinationSchemaProperty where
  toJSON :: DestinationSchemaProperty -> Value
toJSON DestinationSchemaProperty {Maybe (Value Text)
()
haddock_workaround_ :: DestinationSchemaProperty -> ()
recordFormatType :: DestinationSchemaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
recordFormatType :: Maybe (Value Text)
..}
    = [(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 Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"RecordFormatType" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
recordFormatType]))
instance Property "RecordFormatType" DestinationSchemaProperty where
  type PropertyType "RecordFormatType" DestinationSchemaProperty = Value Prelude.Text
  set :: PropertyType "RecordFormatType" DestinationSchemaProperty
-> DestinationSchemaProperty -> DestinationSchemaProperty
set PropertyType "RecordFormatType" DestinationSchemaProperty
newValue DestinationSchemaProperty {Maybe (Value Text)
()
haddock_workaround_ :: DestinationSchemaProperty -> ()
recordFormatType :: DestinationSchemaProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
recordFormatType :: Maybe (Value Text)
..}
    = DestinationSchemaProperty
        {recordFormatType :: Maybe (Value Text)
recordFormatType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "RecordFormatType" DestinationSchemaProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}