module Stratosphere.QuickSight.Dashboard.DataColorProperty ( DataColorProperty(..), mkDataColorProperty ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data DataColorProperty = -- | See: DataColorProperty {haddock_workaround_ :: (), -- | See: color :: (Prelude.Maybe (Value Prelude.Text)), -- | See: dataValue :: (Prelude.Maybe (Value Prelude.Double))} deriving stock (Prelude.Eq, Prelude.Show) mkDataColorProperty :: DataColorProperty mkDataColorProperty = DataColorProperty {haddock_workaround_ = (), color = Prelude.Nothing, dataValue = Prelude.Nothing} instance ToResourceProperties DataColorProperty where toResourceProperties DataColorProperty {..} = ResourceProperties {awsType = "AWS::QuickSight::Dashboard.DataColor", supportsTags = Prelude.False, properties = Prelude.fromList (Prelude.catMaybes [(JSON..=) "Color" Prelude.<$> color, (JSON..=) "DataValue" Prelude.<$> dataValue])} instance JSON.ToJSON DataColorProperty where toJSON DataColorProperty {..} = JSON.object (Prelude.fromList (Prelude.catMaybes [(JSON..=) "Color" Prelude.<$> color, (JSON..=) "DataValue" Prelude.<$> dataValue])) instance Property "Color" DataColorProperty where type PropertyType "Color" DataColorProperty = Value Prelude.Text set newValue DataColorProperty {..} = DataColorProperty {color = Prelude.pure newValue, ..} instance Property "DataValue" DataColorProperty where type PropertyType "DataValue" DataColorProperty = Value Prelude.Double set newValue DataColorProperty {..} = DataColorProperty {dataValue = Prelude.pure newValue, ..}