module Stratosphere.QuickSight.Template.FilledMapShapeConditionalFormattingProperty (
module Exports, FilledMapShapeConditionalFormattingProperty(..),
mkFilledMapShapeConditionalFormattingProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.ShapeConditionalFormatProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data FilledMapShapeConditionalFormattingProperty
=
FilledMapShapeConditionalFormattingProperty {FilledMapShapeConditionalFormattingProperty -> ()
haddock_workaround_ :: (),
FilledMapShapeConditionalFormattingProperty -> Value Text
fieldId :: (Value Prelude.Text),
FilledMapShapeConditionalFormattingProperty
-> Maybe ShapeConditionalFormatProperty
format :: (Prelude.Maybe ShapeConditionalFormatProperty)}
deriving stock (FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty -> Bool
(FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty -> Bool)
-> (FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty -> Bool)
-> Eq FilledMapShapeConditionalFormattingProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty -> Bool
== :: FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty -> Bool
$c/= :: FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty -> Bool
/= :: FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty -> Bool
Prelude.Eq, Int -> FilledMapShapeConditionalFormattingProperty -> ShowS
[FilledMapShapeConditionalFormattingProperty] -> ShowS
FilledMapShapeConditionalFormattingProperty -> String
(Int -> FilledMapShapeConditionalFormattingProperty -> ShowS)
-> (FilledMapShapeConditionalFormattingProperty -> String)
-> ([FilledMapShapeConditionalFormattingProperty] -> ShowS)
-> Show FilledMapShapeConditionalFormattingProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FilledMapShapeConditionalFormattingProperty -> ShowS
showsPrec :: Int -> FilledMapShapeConditionalFormattingProperty -> ShowS
$cshow :: FilledMapShapeConditionalFormattingProperty -> String
show :: FilledMapShapeConditionalFormattingProperty -> String
$cshowList :: [FilledMapShapeConditionalFormattingProperty] -> ShowS
showList :: [FilledMapShapeConditionalFormattingProperty] -> ShowS
Prelude.Show)
mkFilledMapShapeConditionalFormattingProperty ::
Value Prelude.Text -> FilledMapShapeConditionalFormattingProperty
mkFilledMapShapeConditionalFormattingProperty :: Value Text -> FilledMapShapeConditionalFormattingProperty
mkFilledMapShapeConditionalFormattingProperty Value Text
fieldId
= FilledMapShapeConditionalFormattingProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fieldId :: Value Text
fieldId = Value Text
fieldId,
format :: Maybe ShapeConditionalFormatProperty
format = Maybe ShapeConditionalFormatProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties FilledMapShapeConditionalFormattingProperty where
toResourceProperties :: FilledMapShapeConditionalFormattingProperty -> ResourceProperties
toResourceProperties
FilledMapShapeConditionalFormattingProperty {Maybe ShapeConditionalFormatProperty
()
Value Text
haddock_workaround_ :: FilledMapShapeConditionalFormattingProperty -> ()
fieldId :: FilledMapShapeConditionalFormattingProperty -> Value Text
format :: FilledMapShapeConditionalFormattingProperty
-> Maybe ShapeConditionalFormatProperty
haddock_workaround_ :: ()
fieldId :: Value Text
format :: Maybe ShapeConditionalFormatProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.FilledMapShapeConditionalFormatting",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FieldId" 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..= Value Text
fieldId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ShapeConditionalFormatProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Format" (ShapeConditionalFormatProperty -> (Key, Value))
-> Maybe ShapeConditionalFormatProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ShapeConditionalFormatProperty
format]))}
instance JSON.ToJSON FilledMapShapeConditionalFormattingProperty where
toJSON :: FilledMapShapeConditionalFormattingProperty -> Value
toJSON FilledMapShapeConditionalFormattingProperty {Maybe ShapeConditionalFormatProperty
()
Value Text
haddock_workaround_ :: FilledMapShapeConditionalFormattingProperty -> ()
fieldId :: FilledMapShapeConditionalFormattingProperty -> Value Text
format :: FilledMapShapeConditionalFormattingProperty
-> Maybe ShapeConditionalFormatProperty
haddock_workaround_ :: ()
fieldId :: Value Text
format :: Maybe ShapeConditionalFormatProperty
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"FieldId" 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..= Value Text
fieldId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [Key -> ShapeConditionalFormatProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Format" (ShapeConditionalFormatProperty -> (Key, Value))
-> Maybe ShapeConditionalFormatProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ShapeConditionalFormatProperty
format])))
instance Property "FieldId" FilledMapShapeConditionalFormattingProperty where
type PropertyType "FieldId" FilledMapShapeConditionalFormattingProperty = Value Prelude.Text
set :: PropertyType "FieldId" FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty
set PropertyType "FieldId" FilledMapShapeConditionalFormattingProperty
newValue FilledMapShapeConditionalFormattingProperty {Maybe ShapeConditionalFormatProperty
()
Value Text
haddock_workaround_ :: FilledMapShapeConditionalFormattingProperty -> ()
fieldId :: FilledMapShapeConditionalFormattingProperty -> Value Text
format :: FilledMapShapeConditionalFormattingProperty
-> Maybe ShapeConditionalFormatProperty
haddock_workaround_ :: ()
fieldId :: Value Text
format :: Maybe ShapeConditionalFormatProperty
..}
= FilledMapShapeConditionalFormattingProperty
{fieldId :: Value Text
fieldId = PropertyType "FieldId" FilledMapShapeConditionalFormattingProperty
Value Text
newValue, Maybe ShapeConditionalFormatProperty
()
haddock_workaround_ :: ()
format :: Maybe ShapeConditionalFormatProperty
haddock_workaround_ :: ()
format :: Maybe ShapeConditionalFormatProperty
..}
instance Property "Format" FilledMapShapeConditionalFormattingProperty where
type PropertyType "Format" FilledMapShapeConditionalFormattingProperty = ShapeConditionalFormatProperty
set :: PropertyType "Format" FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty
-> FilledMapShapeConditionalFormattingProperty
set PropertyType "Format" FilledMapShapeConditionalFormattingProperty
newValue FilledMapShapeConditionalFormattingProperty {Maybe ShapeConditionalFormatProperty
()
Value Text
haddock_workaround_ :: FilledMapShapeConditionalFormattingProperty -> ()
fieldId :: FilledMapShapeConditionalFormattingProperty -> Value Text
format :: FilledMapShapeConditionalFormattingProperty
-> Maybe ShapeConditionalFormatProperty
haddock_workaround_ :: ()
fieldId :: Value Text
format :: Maybe ShapeConditionalFormatProperty
..}
= FilledMapShapeConditionalFormattingProperty
{format :: Maybe ShapeConditionalFormatProperty
format = ShapeConditionalFormatProperty
-> Maybe ShapeConditionalFormatProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Format" FilledMapShapeConditionalFormattingProperty
ShapeConditionalFormatProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
..}