module Stratosphere.QuickSight.Dashboard.TableCellImageSizingConfigurationProperty (
        TableCellImageSizingConfigurationProperty(..),
        mkTableCellImageSizingConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TableCellImageSizingConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablecellimagesizingconfiguration.html>
    TableCellImageSizingConfigurationProperty {TableCellImageSizingConfigurationProperty -> ()
haddock_workaround_ :: (),
                                               -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablecellimagesizingconfiguration.html#cfn-quicksight-dashboard-tablecellimagesizingconfiguration-tablecellimagescalingconfiguration>
                                               TableCellImageSizingConfigurationProperty -> Maybe (Value Text)
tableCellImageScalingConfiguration :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (TableCellImageSizingConfigurationProperty
-> TableCellImageSizingConfigurationProperty -> Bool
(TableCellImageSizingConfigurationProperty
 -> TableCellImageSizingConfigurationProperty -> Bool)
-> (TableCellImageSizingConfigurationProperty
    -> TableCellImageSizingConfigurationProperty -> Bool)
-> Eq TableCellImageSizingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableCellImageSizingConfigurationProperty
-> TableCellImageSizingConfigurationProperty -> Bool
== :: TableCellImageSizingConfigurationProperty
-> TableCellImageSizingConfigurationProperty -> Bool
$c/= :: TableCellImageSizingConfigurationProperty
-> TableCellImageSizingConfigurationProperty -> Bool
/= :: TableCellImageSizingConfigurationProperty
-> TableCellImageSizingConfigurationProperty -> Bool
Prelude.Eq, Int -> TableCellImageSizingConfigurationProperty -> ShowS
[TableCellImageSizingConfigurationProperty] -> ShowS
TableCellImageSizingConfigurationProperty -> String
(Int -> TableCellImageSizingConfigurationProperty -> ShowS)
-> (TableCellImageSizingConfigurationProperty -> String)
-> ([TableCellImageSizingConfigurationProperty] -> ShowS)
-> Show TableCellImageSizingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableCellImageSizingConfigurationProperty -> ShowS
showsPrec :: Int -> TableCellImageSizingConfigurationProperty -> ShowS
$cshow :: TableCellImageSizingConfigurationProperty -> String
show :: TableCellImageSizingConfigurationProperty -> String
$cshowList :: [TableCellImageSizingConfigurationProperty] -> ShowS
showList :: [TableCellImageSizingConfigurationProperty] -> ShowS
Prelude.Show)
mkTableCellImageSizingConfigurationProperty ::
  TableCellImageSizingConfigurationProperty
mkTableCellImageSizingConfigurationProperty :: TableCellImageSizingConfigurationProperty
mkTableCellImageSizingConfigurationProperty
  = TableCellImageSizingConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       tableCellImageScalingConfiguration :: Maybe (Value Text)
tableCellImageScalingConfiguration = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableCellImageSizingConfigurationProperty where
  toResourceProperties :: TableCellImageSizingConfigurationProperty -> ResourceProperties
toResourceProperties TableCellImageSizingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: TableCellImageSizingConfigurationProperty -> ()
tableCellImageScalingConfiguration :: TableCellImageSizingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableCellImageScalingConfiguration :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.TableCellImageSizingConfiguration",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TableCellImageScalingConfiguration"
                              (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableCellImageScalingConfiguration])}
instance JSON.ToJSON TableCellImageSizingConfigurationProperty where
  toJSON :: TableCellImageSizingConfigurationProperty -> Value
toJSON TableCellImageSizingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: TableCellImageSizingConfigurationProperty -> ()
tableCellImageScalingConfiguration :: TableCellImageSizingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableCellImageScalingConfiguration :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"TableCellImageScalingConfiguration"
                 (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
tableCellImageScalingConfiguration]))
instance Property "TableCellImageScalingConfiguration" TableCellImageSizingConfigurationProperty where
  type PropertyType "TableCellImageScalingConfiguration" TableCellImageSizingConfigurationProperty = Value Prelude.Text
  set :: PropertyType
  "TableCellImageScalingConfiguration"
  TableCellImageSizingConfigurationProperty
-> TableCellImageSizingConfigurationProperty
-> TableCellImageSizingConfigurationProperty
set PropertyType
  "TableCellImageScalingConfiguration"
  TableCellImageSizingConfigurationProperty
newValue TableCellImageSizingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: TableCellImageSizingConfigurationProperty -> ()
tableCellImageScalingConfiguration :: TableCellImageSizingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
tableCellImageScalingConfiguration :: Maybe (Value Text)
..}
    = TableCellImageSizingConfigurationProperty
        {tableCellImageScalingConfiguration :: Maybe (Value Text)
tableCellImageScalingConfiguration = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
  "TableCellImageScalingConfiguration"
  TableCellImageSizingConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}