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