module Stratosphere.QuickSight.Analysis.ExplicitHierarchyProperty (
module Exports, ExplicitHierarchyProperty(..),
mkExplicitHierarchyProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.ColumnIdentifierProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.DrillDownFilterProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ExplicitHierarchyProperty
=
ExplicitHierarchyProperty {ExplicitHierarchyProperty -> ()
haddock_workaround_ :: (),
ExplicitHierarchyProperty -> [ColumnIdentifierProperty]
columns :: [ColumnIdentifierProperty],
ExplicitHierarchyProperty -> Maybe [DrillDownFilterProperty]
drillDownFilters :: (Prelude.Maybe [DrillDownFilterProperty]),
ExplicitHierarchyProperty -> Value Text
hierarchyId :: (Value Prelude.Text)}
deriving stock (ExplicitHierarchyProperty -> ExplicitHierarchyProperty -> Bool
(ExplicitHierarchyProperty -> ExplicitHierarchyProperty -> Bool)
-> (ExplicitHierarchyProperty -> ExplicitHierarchyProperty -> Bool)
-> Eq ExplicitHierarchyProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ExplicitHierarchyProperty -> ExplicitHierarchyProperty -> Bool
== :: ExplicitHierarchyProperty -> ExplicitHierarchyProperty -> Bool
$c/= :: ExplicitHierarchyProperty -> ExplicitHierarchyProperty -> Bool
/= :: ExplicitHierarchyProperty -> ExplicitHierarchyProperty -> Bool
Prelude.Eq, Int -> ExplicitHierarchyProperty -> ShowS
[ExplicitHierarchyProperty] -> ShowS
ExplicitHierarchyProperty -> String
(Int -> ExplicitHierarchyProperty -> ShowS)
-> (ExplicitHierarchyProperty -> String)
-> ([ExplicitHierarchyProperty] -> ShowS)
-> Show ExplicitHierarchyProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ExplicitHierarchyProperty -> ShowS
showsPrec :: Int -> ExplicitHierarchyProperty -> ShowS
$cshow :: ExplicitHierarchyProperty -> String
show :: ExplicitHierarchyProperty -> String
$cshowList :: [ExplicitHierarchyProperty] -> ShowS
showList :: [ExplicitHierarchyProperty] -> ShowS
Prelude.Show)
mkExplicitHierarchyProperty ::
[ColumnIdentifierProperty]
-> Value Prelude.Text -> ExplicitHierarchyProperty
mkExplicitHierarchyProperty :: [ColumnIdentifierProperty]
-> Value Text -> ExplicitHierarchyProperty
mkExplicitHierarchyProperty [ColumnIdentifierProperty]
columns Value Text
hierarchyId
= ExplicitHierarchyProperty
{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 ExplicitHierarchyProperty where
toResourceProperties :: ExplicitHierarchyProperty -> ResourceProperties
toResourceProperties ExplicitHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: ExplicitHierarchyProperty -> ()
columns :: ExplicitHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: ExplicitHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: ExplicitHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.ExplicitHierarchy",
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 ExplicitHierarchyProperty where
toJSON :: ExplicitHierarchyProperty -> Value
toJSON ExplicitHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: ExplicitHierarchyProperty -> ()
columns :: ExplicitHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: ExplicitHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: ExplicitHierarchyProperty -> 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" ExplicitHierarchyProperty where
type PropertyType "Columns" ExplicitHierarchyProperty = [ColumnIdentifierProperty]
set :: PropertyType "Columns" ExplicitHierarchyProperty
-> ExplicitHierarchyProperty -> ExplicitHierarchyProperty
set PropertyType "Columns" ExplicitHierarchyProperty
newValue ExplicitHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: ExplicitHierarchyProperty -> ()
columns :: ExplicitHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: ExplicitHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: ExplicitHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= ExplicitHierarchyProperty {columns :: [ColumnIdentifierProperty]
columns = [ColumnIdentifierProperty]
PropertyType "Columns" ExplicitHierarchyProperty
newValue, Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: ()
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
haddock_workaround_ :: ()
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
instance Property "DrillDownFilters" ExplicitHierarchyProperty where
type PropertyType "DrillDownFilters" ExplicitHierarchyProperty = [DrillDownFilterProperty]
set :: PropertyType "DrillDownFilters" ExplicitHierarchyProperty
-> ExplicitHierarchyProperty -> ExplicitHierarchyProperty
set PropertyType "DrillDownFilters" ExplicitHierarchyProperty
newValue ExplicitHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: ExplicitHierarchyProperty -> ()
columns :: ExplicitHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: ExplicitHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: ExplicitHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= ExplicitHierarchyProperty
{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" ExplicitHierarchyProperty
newValue, [ColumnIdentifierProperty]
()
Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
hierarchyId :: Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
hierarchyId :: Value Text
..}
instance Property "HierarchyId" ExplicitHierarchyProperty where
type PropertyType "HierarchyId" ExplicitHierarchyProperty = Value Prelude.Text
set :: PropertyType "HierarchyId" ExplicitHierarchyProperty
-> ExplicitHierarchyProperty -> ExplicitHierarchyProperty
set PropertyType "HierarchyId" ExplicitHierarchyProperty
newValue ExplicitHierarchyProperty {[ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
Value Text
haddock_workaround_ :: ExplicitHierarchyProperty -> ()
columns :: ExplicitHierarchyProperty -> [ColumnIdentifierProperty]
drillDownFilters :: ExplicitHierarchyProperty -> Maybe [DrillDownFilterProperty]
hierarchyId :: ExplicitHierarchyProperty -> Value Text
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
hierarchyId :: Value Text
..}
= ExplicitHierarchyProperty {hierarchyId :: Value Text
hierarchyId = PropertyType "HierarchyId" ExplicitHierarchyProperty
Value Text
newValue, [ColumnIdentifierProperty]
Maybe [DrillDownFilterProperty]
()
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
haddock_workaround_ :: ()
columns :: [ColumnIdentifierProperty]
drillDownFilters :: Maybe [DrillDownFilterProperty]
..}