module Stratosphere.QuickSight.Analysis.BodySectionDynamicCategoryDimensionConfigurationProperty (
module Exports,
BodySectionDynamicCategoryDimensionConfigurationProperty(..),
mkBodySectionDynamicCategoryDimensionConfigurationProperty
) 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.ColumnSortProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BodySectionDynamicCategoryDimensionConfigurationProperty
=
BodySectionDynamicCategoryDimensionConfigurationProperty {BodySectionDynamicCategoryDimensionConfigurationProperty -> ()
haddock_workaround_ :: (),
BodySectionDynamicCategoryDimensionConfigurationProperty
-> ColumnIdentifierProperty
column :: ColumnIdentifierProperty,
BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe (Value Double)
limit :: (Prelude.Maybe (Value Prelude.Double)),
BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
sortByMetrics :: (Prelude.Maybe [ColumnSortProperty])}
deriving stock (BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty -> Bool
(BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> Bool)
-> (BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> Bool)
-> Eq BodySectionDynamicCategoryDimensionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty -> Bool
== :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty -> Bool
$c/= :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty -> Bool
/= :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty -> Bool
Prelude.Eq, Int
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> ShowS
[BodySectionDynamicCategoryDimensionConfigurationProperty] -> ShowS
BodySectionDynamicCategoryDimensionConfigurationProperty -> String
(Int
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> ShowS)
-> (BodySectionDynamicCategoryDimensionConfigurationProperty
-> String)
-> ([BodySectionDynamicCategoryDimensionConfigurationProperty]
-> ShowS)
-> Show BodySectionDynamicCategoryDimensionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> ShowS
showsPrec :: Int
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> ShowS
$cshow :: BodySectionDynamicCategoryDimensionConfigurationProperty -> String
show :: BodySectionDynamicCategoryDimensionConfigurationProperty -> String
$cshowList :: [BodySectionDynamicCategoryDimensionConfigurationProperty] -> ShowS
showList :: [BodySectionDynamicCategoryDimensionConfigurationProperty] -> ShowS
Prelude.Show)
mkBodySectionDynamicCategoryDimensionConfigurationProperty ::
ColumnIdentifierProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
mkBodySectionDynamicCategoryDimensionConfigurationProperty :: ColumnIdentifierProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
mkBodySectionDynamicCategoryDimensionConfigurationProperty ColumnIdentifierProperty
column
= BodySectionDynamicCategoryDimensionConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), column :: ColumnIdentifierProperty
column = ColumnIdentifierProperty
column,
limit :: Maybe (Value Double)
limit = Maybe (Value Double)
forall a. Maybe a
Prelude.Nothing, sortByMetrics :: Maybe [ColumnSortProperty]
sortByMetrics = Maybe [ColumnSortProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties BodySectionDynamicCategoryDimensionConfigurationProperty where
toResourceProperties :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> ResourceProperties
toResourceProperties
BodySectionDynamicCategoryDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicCategoryDimensionConfigurationProperty -> ()
column :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.BodySectionDynamicCategoryDimensionConfiguration",
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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Limit" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
limit,
Key -> [ColumnSortProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SortByMetrics" ([ColumnSortProperty] -> (Key, Value))
-> Maybe [ColumnSortProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnSortProperty]
sortByMetrics]))}
instance JSON.ToJSON BodySectionDynamicCategoryDimensionConfigurationProperty where
toJSON :: BodySectionDynamicCategoryDimensionConfigurationProperty -> Value
toJSON
BodySectionDynamicCategoryDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicCategoryDimensionConfigurationProperty -> ()
column :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= [(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]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Double -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Limit" (Value Double -> (Key, Value))
-> Maybe (Value Double) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Double)
limit,
Key -> [ColumnSortProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SortByMetrics" ([ColumnSortProperty] -> (Key, Value))
-> Maybe [ColumnSortProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [ColumnSortProperty]
sortByMetrics])))
instance Property "Column" BodySectionDynamicCategoryDimensionConfigurationProperty where
type PropertyType "Column" BodySectionDynamicCategoryDimensionConfigurationProperty = ColumnIdentifierProperty
set :: PropertyType
"Column" BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
set
PropertyType
"Column" BodySectionDynamicCategoryDimensionConfigurationProperty
newValue
BodySectionDynamicCategoryDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicCategoryDimensionConfigurationProperty -> ()
column :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= BodySectionDynamicCategoryDimensionConfigurationProperty
{column :: ColumnIdentifierProperty
column = PropertyType
"Column" BodySectionDynamicCategoryDimensionConfigurationProperty
ColumnIdentifierProperty
newValue, Maybe [ColumnSortProperty]
Maybe (Value Double)
()
haddock_workaround_ :: ()
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
instance Property "Limit" BodySectionDynamicCategoryDimensionConfigurationProperty where
type PropertyType "Limit" BodySectionDynamicCategoryDimensionConfigurationProperty = Value Prelude.Double
set :: PropertyType
"Limit" BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
set
PropertyType
"Limit" BodySectionDynamicCategoryDimensionConfigurationProperty
newValue
BodySectionDynamicCategoryDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicCategoryDimensionConfigurationProperty -> ()
column :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= BodySectionDynamicCategoryDimensionConfigurationProperty
{limit :: Maybe (Value Double)
limit = Value Double -> Maybe (Value Double)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"Limit" BodySectionDynamicCategoryDimensionConfigurationProperty
Value Double
newValue, Maybe [ColumnSortProperty]
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
sortByMetrics :: Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
sortByMetrics :: Maybe [ColumnSortProperty]
..}
instance Property "SortByMetrics" BodySectionDynamicCategoryDimensionConfigurationProperty where
type PropertyType "SortByMetrics" BodySectionDynamicCategoryDimensionConfigurationProperty = [ColumnSortProperty]
set :: PropertyType
"SortByMetrics"
BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
-> BodySectionDynamicCategoryDimensionConfigurationProperty
set
PropertyType
"SortByMetrics"
BodySectionDynamicCategoryDimensionConfigurationProperty
newValue
BodySectionDynamicCategoryDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicCategoryDimensionConfigurationProperty -> ()
column :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicCategoryDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= BodySectionDynamicCategoryDimensionConfigurationProperty
{sortByMetrics :: Maybe [ColumnSortProperty]
sortByMetrics = [ColumnSortProperty] -> Maybe [ColumnSortProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [ColumnSortProperty]
PropertyType
"SortByMetrics"
BodySectionDynamicCategoryDimensionConfigurationProperty
newValue, Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
..}