module Stratosphere.Glue.DataQualityRuleset.DataQualityTargetTableProperty (
        DataQualityTargetTableProperty(..),
        mkDataQualityTargetTableProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataQualityTargetTableProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-dataqualityruleset-dataqualitytargettable.html>
    DataQualityTargetTableProperty {DataQualityTargetTableProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-dataqualityruleset-dataqualitytargettable.html#cfn-glue-dataqualityruleset-dataqualitytargettable-databasename>
                                    DataQualityTargetTableProperty -> Maybe (Value Text)
databaseName :: (Prelude.Maybe (Value Prelude.Text)),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-dataqualityruleset-dataqualitytargettable.html#cfn-glue-dataqualityruleset-dataqualitytargettable-tablename>
                                    DataQualityTargetTableProperty -> Maybe (Value Text)
tableName :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DataQualityTargetTableProperty
-> DataQualityTargetTableProperty -> Bool
(DataQualityTargetTableProperty
 -> DataQualityTargetTableProperty -> Bool)
-> (DataQualityTargetTableProperty
    -> DataQualityTargetTableProperty -> Bool)
-> Eq DataQualityTargetTableProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataQualityTargetTableProperty
-> DataQualityTargetTableProperty -> Bool
== :: DataQualityTargetTableProperty
-> DataQualityTargetTableProperty -> Bool
$c/= :: DataQualityTargetTableProperty
-> DataQualityTargetTableProperty -> Bool
/= :: DataQualityTargetTableProperty
-> DataQualityTargetTableProperty -> Bool
Prelude.Eq, Int -> DataQualityTargetTableProperty -> ShowS
[DataQualityTargetTableProperty] -> ShowS
DataQualityTargetTableProperty -> String
(Int -> DataQualityTargetTableProperty -> ShowS)
-> (DataQualityTargetTableProperty -> String)
-> ([DataQualityTargetTableProperty] -> ShowS)
-> Show DataQualityTargetTableProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataQualityTargetTableProperty -> ShowS
showsPrec :: Int -> DataQualityTargetTableProperty -> ShowS
$cshow :: DataQualityTargetTableProperty -> String
show :: DataQualityTargetTableProperty -> String
$cshowList :: [DataQualityTargetTableProperty] -> ShowS
showList :: [DataQualityTargetTableProperty] -> ShowS
Prelude.Show)
mkDataQualityTargetTableProperty :: DataQualityTargetTableProperty
mkDataQualityTargetTableProperty :: DataQualityTargetTableProperty
mkDataQualityTargetTableProperty
  = DataQualityTargetTableProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), databaseName :: Maybe (Value Text)
databaseName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       tableName :: Maybe (Value Text)
tableName = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataQualityTargetTableProperty where
  toResourceProperties :: DataQualityTargetTableProperty -> ResourceProperties
toResourceProperties DataQualityTargetTableProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataQualityTargetTableProperty -> ()
databaseName :: DataQualityTargetTableProperty -> Maybe (Value Text)
tableName :: DataQualityTargetTableProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseName :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::Glue::DataQualityRuleset.DataQualityTargetTable",
         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 -> 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..=) Key
"DatabaseName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
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..=) Key
"TableName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableName])}
instance JSON.ToJSON DataQualityTargetTableProperty where
  toJSON :: DataQualityTargetTableProperty -> Value
toJSON DataQualityTargetTableProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataQualityTargetTableProperty -> ()
databaseName :: DataQualityTargetTableProperty -> Maybe (Value Text)
tableName :: DataQualityTargetTableProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseName :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
    = [(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 -> 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..=) Key
"DatabaseName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
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..=) Key
"TableName" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableName]))
instance Property "DatabaseName" DataQualityTargetTableProperty where
  type PropertyType "DatabaseName" DataQualityTargetTableProperty = Value Prelude.Text
  set :: PropertyType "DatabaseName" DataQualityTargetTableProperty
-> DataQualityTargetTableProperty -> DataQualityTargetTableProperty
set PropertyType "DatabaseName" DataQualityTargetTableProperty
newValue DataQualityTargetTableProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataQualityTargetTableProperty -> ()
databaseName :: DataQualityTargetTableProperty -> Maybe (Value Text)
tableName :: DataQualityTargetTableProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseName :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
    = DataQualityTargetTableProperty
        {databaseName :: Maybe (Value Text)
databaseName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DatabaseName" DataQualityTargetTableProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
tableName :: Maybe (Value Text)
haddock_workaround_ :: ()
tableName :: Maybe (Value Text)
..}
instance Property "TableName" DataQualityTargetTableProperty where
  type PropertyType "TableName" DataQualityTargetTableProperty = Value Prelude.Text
  set :: PropertyType "TableName" DataQualityTargetTableProperty
-> DataQualityTargetTableProperty -> DataQualityTargetTableProperty
set PropertyType "TableName" DataQualityTargetTableProperty
newValue DataQualityTargetTableProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataQualityTargetTableProperty -> ()
databaseName :: DataQualityTargetTableProperty -> Maybe (Value Text)
tableName :: DataQualityTargetTableProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
databaseName :: Maybe (Value Text)
tableName :: Maybe (Value Text)
..}
    = DataQualityTargetTableProperty
        {tableName :: Maybe (Value Text)
tableName = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TableName" DataQualityTargetTableProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
databaseName :: Maybe (Value Text)
haddock_workaround_ :: ()
databaseName :: Maybe (Value Text)
..}