module Stratosphere.AppFlow.Flow.GlueDataCatalogProperty (
        GlueDataCatalogProperty(..), mkGlueDataCatalogProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GlueDataCatalogProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-gluedatacatalog.html>
    GlueDataCatalogProperty {GlueDataCatalogProperty -> ()
haddock_workaround_ :: (),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-gluedatacatalog.html#cfn-appflow-flow-gluedatacatalog-databasename>
                             GlueDataCatalogProperty -> Value Text
databaseName :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-gluedatacatalog.html#cfn-appflow-flow-gluedatacatalog-rolearn>
                             GlueDataCatalogProperty -> Value Text
roleArn :: (Value Prelude.Text),
                             -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-gluedatacatalog.html#cfn-appflow-flow-gluedatacatalog-tableprefix>
                             GlueDataCatalogProperty -> Value Text
tablePrefix :: (Value Prelude.Text)}
  deriving stock (GlueDataCatalogProperty -> GlueDataCatalogProperty -> Bool
(GlueDataCatalogProperty -> GlueDataCatalogProperty -> Bool)
-> (GlueDataCatalogProperty -> GlueDataCatalogProperty -> Bool)
-> Eq GlueDataCatalogProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GlueDataCatalogProperty -> GlueDataCatalogProperty -> Bool
== :: GlueDataCatalogProperty -> GlueDataCatalogProperty -> Bool
$c/= :: GlueDataCatalogProperty -> GlueDataCatalogProperty -> Bool
/= :: GlueDataCatalogProperty -> GlueDataCatalogProperty -> Bool
Prelude.Eq, Int -> GlueDataCatalogProperty -> ShowS
[GlueDataCatalogProperty] -> ShowS
GlueDataCatalogProperty -> String
(Int -> GlueDataCatalogProperty -> ShowS)
-> (GlueDataCatalogProperty -> String)
-> ([GlueDataCatalogProperty] -> ShowS)
-> Show GlueDataCatalogProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GlueDataCatalogProperty -> ShowS
showsPrec :: Int -> GlueDataCatalogProperty -> ShowS
$cshow :: GlueDataCatalogProperty -> String
show :: GlueDataCatalogProperty -> String
$cshowList :: [GlueDataCatalogProperty] -> ShowS
showList :: [GlueDataCatalogProperty] -> ShowS
Prelude.Show)
mkGlueDataCatalogProperty ::
  Value Prelude.Text
  -> Value Prelude.Text
     -> Value Prelude.Text -> GlueDataCatalogProperty
mkGlueDataCatalogProperty :: Value Text -> Value Text -> Value Text -> GlueDataCatalogProperty
mkGlueDataCatalogProperty Value Text
databaseName Value Text
roleArn Value Text
tablePrefix
  = GlueDataCatalogProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), databaseName :: Value Text
databaseName = Value Text
databaseName,
       roleArn :: Value Text
roleArn = Value Text
roleArn, tablePrefix :: Value Text
tablePrefix = Value Text
tablePrefix}
instance ToResourceProperties GlueDataCatalogProperty where
  toResourceProperties :: GlueDataCatalogProperty -> ResourceProperties
toResourceProperties GlueDataCatalogProperty {()
Value Text
haddock_workaround_ :: GlueDataCatalogProperty -> ()
databaseName :: GlueDataCatalogProperty -> Value Text
roleArn :: GlueDataCatalogProperty -> Value Text
tablePrefix :: GlueDataCatalogProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
roleArn :: Value Text
tablePrefix :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppFlow::Flow.GlueDataCatalog",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"DatabaseName" 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
databaseName,
                       Key
"RoleArn" 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
roleArn, Key
"TablePrefix" 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
tablePrefix]}
instance JSON.ToJSON GlueDataCatalogProperty where
  toJSON :: GlueDataCatalogProperty -> Value
toJSON GlueDataCatalogProperty {()
Value Text
haddock_workaround_ :: GlueDataCatalogProperty -> ()
databaseName :: GlueDataCatalogProperty -> Value Text
roleArn :: GlueDataCatalogProperty -> Value Text
tablePrefix :: GlueDataCatalogProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
roleArn :: Value Text
tablePrefix :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"DatabaseName" 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
databaseName, Key
"RoleArn" 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
roleArn,
         Key
"TablePrefix" 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
tablePrefix]
instance Property "DatabaseName" GlueDataCatalogProperty where
  type PropertyType "DatabaseName" GlueDataCatalogProperty = Value Prelude.Text
  set :: PropertyType "DatabaseName" GlueDataCatalogProperty
-> GlueDataCatalogProperty -> GlueDataCatalogProperty
set PropertyType "DatabaseName" GlueDataCatalogProperty
newValue GlueDataCatalogProperty {()
Value Text
haddock_workaround_ :: GlueDataCatalogProperty -> ()
databaseName :: GlueDataCatalogProperty -> Value Text
roleArn :: GlueDataCatalogProperty -> Value Text
tablePrefix :: GlueDataCatalogProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
roleArn :: Value Text
tablePrefix :: Value Text
..}
    = GlueDataCatalogProperty {databaseName :: Value Text
databaseName = PropertyType "DatabaseName" GlueDataCatalogProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
tablePrefix :: Value Text
haddock_workaround_ :: ()
roleArn :: Value Text
tablePrefix :: Value Text
..}
instance Property "RoleArn" GlueDataCatalogProperty where
  type PropertyType "RoleArn" GlueDataCatalogProperty = Value Prelude.Text
  set :: PropertyType "RoleArn" GlueDataCatalogProperty
-> GlueDataCatalogProperty -> GlueDataCatalogProperty
set PropertyType "RoleArn" GlueDataCatalogProperty
newValue GlueDataCatalogProperty {()
Value Text
haddock_workaround_ :: GlueDataCatalogProperty -> ()
databaseName :: GlueDataCatalogProperty -> Value Text
roleArn :: GlueDataCatalogProperty -> Value Text
tablePrefix :: GlueDataCatalogProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
roleArn :: Value Text
tablePrefix :: Value Text
..}
    = GlueDataCatalogProperty {roleArn :: Value Text
roleArn = PropertyType "RoleArn" GlueDataCatalogProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tablePrefix :: Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tablePrefix :: Value Text
..}
instance Property "TablePrefix" GlueDataCatalogProperty where
  type PropertyType "TablePrefix" GlueDataCatalogProperty = Value Prelude.Text
  set :: PropertyType "TablePrefix" GlueDataCatalogProperty
-> GlueDataCatalogProperty -> GlueDataCatalogProperty
set PropertyType "TablePrefix" GlueDataCatalogProperty
newValue GlueDataCatalogProperty {()
Value Text
haddock_workaround_ :: GlueDataCatalogProperty -> ()
databaseName :: GlueDataCatalogProperty -> Value Text
roleArn :: GlueDataCatalogProperty -> Value Text
tablePrefix :: GlueDataCatalogProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
roleArn :: Value Text
tablePrefix :: Value Text
..}
    = GlueDataCatalogProperty {tablePrefix :: Value Text
tablePrefix = PropertyType "TablePrefix" GlueDataCatalogProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
roleArn :: Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
roleArn :: Value Text
..}