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