module Stratosphere.QuickSight.DataSet.ColumnTagProperty (
module Exports, ColumnTagProperty(..), mkColumnTagProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.DataSet.ColumnDescriptionProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ColumnTagProperty
=
ColumnTagProperty {ColumnTagProperty -> ()
haddock_workaround_ :: (),
ColumnTagProperty -> Maybe ColumnDescriptionProperty
columnDescription :: (Prelude.Maybe ColumnDescriptionProperty),
ColumnTagProperty -> Maybe (Value Text)
columnGeographicRole :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (ColumnTagProperty -> ColumnTagProperty -> Bool
(ColumnTagProperty -> ColumnTagProperty -> Bool)
-> (ColumnTagProperty -> ColumnTagProperty -> Bool)
-> Eq ColumnTagProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ColumnTagProperty -> ColumnTagProperty -> Bool
== :: ColumnTagProperty -> ColumnTagProperty -> Bool
$c/= :: ColumnTagProperty -> ColumnTagProperty -> Bool
/= :: ColumnTagProperty -> ColumnTagProperty -> Bool
Prelude.Eq, Int -> ColumnTagProperty -> ShowS
[ColumnTagProperty] -> ShowS
ColumnTagProperty -> String
(Int -> ColumnTagProperty -> ShowS)
-> (ColumnTagProperty -> String)
-> ([ColumnTagProperty] -> ShowS)
-> Show ColumnTagProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ColumnTagProperty -> ShowS
showsPrec :: Int -> ColumnTagProperty -> ShowS
$cshow :: ColumnTagProperty -> String
show :: ColumnTagProperty -> String
$cshowList :: [ColumnTagProperty] -> ShowS
showList :: [ColumnTagProperty] -> ShowS
Prelude.Show)
mkColumnTagProperty :: ColumnTagProperty
mkColumnTagProperty :: ColumnTagProperty
mkColumnTagProperty
= ColumnTagProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), columnDescription :: Maybe ColumnDescriptionProperty
columnDescription = Maybe ColumnDescriptionProperty
forall a. Maybe a
Prelude.Nothing,
columnGeographicRole :: Maybe (Value Text)
columnGeographicRole = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ColumnTagProperty where
toResourceProperties :: ColumnTagProperty -> ResourceProperties
toResourceProperties ColumnTagProperty {Maybe (Value Text)
Maybe ColumnDescriptionProperty
()
haddock_workaround_ :: ColumnTagProperty -> ()
columnDescription :: ColumnTagProperty -> Maybe ColumnDescriptionProperty
columnGeographicRole :: ColumnTagProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnDescription :: Maybe ColumnDescriptionProperty
columnGeographicRole :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::DataSet.ColumnTag",
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 -> ColumnDescriptionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnDescription" (ColumnDescriptionProperty -> (Key, Value))
-> Maybe ColumnDescriptionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ColumnDescriptionProperty
columnDescription,
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
"ColumnGeographicRole"
(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)
columnGeographicRole])}
instance JSON.ToJSON ColumnTagProperty where
toJSON :: ColumnTagProperty -> Value
toJSON ColumnTagProperty {Maybe (Value Text)
Maybe ColumnDescriptionProperty
()
haddock_workaround_ :: ColumnTagProperty -> ()
columnDescription :: ColumnTagProperty -> Maybe ColumnDescriptionProperty
columnGeographicRole :: ColumnTagProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnDescription :: Maybe ColumnDescriptionProperty
columnGeographicRole :: 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 -> ColumnDescriptionProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnDescription" (ColumnDescriptionProperty -> (Key, Value))
-> Maybe ColumnDescriptionProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ColumnDescriptionProperty
columnDescription,
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
"ColumnGeographicRole"
(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)
columnGeographicRole]))
instance Property "ColumnDescription" ColumnTagProperty where
type PropertyType "ColumnDescription" ColumnTagProperty = ColumnDescriptionProperty
set :: PropertyType "ColumnDescription" ColumnTagProperty
-> ColumnTagProperty -> ColumnTagProperty
set PropertyType "ColumnDescription" ColumnTagProperty
newValue ColumnTagProperty {Maybe (Value Text)
Maybe ColumnDescriptionProperty
()
haddock_workaround_ :: ColumnTagProperty -> ()
columnDescription :: ColumnTagProperty -> Maybe ColumnDescriptionProperty
columnGeographicRole :: ColumnTagProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnDescription :: Maybe ColumnDescriptionProperty
columnGeographicRole :: Maybe (Value Text)
..}
= ColumnTagProperty {columnDescription :: Maybe ColumnDescriptionProperty
columnDescription = ColumnDescriptionProperty -> Maybe ColumnDescriptionProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ColumnDescription" ColumnTagProperty
ColumnDescriptionProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
columnGeographicRole :: Maybe (Value Text)
haddock_workaround_ :: ()
columnGeographicRole :: Maybe (Value Text)
..}
instance Property "ColumnGeographicRole" ColumnTagProperty where
type PropertyType "ColumnGeographicRole" ColumnTagProperty = Value Prelude.Text
set :: PropertyType "ColumnGeographicRole" ColumnTagProperty
-> ColumnTagProperty -> ColumnTagProperty
set PropertyType "ColumnGeographicRole" ColumnTagProperty
newValue ColumnTagProperty {Maybe (Value Text)
Maybe ColumnDescriptionProperty
()
haddock_workaround_ :: ColumnTagProperty -> ()
columnDescription :: ColumnTagProperty -> Maybe ColumnDescriptionProperty
columnGeographicRole :: ColumnTagProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnDescription :: Maybe ColumnDescriptionProperty
columnGeographicRole :: Maybe (Value Text)
..}
= ColumnTagProperty
{columnGeographicRole :: Maybe (Value Text)
columnGeographicRole = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ColumnGeographicRole" ColumnTagProperty
Value Text
newValue, Maybe ColumnDescriptionProperty
()
haddock_workaround_ :: ()
columnDescription :: Maybe ColumnDescriptionProperty
haddock_workaround_ :: ()
columnDescription :: Maybe ColumnDescriptionProperty
..}