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