module Stratosphere.QuickSight.Template.TemplateSourceAnalysisProperty (
module Exports, TemplateSourceAnalysisProperty(..),
mkTemplateSourceAnalysisProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Template.DataSetReferenceProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TemplateSourceAnalysisProperty
=
TemplateSourceAnalysisProperty {TemplateSourceAnalysisProperty -> ()
haddock_workaround_ :: (),
TemplateSourceAnalysisProperty -> Value Text
arn :: (Value Prelude.Text),
TemplateSourceAnalysisProperty -> [DataSetReferenceProperty]
dataSetReferences :: [DataSetReferenceProperty]}
deriving stock (TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> Bool
(TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> Bool)
-> (TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> Bool)
-> Eq TemplateSourceAnalysisProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> Bool
== :: TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> Bool
$c/= :: TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> Bool
/= :: TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> Bool
Prelude.Eq, Int -> TemplateSourceAnalysisProperty -> ShowS
[TemplateSourceAnalysisProperty] -> ShowS
TemplateSourceAnalysisProperty -> String
(Int -> TemplateSourceAnalysisProperty -> ShowS)
-> (TemplateSourceAnalysisProperty -> String)
-> ([TemplateSourceAnalysisProperty] -> ShowS)
-> Show TemplateSourceAnalysisProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TemplateSourceAnalysisProperty -> ShowS
showsPrec :: Int -> TemplateSourceAnalysisProperty -> ShowS
$cshow :: TemplateSourceAnalysisProperty -> String
show :: TemplateSourceAnalysisProperty -> String
$cshowList :: [TemplateSourceAnalysisProperty] -> ShowS
showList :: [TemplateSourceAnalysisProperty] -> ShowS
Prelude.Show)
mkTemplateSourceAnalysisProperty ::
Value Prelude.Text
-> [DataSetReferenceProperty] -> TemplateSourceAnalysisProperty
mkTemplateSourceAnalysisProperty :: Value Text
-> [DataSetReferenceProperty] -> TemplateSourceAnalysisProperty
mkTemplateSourceAnalysisProperty Value Text
arn [DataSetReferenceProperty]
dataSetReferences
= TemplateSourceAnalysisProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), arn :: Value Text
arn = Value Text
arn,
dataSetReferences :: [DataSetReferenceProperty]
dataSetReferences = [DataSetReferenceProperty]
dataSetReferences}
instance ToResourceProperties TemplateSourceAnalysisProperty where
toResourceProperties :: TemplateSourceAnalysisProperty -> ResourceProperties
toResourceProperties TemplateSourceAnalysisProperty {[DataSetReferenceProperty]
()
Value Text
haddock_workaround_ :: TemplateSourceAnalysisProperty -> ()
arn :: TemplateSourceAnalysisProperty -> Value Text
dataSetReferences :: TemplateSourceAnalysisProperty -> [DataSetReferenceProperty]
haddock_workaround_ :: ()
arn :: Value Text
dataSetReferences :: [DataSetReferenceProperty]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::QuickSight::Template.TemplateSourceAnalysis",
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 TemplateSourceAnalysisProperty where
toJSON :: TemplateSourceAnalysisProperty -> Value
toJSON TemplateSourceAnalysisProperty {[DataSetReferenceProperty]
()
Value Text
haddock_workaround_ :: TemplateSourceAnalysisProperty -> ()
arn :: TemplateSourceAnalysisProperty -> Value Text
dataSetReferences :: TemplateSourceAnalysisProperty -> [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" TemplateSourceAnalysisProperty where
type PropertyType "Arn" TemplateSourceAnalysisProperty = Value Prelude.Text
set :: PropertyType "Arn" TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> TemplateSourceAnalysisProperty
set PropertyType "Arn" TemplateSourceAnalysisProperty
newValue TemplateSourceAnalysisProperty {[DataSetReferenceProperty]
()
Value Text
haddock_workaround_ :: TemplateSourceAnalysisProperty -> ()
arn :: TemplateSourceAnalysisProperty -> Value Text
dataSetReferences :: TemplateSourceAnalysisProperty -> [DataSetReferenceProperty]
haddock_workaround_ :: ()
arn :: Value Text
dataSetReferences :: [DataSetReferenceProperty]
..}
= TemplateSourceAnalysisProperty {arn :: Value Text
arn = PropertyType "Arn" TemplateSourceAnalysisProperty
Value Text
newValue, [DataSetReferenceProperty]
()
haddock_workaround_ :: ()
dataSetReferences :: [DataSetReferenceProperty]
haddock_workaround_ :: ()
dataSetReferences :: [DataSetReferenceProperty]
..}
instance Property "DataSetReferences" TemplateSourceAnalysisProperty where
type PropertyType "DataSetReferences" TemplateSourceAnalysisProperty = [DataSetReferenceProperty]
set :: PropertyType "DataSetReferences" TemplateSourceAnalysisProperty
-> TemplateSourceAnalysisProperty -> TemplateSourceAnalysisProperty
set PropertyType "DataSetReferences" TemplateSourceAnalysisProperty
newValue TemplateSourceAnalysisProperty {[DataSetReferenceProperty]
()
Value Text
haddock_workaround_ :: TemplateSourceAnalysisProperty -> ()
arn :: TemplateSourceAnalysisProperty -> Value Text
dataSetReferences :: TemplateSourceAnalysisProperty -> [DataSetReferenceProperty]
haddock_workaround_ :: ()
arn :: Value Text
dataSetReferences :: [DataSetReferenceProperty]
..}
= TemplateSourceAnalysisProperty {dataSetReferences :: [DataSetReferenceProperty]
dataSetReferences = [DataSetReferenceProperty]
PropertyType "DataSetReferences" TemplateSourceAnalysisProperty
newValue, ()
Value Text
haddock_workaround_ :: ()
arn :: Value Text
haddock_workaround_ :: ()
arn :: Value Text
..}