module Stratosphere.QuickSight.Dashboard.ColumnConfigurationProperty (
        module Exports, ColumnConfigurationProperty(..),
        mkColumnConfigurationProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ColorsConfigurationProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.ColumnIdentifierProperty as Exports
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.FormatConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ColumnConfigurationProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-columnconfiguration.html>
    ColumnConfigurationProperty {ColumnConfigurationProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-columnconfiguration.html#cfn-quicksight-dashboard-columnconfiguration-colorsconfiguration>
                                 ColumnConfigurationProperty -> Maybe ColorsConfigurationProperty
colorsConfiguration :: (Prelude.Maybe ColorsConfigurationProperty),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-columnconfiguration.html#cfn-quicksight-dashboard-columnconfiguration-column>
                                 ColumnConfigurationProperty -> ColumnIdentifierProperty
column :: ColumnIdentifierProperty,
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-columnconfiguration.html#cfn-quicksight-dashboard-columnconfiguration-formatconfiguration>
                                 ColumnConfigurationProperty -> Maybe FormatConfigurationProperty
formatConfiguration :: (Prelude.Maybe FormatConfigurationProperty),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-columnconfiguration.html#cfn-quicksight-dashboard-columnconfiguration-role>
                                 ColumnConfigurationProperty -> Maybe (Value Text)
role :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
(ColumnConfigurationProperty
 -> ColumnConfigurationProperty -> Bool)
-> (ColumnConfigurationProperty
    -> ColumnConfigurationProperty -> Bool)
-> Eq ColumnConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
== :: ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
$c/= :: ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
/= :: ColumnConfigurationProperty -> ColumnConfigurationProperty -> Bool
Prelude.Eq, Int -> ColumnConfigurationProperty -> ShowS
[ColumnConfigurationProperty] -> ShowS
ColumnConfigurationProperty -> String
(Int -> ColumnConfigurationProperty -> ShowS)
-> (ColumnConfigurationProperty -> String)
-> ([ColumnConfigurationProperty] -> ShowS)
-> Show ColumnConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ColumnConfigurationProperty -> ShowS
showsPrec :: Int -> ColumnConfigurationProperty -> ShowS
$cshow :: ColumnConfigurationProperty -> String
show :: ColumnConfigurationProperty -> String
$cshowList :: [ColumnConfigurationProperty] -> ShowS
showList :: [ColumnConfigurationProperty] -> ShowS
Prelude.Show)
mkColumnConfigurationProperty ::
  ColumnIdentifierProperty -> ColumnConfigurationProperty
mkColumnConfigurationProperty :: ColumnIdentifierProperty -> ColumnConfigurationProperty
mkColumnConfigurationProperty ColumnIdentifierProperty
column
  = ColumnConfigurationProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), column :: ColumnIdentifierProperty
column = ColumnIdentifierProperty
column,
       colorsConfiguration :: Maybe ColorsConfigurationProperty
colorsConfiguration = Maybe ColorsConfigurationProperty
forall a. Maybe a
Prelude.Nothing,
       formatConfiguration :: Maybe FormatConfigurationProperty
formatConfiguration = Maybe FormatConfigurationProperty
forall a. Maybe a
Prelude.Nothing, role :: Maybe (Value Text)
role = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ColumnConfigurationProperty where
  toResourceProperties :: ColumnConfigurationProperty -> ResourceProperties
toResourceProperties ColumnConfigurationProperty {Maybe (Value Text)
Maybe ColorsConfigurationProperty
Maybe FormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ColumnConfigurationProperty -> ()
colorsConfiguration :: ColumnConfigurationProperty -> Maybe ColorsConfigurationProperty
column :: ColumnConfigurationProperty -> ColumnIdentifierProperty
formatConfiguration :: ColumnConfigurationProperty -> Maybe FormatConfigurationProperty
role :: ColumnConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.ColumnConfiguration",
         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]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> ColorsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColorsConfiguration" (ColorsConfigurationProperty -> (Key, Value))
-> Maybe ColorsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ColorsConfigurationProperty
colorsConfiguration,
                               Key -> FormatConfigurationProperty -> (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" (FormatConfigurationProperty -> (Key, Value))
-> Maybe FormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FormatConfigurationProperty
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
"Role" (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)
role]))}
instance JSON.ToJSON ColumnConfigurationProperty where
  toJSON :: ColumnConfigurationProperty -> Value
toJSON ColumnConfigurationProperty {Maybe (Value Text)
Maybe ColorsConfigurationProperty
Maybe FormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ColumnConfigurationProperty -> ()
colorsConfiguration :: ColumnConfigurationProperty -> Maybe ColorsConfigurationProperty
column :: ColumnConfigurationProperty -> ColumnIdentifierProperty
formatConfiguration :: ColumnConfigurationProperty -> Maybe FormatConfigurationProperty
role :: ColumnConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: 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]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> ColorsConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColorsConfiguration" (ColorsConfigurationProperty -> (Key, Value))
-> Maybe ColorsConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ColorsConfigurationProperty
colorsConfiguration,
                  Key -> FormatConfigurationProperty -> (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" (FormatConfigurationProperty -> (Key, Value))
-> Maybe FormatConfigurationProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe FormatConfigurationProperty
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
"Role" (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)
role])))
instance Property "ColorsConfiguration" ColumnConfigurationProperty where
  type PropertyType "ColorsConfiguration" ColumnConfigurationProperty = ColorsConfigurationProperty
  set :: PropertyType "ColorsConfiguration" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "ColorsConfiguration" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe (Value Text)
Maybe ColorsConfigurationProperty
Maybe FormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ColumnConfigurationProperty -> ()
colorsConfiguration :: ColumnConfigurationProperty -> Maybe ColorsConfigurationProperty
column :: ColumnConfigurationProperty -> ColumnIdentifierProperty
formatConfiguration :: ColumnConfigurationProperty -> Maybe FormatConfigurationProperty
role :: ColumnConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
..}
    = ColumnConfigurationProperty
        {colorsConfiguration :: Maybe ColorsConfigurationProperty
colorsConfiguration = ColorsConfigurationProperty -> Maybe ColorsConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ColorsConfiguration" ColumnConfigurationProperty
ColorsConfigurationProperty
newValue, Maybe (Value Text)
Maybe FormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
haddock_workaround_ :: ()
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
..}
instance Property "Column" ColumnConfigurationProperty where
  type PropertyType "Column" ColumnConfigurationProperty = ColumnIdentifierProperty
  set :: PropertyType "Column" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "Column" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe (Value Text)
Maybe ColorsConfigurationProperty
Maybe FormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ColumnConfigurationProperty -> ()
colorsConfiguration :: ColumnConfigurationProperty -> Maybe ColorsConfigurationProperty
column :: ColumnConfigurationProperty -> ColumnIdentifierProperty
formatConfiguration :: ColumnConfigurationProperty -> Maybe FormatConfigurationProperty
role :: ColumnConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
..}
    = ColumnConfigurationProperty {column :: ColumnIdentifierProperty
column = PropertyType "Column" ColumnConfigurationProperty
ColumnIdentifierProperty
newValue, Maybe (Value Text)
Maybe ColorsConfigurationProperty
Maybe FormatConfigurationProperty
()
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
..}
instance Property "FormatConfiguration" ColumnConfigurationProperty where
  type PropertyType "FormatConfiguration" ColumnConfigurationProperty = FormatConfigurationProperty
  set :: PropertyType "FormatConfiguration" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "FormatConfiguration" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe (Value Text)
Maybe ColorsConfigurationProperty
Maybe FormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ColumnConfigurationProperty -> ()
colorsConfiguration :: ColumnConfigurationProperty -> Maybe ColorsConfigurationProperty
column :: ColumnConfigurationProperty -> ColumnIdentifierProperty
formatConfiguration :: ColumnConfigurationProperty -> Maybe FormatConfigurationProperty
role :: ColumnConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
..}
    = ColumnConfigurationProperty
        {formatConfiguration :: Maybe FormatConfigurationProperty
formatConfiguration = FormatConfigurationProperty -> Maybe FormatConfigurationProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "FormatConfiguration" ColumnConfigurationProperty
FormatConfigurationProperty
newValue, Maybe (Value Text)
Maybe ColorsConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
role :: Maybe (Value Text)
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
role :: Maybe (Value Text)
..}
instance Property "Role" ColumnConfigurationProperty where
  type PropertyType "Role" ColumnConfigurationProperty = Value Prelude.Text
  set :: PropertyType "Role" ColumnConfigurationProperty
-> ColumnConfigurationProperty -> ColumnConfigurationProperty
set PropertyType "Role" ColumnConfigurationProperty
newValue ColumnConfigurationProperty {Maybe (Value Text)
Maybe ColorsConfigurationProperty
Maybe FormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ColumnConfigurationProperty -> ()
colorsConfiguration :: ColumnConfigurationProperty -> Maybe ColorsConfigurationProperty
column :: ColumnConfigurationProperty -> ColumnIdentifierProperty
formatConfiguration :: ColumnConfigurationProperty -> Maybe FormatConfigurationProperty
role :: ColumnConfigurationProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
role :: Maybe (Value Text)
..}
    = ColumnConfigurationProperty {role :: Maybe (Value Text)
role = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Role" ColumnConfigurationProperty
Value Text
newValue, Maybe ColorsConfigurationProperty
Maybe FormatConfigurationProperty
()
ColumnIdentifierProperty
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
haddock_workaround_ :: ()
colorsConfiguration :: Maybe ColorsConfigurationProperty
column :: ColumnIdentifierProperty
formatConfiguration :: Maybe FormatConfigurationProperty
..}