module Stratosphere.QuickSight.DataSet.JoinKeyPropertiesProperty (
JoinKeyPropertiesProperty(..), mkJoinKeyPropertiesProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data JoinKeyPropertiesProperty
=
JoinKeyPropertiesProperty {JoinKeyPropertiesProperty -> ()
haddock_workaround_ :: (),
JoinKeyPropertiesProperty -> Maybe (Value Bool)
uniqueKey :: (Prelude.Maybe (Value Prelude.Bool))}
deriving stock (JoinKeyPropertiesProperty -> JoinKeyPropertiesProperty -> Bool
(JoinKeyPropertiesProperty -> JoinKeyPropertiesProperty -> Bool)
-> (JoinKeyPropertiesProperty -> JoinKeyPropertiesProperty -> Bool)
-> Eq JoinKeyPropertiesProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: JoinKeyPropertiesProperty -> JoinKeyPropertiesProperty -> Bool
== :: JoinKeyPropertiesProperty -> JoinKeyPropertiesProperty -> Bool
$c/= :: JoinKeyPropertiesProperty -> JoinKeyPropertiesProperty -> Bool
/= :: JoinKeyPropertiesProperty -> JoinKeyPropertiesProperty -> Bool
Prelude.Eq, Int -> JoinKeyPropertiesProperty -> ShowS
[JoinKeyPropertiesProperty] -> ShowS
JoinKeyPropertiesProperty -> String
(Int -> JoinKeyPropertiesProperty -> ShowS)
-> (JoinKeyPropertiesProperty -> String)
-> ([JoinKeyPropertiesProperty] -> ShowS)
-> Show JoinKeyPropertiesProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> JoinKeyPropertiesProperty -> ShowS
showsPrec :: Int -> JoinKeyPropertiesProperty -> ShowS
$cshow :: JoinKeyPropertiesProperty -> String
show :: JoinKeyPropertiesProperty -> String
$cshowList :: [JoinKeyPropertiesProperty] -> ShowS
showList :: [JoinKeyPropertiesProperty] -> ShowS
Prelude.Show)
mkJoinKeyPropertiesProperty :: JoinKeyPropertiesProperty
mkJoinKeyPropertiesProperty :: JoinKeyPropertiesProperty
mkJoinKeyPropertiesProperty
= JoinKeyPropertiesProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), uniqueKey :: Maybe (Value Bool)
uniqueKey = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties JoinKeyPropertiesProperty where
toResourceProperties :: JoinKeyPropertiesProperty -> ResourceProperties
toResourceProperties JoinKeyPropertiesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: JoinKeyPropertiesProperty -> ()
uniqueKey :: JoinKeyPropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
uniqueKey :: Maybe (Value Bool)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::DataSet.JoinKeyProperties",
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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UniqueKey" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
uniqueKey])}
instance JSON.ToJSON JoinKeyPropertiesProperty where
toJSON :: JoinKeyPropertiesProperty -> Value
toJSON JoinKeyPropertiesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: JoinKeyPropertiesProperty -> ()
uniqueKey :: JoinKeyPropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
uniqueKey :: Maybe (Value Bool)
..}
= [(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 Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"UniqueKey" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
uniqueKey]))
instance Property "UniqueKey" JoinKeyPropertiesProperty where
type PropertyType "UniqueKey" JoinKeyPropertiesProperty = Value Prelude.Bool
set :: PropertyType "UniqueKey" JoinKeyPropertiesProperty
-> JoinKeyPropertiesProperty -> JoinKeyPropertiesProperty
set PropertyType "UniqueKey" JoinKeyPropertiesProperty
newValue JoinKeyPropertiesProperty {Maybe (Value Bool)
()
haddock_workaround_ :: JoinKeyPropertiesProperty -> ()
uniqueKey :: JoinKeyPropertiesProperty -> Maybe (Value Bool)
haddock_workaround_ :: ()
uniqueKey :: Maybe (Value Bool)
..}
= JoinKeyPropertiesProperty {uniqueKey :: Maybe (Value Bool)
uniqueKey = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "UniqueKey" JoinKeyPropertiesProperty
Value Bool
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}