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 = -- | See: ImageStaticFileProperty {haddock_workaround_ :: (), -- | See: source :: (Prelude.Maybe StaticFileSourceProperty), -- | See: staticFileId :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkImageStaticFileProperty :: Value Prelude.Text -> ImageStaticFileProperty mkImageStaticFileProperty staticFileId = ImageStaticFileProperty {haddock_workaround_ = (), staticFileId = staticFileId, source = Prelude.Nothing} instance ToResourceProperties ImageStaticFileProperty where toResourceProperties ImageStaticFileProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Analysis.ImageStaticFile", supportsTags = Prelude.False, properties = Prelude.fromList ((Prelude.<>) ["StaticFileId" JSON..= staticFileId] (Prelude.catMaybes [(JSON..=) "Source" Prelude.<$> source]))} instance JSON.ToJSON ImageStaticFileProperty where toJSON ImageStaticFileProperty {..} = JSON.object (Prelude.fromList ((Prelude.<>) ["StaticFileId" JSON..= staticFileId] (Prelude.catMaybes [(JSON..=) "Source" Prelude.<$> source]))) instance Property "Source" ImageStaticFileProperty where type PropertyType "Source" ImageStaticFileProperty = StaticFileSourceProperty set newValue ImageStaticFileProperty {..} = ImageStaticFileProperty {source = Prelude.pure newValue, ..} instance Property "StaticFileId" ImageStaticFileProperty where type PropertyType "StaticFileId" ImageStaticFileProperty = Value Prelude.Text set newValue ImageStaticFileProperty {..} = ImageStaticFileProperty {staticFileId = newValue, ..}