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