module Stratosphere.QuickSight.Template.BodySectionDynamicNumericDimensionConfigurationProperty (
module Exports,
BodySectionDynamicNumericDimensionConfigurationProperty(..),
mkBodySectionDynamicNumericDimensionConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.ColumnIdentifierProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Template.ColumnSortProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data BodySectionDynamicNumericDimensionConfigurationProperty
=
BodySectionDynamicNumericDimensionConfigurationProperty {BodySectionDynamicNumericDimensionConfigurationProperty -> ()
haddock_workaround_ :: (),
BodySectionDynamicNumericDimensionConfigurationProperty
-> ColumnIdentifierProperty
column :: ColumnIdentifierProperty,
BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe (Value Double)
limit :: (Prelude.Maybe (Value Prelude.Double)),
BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
sortByMetrics :: (Prelude.Maybe [ColumnSortProperty])}
deriving stock (BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty -> Bool
(BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty -> Bool)
-> (BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty -> Bool)
-> Eq BodySectionDynamicNumericDimensionConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty -> Bool
== :: BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty -> Bool
$c/= :: BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty -> Bool
/= :: BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty -> Bool
Prelude.Eq, Int
-> BodySectionDynamicNumericDimensionConfigurationProperty -> ShowS
[BodySectionDynamicNumericDimensionConfigurationProperty] -> ShowS
BodySectionDynamicNumericDimensionConfigurationProperty -> String
(Int
-> BodySectionDynamicNumericDimensionConfigurationProperty
-> ShowS)
-> (BodySectionDynamicNumericDimensionConfigurationProperty
-> String)
-> ([BodySectionDynamicNumericDimensionConfigurationProperty]
-> ShowS)
-> Show BodySectionDynamicNumericDimensionConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int
-> BodySectionDynamicNumericDimensionConfigurationProperty -> ShowS
showsPrec :: Int
-> BodySectionDynamicNumericDimensionConfigurationProperty -> ShowS
$cshow :: BodySectionDynamicNumericDimensionConfigurationProperty -> String
show :: BodySectionDynamicNumericDimensionConfigurationProperty -> String
$cshowList :: [BodySectionDynamicNumericDimensionConfigurationProperty] -> ShowS
showList :: [BodySectionDynamicNumericDimensionConfigurationProperty] -> ShowS
Prelude.Show)
mkBodySectionDynamicNumericDimensionConfigurationProperty ::
ColumnIdentifierProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty
mkBodySectionDynamicNumericDimensionConfigurationProperty :: ColumnIdentifierProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty
mkBodySectionDynamicNumericDimensionConfigurationProperty ColumnIdentifierProperty
column
= BodySectionDynamicNumericDimensionConfigurationProperty
{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 BodySectionDynamicNumericDimensionConfigurationProperty where
toResourceProperties :: BodySectionDynamicNumericDimensionConfigurationProperty
-> ResourceProperties
toResourceProperties
BodySectionDynamicNumericDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicNumericDimensionConfigurationProperty -> ()
column :: BodySectionDynamicNumericDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.BodySectionDynamicNumericDimensionConfiguration",
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 BodySectionDynamicNumericDimensionConfigurationProperty where
toJSON :: BodySectionDynamicNumericDimensionConfigurationProperty -> Value
toJSON BodySectionDynamicNumericDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicNumericDimensionConfigurationProperty -> ()
column :: BodySectionDynamicNumericDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicNumericDimensionConfigurationProperty
-> 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" BodySectionDynamicNumericDimensionConfigurationProperty where
type PropertyType "Column" BodySectionDynamicNumericDimensionConfigurationProperty = ColumnIdentifierProperty
set :: PropertyType
"Column" BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty
set
PropertyType
"Column" BodySectionDynamicNumericDimensionConfigurationProperty
newValue
BodySectionDynamicNumericDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicNumericDimensionConfigurationProperty -> ()
column :: BodySectionDynamicNumericDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= BodySectionDynamicNumericDimensionConfigurationProperty
{column :: ColumnIdentifierProperty
column = PropertyType
"Column" BodySectionDynamicNumericDimensionConfigurationProperty
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" BodySectionDynamicNumericDimensionConfigurationProperty where
type PropertyType "Limit" BodySectionDynamicNumericDimensionConfigurationProperty = Value Prelude.Double
set :: PropertyType
"Limit" BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty
set
PropertyType
"Limit" BodySectionDynamicNumericDimensionConfigurationProperty
newValue
BodySectionDynamicNumericDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicNumericDimensionConfigurationProperty -> ()
column :: BodySectionDynamicNumericDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= BodySectionDynamicNumericDimensionConfigurationProperty
{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" BodySectionDynamicNumericDimensionConfigurationProperty
Value Double
newValue, Maybe [ColumnSortProperty]
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
sortByMetrics :: Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
sortByMetrics :: Maybe [ColumnSortProperty]
..}
instance Property "SortByMetrics" BodySectionDynamicNumericDimensionConfigurationProperty where
type PropertyType "SortByMetrics" BodySectionDynamicNumericDimensionConfigurationProperty = [ColumnSortProperty]
set :: PropertyType
"SortByMetrics"
BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty
-> BodySectionDynamicNumericDimensionConfigurationProperty
set
PropertyType
"SortByMetrics"
BodySectionDynamicNumericDimensionConfigurationProperty
newValue
BodySectionDynamicNumericDimensionConfigurationProperty {Maybe [ColumnSortProperty]
Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: BodySectionDynamicNumericDimensionConfigurationProperty -> ()
column :: BodySectionDynamicNumericDimensionConfigurationProperty
-> ColumnIdentifierProperty
limit :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe (Value Double)
sortByMetrics :: BodySectionDynamicNumericDimensionConfigurationProperty
-> Maybe [ColumnSortProperty]
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
sortByMetrics :: Maybe [ColumnSortProperty]
..}
= BodySectionDynamicNumericDimensionConfigurationProperty
{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"
BodySectionDynamicNumericDimensionConfigurationProperty
newValue, Maybe (Value Double)
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
limit :: Maybe (Value Double)
..}