module Stratosphere.Location.Map (
module Exports, Map(..), mkMap
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.Location.Map.MapConfigurationProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data Map
=
Map {Map -> ()
haddock_workaround_ :: (),
Map -> MapConfigurationProperty
configuration :: MapConfigurationProperty,
Map -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
Map -> Value Text
mapName :: (Value Prelude.Text),
Map -> Maybe (Value Text)
pricingPlan :: (Prelude.Maybe (Value Prelude.Text)),
Map -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (Map -> Map -> Bool
(Map -> Map -> Bool) -> (Map -> Map -> Bool) -> Eq Map
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Map -> Map -> Bool
== :: Map -> Map -> Bool
$c/= :: Map -> Map -> Bool
/= :: Map -> Map -> Bool
Prelude.Eq, Int -> Map -> ShowS
[Map] -> ShowS
Map -> String
(Int -> Map -> ShowS)
-> (Map -> String) -> ([Map] -> ShowS) -> Show Map
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Map -> ShowS
showsPrec :: Int -> Map -> ShowS
$cshow :: Map -> String
show :: Map -> String
$cshowList :: [Map] -> ShowS
showList :: [Map] -> ShowS
Prelude.Show)
mkMap :: MapConfigurationProperty -> Value Prelude.Text -> Map
mkMap :: MapConfigurationProperty -> Value Text -> Map
mkMap MapConfigurationProperty
configuration Value Text
mapName
= Map
{haddock_workaround_ :: ()
haddock_workaround_ = (), configuration :: MapConfigurationProperty
configuration = MapConfigurationProperty
configuration,
mapName :: Value Text
mapName = Value Text
mapName, description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
pricingPlan :: Maybe (Value Text)
pricingPlan = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties Map where
toResourceProperties :: Map -> ResourceProperties
toResourceProperties Map {Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: Map -> ()
configuration :: Map -> MapConfigurationProperty
description :: Map -> Maybe (Value Text)
mapName :: Map -> Value Text
pricingPlan :: Map -> Maybe (Value Text)
tags :: Map -> Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::Location::Map", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Configuration" Key -> MapConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MapConfigurationProperty
configuration, Key
"MapName" 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
mapName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"Description" (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)
description,
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
"PricingPlan" (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)
pricingPlan,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON Map where
toJSON :: Map -> Value
toJSON Map {Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: Map -> ()
configuration :: Map -> MapConfigurationProperty
description :: Map -> Maybe (Value Text)
mapName :: Map -> Value Text
pricingPlan :: Map -> Maybe (Value Text)
tags :: Map -> Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= [(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
"Configuration" Key -> MapConfigurationProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= MapConfigurationProperty
configuration, Key
"MapName" 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
mapName]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[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
"Description" (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)
description,
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
"PricingPlan" (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)
pricingPlan,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "Configuration" Map where
type PropertyType "Configuration" Map = MapConfigurationProperty
set :: PropertyType "Configuration" Map -> Map -> Map
set PropertyType "Configuration" Map
newValue Map {Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: Map -> ()
configuration :: Map -> MapConfigurationProperty
description :: Map -> Maybe (Value Text)
mapName :: Map -> Value Text
pricingPlan :: Map -> Maybe (Value Text)
tags :: Map -> Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Map {configuration :: MapConfigurationProperty
configuration = PropertyType "Configuration" Map
MapConfigurationProperty
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "Description" Map where
type PropertyType "Description" Map = Value Prelude.Text
set :: PropertyType "Description" Map -> Map -> Map
set PropertyType "Description" Map
newValue Map {Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: Map -> ()
configuration :: Map -> MapConfigurationProperty
description :: Map -> Maybe (Value Text)
mapName :: Map -> Value Text
pricingPlan :: Map -> Maybe (Value Text)
tags :: Map -> Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Map {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" Map
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "MapName" Map where
type PropertyType "MapName" Map = Value Prelude.Text
set :: PropertyType "MapName" Map -> Map -> Map
set PropertyType "MapName" Map
newValue Map {Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: Map -> ()
configuration :: Map -> MapConfigurationProperty
description :: Map -> Maybe (Value Text)
mapName :: Map -> Value Text
pricingPlan :: Map -> Maybe (Value Text)
tags :: Map -> Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Map {mapName :: Value Text
mapName = PropertyType "MapName" Map
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
MapConfigurationProperty
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
instance Property "PricingPlan" Map where
type PropertyType "PricingPlan" Map = Value Prelude.Text
set :: PropertyType "PricingPlan" Map -> Map -> Map
set PropertyType "PricingPlan" Map
newValue Map {Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: Map -> ()
configuration :: Map -> MapConfigurationProperty
description :: Map -> Maybe (Value Text)
mapName :: Map -> Value Text
pricingPlan :: Map -> Maybe (Value Text)
tags :: Map -> Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..}
= Map {pricingPlan :: Maybe (Value Text)
pricingPlan = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "PricingPlan" Map
Value Text
newValue, Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" Map where
type PropertyType "Tags" Map = [Tag]
set :: PropertyType "Tags" Map -> Map -> Map
set PropertyType "Tags" Map
newValue Map {Maybe [Tag]
Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: Map -> ()
configuration :: Map -> MapConfigurationProperty
description :: Map -> Maybe (Value Text)
mapName :: Map -> Value Text
pricingPlan :: Map -> Maybe (Value Text)
tags :: Map -> Maybe [Tag]
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
tags :: Maybe [Tag]
..} = Map {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" Map
newValue, Maybe (Value Text)
()
Value Text
MapConfigurationProperty
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
haddock_workaround_ :: ()
configuration :: MapConfigurationProperty
description :: Maybe (Value Text)
mapName :: Value Text
pricingPlan :: Maybe (Value Text)
..}