module Stratosphere.QuickSight.Analysis.YAxisOptionsProperty (
YAxisOptionsProperty(..), mkYAxisOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data YAxisOptionsProperty
=
YAxisOptionsProperty {YAxisOptionsProperty -> ()
haddock_workaround_ :: (),
YAxisOptionsProperty -> Value Text
yAxis :: (Value Prelude.Text)}
deriving stock (YAxisOptionsProperty -> YAxisOptionsProperty -> Bool
(YAxisOptionsProperty -> YAxisOptionsProperty -> Bool)
-> (YAxisOptionsProperty -> YAxisOptionsProperty -> Bool)
-> Eq YAxisOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: YAxisOptionsProperty -> YAxisOptionsProperty -> Bool
== :: YAxisOptionsProperty -> YAxisOptionsProperty -> Bool
$c/= :: YAxisOptionsProperty -> YAxisOptionsProperty -> Bool
/= :: YAxisOptionsProperty -> YAxisOptionsProperty -> Bool
Prelude.Eq, Int -> YAxisOptionsProperty -> ShowS
[YAxisOptionsProperty] -> ShowS
YAxisOptionsProperty -> String
(Int -> YAxisOptionsProperty -> ShowS)
-> (YAxisOptionsProperty -> String)
-> ([YAxisOptionsProperty] -> ShowS)
-> Show YAxisOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> YAxisOptionsProperty -> ShowS
showsPrec :: Int -> YAxisOptionsProperty -> ShowS
$cshow :: YAxisOptionsProperty -> String
show :: YAxisOptionsProperty -> String
$cshowList :: [YAxisOptionsProperty] -> ShowS
showList :: [YAxisOptionsProperty] -> ShowS
Prelude.Show)
mkYAxisOptionsProperty ::
Value Prelude.Text -> YAxisOptionsProperty
mkYAxisOptionsProperty :: Value Text -> YAxisOptionsProperty
mkYAxisOptionsProperty Value Text
yAxis
= YAxisOptionsProperty {haddock_workaround_ :: ()
haddock_workaround_ = (), yAxis :: Value Text
yAxis = Value Text
yAxis}
instance ToResourceProperties YAxisOptionsProperty where
toResourceProperties :: YAxisOptionsProperty -> ResourceProperties
toResourceProperties YAxisOptionsProperty {()
Value Text
haddock_workaround_ :: YAxisOptionsProperty -> ()
yAxis :: YAxisOptionsProperty -> Value Text
haddock_workaround_ :: ()
yAxis :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.YAxisOptions",
supportsTags :: Bool
supportsTags = Bool
Prelude.False, properties :: Object
properties = [Key
"YAxis" 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..= Value Text
yAxis]}
instance JSON.ToJSON YAxisOptionsProperty where
toJSON :: YAxisOptionsProperty -> Value
toJSON YAxisOptionsProperty {()
Value Text
haddock_workaround_ :: YAxisOptionsProperty -> ()
yAxis :: YAxisOptionsProperty -> Value Text
haddock_workaround_ :: ()
yAxis :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object [Key
"YAxis" 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..= Value Text
yAxis]
instance Property "YAxis" YAxisOptionsProperty where
type PropertyType "YAxis" YAxisOptionsProperty = Value Prelude.Text
set :: PropertyType "YAxis" YAxisOptionsProperty
-> YAxisOptionsProperty -> YAxisOptionsProperty
set PropertyType "YAxis" YAxisOptionsProperty
newValue YAxisOptionsProperty {()
Value Text
haddock_workaround_ :: YAxisOptionsProperty -> ()
yAxis :: YAxisOptionsProperty -> Value Text
haddock_workaround_ :: ()
yAxis :: Value Text
..}
= YAxisOptionsProperty {yAxis :: Value Text
yAxis = PropertyType "YAxis" YAxisOptionsProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}