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