module Stratosphere.QuickSight.Dashboard.ShapeConditionalFormatProperty ( module Exports, ShapeConditionalFormatProperty(..), mkShapeConditionalFormatProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ConditionalFormattingColorProperty as Exports import Stratosphere.ResourceProperties data ShapeConditionalFormatProperty = -- | See: ShapeConditionalFormatProperty {haddock_workaround_ :: (), -- | See: backgroundColor :: ConditionalFormattingColorProperty} deriving stock (Prelude.Eq, Prelude.Show) mkShapeConditionalFormatProperty :: ConditionalFormattingColorProperty -> ShapeConditionalFormatProperty mkShapeConditionalFormatProperty backgroundColor = ShapeConditionalFormatProperty {haddock_workaround_ = (), backgroundColor = backgroundColor} instance ToResourceProperties ShapeConditionalFormatProperty where toResourceProperties ShapeConditionalFormatProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Dashboard.ShapeConditionalFormat", supportsTags = Prelude.False, properties = ["BackgroundColor" JSON..= backgroundColor]} instance JSON.ToJSON ShapeConditionalFormatProperty where toJSON ShapeConditionalFormatProperty {..} = JSON.object ["BackgroundColor" JSON..= backgroundColor] instance Property "BackgroundColor" ShapeConditionalFormatProperty where type PropertyType "BackgroundColor" ShapeConditionalFormatProperty = ConditionalFormattingColorProperty set newValue ShapeConditionalFormatProperty {..} = ShapeConditionalFormatProperty {backgroundColor = newValue, ..}