module Stratosphere.QuickSight.Dashboard.SheetImageStaticFileSourceProperty (
SheetImageStaticFileSourceProperty(..),
mkSheetImageStaticFileSourceProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SheetImageStaticFileSourceProperty
=
SheetImageStaticFileSourceProperty {SheetImageStaticFileSourceProperty -> ()
haddock_workaround_ :: (),
SheetImageStaticFileSourceProperty -> Value Text
staticFileId :: (Value Prelude.Text)}
deriving stock (SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty -> Bool
(SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty -> Bool)
-> (SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty -> Bool)
-> Eq SheetImageStaticFileSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty -> Bool
== :: SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty -> Bool
$c/= :: SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty -> Bool
/= :: SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty -> Bool
Prelude.Eq, Int -> SheetImageStaticFileSourceProperty -> ShowS
[SheetImageStaticFileSourceProperty] -> ShowS
SheetImageStaticFileSourceProperty -> String
(Int -> SheetImageStaticFileSourceProperty -> ShowS)
-> (SheetImageStaticFileSourceProperty -> String)
-> ([SheetImageStaticFileSourceProperty] -> ShowS)
-> Show SheetImageStaticFileSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SheetImageStaticFileSourceProperty -> ShowS
showsPrec :: Int -> SheetImageStaticFileSourceProperty -> ShowS
$cshow :: SheetImageStaticFileSourceProperty -> String
show :: SheetImageStaticFileSourceProperty -> String
$cshowList :: [SheetImageStaticFileSourceProperty] -> ShowS
showList :: [SheetImageStaticFileSourceProperty] -> ShowS
Prelude.Show)
mkSheetImageStaticFileSourceProperty ::
Value Prelude.Text -> SheetImageStaticFileSourceProperty
mkSheetImageStaticFileSourceProperty :: Value Text -> SheetImageStaticFileSourceProperty
mkSheetImageStaticFileSourceProperty Value Text
staticFileId
= SheetImageStaticFileSourceProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), staticFileId :: Value Text
staticFileId = Value Text
staticFileId}
instance ToResourceProperties SheetImageStaticFileSourceProperty where
toResourceProperties :: SheetImageStaticFileSourceProperty -> ResourceProperties
toResourceProperties SheetImageStaticFileSourceProperty {()
Value Text
haddock_workaround_ :: SheetImageStaticFileSourceProperty -> ()
staticFileId :: SheetImageStaticFileSourceProperty -> Value Text
haddock_workaround_ :: ()
staticFileId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.SheetImageStaticFileSource",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Key
"StaticFileId" 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
staticFileId]}
instance JSON.ToJSON SheetImageStaticFileSourceProperty where
toJSON :: SheetImageStaticFileSourceProperty -> Value
toJSON SheetImageStaticFileSourceProperty {()
Value Text
haddock_workaround_ :: SheetImageStaticFileSourceProperty -> ()
staticFileId :: SheetImageStaticFileSourceProperty -> Value Text
haddock_workaround_ :: ()
staticFileId :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"StaticFileId" 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
staticFileId]
instance Property "StaticFileId" SheetImageStaticFileSourceProperty where
type PropertyType "StaticFileId" SheetImageStaticFileSourceProperty = Value Prelude.Text
set :: PropertyType "StaticFileId" SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty
-> SheetImageStaticFileSourceProperty
set PropertyType "StaticFileId" SheetImageStaticFileSourceProperty
newValue SheetImageStaticFileSourceProperty {()
Value Text
haddock_workaround_ :: SheetImageStaticFileSourceProperty -> ()
staticFileId :: SheetImageStaticFileSourceProperty -> Value Text
haddock_workaround_ :: ()
staticFileId :: Value Text
..}
= SheetImageStaticFileSourceProperty {staticFileId :: Value Text
staticFileId = PropertyType "StaticFileId" SheetImageStaticFileSourceProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}