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