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