module Stratosphere.QuickSight.Dashboard.RollingDateConfigurationProperty (
RollingDateConfigurationProperty(..),
mkRollingDateConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data RollingDateConfigurationProperty
=
RollingDateConfigurationProperty {RollingDateConfigurationProperty -> ()
haddock_workaround_ :: (),
RollingDateConfigurationProperty -> Maybe (Value Text)
dataSetIdentifier :: (Prelude.Maybe (Value Prelude.Text)),
RollingDateConfigurationProperty -> Value Text
expression :: (Value Prelude.Text)}
deriving stock (RollingDateConfigurationProperty
-> RollingDateConfigurationProperty -> Bool
(RollingDateConfigurationProperty
-> RollingDateConfigurationProperty -> Bool)
-> (RollingDateConfigurationProperty
-> RollingDateConfigurationProperty -> Bool)
-> Eq RollingDateConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RollingDateConfigurationProperty
-> RollingDateConfigurationProperty -> Bool
== :: RollingDateConfigurationProperty
-> RollingDateConfigurationProperty -> Bool
$c/= :: RollingDateConfigurationProperty
-> RollingDateConfigurationProperty -> Bool
/= :: RollingDateConfigurationProperty
-> RollingDateConfigurationProperty -> Bool
Prelude.Eq, Int -> RollingDateConfigurationProperty -> ShowS
[RollingDateConfigurationProperty] -> ShowS
RollingDateConfigurationProperty -> String
(Int -> RollingDateConfigurationProperty -> ShowS)
-> (RollingDateConfigurationProperty -> String)
-> ([RollingDateConfigurationProperty] -> ShowS)
-> Show RollingDateConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> RollingDateConfigurationProperty -> ShowS
showsPrec :: Int -> RollingDateConfigurationProperty -> ShowS
$cshow :: RollingDateConfigurationProperty -> String
show :: RollingDateConfigurationProperty -> String
$cshowList :: [RollingDateConfigurationProperty] -> ShowS
showList :: [RollingDateConfigurationProperty] -> ShowS
Prelude.Show)
mkRollingDateConfigurationProperty ::
Value Prelude.Text -> RollingDateConfigurationProperty
mkRollingDateConfigurationProperty :: Value Text -> RollingDateConfigurationProperty
mkRollingDateConfigurationProperty Value Text
expression
= RollingDateConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), expression :: Value Text
expression = Value Text
expression,
dataSetIdentifier :: Maybe (Value Text)
dataSetIdentifier = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties RollingDateConfigurationProperty where
toResourceProperties :: RollingDateConfigurationProperty -> ResourceProperties
toResourceProperties RollingDateConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RollingDateConfigurationProperty -> ()
dataSetIdentifier :: RollingDateConfigurationProperty -> Maybe (Value Text)
expression :: RollingDateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Maybe (Value Text)
expression :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.RollingDateConfiguration",
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
"Expression" 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
expression]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"DataSetIdentifier" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
dataSetIdentifier]))}
instance JSON.ToJSON RollingDateConfigurationProperty where
toJSON :: RollingDateConfigurationProperty -> Value
toJSON RollingDateConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RollingDateConfigurationProperty -> ()
dataSetIdentifier :: RollingDateConfigurationProperty -> Maybe (Value Text)
expression :: RollingDateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Maybe (Value Text)
expression :: 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
"Expression" 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
expression]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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..=) Key
"DataSetIdentifier" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
dataSetIdentifier])))
instance Property "DataSetIdentifier" RollingDateConfigurationProperty where
type PropertyType "DataSetIdentifier" RollingDateConfigurationProperty = Value Prelude.Text
set :: PropertyType "DataSetIdentifier" RollingDateConfigurationProperty
-> RollingDateConfigurationProperty
-> RollingDateConfigurationProperty
set PropertyType "DataSetIdentifier" RollingDateConfigurationProperty
newValue RollingDateConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RollingDateConfigurationProperty -> ()
dataSetIdentifier :: RollingDateConfigurationProperty -> Maybe (Value Text)
expression :: RollingDateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Maybe (Value Text)
expression :: Value Text
..}
= RollingDateConfigurationProperty
{dataSetIdentifier :: Maybe (Value Text)
dataSetIdentifier = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "DataSetIdentifier" RollingDateConfigurationProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
expression :: Value Text
haddock_workaround_ :: ()
expression :: Value Text
..}
instance Property "Expression" RollingDateConfigurationProperty where
type PropertyType "Expression" RollingDateConfigurationProperty = Value Prelude.Text
set :: PropertyType "Expression" RollingDateConfigurationProperty
-> RollingDateConfigurationProperty
-> RollingDateConfigurationProperty
set PropertyType "Expression" RollingDateConfigurationProperty
newValue RollingDateConfigurationProperty {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: RollingDateConfigurationProperty -> ()
dataSetIdentifier :: RollingDateConfigurationProperty -> Maybe (Value Text)
expression :: RollingDateConfigurationProperty -> Value Text
haddock_workaround_ :: ()
dataSetIdentifier :: Maybe (Value Text)
expression :: Value Text
..}
= RollingDateConfigurationProperty {expression :: Value Text
expression = PropertyType "Expression" RollingDateConfigurationProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
dataSetIdentifier :: Maybe (Value Text)
haddock_workaround_ :: ()
dataSetIdentifier :: Maybe (Value Text)
..}