module Stratosphere.DataBrew.Dataset.InputProperty (
        module Exports, InputProperty(..), mkInputProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.DataBrew.Dataset.DataCatalogInputDefinitionProperty as Exports
import {-# SOURCE #-} Stratosphere.DataBrew.Dataset.DatabaseInputDefinitionProperty as Exports
import {-# SOURCE #-} Stratosphere.DataBrew.Dataset.MetadataProperty as Exports
import {-# SOURCE #-} Stratosphere.DataBrew.Dataset.S3LocationProperty as Exports
import Stratosphere.ResourceProperties
data InputProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-input.html>
    InputProperty {InputProperty -> ()
haddock_workaround_ :: (),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-input.html#cfn-databrew-dataset-input-datacataloginputdefinition>
                   InputProperty -> Maybe DataCatalogInputDefinitionProperty
dataCatalogInputDefinition :: (Prelude.Maybe DataCatalogInputDefinitionProperty),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-input.html#cfn-databrew-dataset-input-databaseinputdefinition>
                   InputProperty -> Maybe DatabaseInputDefinitionProperty
databaseInputDefinition :: (Prelude.Maybe DatabaseInputDefinitionProperty),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-input.html#cfn-databrew-dataset-input-metadata>
                   InputProperty -> Maybe MetadataProperty
metadata :: (Prelude.Maybe MetadataProperty),
                   -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-dataset-input.html#cfn-databrew-dataset-input-s3inputdefinition>
                   InputProperty -> Maybe S3LocationProperty
s3InputDefinition :: (Prelude.Maybe S3LocationProperty)}
  deriving stock (InputProperty -> InputProperty -> Bool
(InputProperty -> InputProperty -> Bool)
-> (InputProperty -> InputProperty -> Bool) -> Eq InputProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: InputProperty -> InputProperty -> Bool
== :: InputProperty -> InputProperty -> Bool
$c/= :: InputProperty -> InputProperty -> Bool
/= :: InputProperty -> InputProperty -> Bool
Prelude.Eq, Int -> InputProperty -> ShowS
[InputProperty] -> ShowS
InputProperty -> String
(Int -> InputProperty -> ShowS)
-> (InputProperty -> String)
-> ([InputProperty] -> ShowS)
-> Show InputProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> InputProperty -> ShowS
showsPrec :: Int -> InputProperty -> ShowS
$cshow :: InputProperty -> String
show :: InputProperty -> String
$cshowList :: [InputProperty] -> ShowS
showList :: [InputProperty] -> ShowS
Prelude.Show)
mkInputProperty :: InputProperty
mkInputProperty :: InputProperty
mkInputProperty
  = InputProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
dataCatalogInputDefinition = Maybe DataCatalogInputDefinitionProperty
forall a. Maybe a
Prelude.Nothing,
       databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
databaseInputDefinition = Maybe DatabaseInputDefinitionProperty
forall a. Maybe a
Prelude.Nothing,
       metadata :: Maybe MetadataProperty
metadata = Maybe MetadataProperty
forall a. Maybe a
Prelude.Nothing, s3InputDefinition :: Maybe S3LocationProperty
s3InputDefinition = Maybe S3LocationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties InputProperty where
  toResourceProperties :: InputProperty -> ResourceProperties
toResourceProperties InputProperty {Maybe MetadataProperty
Maybe S3LocationProperty
Maybe DatabaseInputDefinitionProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: InputProperty -> ()
dataCatalogInputDefinition :: InputProperty -> Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: InputProperty -> Maybe DatabaseInputDefinitionProperty
metadata :: InputProperty -> Maybe MetadataProperty
s3InputDefinition :: InputProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::DataBrew::Dataset.Input",
         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 -> DatabaseInputDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatabaseInputDefinition"
                              (DatabaseInputDefinitionProperty -> (Key, Value))
-> Maybe DatabaseInputDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatabaseInputDefinitionProperty
databaseInputDefinition,
                            Key -> MetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Metadata" (MetadataProperty -> (Key, Value))
-> Maybe MetadataProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetadataProperty
metadata,
                            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 InputProperty where
  toJSON :: InputProperty -> Value
toJSON InputProperty {Maybe MetadataProperty
Maybe S3LocationProperty
Maybe DatabaseInputDefinitionProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: InputProperty -> ()
dataCatalogInputDefinition :: InputProperty -> Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: InputProperty -> Maybe DatabaseInputDefinitionProperty
metadata :: InputProperty -> Maybe MetadataProperty
s3InputDefinition :: InputProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
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 -> DatabaseInputDefinitionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DatabaseInputDefinition"
                 (DatabaseInputDefinitionProperty -> (Key, Value))
-> Maybe DatabaseInputDefinitionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DatabaseInputDefinitionProperty
databaseInputDefinition,
               Key -> MetadataProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Metadata" (MetadataProperty -> (Key, Value))
-> Maybe MetadataProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe MetadataProperty
metadata,
               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" InputProperty where
  type PropertyType "DataCatalogInputDefinition" InputProperty = DataCatalogInputDefinitionProperty
  set :: PropertyType "DataCatalogInputDefinition" InputProperty
-> InputProperty -> InputProperty
set PropertyType "DataCatalogInputDefinition" InputProperty
newValue InputProperty {Maybe MetadataProperty
Maybe S3LocationProperty
Maybe DatabaseInputDefinitionProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: InputProperty -> ()
dataCatalogInputDefinition :: InputProperty -> Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: InputProperty -> Maybe DatabaseInputDefinitionProperty
metadata :: InputProperty -> Maybe MetadataProperty
s3InputDefinition :: InputProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
..}
    = InputProperty
        {dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
dataCatalogInputDefinition = DataCatalogInputDefinitionProperty
-> Maybe DataCatalogInputDefinitionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataCatalogInputDefinition" InputProperty
DataCatalogInputDefinitionProperty
newValue, Maybe MetadataProperty
Maybe S3LocationProperty
Maybe DatabaseInputDefinitionProperty
()
haddock_workaround_ :: ()
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
haddock_workaround_ :: ()
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
..}
instance Property "DatabaseInputDefinition" InputProperty where
  type PropertyType "DatabaseInputDefinition" InputProperty = DatabaseInputDefinitionProperty
  set :: PropertyType "DatabaseInputDefinition" InputProperty
-> InputProperty -> InputProperty
set PropertyType "DatabaseInputDefinition" InputProperty
newValue InputProperty {Maybe MetadataProperty
Maybe S3LocationProperty
Maybe DatabaseInputDefinitionProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: InputProperty -> ()
dataCatalogInputDefinition :: InputProperty -> Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: InputProperty -> Maybe DatabaseInputDefinitionProperty
metadata :: InputProperty -> Maybe MetadataProperty
s3InputDefinition :: InputProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
..}
    = InputProperty
        {databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
databaseInputDefinition = DatabaseInputDefinitionProperty
-> Maybe DatabaseInputDefinitionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatabaseInputDefinition" InputProperty
DatabaseInputDefinitionProperty
newValue, Maybe MetadataProperty
Maybe S3LocationProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
..}
instance Property "Metadata" InputProperty where
  type PropertyType "Metadata" InputProperty = MetadataProperty
  set :: PropertyType "Metadata" InputProperty
-> InputProperty -> InputProperty
set PropertyType "Metadata" InputProperty
newValue InputProperty {Maybe MetadataProperty
Maybe S3LocationProperty
Maybe DatabaseInputDefinitionProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: InputProperty -> ()
dataCatalogInputDefinition :: InputProperty -> Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: InputProperty -> Maybe DatabaseInputDefinitionProperty
metadata :: InputProperty -> Maybe MetadataProperty
s3InputDefinition :: InputProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
..}
    = InputProperty {metadata :: Maybe MetadataProperty
metadata = MetadataProperty -> Maybe MetadataProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Metadata" InputProperty
MetadataProperty
newValue, Maybe S3LocationProperty
Maybe DatabaseInputDefinitionProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
s3InputDefinition :: Maybe S3LocationProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
s3InputDefinition :: Maybe S3LocationProperty
..}
instance Property "S3InputDefinition" InputProperty where
  type PropertyType "S3InputDefinition" InputProperty = S3LocationProperty
  set :: PropertyType "S3InputDefinition" InputProperty
-> InputProperty -> InputProperty
set PropertyType "S3InputDefinition" InputProperty
newValue InputProperty {Maybe MetadataProperty
Maybe S3LocationProperty
Maybe DatabaseInputDefinitionProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: InputProperty -> ()
dataCatalogInputDefinition :: InputProperty -> Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: InputProperty -> Maybe DatabaseInputDefinitionProperty
metadata :: InputProperty -> Maybe MetadataProperty
s3InputDefinition :: InputProperty -> Maybe S3LocationProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
s3InputDefinition :: Maybe S3LocationProperty
..}
    = InputProperty {s3InputDefinition :: Maybe S3LocationProperty
s3InputDefinition = S3LocationProperty -> Maybe S3LocationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "S3InputDefinition" InputProperty
S3LocationProperty
newValue, Maybe MetadataProperty
Maybe DatabaseInputDefinitionProperty
Maybe DataCatalogInputDefinitionProperty
()
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
haddock_workaround_ :: ()
dataCatalogInputDefinition :: Maybe DataCatalogInputDefinitionProperty
databaseInputDefinition :: Maybe DatabaseInputDefinitionProperty
metadata :: Maybe MetadataProperty
..}