module Stratosphere.QuickSight.Template.SheetProperty ( SheetProperty(..), mkSheetProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data SheetProperty = -- | See: SheetProperty {haddock_workaround_ :: (), -- | See: name :: (Prelude.Maybe (Value Prelude.Text)), -- | See: sheetId :: (Prelude.Maybe (Value Prelude.Text))} deriving stock (Prelude.Eq, Prelude.Show) mkSheetProperty :: SheetProperty mkSheetProperty = SheetProperty {haddock_workaround_ = (), name = Prelude.Nothing, sheetId = Prelude.Nothing} instance ToResourceProperties SheetProperty where toResourceProperties SheetProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Template.Sheet", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "SheetId" Prelude.<$> sheetId])} instance JSON.ToJSON SheetProperty where toJSON SheetProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Name" Prelude.<$> name, (JSON..=) "SheetId" Prelude.<$> sheetId])) instance Property "Name" SheetProperty where type PropertyType "Name" SheetProperty = Value Prelude.Text set newValue SheetProperty {..} = SheetProperty {name = Prelude.pure newValue, ..} instance Property "SheetId" SheetProperty where type PropertyType "SheetId" SheetProperty = Value Prelude.Text set newValue SheetProperty {..} = SheetProperty {sheetId = Prelude.pure newValue, ..}