module Stratosphere.Location.Map.MapConfigurationProperty (
MapConfigurationProperty(..), mkMapConfigurationProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data MapConfigurationProperty
=
MapConfigurationProperty {MapConfigurationProperty -> ()
haddock_workaround_ :: (),
MapConfigurationProperty -> Maybe (ValueList Text)
customLayers :: (Prelude.Maybe (ValueList Prelude.Text)),
MapConfigurationProperty -> Maybe (Value Text)
politicalView :: (Prelude.Maybe (Value Prelude.Text)),
MapConfigurationProperty -> Value Text
style :: (Value Prelude.Text)}
deriving stock (MapConfigurationProperty -> MapConfigurationProperty -> Bool
(MapConfigurationProperty -> MapConfigurationProperty -> Bool)
-> (MapConfigurationProperty -> MapConfigurationProperty -> Bool)
-> Eq MapConfigurationProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: MapConfigurationProperty -> MapConfigurationProperty -> Bool
== :: MapConfigurationProperty -> MapConfigurationProperty -> Bool
$c/= :: MapConfigurationProperty -> MapConfigurationProperty -> Bool
/= :: MapConfigurationProperty -> MapConfigurationProperty -> Bool
Prelude.Eq, Int -> MapConfigurationProperty -> ShowS
[MapConfigurationProperty] -> ShowS
MapConfigurationProperty -> String
(Int -> MapConfigurationProperty -> ShowS)
-> (MapConfigurationProperty -> String)
-> ([MapConfigurationProperty] -> ShowS)
-> Show MapConfigurationProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> MapConfigurationProperty -> ShowS
showsPrec :: Int -> MapConfigurationProperty -> ShowS
$cshow :: MapConfigurationProperty -> String
show :: MapConfigurationProperty -> String
$cshowList :: [MapConfigurationProperty] -> ShowS
showList :: [MapConfigurationProperty] -> ShowS
Prelude.Show)
mkMapConfigurationProperty ::
Value Prelude.Text -> MapConfigurationProperty
mkMapConfigurationProperty :: Value Text -> MapConfigurationProperty
mkMapConfigurationProperty Value Text
style
= MapConfigurationProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), style :: Value Text
style = Value Text
style,
customLayers :: Maybe (ValueList Text)
customLayers = Maybe (ValueList Text)
forall a. Maybe a
Prelude.Nothing, politicalView :: Maybe (Value Text)
politicalView = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties MapConfigurationProperty where
toResourceProperties :: MapConfigurationProperty -> ResourceProperties
toResourceProperties MapConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MapConfigurationProperty -> ()
customLayers :: MapConfigurationProperty -> Maybe (ValueList Text)
politicalView :: MapConfigurationProperty -> Maybe (Value Text)
style :: MapConfigurationProperty -> Value Text
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
politicalView :: Maybe (Value Text)
style :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Location::Map.MapConfiguration",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Style" 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
style]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"CustomLayers" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
customLayers,
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
"PoliticalView" (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)
politicalView]))}
instance JSON.ToJSON MapConfigurationProperty where
toJSON :: MapConfigurationProperty -> Value
toJSON MapConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MapConfigurationProperty -> ()
customLayers :: MapConfigurationProperty -> Maybe (ValueList Text)
politicalView :: MapConfigurationProperty -> Maybe (Value Text)
style :: MapConfigurationProperty -> Value Text
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
politicalView :: Maybe (Value Text)
style :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Style" 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
style]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> ValueList 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
"CustomLayers" (ValueList Text -> (Key, Value))
-> Maybe (ValueList Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (ValueList Text)
customLayers,
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
"PoliticalView" (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)
politicalView])))
instance Property "CustomLayers" MapConfigurationProperty where
type PropertyType "CustomLayers" MapConfigurationProperty = ValueList Prelude.Text
set :: PropertyType "CustomLayers" MapConfigurationProperty
-> MapConfigurationProperty -> MapConfigurationProperty
set PropertyType "CustomLayers" MapConfigurationProperty
newValue MapConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MapConfigurationProperty -> ()
customLayers :: MapConfigurationProperty -> Maybe (ValueList Text)
politicalView :: MapConfigurationProperty -> Maybe (Value Text)
style :: MapConfigurationProperty -> Value Text
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
politicalView :: Maybe (Value Text)
style :: Value Text
..}
= MapConfigurationProperty
{customLayers :: Maybe (ValueList Text)
customLayers = ValueList Text -> Maybe (ValueList Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CustomLayers" MapConfigurationProperty
ValueList Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
politicalView :: Maybe (Value Text)
style :: Value Text
haddock_workaround_ :: ()
politicalView :: Maybe (Value Text)
style :: Value Text
..}
instance Property "PoliticalView" MapConfigurationProperty where
type PropertyType "PoliticalView" MapConfigurationProperty = Value Prelude.Text
set :: PropertyType "PoliticalView" MapConfigurationProperty
-> MapConfigurationProperty -> MapConfigurationProperty
set PropertyType "PoliticalView" MapConfigurationProperty
newValue MapConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MapConfigurationProperty -> ()
customLayers :: MapConfigurationProperty -> Maybe (ValueList Text)
politicalView :: MapConfigurationProperty -> Maybe (Value Text)
style :: MapConfigurationProperty -> Value Text
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
politicalView :: Maybe (Value Text)
style :: Value Text
..}
= MapConfigurationProperty
{politicalView :: Maybe (Value Text)
politicalView = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PoliticalView" MapConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
()
Value Text
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
style :: Value Text
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
style :: Value Text
..}
instance Property "Style" MapConfigurationProperty where
type PropertyType "Style" MapConfigurationProperty = Value Prelude.Text
set :: PropertyType "Style" MapConfigurationProperty
-> MapConfigurationProperty -> MapConfigurationProperty
set PropertyType "Style" MapConfigurationProperty
newValue MapConfigurationProperty {Maybe (ValueList Text)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: MapConfigurationProperty -> ()
customLayers :: MapConfigurationProperty -> Maybe (ValueList Text)
politicalView :: MapConfigurationProperty -> Maybe (Value Text)
style :: MapConfigurationProperty -> Value Text
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
politicalView :: Maybe (Value Text)
style :: Value Text
..}
= MapConfigurationProperty {style :: Value Text
style = PropertyType "Style" MapConfigurationProperty
Value Text
newValue, Maybe (ValueList Text)
Maybe (Value Text)
()
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
politicalView :: Maybe (Value Text)
haddock_workaround_ :: ()
customLayers :: Maybe (ValueList Text)
politicalView :: Maybe (Value Text)
..}