module Stratosphere.QuickSight.Template.NumericalDimensionFieldProperty (
module Exports, NumericalDimensionFieldProperty(..),
mkNumericalDimensionFieldProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.ColumnIdentifierProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Template.NumberFormatConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data NumericalDimensionFieldProperty
=
NumericalDimensionFieldProperty {NumericalDimensionFieldProperty -> ()
haddock_workaround_ :: (),
NumericalDimensionFieldProperty -> ColumnIdentifierProperty
column :: ColumnIdentifierProperty,
NumericalDimensionFieldProperty -> Value Text
fieldId :: (Value Prelude.Text),
NumericalDimensionFieldProperty
-> Maybe NumberFormatConfigurationProperty
formatConfiguration :: (Prelude.Maybe NumberFormatConfigurationProperty),
NumericalDimensionFieldProperty -> Maybe (Value Text)
hierarchyId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty -> Bool
(NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty -> Bool)
-> (NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty -> Bool)
-> Eq NumericalDimensionFieldProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty -> Bool
== :: NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty -> Bool
$c/= :: NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty -> Bool
/= :: NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty -> Bool
Prelude.Eq, Int -> NumericalDimensionFieldProperty -> ShowS
[NumericalDimensionFieldProperty] -> ShowS
NumericalDimensionFieldProperty -> String
(Int -> NumericalDimensionFieldProperty -> ShowS)
-> (NumericalDimensionFieldProperty -> String)
-> ([NumericalDimensionFieldProperty] -> ShowS)
-> Show NumericalDimensionFieldProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NumericalDimensionFieldProperty -> ShowS
showsPrec :: Int -> NumericalDimensionFieldProperty -> ShowS
$cshow :: NumericalDimensionFieldProperty -> String
show :: NumericalDimensionFieldProperty -> String
$cshowList :: [NumericalDimensionFieldProperty] -> ShowS
showList :: [NumericalDimensionFieldProperty] -> ShowS
Prelude.Show)
mkNumericalDimensionFieldProperty ::
ColumnIdentifierProperty
-> Value Prelude.Text -> NumericalDimensionFieldProperty
mkNumericalDimensionFieldProperty :: ColumnIdentifierProperty
-> Value Text -> NumericalDimensionFieldProperty
mkNumericalDimensionFieldProperty ColumnIdentifierProperty
column Value Text
fieldId
= NumericalDimensionFieldProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), column :: ColumnIdentifierProperty
column = ColumnIdentifierProperty
column, fieldId :: Value Text
fieldId = Value Text
fieldId,
formatConfiguration :: Maybe NumberFormatConfigurationProperty
formatConfiguration = Maybe NumberFormatConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
hierarchyId :: Maybe (Value Text)
hierarchyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties NumericalDimensionFieldProperty where
toResourceProperties :: NumericalDimensionFieldProperty -> ResourceProperties
toResourceProperties NumericalDimensionFieldProperty {Maybe (Value Text)
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalDimensionFieldProperty -> ()
column :: NumericalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalDimensionFieldProperty -> Value Text
formatConfiguration :: NumericalDimensionFieldProperty
-> Maybe NumberFormatConfigurationProperty
hierarchyId :: NumericalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.NumericalDimensionField",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Column" Key -> ColumnIdentifierProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ColumnIdentifierProperty
column, Key
"FieldId" 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
fieldId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> NumberFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FormatConfiguration" (NumberFormatConfigurationProperty -> (Key, Value))
-> Maybe NumberFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumberFormatConfigurationProperty
formatConfiguration,
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
"HierarchyId" (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)
hierarchyId]))}
instance JSON.ToJSON NumericalDimensionFieldProperty where
toJSON :: NumericalDimensionFieldProperty -> Value
toJSON NumericalDimensionFieldProperty {Maybe (Value Text)
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalDimensionFieldProperty -> ()
column :: NumericalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalDimensionFieldProperty -> Value Text
formatConfiguration :: NumericalDimensionFieldProperty
-> Maybe NumberFormatConfigurationProperty
hierarchyId :: NumericalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Column" Key -> ColumnIdentifierProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= ColumnIdentifierProperty
column, Key
"FieldId" 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
fieldId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> NumberFormatConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"FormatConfiguration" (NumberFormatConfigurationProperty -> (Key, Value))
-> Maybe NumberFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe NumberFormatConfigurationProperty
formatConfiguration,
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
"HierarchyId" (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)
hierarchyId])))
instance Property "Column" NumericalDimensionFieldProperty where
type PropertyType "Column" NumericalDimensionFieldProperty = ColumnIdentifierProperty
set :: PropertyType "Column" NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty
set PropertyType "Column" NumericalDimensionFieldProperty
newValue NumericalDimensionFieldProperty {Maybe (Value Text)
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalDimensionFieldProperty -> ()
column :: NumericalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalDimensionFieldProperty -> Value Text
formatConfiguration :: NumericalDimensionFieldProperty
-> Maybe NumberFormatConfigurationProperty
hierarchyId :: NumericalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= NumericalDimensionFieldProperty {column :: ColumnIdentifierProperty
column = PropertyType "Column" NumericalDimensionFieldProperty
ColumnIdentifierProperty
newValue, Maybe (Value Text)
Maybe NumberFormatConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
haddock_workaround_ :: ()
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
instance Property "FieldId" NumericalDimensionFieldProperty where
type PropertyType "FieldId" NumericalDimensionFieldProperty = Value Prelude.Text
set :: PropertyType "FieldId" NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty
set PropertyType "FieldId" NumericalDimensionFieldProperty
newValue NumericalDimensionFieldProperty {Maybe (Value Text)
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalDimensionFieldProperty -> ()
column :: NumericalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalDimensionFieldProperty -> Value Text
formatConfiguration :: NumericalDimensionFieldProperty
-> Maybe NumberFormatConfigurationProperty
hierarchyId :: NumericalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= NumericalDimensionFieldProperty {fieldId :: Value Text
fieldId = PropertyType "FieldId" NumericalDimensionFieldProperty
Value Text
newValue, Maybe (Value Text)
Maybe NumberFormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
instance Property "FormatConfiguration" NumericalDimensionFieldProperty where
type PropertyType "FormatConfiguration" NumericalDimensionFieldProperty = NumberFormatConfigurationProperty
set :: PropertyType "FormatConfiguration" NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty
set PropertyType "FormatConfiguration" NumericalDimensionFieldProperty
newValue NumericalDimensionFieldProperty {Maybe (Value Text)
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalDimensionFieldProperty -> ()
column :: NumericalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalDimensionFieldProperty -> Value Text
formatConfiguration :: NumericalDimensionFieldProperty
-> Maybe NumberFormatConfigurationProperty
hierarchyId :: NumericalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= NumericalDimensionFieldProperty
{formatConfiguration :: Maybe NumberFormatConfigurationProperty
formatConfiguration = NumberFormatConfigurationProperty
-> Maybe NumberFormatConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FormatConfiguration" NumericalDimensionFieldProperty
NumberFormatConfigurationProperty
newValue, Maybe (Value Text)
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
hierarchyId :: Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
hierarchyId :: Maybe (Value Text)
..}
instance Property "HierarchyId" NumericalDimensionFieldProperty where
type PropertyType "HierarchyId" NumericalDimensionFieldProperty = Value Prelude.Text
set :: PropertyType "HierarchyId" NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty
-> NumericalDimensionFieldProperty
set PropertyType "HierarchyId" NumericalDimensionFieldProperty
newValue NumericalDimensionFieldProperty {Maybe (Value Text)
Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: NumericalDimensionFieldProperty -> ()
column :: NumericalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: NumericalDimensionFieldProperty -> Value Text
formatConfiguration :: NumericalDimensionFieldProperty
-> Maybe NumberFormatConfigurationProperty
hierarchyId :: NumericalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= NumericalDimensionFieldProperty
{hierarchyId :: Maybe (Value Text)
hierarchyId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "HierarchyId" NumericalDimensionFieldProperty
Value Text
newValue, Maybe NumberFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe NumberFormatConfigurationProperty
..}