module Stratosphere.QuickSight.Dashboard.PieChartSortConfigurationProperty (
module Exports, PieChartSortConfigurationProperty(..),
mkPieChartSortConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.FieldSortOptionsProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ItemsLimitConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data PieChartSortConfigurationProperty
=
PieChartSortConfigurationProperty {PieChartSortConfigurationProperty -> ()
haddock_workaround_ :: (),
PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categoryItemsLimit :: (Prelude.Maybe ItemsLimitConfigurationProperty),
PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
categorySort :: (Prelude.Maybe [FieldSortOptionsProperty]),
PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
smallMultiplesLimitConfiguration :: (Prelude.Maybe ItemsLimitConfigurationProperty),
PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
smallMultiplesSort :: (Prelude.Maybe [FieldSortOptionsProperty])}
deriving stock (PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty -> Bool
(PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty -> Bool)
-> (PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty -> Bool)
-> Eq PieChartSortConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty -> Bool
== :: PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty -> Bool
$c/= :: PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty -> Bool
/= :: PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty -> Bool
Prelude.Eq, Int -> PieChartSortConfigurationProperty -> ShowS
[PieChartSortConfigurationProperty] -> ShowS
PieChartSortConfigurationProperty -> String
(Int -> PieChartSortConfigurationProperty -> ShowS)
-> (PieChartSortConfigurationProperty -> String)
-> ([PieChartSortConfigurationProperty] -> ShowS)
-> Show PieChartSortConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PieChartSortConfigurationProperty -> ShowS
showsPrec :: Int -> PieChartSortConfigurationProperty -> ShowS
$cshow :: PieChartSortConfigurationProperty -> String
show :: PieChartSortConfigurationProperty -> String
$cshowList :: [PieChartSortConfigurationProperty] -> ShowS
showList :: [PieChartSortConfigurationProperty] -> ShowS
Prelude.Show)
mkPieChartSortConfigurationProperty ::
PieChartSortConfigurationProperty
mkPieChartSortConfigurationProperty :: PieChartSortConfigurationProperty
mkPieChartSortConfigurationProperty
= PieChartSortConfigurationProperty
{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,
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesLimitConfiguration = Maybe ItemsLimitConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
smallMultiplesSort = Maybe [FieldSortOptionsProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PieChartSortConfigurationProperty where
toResourceProperties :: PieChartSortConfigurationProperty -> ResourceProperties
toResourceProperties PieChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: PieChartSortConfigurationProperty -> ()
categoryItemsLimit :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.PieChartSortConfiguration",
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
"SmallMultiplesLimitConfiguration"
(ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
smallMultiplesLimitConfiguration,
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
"SmallMultiplesSort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
smallMultiplesSort])}
instance JSON.ToJSON PieChartSortConfigurationProperty where
toJSON :: PieChartSortConfigurationProperty -> Value
toJSON PieChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: PieChartSortConfigurationProperty -> ()
categoryItemsLimit :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: 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
"SmallMultiplesLimitConfiguration"
(ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
smallMultiplesLimitConfiguration,
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
"SmallMultiplesSort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
smallMultiplesSort]))
instance Property "CategoryItemsLimit" PieChartSortConfigurationProperty where
type PropertyType "CategoryItemsLimit" PieChartSortConfigurationProperty = ItemsLimitConfigurationProperty
set :: PropertyType "CategoryItemsLimit" PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty
set PropertyType "CategoryItemsLimit" PieChartSortConfigurationProperty
newValue PieChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: PieChartSortConfigurationProperty -> ()
categoryItemsLimit :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
..}
= PieChartSortConfigurationProperty
{categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categoryItemsLimit = ItemsLimitConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CategoryItemsLimit" PieChartSortConfigurationProperty
ItemsLimitConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "CategorySort" PieChartSortConfigurationProperty where
type PropertyType "CategorySort" PieChartSortConfigurationProperty = [FieldSortOptionsProperty]
set :: PropertyType "CategorySort" PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty
set PropertyType "CategorySort" PieChartSortConfigurationProperty
newValue PieChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: PieChartSortConfigurationProperty -> ()
categoryItemsLimit :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
..}
= PieChartSortConfigurationProperty
{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" PieChartSortConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "SmallMultiplesLimitConfiguration" PieChartSortConfigurationProperty where
type PropertyType "SmallMultiplesLimitConfiguration" PieChartSortConfigurationProperty = ItemsLimitConfigurationProperty
set :: PropertyType
"SmallMultiplesLimitConfiguration"
PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty
set PropertyType
"SmallMultiplesLimitConfiguration"
PieChartSortConfigurationProperty
newValue PieChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: PieChartSortConfigurationProperty -> ()
categoryItemsLimit :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
..}
= PieChartSortConfigurationProperty
{smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesLimitConfiguration = ItemsLimitConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SmallMultiplesLimitConfiguration"
PieChartSortConfigurationProperty
ItemsLimitConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "SmallMultiplesSort" PieChartSortConfigurationProperty where
type PropertyType "SmallMultiplesSort" PieChartSortConfigurationProperty = [FieldSortOptionsProperty]
set :: PropertyType "SmallMultiplesSort" PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty
-> PieChartSortConfigurationProperty
set PropertyType "SmallMultiplesSort" PieChartSortConfigurationProperty
newValue PieChartSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: PieChartSortConfigurationProperty -> ()
categoryItemsLimit :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
categorySort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: PieChartSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: PieChartSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
..}
= PieChartSortConfigurationProperty
{smallMultiplesSort :: Maybe [FieldSortOptionsProperty]
smallMultiplesSort = [FieldSortOptionsProperty] -> Maybe [FieldSortOptionsProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FieldSortOptionsProperty]
PropertyType "SmallMultiplesSort" PieChartSortConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
haddock_workaround_ :: ()
categoryItemsLimit :: Maybe ItemsLimitConfigurationProperty
categorySort :: Maybe [FieldSortOptionsProperty]
smallMultiplesLimitConfiguration :: Maybe ItemsLimitConfigurationProperty
..}