module Stratosphere.QuickSight.Dashboard.DashboardSourceTemplateProperty (
        module Exports, DashboardSourceTemplateProperty(..),
        mkDashboardSourceTemplateProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Dashboard.DataSetReferenceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data DashboardSourceTemplateProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-dashboardsourcetemplate.html>
    DashboardSourceTemplateProperty {DashboardSourceTemplateProperty -> ()
haddock_workaround_ :: (),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-dashboardsourcetemplate.html#cfn-quicksight-dashboard-dashboardsourcetemplate-arn>
                                     DashboardSourceTemplateProperty -> Value Text
arn :: (Value Prelude.Text),
                                     -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-dashboard-dashboardsourcetemplate.html#cfn-quicksight-dashboard-dashboardsourcetemplate-datasetreferences>
                                     DashboardSourceTemplateProperty -> [DataSetReferenceProperty]
dataSetReferences :: [DataSetReferenceProperty]}
  deriving stock (DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty -> Bool
(DashboardSourceTemplateProperty
 -> DashboardSourceTemplateProperty -> Bool)
-> (DashboardSourceTemplateProperty
    -> DashboardSourceTemplateProperty -> Bool)
-> Eq DashboardSourceTemplateProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty -> Bool
== :: DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty -> Bool
$c/= :: DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty -> Bool
/= :: DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty -> Bool
Prelude.Eq, Int -> DashboardSourceTemplateProperty -> ShowS
[DashboardSourceTemplateProperty] -> ShowS
DashboardSourceTemplateProperty -> String
(Int -> DashboardSourceTemplateProperty -> ShowS)
-> (DashboardSourceTemplateProperty -> String)
-> ([DashboardSourceTemplateProperty] -> ShowS)
-> Show DashboardSourceTemplateProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> DashboardSourceTemplateProperty -> ShowS
showsPrec :: Int -> DashboardSourceTemplateProperty -> ShowS
$cshow :: DashboardSourceTemplateProperty -> String
show :: DashboardSourceTemplateProperty -> String
$cshowList :: [DashboardSourceTemplateProperty] -> ShowS
showList :: [DashboardSourceTemplateProperty] -> ShowS
Prelude.Show)
mkDashboardSourceTemplateProperty ::
  Value Prelude.Text
  -> [DataSetReferenceProperty] -> DashboardSourceTemplateProperty
mkDashboardSourceTemplateProperty :: Value Text
-> [DataSetReferenceProperty] -> DashboardSourceTemplateProperty
mkDashboardSourceTemplateProperty Value Text
arn [DataSetReferenceProperty]
dataSetReferences
  = DashboardSourceTemplateProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), arn :: Value Text
arn = Value Text
arn,
       dataSetReferences :: [DataSetReferenceProperty]
dataSetReferences = [DataSetReferenceProperty]
dataSetReferences}
instance ToResourceProperties DashboardSourceTemplateProperty where
  toResourceProperties :: DashboardSourceTemplateProperty -> ResourceProperties
toResourceProperties DashboardSourceTemplateProperty {[DataSetReferenceProperty]
()
Value Text
haddock_workaround_ :: DashboardSourceTemplateProperty -> ()
arn :: DashboardSourceTemplateProperty -> Value Text
dataSetReferences :: DashboardSourceTemplateProperty -> [DataSetReferenceProperty]
haddock_workaround_ :: ()
arn :: Value Text
dataSetReferences :: [DataSetReferenceProperty]
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Dashboard.DashboardSourceTemplate",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Arn" 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..= Value Text
arn,
                       Key
"DataSetReferences" Key -> [DataSetReferenceProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [DataSetReferenceProperty]
dataSetReferences]}
instance JSON.ToJSON DashboardSourceTemplateProperty where
  toJSON :: DashboardSourceTemplateProperty -> Value
toJSON DashboardSourceTemplateProperty {[DataSetReferenceProperty]
()
Value Text
haddock_workaround_ :: DashboardSourceTemplateProperty -> ()
arn :: DashboardSourceTemplateProperty -> Value Text
dataSetReferences :: DashboardSourceTemplateProperty -> [DataSetReferenceProperty]
haddock_workaround_ :: ()
arn :: Value Text
dataSetReferences :: [DataSetReferenceProperty]
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"Arn" 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..= Value Text
arn, Key
"DataSetReferences" Key -> [DataSetReferenceProperty] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= [DataSetReferenceProperty]
dataSetReferences]
instance Property "Arn" DashboardSourceTemplateProperty where
  type PropertyType "Arn" DashboardSourceTemplateProperty = Value Prelude.Text
  set :: PropertyType "Arn" DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty
set PropertyType "Arn" DashboardSourceTemplateProperty
newValue DashboardSourceTemplateProperty {[DataSetReferenceProperty]
()
Value Text
haddock_workaround_ :: DashboardSourceTemplateProperty -> ()
arn :: DashboardSourceTemplateProperty -> Value Text
dataSetReferences :: DashboardSourceTemplateProperty -> [DataSetReferenceProperty]
haddock_workaround_ :: ()
arn :: Value Text
dataSetReferences :: [DataSetReferenceProperty]
..}
    = DashboardSourceTemplateProperty {arn :: Value Text
arn = PropertyType "Arn" DashboardSourceTemplateProperty
Value Text
newValue, [DataSetReferenceProperty]
()
haddock_workaround_ :: ()
dataSetReferences :: [DataSetReferenceProperty]
haddock_workaround_ :: ()
dataSetReferences :: [DataSetReferenceProperty]
..}
instance Property "DataSetReferences" DashboardSourceTemplateProperty where
  type PropertyType "DataSetReferences" DashboardSourceTemplateProperty = [DataSetReferenceProperty]
  set :: PropertyType "DataSetReferences" DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty
-> DashboardSourceTemplateProperty
set PropertyType "DataSetReferences" DashboardSourceTemplateProperty
newValue DashboardSourceTemplateProperty {[DataSetReferenceProperty]
()
Value Text
haddock_workaround_ :: DashboardSourceTemplateProperty -> ()
arn :: DashboardSourceTemplateProperty -> Value Text
dataSetReferences :: DashboardSourceTemplateProperty -> [DataSetReferenceProperty]
haddock_workaround_ :: ()
arn :: Value Text
dataSetReferences :: [DataSetReferenceProperty]
..}
    = DashboardSourceTemplateProperty
        {dataSetReferences :: [DataSetReferenceProperty]
dataSetReferences = [DataSetReferenceProperty]
PropertyType "DataSetReferences" DashboardSourceTemplateProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
arn :: Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}