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