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