module Stratosphere.QuickSight.Analysis.CategoricalDimensionFieldProperty (
module Exports, CategoricalDimensionFieldProperty(..),
mkCategoricalDimensionFieldProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.ColumnIdentifierProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.StringFormatConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CategoricalDimensionFieldProperty
=
CategoricalDimensionFieldProperty {CategoricalDimensionFieldProperty -> ()
haddock_workaround_ :: (),
CategoricalDimensionFieldProperty -> ColumnIdentifierProperty
column :: ColumnIdentifierProperty,
CategoricalDimensionFieldProperty -> Value Text
fieldId :: (Value Prelude.Text),
CategoricalDimensionFieldProperty
-> Maybe StringFormatConfigurationProperty
formatConfiguration :: (Prelude.Maybe StringFormatConfigurationProperty),
CategoricalDimensionFieldProperty -> Maybe (Value Text)
hierarchyId :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty -> Bool
(CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty -> Bool)
-> (CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty -> Bool)
-> Eq CategoricalDimensionFieldProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty -> Bool
== :: CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty -> Bool
$c/= :: CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty -> Bool
/= :: CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty -> Bool
Prelude.Eq, Int -> CategoricalDimensionFieldProperty -> ShowS
[CategoricalDimensionFieldProperty] -> ShowS
CategoricalDimensionFieldProperty -> String
(Int -> CategoricalDimensionFieldProperty -> ShowS)
-> (CategoricalDimensionFieldProperty -> String)
-> ([CategoricalDimensionFieldProperty] -> ShowS)
-> Show CategoricalDimensionFieldProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CategoricalDimensionFieldProperty -> ShowS
showsPrec :: Int -> CategoricalDimensionFieldProperty -> ShowS
$cshow :: CategoricalDimensionFieldProperty -> String
show :: CategoricalDimensionFieldProperty -> String
$cshowList :: [CategoricalDimensionFieldProperty] -> ShowS
showList :: [CategoricalDimensionFieldProperty] -> ShowS
Prelude.Show)
mkCategoricalDimensionFieldProperty ::
ColumnIdentifierProperty
-> Value Prelude.Text -> CategoricalDimensionFieldProperty
mkCategoricalDimensionFieldProperty :: ColumnIdentifierProperty
-> Value Text -> CategoricalDimensionFieldProperty
mkCategoricalDimensionFieldProperty ColumnIdentifierProperty
column Value Text
fieldId
= CategoricalDimensionFieldProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), column :: ColumnIdentifierProperty
column = ColumnIdentifierProperty
column, fieldId :: Value Text
fieldId = Value Text
fieldId,
formatConfiguration :: Maybe StringFormatConfigurationProperty
formatConfiguration = Maybe StringFormatConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
hierarchyId :: Maybe (Value Text)
hierarchyId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CategoricalDimensionFieldProperty where
toResourceProperties :: CategoricalDimensionFieldProperty -> ResourceProperties
toResourceProperties CategoricalDimensionFieldProperty {Maybe (Value Text)
Maybe StringFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: CategoricalDimensionFieldProperty -> ()
column :: CategoricalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: CategoricalDimensionFieldProperty -> Value Text
formatConfiguration :: CategoricalDimensionFieldProperty
-> Maybe StringFormatConfigurationProperty
hierarchyId :: CategoricalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.CategoricalDimensionField",
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 -> StringFormatConfigurationProperty -> (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" (StringFormatConfigurationProperty -> (Key, Value))
-> Maybe StringFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StringFormatConfigurationProperty
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 CategoricalDimensionFieldProperty where
toJSON :: CategoricalDimensionFieldProperty -> Value
toJSON CategoricalDimensionFieldProperty {Maybe (Value Text)
Maybe StringFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: CategoricalDimensionFieldProperty -> ()
column :: CategoricalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: CategoricalDimensionFieldProperty -> Value Text
formatConfiguration :: CategoricalDimensionFieldProperty
-> Maybe StringFormatConfigurationProperty
hierarchyId :: CategoricalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
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 -> StringFormatConfigurationProperty -> (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" (StringFormatConfigurationProperty -> (Key, Value))
-> Maybe StringFormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe StringFormatConfigurationProperty
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" CategoricalDimensionFieldProperty where
type PropertyType "Column" CategoricalDimensionFieldProperty = ColumnIdentifierProperty
set :: PropertyType "Column" CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty
set PropertyType "Column" CategoricalDimensionFieldProperty
newValue CategoricalDimensionFieldProperty {Maybe (Value Text)
Maybe StringFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: CategoricalDimensionFieldProperty -> ()
column :: CategoricalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: CategoricalDimensionFieldProperty -> Value Text
formatConfiguration :: CategoricalDimensionFieldProperty
-> Maybe StringFormatConfigurationProperty
hierarchyId :: CategoricalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= CategoricalDimensionFieldProperty {column :: ColumnIdentifierProperty
column = PropertyType "Column" CategoricalDimensionFieldProperty
ColumnIdentifierProperty
newValue, Maybe (Value Text)
Maybe StringFormatConfigurationProperty
()
Value Text
haddock_workaround_ :: ()
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
haddock_workaround_ :: ()
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
instance Property "FieldId" CategoricalDimensionFieldProperty where
type PropertyType "FieldId" CategoricalDimensionFieldProperty = Value Prelude.Text
set :: PropertyType "FieldId" CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty
set PropertyType "FieldId" CategoricalDimensionFieldProperty
newValue CategoricalDimensionFieldProperty {Maybe (Value Text)
Maybe StringFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: CategoricalDimensionFieldProperty -> ()
column :: CategoricalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: CategoricalDimensionFieldProperty -> Value Text
formatConfiguration :: CategoricalDimensionFieldProperty
-> Maybe StringFormatConfigurationProperty
hierarchyId :: CategoricalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= CategoricalDimensionFieldProperty {fieldId :: Value Text
fieldId = PropertyType "FieldId" CategoricalDimensionFieldProperty
Value Text
newValue, Maybe (Value Text)
Maybe StringFormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
instance Property "FormatConfiguration" CategoricalDimensionFieldProperty where
type PropertyType "FormatConfiguration" CategoricalDimensionFieldProperty = StringFormatConfigurationProperty
set :: PropertyType
"FormatConfiguration" CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty
set PropertyType
"FormatConfiguration" CategoricalDimensionFieldProperty
newValue CategoricalDimensionFieldProperty {Maybe (Value Text)
Maybe StringFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: CategoricalDimensionFieldProperty -> ()
column :: CategoricalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: CategoricalDimensionFieldProperty -> Value Text
formatConfiguration :: CategoricalDimensionFieldProperty
-> Maybe StringFormatConfigurationProperty
hierarchyId :: CategoricalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= CategoricalDimensionFieldProperty
{formatConfiguration :: Maybe StringFormatConfigurationProperty
formatConfiguration = StringFormatConfigurationProperty
-> Maybe StringFormatConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType
"FormatConfiguration" CategoricalDimensionFieldProperty
StringFormatConfigurationProperty
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" CategoricalDimensionFieldProperty where
type PropertyType "HierarchyId" CategoricalDimensionFieldProperty = Value Prelude.Text
set :: PropertyType "HierarchyId" CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty
-> CategoricalDimensionFieldProperty
set PropertyType "HierarchyId" CategoricalDimensionFieldProperty
newValue CategoricalDimensionFieldProperty {Maybe (Value Text)
Maybe StringFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: CategoricalDimensionFieldProperty -> ()
column :: CategoricalDimensionFieldProperty -> ColumnIdentifierProperty
fieldId :: CategoricalDimensionFieldProperty -> Value Text
formatConfiguration :: CategoricalDimensionFieldProperty
-> Maybe StringFormatConfigurationProperty
hierarchyId :: CategoricalDimensionFieldProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
hierarchyId :: Maybe (Value Text)
..}
= CategoricalDimensionFieldProperty
{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" CategoricalDimensionFieldProperty
Value Text
newValue, Maybe StringFormatConfigurationProperty
()
Value Text
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
fieldId :: Value Text
formatConfiguration :: Maybe StringFormatConfigurationProperty
..}