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