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