module Stratosphere.QuickSight.Analysis.TotalAggregationOptionProperty (
module Exports, TotalAggregationOptionProperty(..),
mkTotalAggregationOptionProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.TotalAggregationFunctionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TotalAggregationOptionProperty
=
TotalAggregationOptionProperty {TotalAggregationOptionProperty -> ()
haddock_workaround_ :: (),
TotalAggregationOptionProperty -> Value Text
fieldId :: (Value Prelude.Text),
TotalAggregationOptionProperty -> TotalAggregationFunctionProperty
totalAggregationFunction :: TotalAggregationFunctionProperty}
deriving stock (TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> Bool
(TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> Bool)
-> (TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> Bool)
-> Eq TotalAggregationOptionProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> Bool
== :: TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> Bool
$c/= :: TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> Bool
/= :: TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> Bool
Prelude.Eq, Int -> TotalAggregationOptionProperty -> ShowS
[TotalAggregationOptionProperty] -> ShowS
TotalAggregationOptionProperty -> String
(Int -> TotalAggregationOptionProperty -> ShowS)
-> (TotalAggregationOptionProperty -> String)
-> ([TotalAggregationOptionProperty] -> ShowS)
-> Show TotalAggregationOptionProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TotalAggregationOptionProperty -> ShowS
showsPrec :: Int -> TotalAggregationOptionProperty -> ShowS
$cshow :: TotalAggregationOptionProperty -> String
show :: TotalAggregationOptionProperty -> String
$cshowList :: [TotalAggregationOptionProperty] -> ShowS
showList :: [TotalAggregationOptionProperty] -> ShowS
Prelude.Show)
mkTotalAggregationOptionProperty ::
Value Prelude.Text
-> TotalAggregationFunctionProperty
-> TotalAggregationOptionProperty
mkTotalAggregationOptionProperty :: Value Text
-> TotalAggregationFunctionProperty
-> TotalAggregationOptionProperty
mkTotalAggregationOptionProperty Value Text
fieldId TotalAggregationFunctionProperty
totalAggregationFunction
= TotalAggregationOptionProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fieldId :: Value Text
fieldId = Value Text
fieldId,
totalAggregationFunction :: TotalAggregationFunctionProperty
totalAggregationFunction = TotalAggregationFunctionProperty
totalAggregationFunction}
instance ToResourceProperties TotalAggregationOptionProperty where
toResourceProperties :: TotalAggregationOptionProperty -> ResourceProperties
toResourceProperties TotalAggregationOptionProperty {()
Value Text
TotalAggregationFunctionProperty
haddock_workaround_ :: TotalAggregationOptionProperty -> ()
fieldId :: TotalAggregationOptionProperty -> Value Text
totalAggregationFunction :: TotalAggregationOptionProperty -> TotalAggregationFunctionProperty
haddock_workaround_ :: ()
fieldId :: Value Text
totalAggregationFunction :: TotalAggregationFunctionProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.TotalAggregationOption",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"FieldId" 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
fieldId,
Key
"TotalAggregationFunction" Key -> TotalAggregationFunctionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TotalAggregationFunctionProperty
totalAggregationFunction]}
instance JSON.ToJSON TotalAggregationOptionProperty where
toJSON :: TotalAggregationOptionProperty -> Value
toJSON TotalAggregationOptionProperty {()
Value Text
TotalAggregationFunctionProperty
haddock_workaround_ :: TotalAggregationOptionProperty -> ()
fieldId :: TotalAggregationOptionProperty -> Value Text
totalAggregationFunction :: TotalAggregationOptionProperty -> TotalAggregationFunctionProperty
haddock_workaround_ :: ()
fieldId :: Value Text
totalAggregationFunction :: TotalAggregationFunctionProperty
..}
= [(Key, Value)] -> Value
JSON.object
[Key
"FieldId" 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
fieldId,
Key
"TotalAggregationFunction" Key -> TotalAggregationFunctionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= TotalAggregationFunctionProperty
totalAggregationFunction]
instance Property "FieldId" TotalAggregationOptionProperty where
type PropertyType "FieldId" TotalAggregationOptionProperty = Value Prelude.Text
set :: PropertyType "FieldId" TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> TotalAggregationOptionProperty
set PropertyType "FieldId" TotalAggregationOptionProperty
newValue TotalAggregationOptionProperty {()
Value Text
TotalAggregationFunctionProperty
haddock_workaround_ :: TotalAggregationOptionProperty -> ()
fieldId :: TotalAggregationOptionProperty -> Value Text
totalAggregationFunction :: TotalAggregationOptionProperty -> TotalAggregationFunctionProperty
haddock_workaround_ :: ()
fieldId :: Value Text
totalAggregationFunction :: TotalAggregationFunctionProperty
..}
= TotalAggregationOptionProperty {fieldId :: Value Text
fieldId = PropertyType "FieldId" TotalAggregationOptionProperty
Value Text
newValue, ()
TotalAggregationFunctionProperty
haddock_workaround_ :: ()
totalAggregationFunction :: TotalAggregationFunctionProperty
haddock_workaround_ :: ()
totalAggregationFunction :: TotalAggregationFunctionProperty
..}
instance Property "TotalAggregationFunction" TotalAggregationOptionProperty where
type PropertyType "TotalAggregationFunction" TotalAggregationOptionProperty = TotalAggregationFunctionProperty
set :: PropertyType
"TotalAggregationFunction" TotalAggregationOptionProperty
-> TotalAggregationOptionProperty -> TotalAggregationOptionProperty
set PropertyType
"TotalAggregationFunction" TotalAggregationOptionProperty
newValue TotalAggregationOptionProperty {()
Value Text
TotalAggregationFunctionProperty
haddock_workaround_ :: TotalAggregationOptionProperty -> ()
fieldId :: TotalAggregationOptionProperty -> Value Text
totalAggregationFunction :: TotalAggregationOptionProperty -> TotalAggregationFunctionProperty
haddock_workaround_ :: ()
fieldId :: Value Text
totalAggregationFunction :: TotalAggregationFunctionProperty
..}
= TotalAggregationOptionProperty
{totalAggregationFunction :: TotalAggregationFunctionProperty
totalAggregationFunction = PropertyType
"TotalAggregationFunction" TotalAggregationOptionProperty
TotalAggregationFunctionProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
..}