module Stratosphere.KinesisAnalytics.Application.RecordFormatProperty (
module Exports, RecordFormatProperty(..), mkRecordFormatProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.KinesisAnalytics.Application.MappingParametersProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RecordFormatProperty
=
RecordFormatProperty {RecordFormatProperty -> ()
haddock_workaround_ :: (),
RecordFormatProperty -> Maybe MappingParametersProperty
mappingParameters :: (Prelude.Maybe MappingParametersProperty),
RecordFormatProperty -> Value Text
recordFormatType :: (Value Prelude.Text)}
deriving stock (RecordFormatProperty -> RecordFormatProperty -> Bool
(RecordFormatProperty -> RecordFormatProperty -> Bool)
-> (RecordFormatProperty -> RecordFormatProperty -> Bool)
-> Eq RecordFormatProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RecordFormatProperty -> RecordFormatProperty -> Bool
== :: RecordFormatProperty -> RecordFormatProperty -> Bool
$c/= :: RecordFormatProperty -> RecordFormatProperty -> Bool
/= :: RecordFormatProperty -> RecordFormatProperty -> Bool
Prelude.Eq, Int -> RecordFormatProperty -> ShowS
[RecordFormatProperty] -> ShowS
RecordFormatProperty -> String
(Int -> RecordFormatProperty -> ShowS)
-> (RecordFormatProperty -> String)
-> ([RecordFormatProperty] -> ShowS)
-> Show RecordFormatProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RecordFormatProperty -> ShowS
showsPrec :: Int -> RecordFormatProperty -> ShowS
$cshow :: RecordFormatProperty -> String
show :: RecordFormatProperty -> String
$cshowList :: [RecordFormatProperty] -> ShowS
showList :: [RecordFormatProperty] -> ShowS
Prelude.Show)
mkRecordFormatProperty ::
Value Prelude.Text -> RecordFormatProperty
mkRecordFormatProperty :: Value Text -> RecordFormatProperty
mkRecordFormatProperty Value Text
recordFormatType
= RecordFormatProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), recordFormatType :: Value Text
recordFormatType = Value Text
recordFormatType,
mappingParameters :: Maybe MappingParametersProperty
mappingParameters = Maybe MappingParametersProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RecordFormatProperty where
toResourceProperties :: RecordFormatProperty -> ResourceProperties
toResourceProperties RecordFormatProperty {Maybe MappingParametersProperty
()
Value Text
haddock_workaround_ :: RecordFormatProperty -> ()
mappingParameters :: RecordFormatProperty -> Maybe MappingParametersProperty
recordFormatType :: RecordFormatProperty -> Value Text
haddock_workaround_ :: ()
mappingParameters :: Maybe MappingParametersProperty
recordFormatType :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::KinesisAnalytics::Application.RecordFormat",
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
"RecordFormatType" 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
recordFormatType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> MappingParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MappingParameters" (MappingParametersProperty -> (Key, Value))
-> Maybe MappingParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MappingParametersProperty
mappingParameters]))}
instance JSON.ToJSON RecordFormatProperty where
toJSON :: RecordFormatProperty -> Value
toJSON RecordFormatProperty {Maybe MappingParametersProperty
()
Value Text
haddock_workaround_ :: RecordFormatProperty -> ()
mappingParameters :: RecordFormatProperty -> Maybe MappingParametersProperty
recordFormatType :: RecordFormatProperty -> Value Text
haddock_workaround_ :: ()
mappingParameters :: Maybe MappingParametersProperty
recordFormatType :: 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
"RecordFormatType" 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
recordFormatType]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> MappingParametersProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"MappingParameters" (MappingParametersProperty -> (Key, Value))
-> Maybe MappingParametersProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MappingParametersProperty
mappingParameters])))
instance Property "MappingParameters" RecordFormatProperty where
type PropertyType "MappingParameters" RecordFormatProperty = MappingParametersProperty
set :: PropertyType "MappingParameters" RecordFormatProperty
-> RecordFormatProperty -> RecordFormatProperty
set PropertyType "MappingParameters" RecordFormatProperty
newValue RecordFormatProperty {Maybe MappingParametersProperty
()
Value Text
haddock_workaround_ :: RecordFormatProperty -> ()
mappingParameters :: RecordFormatProperty -> Maybe MappingParametersProperty
recordFormatType :: RecordFormatProperty -> Value Text
haddock_workaround_ :: ()
mappingParameters :: Maybe MappingParametersProperty
recordFormatType :: Value Text
..}
= RecordFormatProperty
{mappingParameters :: Maybe MappingParametersProperty
mappingParameters = MappingParametersProperty -> Maybe MappingParametersProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "MappingParameters" RecordFormatProperty
MappingParametersProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
recordFormatType :: Value Text
haddock_workaround_ :: ()
recordFormatType :: Value Text
..}
instance Property "RecordFormatType" RecordFormatProperty where
type PropertyType "RecordFormatType" RecordFormatProperty = Value Prelude.Text
set :: PropertyType "RecordFormatType" RecordFormatProperty
-> RecordFormatProperty -> RecordFormatProperty
set PropertyType "RecordFormatType" RecordFormatProperty
newValue RecordFormatProperty {Maybe MappingParametersProperty
()
Value Text
haddock_workaround_ :: RecordFormatProperty -> ()
mappingParameters :: RecordFormatProperty -> Maybe MappingParametersProperty
recordFormatType :: RecordFormatProperty -> Value Text
haddock_workaround_ :: ()
mappingParameters :: Maybe MappingParametersProperty
recordFormatType :: Value Text
..}
= RecordFormatProperty {recordFormatType :: Value Text
recordFormatType = PropertyType "RecordFormatType" RecordFormatProperty
Value Text
newValue, Maybe MappingParametersProperty
()
haddock_workaround_ :: ()
mappingParameters :: Maybe MappingParametersProperty
haddock_workaround_ :: ()
mappingParameters :: Maybe MappingParametersProperty
..}