module Stratosphere.QuickSight.Dashboard.PredefinedHierarchyProperty (
module Exports, PredefinedHierarchyProperty(..),
mkPredefinedHierarchyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ColumnIdentifierProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.DrillDownFilterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data PredefinedHierarchyProperty
=
PredefinedHierarchyProperty {PredefinedHierarchyProperty -> ()
haddock_workaround_ :: (),
PredefinedHierarchyProperty -> [ColumnIdentifierProperty]
columns :: [ColumnIdentifierProperty],
PredefinedHierarchyProperty -> Maybe [DrillDownFilterProperty]
drillDownFilters :: (Prelude.Maybe [DrillDownFilterProperty]),
PredefinedHierarchyProperty -> Value Text
hierarchyId :: (Value Prelude.Text)}
deriving stock (PredefinedHierarchyProperty -> PredefinedHierarchyProperty -> Bool
(PredefinedHierarchyProperty
-> PredefinedHierarchyProperty -> Bool)
-> (PredefinedHierarchyProperty
-> PredefinedHierarchyProperty -> Bool)
-> Eq PredefinedHierarchyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PredefinedHierarchyProperty -> PredefinedHierarchyProperty -> Bool
== :: PredefinedHierarchyProperty -> PredefinedHierarchyProperty -> Bool
$c/= :: PredefinedHierarchyProperty -> PredefinedHierarchyProperty -> Bool
/= :: PredefinedHierarchyProperty -> PredefinedHierarchyProperty -> Bool
Prelude.Eq, Int -> PredefinedHierarchyProperty -> ShowS
[PredefinedHierarchyProperty] -> ShowS
PredefinedHierarchyProperty -> String
(Int -> PredefinedHierarchyProperty -> ShowS)
-> (PredefinedHierarchyProperty -> String)
-> ([PredefinedHierarchyProperty] -> ShowS)
-> Show PredefinedHierarchyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> PredefinedHierarchyProperty -> ShowS
showsPrec :: Int -> PredefinedHierarchyProperty -> ShowS
$cshow :: PredefinedHierarchyProperty -> String
show :: PredefinedHierarchyProperty -> String
$cshowList :: [PredefinedHierarchyProperty] -> ShowS
showList :: [PredefinedHierarchyProperty] -> ShowS
Prelude.Show)
mkPredefinedHierarchyProperty ::
[ColumnIdentifierProperty]
-> Value Prelude.Text -> PredefinedHierarchyProperty
mkPredefinedHierarchyProperty :: [ColumnIdentifierProperty]
-> Value Text -> PredefinedHierarchyProperty
mkPredefinedHierarchyProperty [ColumnIdentifierProperty]
columns Value Text
hierarchyId
= PredefinedHierarchyProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), columns :: [ColumnIdentifierProperty]
columns = [ColumnIdentifierProperty]
columns,
hierarchyId :: Value Text
hierarchyId = Value Text
hierarchyId, drillDownFilters :: Maybe [DrillDownFilterProperty]
drillDownFilters = Maybe [DrillDownFilterProperty]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties PredefinedHierarchyProperty where
toResourceProperties :: PredefinedHierarchyProperty -> ResourceProperties
toResourceProperties PredefinedHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: PredefinedHierarchyProperty -> ()
columns :: PredefinedHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: PredefinedHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: PredefinedHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.PredefinedHierarchy",
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
"Columns" 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]
columns, Key
"HierarchyId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
hierarchyId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [DrillDownFilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DrillDownFilters" ([DrillDownFilterProperty] -> (Key, Value))
-> Maybe [DrillDownFilterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DrillDownFilterProperty]
drillDownFilters]))}
instance JSON.ToJSON PredefinedHierarchyProperty where
toJSON :: PredefinedHierarchyProperty -> Value
toJSON PredefinedHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: PredefinedHierarchyProperty -> ()
columns :: PredefinedHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: PredefinedHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: PredefinedHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= [(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
"Columns" 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]
columns, Key
"HierarchyId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
hierarchyId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> [DrillDownFilterProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"DrillDownFilters" ([DrillDownFilterProperty] -> (Key, Value))
-> Maybe [DrillDownFilterProperty] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [DrillDownFilterProperty]
drillDownFilters])))
instance Property "Columns" PredefinedHierarchyProperty where
type PropertyType "Columns" PredefinedHierarchyProperty = [ColumnIdentifierProperty]
set :: PropertyType "Columns" PredefinedHierarchyProperty
-> PredefinedHierarchyProperty -> PredefinedHierarchyProperty
set PropertyType "Columns" PredefinedHierarchyProperty
newValue PredefinedHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: PredefinedHierarchyProperty -> ()
columns :: PredefinedHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: PredefinedHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: PredefinedHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= PredefinedHierarchyProperty {columns :: [ColumnIdentifierProperty]
columns = [ColumnIdentifierProperty]
PropertyType "Columns" PredefinedHierarchyProperty
newValue, Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: ()
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
haddock_workaround_ :: ()
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
instance Property "DrillDownFilters" PredefinedHierarchyProperty where
type PropertyType "DrillDownFilters" PredefinedHierarchyProperty = [DrillDownFilterProperty]
set :: PropertyType "DrillDownFilters" PredefinedHierarchyProperty
-> PredefinedHierarchyProperty -> PredefinedHierarchyProperty
set PropertyType "DrillDownFilters" PredefinedHierarchyProperty
newValue PredefinedHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: PredefinedHierarchyProperty -> ()
columns :: PredefinedHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: PredefinedHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: PredefinedHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= PredefinedHierarchyProperty
{drillDownFilters :: Maybe [DrillDownFilterProperty]
drillDownFilters = [DrillDownFilterProperty] -> Maybe [DrillDownFilterProperty]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [DrillDownFilterProperty]
PropertyType "DrillDownFilters" PredefinedHierarchyProperty
newValue, [ColumnIdentifierProperty]
()
Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
hierarchyId :: Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
hierarchyId :: Value Text
..}
instance Property "HierarchyId" PredefinedHierarchyProperty where
type PropertyType "HierarchyId" PredefinedHierarchyProperty = Value Prelude.Text
set :: PropertyType "HierarchyId" PredefinedHierarchyProperty
-> PredefinedHierarchyProperty -> PredefinedHierarchyProperty
set PropertyType "HierarchyId" PredefinedHierarchyProperty
newValue PredefinedHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: PredefinedHierarchyProperty -> ()
columns :: PredefinedHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: PredefinedHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: PredefinedHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= PredefinedHierarchyProperty {hierarchyId :: Value Text
hierarchyId = PropertyType "HierarchyId" PredefinedHierarchyProperty
Value Text
newValue, [ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
..}