module Stratosphere.QuickSight.Analysis.StaticFileSourceProperty ( module Exports, StaticFileSourceProperty(..), mkStaticFileSourceProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.StaticFileS3SourceOptionsProperty as Exports import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.StaticFileUrlSourceOptionsProperty as Exports import Stratosphere.ResourceProperties data StaticFileSourceProperty = -- | See: StaticFileSourceProperty {haddock_workaround_ :: (), -- | See: s3Options :: (Prelude.Maybe StaticFileS3SourceOptionsProperty), -- | See: urlOptions :: (Prelude.Maybe StaticFileUrlSourceOptionsProperty)} deriving stock (Prelude.Eq, Prelude.Show) mkStaticFileSourceProperty :: StaticFileSourceProperty mkStaticFileSourceProperty = StaticFileSourceProperty {haddock_workaround_ = (), s3Options = Prelude.Nothing, urlOptions = Prelude.Nothing} instance ToResourceProperties StaticFileSourceProperty where toResourceProperties StaticFileSourceProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Analysis.StaticFileSource", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "S3Options" Prelude.<$> s3Options, (JSON..=) "UrlOptions" Prelude.<$> urlOptions])} instance JSON.ToJSON StaticFileSourceProperty where toJSON StaticFileSourceProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "S3Options" Prelude.<$> s3Options, (JSON..=) "UrlOptions" Prelude.<$> urlOptions])) instance Property "S3Options" StaticFileSourceProperty where type PropertyType "S3Options" StaticFileSourceProperty = StaticFileS3SourceOptionsProperty set newValue StaticFileSourceProperty {..} = StaticFileSourceProperty {s3Options = Prelude.pure newValue, ..} instance Property "UrlOptions" StaticFileSourceProperty where type PropertyType "UrlOptions" StaticFileSourceProperty = StaticFileUrlSourceOptionsProperty set newValue StaticFileSourceProperty {..} = StaticFileSourceProperty {urlOptions = Prelude.pure newValue, ..}