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