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