module Stratosphere.QuickSight.Dashboard.AxisLabelOptionsProperty (
module Exports, AxisLabelOptionsProperty(..),
mkAxisLabelOptionsProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.AxisLabelReferenceOptionsProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.FontConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data AxisLabelOptionsProperty
=
AxisLabelOptionsProperty {AxisLabelOptionsProperty -> ()
haddock_workaround_ :: (),
AxisLabelOptionsProperty -> Maybe AxisLabelReferenceOptionsProperty
applyTo :: (Prelude.Maybe AxisLabelReferenceOptionsProperty),
AxisLabelOptionsProperty -> Maybe (Value Text)
customLabel :: (Prelude.Maybe (Value Prelude.Text)),
AxisLabelOptionsProperty -> Maybe FontConfigurationProperty
fontConfiguration :: (Prelude.Maybe FontConfigurationProperty)}
deriving stock (AxisLabelOptionsProperty -> AxisLabelOptionsProperty -> Bool
(AxisLabelOptionsProperty -> AxisLabelOptionsProperty -> Bool)
-> (AxisLabelOptionsProperty -> AxisLabelOptionsProperty -> Bool)
-> Eq AxisLabelOptionsProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: AxisLabelOptionsProperty -> AxisLabelOptionsProperty -> Bool
== :: AxisLabelOptionsProperty -> AxisLabelOptionsProperty -> Bool
$c/= :: AxisLabelOptionsProperty -> AxisLabelOptionsProperty -> Bool
/= :: AxisLabelOptionsProperty -> AxisLabelOptionsProperty -> Bool
Prelude.Eq, Int -> AxisLabelOptionsProperty -> ShowS
[AxisLabelOptionsProperty] -> ShowS
AxisLabelOptionsProperty -> String
(Int -> AxisLabelOptionsProperty -> ShowS)
-> (AxisLabelOptionsProperty -> String)
-> ([AxisLabelOptionsProperty] -> ShowS)
-> Show AxisLabelOptionsProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> AxisLabelOptionsProperty -> ShowS
showsPrec :: Int -> AxisLabelOptionsProperty -> ShowS
$cshow :: AxisLabelOptionsProperty -> String
show :: AxisLabelOptionsProperty -> String
$cshowList :: [AxisLabelOptionsProperty] -> ShowS
showList :: [AxisLabelOptionsProperty] -> ShowS
Prelude.Show)
mkAxisLabelOptionsProperty :: AxisLabelOptionsProperty
mkAxisLabelOptionsProperty :: AxisLabelOptionsProperty
mkAxisLabelOptionsProperty
= AxisLabelOptionsProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), applyTo :: Maybe AxisLabelReferenceOptionsProperty
applyTo = Maybe AxisLabelReferenceOptionsProperty
forall a. Maybe a
Prelude.Nothing,
customLabel :: Maybe (Value Text)
customLabel = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, fontConfiguration :: Maybe FontConfigurationProperty
fontConfiguration = Maybe FontConfigurationProperty
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties AxisLabelOptionsProperty where
toResourceProperties :: AxisLabelOptionsProperty -> ResourceProperties
toResourceProperties AxisLabelOptionsProperty {Maybe (Value Text)
Maybe AxisLabelReferenceOptionsProperty
Maybe FontConfigurationProperty
()
haddock_workaround_ :: AxisLabelOptionsProperty -> ()
applyTo :: AxisLabelOptionsProperty -> Maybe AxisLabelReferenceOptionsProperty
customLabel :: AxisLabelOptionsProperty -> Maybe (Value Text)
fontConfiguration :: AxisLabelOptionsProperty -> Maybe FontConfigurationProperty
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
customLabel :: Maybe (Value Text)
fontConfiguration :: Maybe FontConfigurationProperty
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.AxisLabelOptions",
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 -> AxisLabelReferenceOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApplyTo" (AxisLabelReferenceOptionsProperty -> (Key, Value))
-> Maybe AxisLabelReferenceOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AxisLabelReferenceOptionsProperty
applyTo,
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
"CustomLabel" (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)
customLabel,
Key -> FontConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FontConfiguration" (FontConfigurationProperty -> (Key, Value))
-> Maybe FontConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FontConfigurationProperty
fontConfiguration])}
instance JSON.ToJSON AxisLabelOptionsProperty where
toJSON :: AxisLabelOptionsProperty -> Value
toJSON AxisLabelOptionsProperty {Maybe (Value Text)
Maybe AxisLabelReferenceOptionsProperty
Maybe FontConfigurationProperty
()
haddock_workaround_ :: AxisLabelOptionsProperty -> ()
applyTo :: AxisLabelOptionsProperty -> Maybe AxisLabelReferenceOptionsProperty
customLabel :: AxisLabelOptionsProperty -> Maybe (Value Text)
fontConfiguration :: AxisLabelOptionsProperty -> Maybe FontConfigurationProperty
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
customLabel :: Maybe (Value Text)
fontConfiguration :: Maybe FontConfigurationProperty
..}
= [(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 -> AxisLabelReferenceOptionsProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ApplyTo" (AxisLabelReferenceOptionsProperty -> (Key, Value))
-> Maybe AxisLabelReferenceOptionsProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AxisLabelReferenceOptionsProperty
applyTo,
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
"CustomLabel" (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)
customLabel,
Key -> FontConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FontConfiguration" (FontConfigurationProperty -> (Key, Value))
-> Maybe FontConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FontConfigurationProperty
fontConfiguration]))
instance Property "ApplyTo" AxisLabelOptionsProperty where
type PropertyType "ApplyTo" AxisLabelOptionsProperty = AxisLabelReferenceOptionsProperty
set :: PropertyType "ApplyTo" AxisLabelOptionsProperty
-> AxisLabelOptionsProperty -> AxisLabelOptionsProperty
set PropertyType "ApplyTo" AxisLabelOptionsProperty
newValue AxisLabelOptionsProperty {Maybe (Value Text)
Maybe AxisLabelReferenceOptionsProperty
Maybe FontConfigurationProperty
()
haddock_workaround_ :: AxisLabelOptionsProperty -> ()
applyTo :: AxisLabelOptionsProperty -> Maybe AxisLabelReferenceOptionsProperty
customLabel :: AxisLabelOptionsProperty -> Maybe (Value Text)
fontConfiguration :: AxisLabelOptionsProperty -> Maybe FontConfigurationProperty
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
customLabel :: Maybe (Value Text)
fontConfiguration :: Maybe FontConfigurationProperty
..}
= AxisLabelOptionsProperty {applyTo :: Maybe AxisLabelReferenceOptionsProperty
applyTo = AxisLabelReferenceOptionsProperty
-> Maybe AxisLabelReferenceOptionsProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ApplyTo" AxisLabelOptionsProperty
AxisLabelReferenceOptionsProperty
newValue, Maybe (Value Text)
Maybe FontConfigurationProperty
()
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fontConfiguration :: Maybe FontConfigurationProperty
haddock_workaround_ :: ()
customLabel :: Maybe (Value Text)
fontConfiguration :: Maybe FontConfigurationProperty
..}
instance Property "CustomLabel" AxisLabelOptionsProperty where
type PropertyType "CustomLabel" AxisLabelOptionsProperty = Value Prelude.Text
set :: PropertyType "CustomLabel" AxisLabelOptionsProperty
-> AxisLabelOptionsProperty -> AxisLabelOptionsProperty
set PropertyType "CustomLabel" AxisLabelOptionsProperty
newValue AxisLabelOptionsProperty {Maybe (Value Text)
Maybe AxisLabelReferenceOptionsProperty
Maybe FontConfigurationProperty
()
haddock_workaround_ :: AxisLabelOptionsProperty -> ()
applyTo :: AxisLabelOptionsProperty -> Maybe AxisLabelReferenceOptionsProperty
customLabel :: AxisLabelOptionsProperty -> Maybe (Value Text)
fontConfiguration :: AxisLabelOptionsProperty -> Maybe FontConfigurationProperty
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
customLabel :: Maybe (Value Text)
fontConfiguration :: Maybe FontConfigurationProperty
..}
= AxisLabelOptionsProperty
{customLabel :: Maybe (Value Text)
customLabel = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomLabel" AxisLabelOptionsProperty
Value Text
newValue, Maybe AxisLabelReferenceOptionsProperty
Maybe FontConfigurationProperty
()
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
fontConfiguration :: Maybe FontConfigurationProperty
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
fontConfiguration :: Maybe FontConfigurationProperty
..}
instance Property "FontConfiguration" AxisLabelOptionsProperty where
type PropertyType "FontConfiguration" AxisLabelOptionsProperty = FontConfigurationProperty
set :: PropertyType "FontConfiguration" AxisLabelOptionsProperty
-> AxisLabelOptionsProperty -> AxisLabelOptionsProperty
set PropertyType "FontConfiguration" AxisLabelOptionsProperty
newValue AxisLabelOptionsProperty {Maybe (Value Text)
Maybe AxisLabelReferenceOptionsProperty
Maybe FontConfigurationProperty
()
haddock_workaround_ :: AxisLabelOptionsProperty -> ()
applyTo :: AxisLabelOptionsProperty -> Maybe AxisLabelReferenceOptionsProperty
customLabel :: AxisLabelOptionsProperty -> Maybe (Value Text)
fontConfiguration :: AxisLabelOptionsProperty -> Maybe FontConfigurationProperty
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
customLabel :: Maybe (Value Text)
fontConfiguration :: Maybe FontConfigurationProperty
..}
= AxisLabelOptionsProperty
{fontConfiguration :: Maybe FontConfigurationProperty
fontConfiguration = FontConfigurationProperty -> Maybe FontConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FontConfiguration" AxisLabelOptionsProperty
FontConfigurationProperty
newValue, Maybe (Value Text)
Maybe AxisLabelReferenceOptionsProperty
()
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
customLabel :: Maybe (Value Text)
haddock_workaround_ :: ()
applyTo :: Maybe AxisLabelReferenceOptionsProperty
customLabel :: Maybe (Value Text)
..}