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