module Stratosphere.QuickSight.Dashboard.NumberFormatConfigurationProperty (
module Exports, NumberFormatConfigurationProperty(..),
mkNumberFormatConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.NumericFormatConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data NumberFormatConfigurationProperty
=
NumberFormatConfigurationProperty {NumberFormatConfigurationProperty -> ()
haddock_workaround_ :: (),
NumberFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
formatConfiguration :: (Prelude.Maybe NumericFormatConfigurationProperty)}
deriving stock (NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty -> Bool
(NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty -> Bool)
-> (NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty -> Bool)
-> Eq NumberFormatConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty -> Bool
== :: NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty -> Bool
$c/= :: NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty -> Bool
/= :: NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty -> Bool
Prelude.Eq, Int -> NumberFormatConfigurationProperty -> ShowS
[NumberFormatConfigurationProperty] -> ShowS
NumberFormatConfigurationProperty -> String
(Int -> NumberFormatConfigurationProperty -> ShowS)
-> (NumberFormatConfigurationProperty -> String)
-> ([NumberFormatConfigurationProperty] -> ShowS)
-> Show NumberFormatConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NumberFormatConfigurationProperty -> ShowS
showsPrec :: Int -> NumberFormatConfigurationProperty -> ShowS
$cshow :: NumberFormatConfigurationProperty -> String
show :: NumberFormatConfigurationProperty -> String
$cshowList :: [NumberFormatConfigurationProperty] -> ShowS
showList :: [NumberFormatConfigurationProperty] -> ShowS
Prelude.Show)
mkNumberFormatConfigurationProperty ::
NumberFormatConfigurationProperty
mkNumberFormatConfigurationProperty :: NumberFormatConfigurationProperty
mkNumberFormatConfigurationProperty
= NumberFormatConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), formatConfiguration :: Maybe NumericFormatConfigurationProperty
formatConfiguration = Maybe NumericFormatConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NumberFormatConfigurationProperty where
toResourceProperties :: NumberFormatConfigurationProperty -> ResourceProperties
toResourceProperties NumberFormatConfigurationProperty {Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: NumberFormatConfigurationProperty -> ()
formatConfiguration :: NumberFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
formatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.NumberFormatConfiguration",
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 -> NumericFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FormatConfiguration" (NumericFormatConfigurationProperty -> (Key, Value))
-> Maybe NumericFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumericFormatConfigurationProperty
formatConfiguration])}
instance JSON.ToJSON NumberFormatConfigurationProperty where
toJSON :: NumberFormatConfigurationProperty -> Value
toJSON NumberFormatConfigurationProperty {Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: NumberFormatConfigurationProperty -> ()
formatConfiguration :: NumberFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
formatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
= [(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 -> NumericFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FormatConfiguration" (NumericFormatConfigurationProperty -> (Key, Value))
-> Maybe NumericFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumericFormatConfigurationProperty
formatConfiguration]))
instance Property "FormatConfiguration" NumberFormatConfigurationProperty where
type PropertyType "FormatConfiguration" NumberFormatConfigurationProperty = NumericFormatConfigurationProperty
set :: PropertyType
"FormatConfiguration" NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty
-> NumberFormatConfigurationProperty
set PropertyType
"FormatConfiguration" NumberFormatConfigurationProperty
newValue NumberFormatConfigurationProperty {Maybe NumericFormatConfigurationProperty
()
haddock_workaround_ :: NumberFormatConfigurationProperty -> ()
formatConfiguration :: NumberFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
haddock_workaround_ :: ()
formatConfiguration :: Maybe NumericFormatConfigurationProperty
..}
= NumberFormatConfigurationProperty
{formatConfiguration :: Maybe NumericFormatConfigurationProperty
formatConfiguration = NumericFormatConfigurationProperty
-> Maybe NumericFormatConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"FormatConfiguration" NumberFormatConfigurationProperty
NumericFormatConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}