stratosphere-databrew-1.0.0: gen/Stratosphere/DataBrew/Recipe/InputProperty.hs
module Stratosphere.DataBrew.Recipe.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.Recipe.DataCatalogInputDefinitionProperty as Exports
import {-# SOURCE #-} Stratosphere.DataBrew.Recipe.S3LocationProperty as Exports
import Stratosphere.ResourceProperties
data InputProperty
= -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-recipe-input.html>
InputProperty {haddock_workaround_ :: (),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-recipe-input.html#cfn-databrew-recipe-input-datacataloginputdefinition>
dataCatalogInputDefinition :: (Prelude.Maybe DataCatalogInputDefinitionProperty),
-- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-databrew-recipe-input.html#cfn-databrew-recipe-input-s3inputdefinition>
s3InputDefinition :: (Prelude.Maybe S3LocationProperty)}
deriving stock (Prelude.Eq, Prelude.Show)
mkInputProperty :: InputProperty
mkInputProperty
= InputProperty
{haddock_workaround_ = (),
dataCatalogInputDefinition = Prelude.Nothing,
s3InputDefinition = Prelude.Nothing}
instance ToResourceProperties InputProperty where
toResourceProperties InputProperty {..}
= ResourceProperties
{awsType = "AWS::DataBrew::Recipe.Input",
supportsTags = Prelude.False,
properties = Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "DataCatalogInputDefinition"
Prelude.<$> dataCatalogInputDefinition,
(JSON..=) "S3InputDefinition" Prelude.<$> s3InputDefinition])}
instance JSON.ToJSON InputProperty where
toJSON InputProperty {..}
= JSON.object
(Prelude.fromList
(Prelude.catMaybes
[(JSON..=) "DataCatalogInputDefinition"
Prelude.<$> dataCatalogInputDefinition,
(JSON..=) "S3InputDefinition" Prelude.<$> s3InputDefinition]))
instance Property "DataCatalogInputDefinition" InputProperty where
type PropertyType "DataCatalogInputDefinition" InputProperty = DataCatalogInputDefinitionProperty
set newValue InputProperty {..}
= InputProperty
{dataCatalogInputDefinition = Prelude.pure newValue, ..}
instance Property "S3InputDefinition" InputProperty where
type PropertyType "S3InputDefinition" InputProperty = S3LocationProperty
set newValue InputProperty {..}
= InputProperty {s3InputDefinition = Prelude.pure newValue, ..}