module Stratosphere.QuickSight.Dashboard.TableFieldImageConfigurationProperty (
        module Exports, TableFieldImageConfigurationProperty(..),
        mkTableFieldImageConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.TableCellImageSizingConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data TableFieldImageConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablefieldimageconfiguration.html>
    TableFieldImageConfigurationProperty {TableFieldImageConfigurationProperty -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-tablefieldimageconfiguration.html#cfn-quicksight-dashboard-tablefieldimageconfiguration-sizingoptions>
                                          TableFieldImageConfigurationProperty
-> Maybe TableCellImageSizingConfigurationProperty
sizingOptions :: (Prelude.Maybe TableCellImageSizingConfigurationProperty)}
  deriving stock (TableFieldImageConfigurationProperty
-> TableFieldImageConfigurationProperty -> Bool
(TableFieldImageConfigurationProperty
 -> TableFieldImageConfigurationProperty -> Bool)
-> (TableFieldImageConfigurationProperty
    -> TableFieldImageConfigurationProperty -> Bool)
-> Eq TableFieldImageConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TableFieldImageConfigurationProperty
-> TableFieldImageConfigurationProperty -> Bool
== :: TableFieldImageConfigurationProperty
-> TableFieldImageConfigurationProperty -> Bool
$c/= :: TableFieldImageConfigurationProperty
-> TableFieldImageConfigurationProperty -> Bool
/= :: TableFieldImageConfigurationProperty
-> TableFieldImageConfigurationProperty -> Bool
Prelude.Eq, Int -> TableFieldImageConfigurationProperty -> ShowS
[TableFieldImageConfigurationProperty] -> ShowS
TableFieldImageConfigurationProperty -> String
(Int -> TableFieldImageConfigurationProperty -> ShowS)
-> (TableFieldImageConfigurationProperty -> String)
-> ([TableFieldImageConfigurationProperty] -> ShowS)
-> Show TableFieldImageConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TableFieldImageConfigurationProperty -> ShowS
showsPrec :: Int -> TableFieldImageConfigurationProperty -> ShowS
$cshow :: TableFieldImageConfigurationProperty -> String
show :: TableFieldImageConfigurationProperty -> String
$cshowList :: [TableFieldImageConfigurationProperty] -> ShowS
showList :: [TableFieldImageConfigurationProperty] -> ShowS
Prelude.Show)
mkTableFieldImageConfigurationProperty ::
  TableFieldImageConfigurationProperty
mkTableFieldImageConfigurationProperty :: TableFieldImageConfigurationProperty
mkTableFieldImageConfigurationProperty
  = TableFieldImageConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), sizingOptions :: Maybe TableCellImageSizingConfigurationProperty
sizingOptions = Maybe TableCellImageSizingConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TableFieldImageConfigurationProperty where
  toResourceProperties :: TableFieldImageConfigurationProperty -> ResourceProperties
toResourceProperties TableFieldImageConfigurationProperty {Maybe TableCellImageSizingConfigurationProperty
()
haddock_workaround_ :: TableFieldImageConfigurationProperty -> ()
sizingOptions :: TableFieldImageConfigurationProperty
-> Maybe TableCellImageSizingConfigurationProperty
haddock_workaround_ :: ()
sizingOptions :: Maybe TableCellImageSizingConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.TableFieldImageConfiguration",
         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 -> TableCellImageSizingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SizingOptions" (TableCellImageSizingConfigurationProperty -> (Key, Value))
-> Maybe TableCellImageSizingConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableCellImageSizingConfigurationProperty
sizingOptions])}
instance JSON.ToJSON TableFieldImageConfigurationProperty where
  toJSON :: TableFieldImageConfigurationProperty -> Value
toJSON TableFieldImageConfigurationProperty {Maybe TableCellImageSizingConfigurationProperty
()
haddock_workaround_ :: TableFieldImageConfigurationProperty -> ()
sizingOptions :: TableFieldImageConfigurationProperty
-> Maybe TableCellImageSizingConfigurationProperty
haddock_workaround_ :: ()
sizingOptions :: Maybe TableCellImageSizingConfigurationProperty
..}
    = [(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 -> TableCellImageSizingConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"SizingOptions" (TableCellImageSizingConfigurationProperty -> (Key, Value))
-> Maybe TableCellImageSizingConfigurationProperty
-> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TableCellImageSizingConfigurationProperty
sizingOptions]))
instance Property "SizingOptions" TableFieldImageConfigurationProperty where
  type PropertyType "SizingOptions" TableFieldImageConfigurationProperty = TableCellImageSizingConfigurationProperty
  set :: PropertyType "SizingOptions" TableFieldImageConfigurationProperty
-> TableFieldImageConfigurationProperty
-> TableFieldImageConfigurationProperty
set PropertyType "SizingOptions" TableFieldImageConfigurationProperty
newValue TableFieldImageConfigurationProperty {Maybe TableCellImageSizingConfigurationProperty
()
haddock_workaround_ :: TableFieldImageConfigurationProperty -> ()
sizingOptions :: TableFieldImageConfigurationProperty
-> Maybe TableCellImageSizingConfigurationProperty
haddock_workaround_ :: ()
sizingOptions :: Maybe TableCellImageSizingConfigurationProperty
..}
    = TableFieldImageConfigurationProperty
        {sizingOptions :: Maybe TableCellImageSizingConfigurationProperty
sizingOptions = TableCellImageSizingConfigurationProperty
-> Maybe TableCellImageSizingConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SizingOptions" TableFieldImageConfigurationProperty
TableCellImageSizingConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}