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