module Stratosphere.QuickSight.Analysis.SankeyDiagramSortConfigurationProperty (
module Exports, SankeyDiagramSortConfigurationProperty(..),
mkSankeyDiagramSortConfigurationProperty
) 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 SankeyDiagramSortConfigurationProperty
=
SankeyDiagramSortConfigurationProperty {SankeyDiagramSortConfigurationProperty -> ()
haddock_workaround_ :: (),
SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
destinationItemsLimit :: (Prelude.Maybe ItemsLimitConfigurationProperty),
SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: (Prelude.Maybe ItemsLimitConfigurationProperty),
SankeyDiagramSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
weightSort :: (Prelude.Maybe [FieldSortOptionsProperty])}
deriving stock (SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty -> Bool
(SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty -> Bool)
-> (SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty -> Bool)
-> Eq SankeyDiagramSortConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty -> Bool
== :: SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty -> Bool
$c/= :: SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty -> Bool
/= :: SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty -> Bool
Prelude.Eq, Int -> SankeyDiagramSortConfigurationProperty -> ShowS
[SankeyDiagramSortConfigurationProperty] -> ShowS
SankeyDiagramSortConfigurationProperty -> String
(Int -> SankeyDiagramSortConfigurationProperty -> ShowS)
-> (SankeyDiagramSortConfigurationProperty -> String)
-> ([SankeyDiagramSortConfigurationProperty] -> ShowS)
-> Show SankeyDiagramSortConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SankeyDiagramSortConfigurationProperty -> ShowS
showsPrec :: Int -> SankeyDiagramSortConfigurationProperty -> ShowS
$cshow :: SankeyDiagramSortConfigurationProperty -> String
show :: SankeyDiagramSortConfigurationProperty -> String
$cshowList :: [SankeyDiagramSortConfigurationProperty] -> ShowS
showList :: [SankeyDiagramSortConfigurationProperty] -> ShowS
Prelude.Show)
mkSankeyDiagramSortConfigurationProperty ::
SankeyDiagramSortConfigurationProperty
mkSankeyDiagramSortConfigurationProperty :: SankeyDiagramSortConfigurationProperty
mkSankeyDiagramSortConfigurationProperty
= SankeyDiagramSortConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
destinationItemsLimit = Maybe ItemsLimitConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit = Maybe ItemsLimitConfigurationProperty
forall a. Maybe a
Prelude.Nothing, weightSort :: Maybe [FieldSortOptionsProperty]
weightSort = Maybe [FieldSortOptionsProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SankeyDiagramSortConfigurationProperty where
toResourceProperties :: SankeyDiagramSortConfigurationProperty -> ResourceProperties
toResourceProperties SankeyDiagramSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: SankeyDiagramSortConfigurationProperty -> ()
destinationItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
weightSort :: SankeyDiagramSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: Maybe [FieldSortOptionsProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.SankeyDiagramSortConfiguration",
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
"DestinationItemsLimit"
(ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
destinationItemsLimit,
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
"SourceItemsLimit" (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
sourceItemsLimit,
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
"WeightSort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
weightSort])}
instance JSON.ToJSON SankeyDiagramSortConfigurationProperty where
toJSON :: SankeyDiagramSortConfigurationProperty -> Value
toJSON SankeyDiagramSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: SankeyDiagramSortConfigurationProperty -> ()
destinationItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
weightSort :: SankeyDiagramSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: 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
"DestinationItemsLimit"
(ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
destinationItemsLimit,
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
"SourceItemsLimit" (ItemsLimitConfigurationProperty -> (Key, Value))
-> Maybe ItemsLimitConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ItemsLimitConfigurationProperty
sourceItemsLimit,
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
"WeightSort" ([FieldSortOptionsProperty] -> (Key, Value))
-> Maybe [FieldSortOptionsProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [FieldSortOptionsProperty]
weightSort]))
instance Property "DestinationItemsLimit" SankeyDiagramSortConfigurationProperty where
type PropertyType "DestinationItemsLimit" SankeyDiagramSortConfigurationProperty = ItemsLimitConfigurationProperty
set :: PropertyType
"DestinationItemsLimit" SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty
set PropertyType
"DestinationItemsLimit" SankeyDiagramSortConfigurationProperty
newValue SankeyDiagramSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: SankeyDiagramSortConfigurationProperty -> ()
destinationItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
weightSort :: SankeyDiagramSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: Maybe [FieldSortOptionsProperty]
..}
= SankeyDiagramSortConfigurationProperty
{destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
destinationItemsLimit = ItemsLimitConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"DestinationItemsLimit" SankeyDiagramSortConfigurationProperty
ItemsLimitConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "SourceItemsLimit" SankeyDiagramSortConfigurationProperty where
type PropertyType "SourceItemsLimit" SankeyDiagramSortConfigurationProperty = ItemsLimitConfigurationProperty
set :: PropertyType
"SourceItemsLimit" SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty
set PropertyType
"SourceItemsLimit" SankeyDiagramSortConfigurationProperty
newValue SankeyDiagramSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: SankeyDiagramSortConfigurationProperty -> ()
destinationItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
weightSort :: SankeyDiagramSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: Maybe [FieldSortOptionsProperty]
..}
= SankeyDiagramSortConfigurationProperty
{sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit = ItemsLimitConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"SourceItemsLimit" SankeyDiagramSortConfigurationProperty
ItemsLimitConfigurationProperty
newValue, Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: Maybe [FieldSortOptionsProperty]
..}
instance Property "WeightSort" SankeyDiagramSortConfigurationProperty where
type PropertyType "WeightSort" SankeyDiagramSortConfigurationProperty = [FieldSortOptionsProperty]
set :: PropertyType "WeightSort" SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty
-> SankeyDiagramSortConfigurationProperty
set PropertyType "WeightSort" SankeyDiagramSortConfigurationProperty
newValue SankeyDiagramSortConfigurationProperty {Maybe [FieldSortOptionsProperty]
Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: SankeyDiagramSortConfigurationProperty -> ()
destinationItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: SankeyDiagramSortConfigurationProperty
-> Maybe ItemsLimitConfigurationProperty
weightSort :: SankeyDiagramSortConfigurationProperty
-> Maybe [FieldSortOptionsProperty]
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
weightSort :: Maybe [FieldSortOptionsProperty]
..}
= SankeyDiagramSortConfigurationProperty
{weightSort :: Maybe [FieldSortOptionsProperty]
weightSort = [FieldSortOptionsProperty] -> Maybe [FieldSortOptionsProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [FieldSortOptionsProperty]
PropertyType "WeightSort" SankeyDiagramSortConfigurationProperty
newValue, Maybe ItemsLimitConfigurationProperty
()
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
haddock_workaround_ :: ()
destinationItemsLimit :: Maybe ItemsLimitConfigurationProperty
sourceItemsLimit :: Maybe ItemsLimitConfigurationProperty
..}