module Stratosphere.IoTAnalytics.Dataset.GlueConfigurationProperty (
        GlueConfigurationProperty(..), mkGlueConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GlueConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-glueconfiguration.html>
    GlueConfigurationProperty {GlueConfigurationProperty -> ()
haddock_workaround_ :: (),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-glueconfiguration.html#cfn-iotanalytics-dataset-glueconfiguration-databasename>
                               GlueConfigurationProperty -> Value Text
databaseName :: (Value Prelude.Text),
                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-iotanalytics-dataset-glueconfiguration.html#cfn-iotanalytics-dataset-glueconfiguration-tablename>
                               GlueConfigurationProperty -> Value Text
tableName :: (Value Prelude.Text)}
  deriving stock (GlueConfigurationProperty -> GlueConfigurationProperty -> Bool
(GlueConfigurationProperty -> GlueConfigurationProperty -> Bool)
-> (GlueConfigurationProperty -> GlueConfigurationProperty -> Bool)
-> Eq GlueConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GlueConfigurationProperty -> GlueConfigurationProperty -> Bool
== :: GlueConfigurationProperty -> GlueConfigurationProperty -> Bool
$c/= :: GlueConfigurationProperty -> GlueConfigurationProperty -> Bool
/= :: GlueConfigurationProperty -> GlueConfigurationProperty -> Bool
Prelude.Eq, Int -> GlueConfigurationProperty -> ShowS
[GlueConfigurationProperty] -> ShowS
GlueConfigurationProperty -> String
(Int -> GlueConfigurationProperty -> ShowS)
-> (GlueConfigurationProperty -> String)
-> ([GlueConfigurationProperty] -> ShowS)
-> Show GlueConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GlueConfigurationProperty -> ShowS
showsPrec :: Int -> GlueConfigurationProperty -> ShowS
$cshow :: GlueConfigurationProperty -> String
show :: GlueConfigurationProperty -> String
$cshowList :: [GlueConfigurationProperty] -> ShowS
showList :: [GlueConfigurationProperty] -> ShowS
Prelude.Show)
mkGlueConfigurationProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> GlueConfigurationProperty
mkGlueConfigurationProperty :: Value Text -> Value Text -> GlueConfigurationProperty
mkGlueConfigurationProperty Value Text
databaseName Value Text
tableName
  = GlueConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), databaseName :: Value Text
databaseName = Value Text
databaseName,
       tableName :: Value Text
tableName = Value Text
tableName}
instance ToResourceProperties GlueConfigurationProperty where
  toResourceProperties :: GlueConfigurationProperty -> ResourceProperties
toResourceProperties GlueConfigurationProperty {()
Value Text
haddock_workaround_ :: GlueConfigurationProperty -> ()
databaseName :: GlueConfigurationProperty -> Value Text
tableName :: GlueConfigurationProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tableName :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::IoTAnalytics::Dataset.GlueConfiguration",
         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
"TableName" 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
tableName]}
instance JSON.ToJSON GlueConfigurationProperty where
  toJSON :: GlueConfigurationProperty -> Value
toJSON GlueConfigurationProperty {()
Value Text
haddock_workaround_ :: GlueConfigurationProperty -> ()
databaseName :: GlueConfigurationProperty -> Value Text
tableName :: GlueConfigurationProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tableName :: 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
"TableName" 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
tableName]
instance Property "DatabaseName" GlueConfigurationProperty where
  type PropertyType "DatabaseName" GlueConfigurationProperty = Value Prelude.Text
  set :: PropertyType "DatabaseName" GlueConfigurationProperty
-> GlueConfigurationProperty -> GlueConfigurationProperty
set PropertyType "DatabaseName" GlueConfigurationProperty
newValue GlueConfigurationProperty {()
Value Text
haddock_workaround_ :: GlueConfigurationProperty -> ()
databaseName :: GlueConfigurationProperty -> Value Text
tableName :: GlueConfigurationProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tableName :: Value Text
..}
    = GlueConfigurationProperty {databaseName :: Value Text
databaseName = PropertyType "DatabaseName" GlueConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
tableName :: Value Text
haddock_workaround_ :: ()
tableName :: Value Text
..}
instance Property "TableName" GlueConfigurationProperty where
  type PropertyType "TableName" GlueConfigurationProperty = Value Prelude.Text
  set :: PropertyType "TableName" GlueConfigurationProperty
-> GlueConfigurationProperty -> GlueConfigurationProperty
set PropertyType "TableName" GlueConfigurationProperty
newValue GlueConfigurationProperty {()
Value Text
haddock_workaround_ :: GlueConfigurationProperty -> ()
databaseName :: GlueConfigurationProperty -> Value Text
tableName :: GlueConfigurationProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tableName :: Value Text
..}
    = GlueConfigurationProperty {tableName :: Value Text
tableName = PropertyType "TableName" GlueConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
..}