module Stratosphere.QuickSight.Analysis.LayoutProperty (
        module Exports, LayoutProperty(..), mkLayoutProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.LayoutConfigurationProperty as Exports
import Stratosphere.ResourceProperties
data LayoutProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-layout.html>
    LayoutProperty {LayoutProperty -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-layout.html#cfn-quicksight-analysis-layout-configuration>
                    LayoutProperty -> LayoutConfigurationProperty
configuration :: LayoutConfigurationProperty}
  deriving stock (LayoutProperty -> LayoutProperty -> Bool
(LayoutProperty -> LayoutProperty -> Bool)
-> (LayoutProperty -> LayoutProperty -> Bool) -> Eq LayoutProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LayoutProperty -> LayoutProperty -> Bool
== :: LayoutProperty -> LayoutProperty -> Bool
$c/= :: LayoutProperty -> LayoutProperty -> Bool
/= :: LayoutProperty -> LayoutProperty -> Bool
Prelude.Eq, Int -> LayoutProperty -> ShowS
[LayoutProperty] -> ShowS
LayoutProperty -> String
(Int -> LayoutProperty -> ShowS)
-> (LayoutProperty -> String)
-> ([LayoutProperty] -> ShowS)
-> Show LayoutProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LayoutProperty -> ShowS
showsPrec :: Int -> LayoutProperty -> ShowS
$cshow :: LayoutProperty -> String
show :: LayoutProperty -> String
$cshowList :: [LayoutProperty] -> ShowS
showList :: [LayoutProperty] -> ShowS
Prelude.Show)
mkLayoutProperty :: LayoutConfigurationProperty -> LayoutProperty
mkLayoutProperty :: LayoutConfigurationProperty -> LayoutProperty
mkLayoutProperty LayoutConfigurationProperty
configuration
  = LayoutProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), configuration :: LayoutConfigurationProperty
configuration = LayoutConfigurationProperty
configuration}
instance ToResourceProperties LayoutProperty where
  toResourceProperties :: LayoutProperty -> ResourceProperties
toResourceProperties LayoutProperty {()
LayoutConfigurationProperty
haddock_workaround_ :: LayoutProperty -> ()
configuration :: LayoutProperty -> LayoutConfigurationProperty
haddock_workaround_ :: ()
configuration :: LayoutConfigurationProperty
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.Layout",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Configuration" Key -> LayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LayoutConfigurationProperty
configuration]}
instance JSON.ToJSON LayoutProperty where
  toJSON :: LayoutProperty -> Value
toJSON LayoutProperty {()
LayoutConfigurationProperty
haddock_workaround_ :: LayoutProperty -> ()
configuration :: LayoutProperty -> LayoutConfigurationProperty
haddock_workaround_ :: ()
configuration :: LayoutConfigurationProperty
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Configuration" Key -> LayoutConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= LayoutConfigurationProperty
configuration]
instance Property "Configuration" LayoutProperty where
  type PropertyType "Configuration" LayoutProperty = LayoutConfigurationProperty
  set :: PropertyType "Configuration" LayoutProperty
-> LayoutProperty -> LayoutProperty
set PropertyType "Configuration" LayoutProperty
newValue LayoutProperty {()
LayoutConfigurationProperty
haddock_workaround_ :: LayoutProperty -> ()
configuration :: LayoutProperty -> LayoutConfigurationProperty
haddock_workaround_ :: ()
configuration :: LayoutConfigurationProperty
..}
    = LayoutProperty {configuration :: LayoutConfigurationProperty
configuration = PropertyType "Configuration" LayoutProperty
LayoutConfigurationProperty
newValue, ()
haddock_workaround_ :: ()
haddock_workaround_ :: ()
..}