module Stratosphere.QuickSight.Analysis.ComboChartSortConfigurationProperty (
module Exports, ComboChartSortConfigurationProperty(..),
mkComboChartSortConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.FieldSortOptionsProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.ItemsLimitConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data ComboChartSortConfigurationProperty
=
ComboChartSortConfigurationProperty {ComboChartSortConfigurationProperty -> ()
haddock_workaround_ :: (),
ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categoryItemsLimit :: (Prelude.Maybe ItemsLimitConfigurationProperty),
ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
categorySort :: (Prelude.Maybe [FieldSortOptionsProperty]),
ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
colorItemsLimit :: (Prelude.Maybe ItemsLimitConfigurationProperty),
ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
colorSort :: (Prelude.Maybe [FieldSortOptionsProperty])}
deriving stock (ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty -> Bool
(ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty -> Bool)
-> (ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty -> Bool)
-> Eq ComboChartSortConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty -> Bool
== :: ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty -> Bool
$c/= :: ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty -> Bool
/= :: ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty -> Bool
Prelude.Eq, Int -> ComboChartSortConfigurationProperty -> ShowS
[ComboChartSortConfigurationProperty] -> ShowS
ComboChartSortConfigurationProperty -> String
(Int -> ComboChartSortConfigurationProperty -> ShowS)
-> (ComboChartSortConfigurationProperty -> String)
-> ([ComboChartSortConfigurationProperty] -> ShowS)
-> Show ComboChartSortConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ComboChartSortConfigurationProperty -> ShowS
showsPrec :: Int -> ComboChartSortConfigurationProperty -> ShowS
$cshow :: ComboChartSortConfigurationProperty -> String
show :: ComboChartSortConfigurationProperty -> String
$cshowList :: [ComboChartSortConfigurationProperty] -> ShowS
showList :: [ComboChartSortConfigurationProperty] -> ShowS
Prelude.Show)
mkComboChartSortConfigurationProperty ::
ComboChartSortConfigurationProperty
mkComboChartSortConfigurationProperty :: ComboChartSortConfigurationProperty
mkComboChartSortConfigurationProperty
= ComboChartSortConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categoryItemsLimit = Maybe ItemsLimitConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
categorySort :: Maybe [FieldSortOptionsProperty]
categorySort = Maybe [FieldSortOptionsProperty]
forall a. Maybe a
Prelude.Nothing, colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorItemsLimit = Maybe ItemsLimitConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
colorSort :: Maybe [FieldSortOptionsProperty]
colorSort = Maybe [FieldSortOptionsProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ComboChartSortConfigurationProperty where
toResourceProperties :: ComboChartSortConfigurationProperty -> ResourceProperties
toResourceProperties ComboChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ComboChartSortConfigurationProperty -> ()
categoryItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
colorItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
colorSort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.ComboChartSortConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ItemsLimitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CategoryItemsLimit" (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
categoryItemsLimit,
Key -> [FieldSortOptionsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CategorySort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
categorySort,
Key -> ItemsLimitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColorItemsLimit" (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
colorItemsLimit,
Key -> [FieldSortOptionsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColorSort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
colorSort])}
instance JSON.ToJSON ComboChartSortConfigurationProperty where
toJSON :: ComboChartSortConfigurationProperty -> Value
toJSON ComboChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ComboChartSortConfigurationProperty -> ()
categoryItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
colorItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
colorSort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ItemsLimitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CategoryItemsLimit" (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
categoryItemsLimit,
Key -> [FieldSortOptionsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CategorySort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
categorySort,
Key -> ItemsLimitConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColorItemsLimit" (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
colorItemsLimit,
Key -> [FieldSortOptionsProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColorSort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
colorSort]))
instance Property "CategoryItemsLimit" ComboChartSortConfigurationProperty where
type PropertyType "CategoryItemsLimit" ComboChartSortConfigurationProperty = ItemsLimitConfigurationProperty
set :: PropertyType
"CategoryItemsLimit" ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty
set PropertyType
"CategoryItemsLimit" ComboChartSortConfigurationProperty
newValue ComboChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ComboChartSortConfigurationProperty -> ()
categoryItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
colorItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
colorSort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
..}
= ComboChartSortConfigurationProperty
{categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categoryItemsLimit = ItemsLimitConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"CategoryItemsLimit" ComboChartSortConfigurationProperty
ItemsLimitConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "CategorySort" ComboChartSortConfigurationProperty where
type PropertyType "CategorySort" ComboChartSortConfigurationProperty = [FieldSortOptionsProperty]
set :: PropertyType "CategorySort" ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty
set PropertyType "CategorySort" ComboChartSortConfigurationProperty
newValue ComboChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ComboChartSortConfigurationProperty -> ()
categoryItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
colorItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
colorSort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
..}
= ComboChartSortConfigurationProperty
{categorySort :: Maybe [FieldSortOptionsProperty]
categorySort = [FieldSortOptionsProperty] -> Maybe [FieldSortOptionsProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FieldSortOptionsProperty]
PropertyType "CategorySort" ComboChartSortConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "ColorItemsLimit" ComboChartSortConfigurationProperty where
type PropertyType "ColorItemsLimit" ComboChartSortConfigurationProperty = ItemsLimitConfigurationProperty
set :: PropertyType "ColorItemsLimit" ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty
set PropertyType "ColorItemsLimit" ComboChartSortConfigurationProperty
newValue ComboChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ComboChartSortConfigurationProperty -> ()
categoryItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
colorItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
colorSort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
..}
= ComboChartSortConfigurationProperty
{colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorItemsLimit = ItemsLimitConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ColorItemsLimit" ComboChartSortConfigurationProperty
ItemsLimitConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "ColorSort" ComboChartSortConfigurationProperty where
type PropertyType "ColorSort" ComboChartSortConfigurationProperty = [FieldSortOptionsProperty]
set :: PropertyType "ColorSort" ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty
-> ComboChartSortConfigurationProperty
set PropertyType "ColorSort" ComboChartSortConfigurationProperty
newValue ComboChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ComboChartSortConfigurationProperty -> ()
categoryItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
colorItemsLimit :: ComboChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
colorSort :: ComboChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
colorSort :: Maybe [FieldSortOptionsProperty]
..}
= ComboChartSortConfigurationProperty
{colorSort :: Maybe [FieldSortOptionsProperty]
colorSort = [FieldSortOptionsProperty] -> Maybe [FieldSortOptionsProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FieldSortOptionsProperty]
PropertyType "ColorSort" ComboChartSortConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
colorItemsLimit :: Maybe ItemsLimitConfigurationProperty
..}