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