module Stratosphere.QuickSight.Analysis.QueryExecutionOptionsProperty (
QueryExecutionOptionsProperty(..), mkQueryExecutionOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data QueryExecutionOptionsProperty
=
QueryExecutionOptionsProperty {QueryExecutionOptionsProperty -> ()
haddock_workaround_ :: (),
QueryExecutionOptionsProperty -> Maybe (Value Text)
queryExecutionMode :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (QueryExecutionOptionsProperty
-> QueryExecutionOptionsProperty -> Bool
(QueryExecutionOptionsProperty
-> QueryExecutionOptionsProperty -> Bool)
-> (QueryExecutionOptionsProperty
-> QueryExecutionOptionsProperty -> Bool)
-> Eq QueryExecutionOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: QueryExecutionOptionsProperty
-> QueryExecutionOptionsProperty -> Bool
== :: QueryExecutionOptionsProperty
-> QueryExecutionOptionsProperty -> Bool
$c/= :: QueryExecutionOptionsProperty
-> QueryExecutionOptionsProperty -> Bool
/= :: QueryExecutionOptionsProperty
-> QueryExecutionOptionsProperty -> Bool
Prelude.Eq, Int -> QueryExecutionOptionsProperty -> ShowS
[QueryExecutionOptionsProperty] -> ShowS
QueryExecutionOptionsProperty -> String
(Int -> QueryExecutionOptionsProperty -> ShowS)
-> (QueryExecutionOptionsProperty -> String)
-> ([QueryExecutionOptionsProperty] -> ShowS)
-> Show QueryExecutionOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> QueryExecutionOptionsProperty -> ShowS
showsPrec :: Int -> QueryExecutionOptionsProperty -> ShowS
$cshow :: QueryExecutionOptionsProperty -> String
show :: QueryExecutionOptionsProperty -> String
$cshowList :: [QueryExecutionOptionsProperty] -> ShowS
showList :: [QueryExecutionOptionsProperty] -> ShowS
Prelude.Show)
mkQueryExecutionOptionsProperty :: QueryExecutionOptionsProperty
mkQueryExecutionOptionsProperty :: QueryExecutionOptionsProperty
mkQueryExecutionOptionsProperty
= QueryExecutionOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), queryExecutionMode :: Maybe (Value Text)
queryExecutionMode = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties QueryExecutionOptionsProperty where
toResourceProperties :: QueryExecutionOptionsProperty -> ResourceProperties
toResourceProperties QueryExecutionOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: QueryExecutionOptionsProperty -> ()
queryExecutionMode :: QueryExecutionOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
queryExecutionMode :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.QueryExecutionOptions",
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
"QueryExecutionMode" (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)
queryExecutionMode])}
instance JSON.ToJSON QueryExecutionOptionsProperty where
toJSON :: QueryExecutionOptionsProperty -> Value
toJSON QueryExecutionOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: QueryExecutionOptionsProperty -> ()
queryExecutionMode :: QueryExecutionOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
queryExecutionMode :: 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
"QueryExecutionMode" (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)
queryExecutionMode]))
instance Property "QueryExecutionMode" QueryExecutionOptionsProperty where
type PropertyType "QueryExecutionMode" QueryExecutionOptionsProperty = Value Prelude.Text
set :: PropertyType "QueryExecutionMode" QueryExecutionOptionsProperty
-> QueryExecutionOptionsProperty -> QueryExecutionOptionsProperty
set PropertyType "QueryExecutionMode" QueryExecutionOptionsProperty
newValue QueryExecutionOptionsProperty {Maybe (Value Text)
()
haddock_workaround_ :: QueryExecutionOptionsProperty -> ()
queryExecutionMode :: QueryExecutionOptionsProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
queryExecutionMode :: Maybe (Value Text)
..}
= QueryExecutionOptionsProperty
{queryExecutionMode :: Maybe (Value Text)
queryExecutionMode = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "QueryExecutionMode" QueryExecutionOptionsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}