module Stratosphere.QuickSight.Dashboard.DataPathTypeProperty (
        DataPathTypeProperty(..), mkDataPathTypeProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DataPathTypeProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-datapathtype.html>
    DataPathTypeProperty {DataPathTypeProperty -> ()
haddock_workaround_ :: (),
                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-datapathtype.html#cfn-quicksight-dashboard-datapathtype-pivottabledatapathtype>
                          DataPathTypeProperty -> Maybe (Value Text)
pivotTableDataPathType :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (DataPathTypeProperty -> DataPathTypeProperty -> Bool
(DataPathTypeProperty -> DataPathTypeProperty -> Bool)
-> (DataPathTypeProperty -> DataPathTypeProperty -> Bool)
-> Eq DataPathTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DataPathTypeProperty -> DataPathTypeProperty -> Bool
== :: DataPathTypeProperty -> DataPathTypeProperty -> Bool
$c/= :: DataPathTypeProperty -> DataPathTypeProperty -> Bool
/= :: DataPathTypeProperty -> DataPathTypeProperty -> Bool
Prelude.Eq, Int -> DataPathTypeProperty -> ShowS
[DataPathTypeProperty] -> ShowS
DataPathTypeProperty -> String
(Int -> DataPathTypeProperty -> ShowS)
-> (DataPathTypeProperty -> String)
-> ([DataPathTypeProperty] -> ShowS)
-> Show DataPathTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DataPathTypeProperty -> ShowS
showsPrec :: Int -> DataPathTypeProperty -> ShowS
$cshow :: DataPathTypeProperty -> String
show :: DataPathTypeProperty -> String
$cshowList :: [DataPathTypeProperty] -> ShowS
showList :: [DataPathTypeProperty] -> ShowS
Prelude.Show)
mkDataPathTypeProperty :: DataPathTypeProperty
mkDataPathTypeProperty :: DataPathTypeProperty
mkDataPathTypeProperty
  = DataPathTypeProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       pivotTableDataPathType :: Maybe (Value Text)
pivotTableDataPathType = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties DataPathTypeProperty where
  toResourceProperties :: DataPathTypeProperty -> ResourceProperties
toResourceProperties DataPathTypeProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataPathTypeProperty -> ()
pivotTableDataPathType :: DataPathTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
pivotTableDataPathType :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.DataPathType",
         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
"PivotTableDataPathType"
                              (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)
pivotTableDataPathType])}
instance JSON.ToJSON DataPathTypeProperty where
  toJSON :: DataPathTypeProperty -> Value
toJSON DataPathTypeProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataPathTypeProperty -> ()
pivotTableDataPathType :: DataPathTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
pivotTableDataPathType :: 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
"PivotTableDataPathType"
                 (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)
pivotTableDataPathType]))
instance Property "PivotTableDataPathType" DataPathTypeProperty where
  type PropertyType "PivotTableDataPathType" DataPathTypeProperty = Value Prelude.Text
  set :: PropertyType "PivotTableDataPathType" DataPathTypeProperty
-> DataPathTypeProperty -> DataPathTypeProperty
set PropertyType "PivotTableDataPathType" DataPathTypeProperty
newValue DataPathTypeProperty {Maybe (Value Text)
()
haddock_workaround_ :: DataPathTypeProperty -> ()
pivotTableDataPathType :: DataPathTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
pivotTableDataPathType :: Maybe (Value Text)
..}
    = DataPathTypeProperty
        {pivotTableDataPathType :: Maybe (Value Text)
pivotTableDataPathType = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PivotTableDataPathType" DataPathTypeProperty
Value Text
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}