module Stratosphere.QuickSight.Analysis.CascadingControlSourceProperty (
        module Exports, CascadingControlSourceProperty(..),
        mkCascadingControlSourceProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.QuickSight.Analysis.ColumnIdentifierProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data CascadingControlSourceProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-cascadingcontrolsource.html>
    CascadingControlSourceProperty {CascadingControlSourceProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-cascadingcontrolsource.html#cfn-quicksight-analysis-cascadingcontrolsource-columntomatch>
                                    CascadingControlSourceProperty -> Maybe ColumnIdentifierProperty
columnToMatch :: (Prelude.Maybe ColumnIdentifierProperty),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-quicksight-analysis-cascadingcontrolsource.html#cfn-quicksight-analysis-cascadingcontrolsource-sourcesheetcontrolid>
                                    CascadingControlSourceProperty -> Maybe (Value Text)
sourceSheetControlId :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (CascadingControlSourceProperty
-> CascadingControlSourceProperty -> Bool
(CascadingControlSourceProperty
 -> CascadingControlSourceProperty -> Bool)
-> (CascadingControlSourceProperty
    -> CascadingControlSourceProperty -> Bool)
-> Eq CascadingControlSourceProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CascadingControlSourceProperty
-> CascadingControlSourceProperty -> Bool
== :: CascadingControlSourceProperty
-> CascadingControlSourceProperty -> Bool
$c/= :: CascadingControlSourceProperty
-> CascadingControlSourceProperty -> Bool
/= :: CascadingControlSourceProperty
-> CascadingControlSourceProperty -> Bool
Prelude.Eq, Int -> CascadingControlSourceProperty -> ShowS
[CascadingControlSourceProperty] -> ShowS
CascadingControlSourceProperty -> String
(Int -> CascadingControlSourceProperty -> ShowS)
-> (CascadingControlSourceProperty -> String)
-> ([CascadingControlSourceProperty] -> ShowS)
-> Show CascadingControlSourceProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CascadingControlSourceProperty -> ShowS
showsPrec :: Int -> CascadingControlSourceProperty -> ShowS
$cshow :: CascadingControlSourceProperty -> String
show :: CascadingControlSourceProperty -> String
$cshowList :: [CascadingControlSourceProperty] -> ShowS
showList :: [CascadingControlSourceProperty] -> ShowS
Prelude.Show)
mkCascadingControlSourceProperty :: CascadingControlSourceProperty
mkCascadingControlSourceProperty :: CascadingControlSourceProperty
mkCascadingControlSourceProperty
  = CascadingControlSourceProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), columnToMatch :: Maybe ColumnIdentifierProperty
columnToMatch = Maybe ColumnIdentifierProperty
forall a. Maybe a
Prelude.Nothing,
       sourceSheetControlId :: Maybe (Value Text)
sourceSheetControlId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties CascadingControlSourceProperty where
  toResourceProperties :: CascadingControlSourceProperty -> ResourceProperties
toResourceProperties CascadingControlSourceProperty {Maybe (Value Text)
Maybe ColumnIdentifierProperty
()
haddock_workaround_ :: CascadingControlSourceProperty -> ()
columnToMatch :: CascadingControlSourceProperty -> Maybe ColumnIdentifierProperty
sourceSheetControlId :: CascadingControlSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnToMatch :: Maybe ColumnIdentifierProperty
sourceSheetControlId :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::QuickSight::Analysis.CascadingControlSource",
         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 -> ColumnIdentifierProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnToMatch" (ColumnIdentifierProperty -> (Key, Value))
-> Maybe ColumnIdentifierProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ColumnIdentifierProperty
columnToMatch,
                            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
"SourceSheetControlId"
                              (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)
sourceSheetControlId])}
instance JSON.ToJSON CascadingControlSourceProperty where
  toJSON :: CascadingControlSourceProperty -> Value
toJSON CascadingControlSourceProperty {Maybe (Value Text)
Maybe ColumnIdentifierProperty
()
haddock_workaround_ :: CascadingControlSourceProperty -> ()
columnToMatch :: CascadingControlSourceProperty -> Maybe ColumnIdentifierProperty
sourceSheetControlId :: CascadingControlSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnToMatch :: Maybe ColumnIdentifierProperty
sourceSheetControlId :: 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 -> ColumnIdentifierProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"ColumnToMatch" (ColumnIdentifierProperty -> (Key, Value))
-> Maybe ColumnIdentifierProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe ColumnIdentifierProperty
columnToMatch,
               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
"SourceSheetControlId"
                 (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)
sourceSheetControlId]))
instance Property "ColumnToMatch" CascadingControlSourceProperty where
  type PropertyType "ColumnToMatch" CascadingControlSourceProperty = ColumnIdentifierProperty
  set :: PropertyType "ColumnToMatch" CascadingControlSourceProperty
-> CascadingControlSourceProperty -> CascadingControlSourceProperty
set PropertyType "ColumnToMatch" CascadingControlSourceProperty
newValue CascadingControlSourceProperty {Maybe (Value Text)
Maybe ColumnIdentifierProperty
()
haddock_workaround_ :: CascadingControlSourceProperty -> ()
columnToMatch :: CascadingControlSourceProperty -> Maybe ColumnIdentifierProperty
sourceSheetControlId :: CascadingControlSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnToMatch :: Maybe ColumnIdentifierProperty
sourceSheetControlId :: Maybe (Value Text)
..}
    = CascadingControlSourceProperty
        {columnToMatch :: Maybe ColumnIdentifierProperty
columnToMatch = ColumnIdentifierProperty -> Maybe ColumnIdentifierProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "ColumnToMatch" CascadingControlSourceProperty
ColumnIdentifierProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
sourceSheetControlId :: Maybe (Value Text)
haddock_workaround_ :: ()
sourceSheetControlId :: Maybe (Value Text)
..}
instance Property "SourceSheetControlId" CascadingControlSourceProperty where
  type PropertyType "SourceSheetControlId" CascadingControlSourceProperty = Value Prelude.Text
  set :: PropertyType "SourceSheetControlId" CascadingControlSourceProperty
-> CascadingControlSourceProperty -> CascadingControlSourceProperty
set PropertyType "SourceSheetControlId" CascadingControlSourceProperty
newValue CascadingControlSourceProperty {Maybe (Value Text)
Maybe ColumnIdentifierProperty
()
haddock_workaround_ :: CascadingControlSourceProperty -> ()
columnToMatch :: CascadingControlSourceProperty -> Maybe ColumnIdentifierProperty
sourceSheetControlId :: CascadingControlSourceProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
columnToMatch :: Maybe ColumnIdentifierProperty
sourceSheetControlId :: Maybe (Value Text)
..}
    = CascadingControlSourceProperty
        {sourceSheetControlId :: Maybe (Value Text)
sourceSheetControlId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "SourceSheetControlId" CascadingControlSourceProperty
Value Text
newValue, Maybe ColumnIdentifierProperty
()
haddock_workaround_ :: ()
columnToMatch :: Maybe ColumnIdentifierProperty
haddock_workaround_ :: ()
columnToMatch :: Maybe ColumnIdentifierProperty
..}