module Stratosphere.QuickSight.Analysis.NumericalMeasureFieldProperty (
module Exports, NumericalMeasureFieldProperty(..),
mkNumericalMeasureFieldProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.ColumnIdentifierProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.NumberFormatConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.NumericalAggregationFunctionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NumericalMeasureFieldProperty
=
NumericalMeasureFieldProperty {NumericalMeasureFieldProperty -> ()
haddock_workaround_ :: (),
NumericalMeasureFieldProperty
-> Maybe NumericalAggregationFunctionProperty
aggregationFunction :: (Prelude.Maybe NumericalAggregationFunctionProperty),
NumericalMeasureFieldProperty -> ColumnIdentifierProperty
column :: ColumnIdentifierProperty,
NumericalMeasureFieldProperty -> Value Text
fieldId :: (Value Prelude.Text),
NumericalMeasureFieldProperty
-> Maybe NumberFormatConfigurationProperty
formatConfiguration :: (Prelude.Maybe NumberFormatConfigurationProperty)}
deriving stock (NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> Bool
(NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> Bool)
-> (NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> Bool)
-> Eq NumericalMeasureFieldProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> Bool
== :: NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> Bool
$c/= :: NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> Bool
/= :: NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> Bool
Prelude.Eq, Int -> NumericalMeasureFieldProperty -> ShowS
[NumericalMeasureFieldProperty] -> ShowS
NumericalMeasureFieldProperty -> String
(Int -> NumericalMeasureFieldProperty -> ShowS)
-> (NumericalMeasureFieldProperty -> String)
-> ([NumericalMeasureFieldProperty] -> ShowS)
-> Show NumericalMeasureFieldProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NumericalMeasureFieldProperty -> ShowS
showsPrec :: Int -> NumericalMeasureFieldProperty -> ShowS
$cshow :: NumericalMeasureFieldProperty -> String
show :: NumericalMeasureFieldProperty -> String
$cshowList :: [NumericalMeasureFieldProperty] -> ShowS
showList :: [NumericalMeasureFieldProperty] -> ShowS
Prelude.Show)
mkNumericalMeasureFieldProperty ::
ColumnIdentifierProperty
-> Value Prelude.Text -> NumericalMeasureFieldProperty
mkNumericalMeasureFieldProperty :: ColumnIdentifierProperty
-> Value Text -> NumericalMeasureFieldProperty
mkNumericalMeasureFieldProperty ColumnIdentifierProperty
column Value Text
fieldId
= NumericalMeasureFieldProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), column :: ColumnIdentifierProperty
column = ColumnIdentifierProperty
column, fieldId :: Value Text
fieldId = Value Text
fieldId,
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
aggregationFunction = Maybe NumericalAggregationFunctionProperty
forall a. Maybe a
Prelude.Nothing,
formatConfiguration :: Maybe NumberFormatConfigurationProperty
formatConfiguration = Maybe NumberFormatConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NumericalMeasureFieldProperty where
toResourceProperties :: NumericalMeasureFieldProperty -> ResourceProperties
toResourceProperties NumericalMeasureFieldProperty {Maybe NumericalAggregationFunctionProperty
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalMeasureFieldProperty -> ()
aggregationFunction :: NumericalMeasureFieldProperty
-> Maybe NumericalAggregationFunctionProperty
column :: NumericalMeasureFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalMeasureFieldProperty -> Value Text
formatConfiguration :: NumericalMeasureFieldProperty
-> Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.NumericalMeasureField",
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
"Column" Key -> ColumnIdentifierProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ColumnIdentifierProperty
column, 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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> NumericalAggregationFunctionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AggregationFunction" (NumericalAggregationFunctionProperty -> (Key, Value))
-> Maybe NumericalAggregationFunctionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumericalAggregationFunctionProperty
aggregationFunction,
Key -> NumberFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FormatConfiguration" (NumberFormatConfigurationProperty -> (Key, Value))
-> Maybe NumberFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumberFormatConfigurationProperty
formatConfiguration]))}
instance JSON.ToJSON NumericalMeasureFieldProperty where
toJSON :: NumericalMeasureFieldProperty -> Value
toJSON NumericalMeasureFieldProperty {Maybe NumericalAggregationFunctionProperty
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalMeasureFieldProperty -> ()
aggregationFunction :: NumericalMeasureFieldProperty
-> Maybe NumericalAggregationFunctionProperty
column :: NumericalMeasureFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalMeasureFieldProperty -> Value Text
formatConfiguration :: NumericalMeasureFieldProperty
-> Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
= [(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
"Column" Key -> ColumnIdentifierProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ColumnIdentifierProperty
column, 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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> NumericalAggregationFunctionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AggregationFunction" (NumericalAggregationFunctionProperty -> (Key, Value))
-> Maybe NumericalAggregationFunctionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumericalAggregationFunctionProperty
aggregationFunction,
Key -> NumberFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FormatConfiguration" (NumberFormatConfigurationProperty -> (Key, Value))
-> Maybe NumberFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumberFormatConfigurationProperty
formatConfiguration])))
instance Property "AggregationFunction" NumericalMeasureFieldProperty where
type PropertyType "AggregationFunction" NumericalMeasureFieldProperty = NumericalAggregationFunctionProperty
set :: PropertyType "AggregationFunction" NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> NumericalMeasureFieldProperty
set PropertyType "AggregationFunction" NumericalMeasureFieldProperty
newValue NumericalMeasureFieldProperty {Maybe NumericalAggregationFunctionProperty
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalMeasureFieldProperty -> ()
aggregationFunction :: NumericalMeasureFieldProperty
-> Maybe NumericalAggregationFunctionProperty
column :: NumericalMeasureFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalMeasureFieldProperty -> Value Text
formatConfiguration :: NumericalMeasureFieldProperty
-> Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
= NumericalMeasureFieldProperty
{aggregationFunction :: Maybe NumericalAggregationFunctionProperty
aggregationFunction = NumericalAggregationFunctionProperty
-> Maybe NumericalAggregationFunctionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AggregationFunction" NumericalMeasureFieldProperty
NumericalAggregationFunctionProperty
newValue, Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
instance Property "Column" NumericalMeasureFieldProperty where
type PropertyType "Column" NumericalMeasureFieldProperty = ColumnIdentifierProperty
set :: PropertyType "Column" NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> NumericalMeasureFieldProperty
set PropertyType "Column" NumericalMeasureFieldProperty
newValue NumericalMeasureFieldProperty {Maybe NumericalAggregationFunctionProperty
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalMeasureFieldProperty -> ()
aggregationFunction :: NumericalMeasureFieldProperty
-> Maybe NumericalAggregationFunctionProperty
column :: NumericalMeasureFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalMeasureFieldProperty -> Value Text
formatConfiguration :: NumericalMeasureFieldProperty
-> Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
= NumericalMeasureFieldProperty {column :: ColumnIdentifierProperty
column = PropertyType "Column" NumericalMeasureFieldProperty
ColumnIdentifierProperty
newValue, Maybe NumericalAggregationFunctionProperty
Maybe NumberFormatConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
instance Property "FieldId" NumericalMeasureFieldProperty where
type PropertyType "FieldId" NumericalMeasureFieldProperty = Value Prelude.Text
set :: PropertyType "FieldId" NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> NumericalMeasureFieldProperty
set PropertyType "FieldId" NumericalMeasureFieldProperty
newValue NumericalMeasureFieldProperty {Maybe NumericalAggregationFunctionProperty
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalMeasureFieldProperty -> ()
aggregationFunction :: NumericalMeasureFieldProperty
-> Maybe NumericalAggregationFunctionProperty
column :: NumericalMeasureFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalMeasureFieldProperty -> Value Text
formatConfiguration :: NumericalMeasureFieldProperty
-> Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
= NumericalMeasureFieldProperty {fieldId :: Value Text
fieldId = PropertyType "FieldId" NumericalMeasureFieldProperty
Value Text
newValue, Maybe NumericalAggregationFunctionProperty
Maybe NumberFormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
instance Property "FormatConfiguration" NumericalMeasureFieldProperty where
type PropertyType "FormatConfiguration" NumericalMeasureFieldProperty = NumberFormatConfigurationProperty
set :: PropertyType "FormatConfiguration" NumericalMeasureFieldProperty
-> NumericalMeasureFieldProperty -> NumericalMeasureFieldProperty
set PropertyType "FormatConfiguration" NumericalMeasureFieldProperty
newValue NumericalMeasureFieldProperty {Maybe NumericalAggregationFunctionProperty
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalMeasureFieldProperty -> ()
aggregationFunction :: NumericalMeasureFieldProperty
-> Maybe NumericalAggregationFunctionProperty
column :: NumericalMeasureFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalMeasureFieldProperty -> Value Text
formatConfiguration :: NumericalMeasureFieldProperty
-> Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}
= NumericalMeasureFieldProperty
{formatConfiguration :: Maybe NumberFormatConfigurationProperty
formatConfiguration = NumberFormatConfigurationProperty
-> Maybe NumberFormatConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FormatConfiguration" NumericalMeasureFieldProperty
NumberFormatConfigurationProperty
newValue, Maybe NumericalAggregationFunctionProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
fieldId :: Value Text
haddock_workaround_ :: ()
aggregationFunction :: Maybe NumericalAggregationFunctionProperty
column :: ColumnIdentifierProperty
fieldId :: Value Text
..}