module Stratosphere.CleanRooms.ConfiguredTable.AthenaTableReferenceProperty (
AthenaTableReferenceProperty(..), mkAthenaTableReferenceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AthenaTableReferenceProperty
=
AthenaTableReferenceProperty {AthenaTableReferenceProperty -> ()
haddock_workaround_ :: (),
AthenaTableReferenceProperty -> Value Text
databaseName :: (Value Prelude.Text),
AthenaTableReferenceProperty -> Maybe (Value Text)
outputLocation :: (Prelude.Maybe (Value Prelude.Text)),
AthenaTableReferenceProperty -> Value Text
tableName :: (Value Prelude.Text),
AthenaTableReferenceProperty -> Value Text
workGroup :: (Value Prelude.Text)}
deriving stock (AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> Bool
(AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> Bool)
-> (AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> Bool)
-> Eq AthenaTableReferenceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> Bool
== :: AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> Bool
$c/= :: AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> Bool
/= :: AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> Bool
Prelude.Eq, Int -> AthenaTableReferenceProperty -> ShowS
[AthenaTableReferenceProperty] -> ShowS
AthenaTableReferenceProperty -> String
(Int -> AthenaTableReferenceProperty -> ShowS)
-> (AthenaTableReferenceProperty -> String)
-> ([AthenaTableReferenceProperty] -> ShowS)
-> Show AthenaTableReferenceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AthenaTableReferenceProperty -> ShowS
showsPrec :: Int -> AthenaTableReferenceProperty -> ShowS
$cshow :: AthenaTableReferenceProperty -> String
show :: AthenaTableReferenceProperty -> String
$cshowList :: [AthenaTableReferenceProperty] -> ShowS
showList :: [AthenaTableReferenceProperty] -> ShowS
Prelude.Show)
mkAthenaTableReferenceProperty ::
Value Prelude.Text
-> Value Prelude.Text
-> Value Prelude.Text -> AthenaTableReferenceProperty
mkAthenaTableReferenceProperty :: Value Text
-> Value Text -> Value Text -> AthenaTableReferenceProperty
mkAthenaTableReferenceProperty Value Text
databaseName Value Text
tableName Value Text
workGroup
= AthenaTableReferenceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), databaseName :: Value Text
databaseName = Value Text
databaseName,
tableName :: Value Text
tableName = Value Text
tableName, workGroup :: Value Text
workGroup = Value Text
workGroup,
outputLocation :: Maybe (Value Text)
outputLocation = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AthenaTableReferenceProperty where
toResourceProperties :: AthenaTableReferenceProperty -> ResourceProperties
toResourceProperties AthenaTableReferenceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AthenaTableReferenceProperty -> ()
databaseName :: AthenaTableReferenceProperty -> Value Text
outputLocation :: AthenaTableReferenceProperty -> Maybe (Value Text)
tableName :: AthenaTableReferenceProperty -> Value Text
workGroup :: AthenaTableReferenceProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
tableName :: Value Text
workGroup :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::CleanRooms::ConfiguredTable.AthenaTableReference",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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, Key
"WorkGroup" 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
workGroup]
([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
"OutputLocation" (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)
outputLocation]))}
instance JSON.ToJSON AthenaTableReferenceProperty where
toJSON :: AthenaTableReferenceProperty -> Value
toJSON AthenaTableReferenceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AthenaTableReferenceProperty -> ()
databaseName :: AthenaTableReferenceProperty -> Value Text
outputLocation :: AthenaTableReferenceProperty -> Maybe (Value Text)
tableName :: AthenaTableReferenceProperty -> Value Text
workGroup :: AthenaTableReferenceProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
tableName :: Value Text
workGroup :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[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, Key
"WorkGroup" 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
workGroup]
([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
"OutputLocation" (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)
outputLocation])))
instance Property "DatabaseName" AthenaTableReferenceProperty where
type PropertyType "DatabaseName" AthenaTableReferenceProperty = Value Prelude.Text
set :: PropertyType "DatabaseName" AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> AthenaTableReferenceProperty
set PropertyType "DatabaseName" AthenaTableReferenceProperty
newValue AthenaTableReferenceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AthenaTableReferenceProperty -> ()
databaseName :: AthenaTableReferenceProperty -> Value Text
outputLocation :: AthenaTableReferenceProperty -> Maybe (Value Text)
tableName :: AthenaTableReferenceProperty -> Value Text
workGroup :: AthenaTableReferenceProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
tableName :: Value Text
workGroup :: Value Text
..}
= AthenaTableReferenceProperty {databaseName :: Value Text
databaseName = PropertyType "DatabaseName" AthenaTableReferenceProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
outputLocation :: Maybe (Value Text)
tableName :: Value Text
workGroup :: Value Text
haddock_workaround_ :: ()
outputLocation :: Maybe (Value Text)
tableName :: Value Text
workGroup :: Value Text
..}
instance Property "OutputLocation" AthenaTableReferenceProperty where
type PropertyType "OutputLocation" AthenaTableReferenceProperty = Value Prelude.Text
set :: PropertyType "OutputLocation" AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> AthenaTableReferenceProperty
set PropertyType "OutputLocation" AthenaTableReferenceProperty
newValue AthenaTableReferenceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AthenaTableReferenceProperty -> ()
databaseName :: AthenaTableReferenceProperty -> Value Text
outputLocation :: AthenaTableReferenceProperty -> Maybe (Value Text)
tableName :: AthenaTableReferenceProperty -> Value Text
workGroup :: AthenaTableReferenceProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
tableName :: Value Text
workGroup :: Value Text
..}
= AthenaTableReferenceProperty
{outputLocation :: Maybe (Value Text)
outputLocation = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "OutputLocation" AthenaTableReferenceProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tableName :: Value Text
workGroup :: Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
tableName :: Value Text
workGroup :: Value Text
..}
instance Property "TableName" AthenaTableReferenceProperty where
type PropertyType "TableName" AthenaTableReferenceProperty = Value Prelude.Text
set :: PropertyType "TableName" AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> AthenaTableReferenceProperty
set PropertyType "TableName" AthenaTableReferenceProperty
newValue AthenaTableReferenceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AthenaTableReferenceProperty -> ()
databaseName :: AthenaTableReferenceProperty -> Value Text
outputLocation :: AthenaTableReferenceProperty -> Maybe (Value Text)
tableName :: AthenaTableReferenceProperty -> Value Text
workGroup :: AthenaTableReferenceProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
tableName :: Value Text
workGroup :: Value Text
..}
= AthenaTableReferenceProperty {tableName :: Value Text
tableName = PropertyType "TableName" AthenaTableReferenceProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
workGroup :: Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
workGroup :: Value Text
..}
instance Property "WorkGroup" AthenaTableReferenceProperty where
type PropertyType "WorkGroup" AthenaTableReferenceProperty = Value Prelude.Text
set :: PropertyType "WorkGroup" AthenaTableReferenceProperty
-> AthenaTableReferenceProperty -> AthenaTableReferenceProperty
set PropertyType "WorkGroup" AthenaTableReferenceProperty
newValue AthenaTableReferenceProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: AthenaTableReferenceProperty -> ()
databaseName :: AthenaTableReferenceProperty -> Value Text
outputLocation :: AthenaTableReferenceProperty -> Maybe (Value Text)
tableName :: AthenaTableReferenceProperty -> Value Text
workGroup :: AthenaTableReferenceProperty -> Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
tableName :: Value Text
workGroup :: Value Text
..}
= AthenaTableReferenceProperty {workGroup :: Value Text
workGroup = PropertyType "WorkGroup" AthenaTableReferenceProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
tableName :: Value Text
haddock_workaround_ :: ()
databaseName :: Value Text
outputLocation :: Maybe (Value Text)
tableName :: Value Text
..}