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