module Stratosphere.QuickSight.Dashboard.SheetImageScalingConfigurationProperty (
SheetImageScalingConfigurationProperty(..),
mkSheetImageScalingConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SheetImageScalingConfigurationProperty
=
SheetImageScalingConfigurationProperty {SheetImageScalingConfigurationProperty -> ()
haddock_workaround_ :: (),
SheetImageScalingConfigurationProperty -> Maybe (Value Text)
scalingType :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty -> Bool
(SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty -> Bool)
-> (SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty -> Bool)
-> Eq SheetImageScalingConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty -> Bool
== :: SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty -> Bool
$c/= :: SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty -> Bool
/= :: SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty -> Bool
Prelude.Eq, Int -> SheetImageScalingConfigurationProperty -> ShowS
[SheetImageScalingConfigurationProperty] -> ShowS
SheetImageScalingConfigurationProperty -> String
(Int -> SheetImageScalingConfigurationProperty -> ShowS)
-> (SheetImageScalingConfigurationProperty -> String)
-> ([SheetImageScalingConfigurationProperty] -> ShowS)
-> Show SheetImageScalingConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SheetImageScalingConfigurationProperty -> ShowS
showsPrec :: Int -> SheetImageScalingConfigurationProperty -> ShowS
$cshow :: SheetImageScalingConfigurationProperty -> String
show :: SheetImageScalingConfigurationProperty -> String
$cshowList :: [SheetImageScalingConfigurationProperty] -> ShowS
showList :: [SheetImageScalingConfigurationProperty] -> ShowS
Prelude.Show)
mkSheetImageScalingConfigurationProperty ::
SheetImageScalingConfigurationProperty
mkSheetImageScalingConfigurationProperty :: SheetImageScalingConfigurationProperty
mkSheetImageScalingConfigurationProperty
= SheetImageScalingConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), scalingType :: Maybe (Value Text)
scalingType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties SheetImageScalingConfigurationProperty where
toResourceProperties :: SheetImageScalingConfigurationProperty -> ResourceProperties
toResourceProperties SheetImageScalingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SheetImageScalingConfigurationProperty -> ()
scalingType :: SheetImageScalingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
scalingType :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.SheetImageScalingConfiguration",
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
"ScalingType" (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)
scalingType])}
instance JSON.ToJSON SheetImageScalingConfigurationProperty where
toJSON :: SheetImageScalingConfigurationProperty -> Value
toJSON SheetImageScalingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SheetImageScalingConfigurationProperty -> ()
scalingType :: SheetImageScalingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
scalingType :: 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
"ScalingType" (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)
scalingType]))
instance Property "ScalingType" SheetImageScalingConfigurationProperty where
type PropertyType "ScalingType" SheetImageScalingConfigurationProperty = Value Prelude.Text
set :: PropertyType "ScalingType" SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty
-> SheetImageScalingConfigurationProperty
set PropertyType "ScalingType" SheetImageScalingConfigurationProperty
newValue SheetImageScalingConfigurationProperty {Maybe (Value Text)
()
haddock_workaround_ :: SheetImageScalingConfigurationProperty -> ()
scalingType :: SheetImageScalingConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
scalingType :: Maybe (Value Text)
..}
= SheetImageScalingConfigurationProperty
{scalingType :: Maybe (Value Text)
scalingType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ScalingType" SheetImageScalingConfigurationProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}