{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Location.DescribeMap
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves the map resource details.
module Amazonka.Location.DescribeMap
  ( -- * Creating a Request
    DescribeMap (..),
    newDescribeMap,

    -- * Request Lenses
    describeMap_mapName,

    -- * Destructuring the Response
    DescribeMapResponse (..),
    newDescribeMapResponse,

    -- * Response Lenses
    describeMapResponse_tags,
    describeMapResponse_httpStatus,
    describeMapResponse_configuration,
    describeMapResponse_createTime,
    describeMapResponse_dataSource,
    describeMapResponse_description,
    describeMapResponse_mapArn,
    describeMapResponse_mapName,
    describeMapResponse_pricingPlan,
    describeMapResponse_updateTime,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Location.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDescribeMap' smart constructor.
data DescribeMap = DescribeMap'
  { -- | The name of the map resource.
    DescribeMap -> Text
mapName :: Prelude.Text
  }
  deriving (DescribeMap -> DescribeMap -> Bool
(DescribeMap -> DescribeMap -> Bool)
-> (DescribeMap -> DescribeMap -> Bool) -> Eq DescribeMap
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMap -> DescribeMap -> Bool
$c/= :: DescribeMap -> DescribeMap -> Bool
== :: DescribeMap -> DescribeMap -> Bool
$c== :: DescribeMap -> DescribeMap -> Bool
Prelude.Eq, ReadPrec [DescribeMap]
ReadPrec DescribeMap
Int -> ReadS DescribeMap
ReadS [DescribeMap]
(Int -> ReadS DescribeMap)
-> ReadS [DescribeMap]
-> ReadPrec DescribeMap
-> ReadPrec [DescribeMap]
-> Read DescribeMap
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMap]
$creadListPrec :: ReadPrec [DescribeMap]
readPrec :: ReadPrec DescribeMap
$creadPrec :: ReadPrec DescribeMap
readList :: ReadS [DescribeMap]
$creadList :: ReadS [DescribeMap]
readsPrec :: Int -> ReadS DescribeMap
$creadsPrec :: Int -> ReadS DescribeMap
Prelude.Read, Int -> DescribeMap -> ShowS
[DescribeMap] -> ShowS
DescribeMap -> String
(Int -> DescribeMap -> ShowS)
-> (DescribeMap -> String)
-> ([DescribeMap] -> ShowS)
-> Show DescribeMap
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMap] -> ShowS
$cshowList :: [DescribeMap] -> ShowS
show :: DescribeMap -> String
$cshow :: DescribeMap -> String
showsPrec :: Int -> DescribeMap -> ShowS
$cshowsPrec :: Int -> DescribeMap -> ShowS
Prelude.Show, (forall x. DescribeMap -> Rep DescribeMap x)
-> (forall x. Rep DescribeMap x -> DescribeMap)
-> Generic DescribeMap
forall x. Rep DescribeMap x -> DescribeMap
forall x. DescribeMap -> Rep DescribeMap x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeMap x -> DescribeMap
$cfrom :: forall x. DescribeMap -> Rep DescribeMap x
Prelude.Generic)

-- |
-- Create a value of 'DescribeMap' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'mapName', 'describeMap_mapName' - The name of the map resource.
newDescribeMap ::
  -- | 'mapName'
  Prelude.Text ->
  DescribeMap
newDescribeMap :: Text -> DescribeMap
newDescribeMap Text
pMapName_ =
  DescribeMap' :: Text -> DescribeMap
DescribeMap' {$sel:mapName:DescribeMap' :: Text
mapName = Text
pMapName_}

-- | The name of the map resource.
describeMap_mapName :: Lens.Lens' DescribeMap Prelude.Text
describeMap_mapName :: (Text -> f Text) -> DescribeMap -> f DescribeMap
describeMap_mapName = (DescribeMap -> Text)
-> (DescribeMap -> Text -> DescribeMap)
-> Lens DescribeMap DescribeMap Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMap' {Text
mapName :: Text
$sel:mapName:DescribeMap' :: DescribeMap -> Text
mapName} -> Text
mapName) (\s :: DescribeMap
s@DescribeMap' {} Text
a -> DescribeMap
s {$sel:mapName:DescribeMap' :: Text
mapName = Text
a} :: DescribeMap)

instance Core.AWSRequest DescribeMap where
  type AWSResponse DescribeMap = DescribeMapResponse
  request :: DescribeMap -> Request DescribeMap
request = Service -> DescribeMap -> Request DescribeMap
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeMap
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeMap)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeMap))
-> Logger
-> Service
-> Proxy DescribeMap
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeMap)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe (HashMap Text Text)
-> Int
-> MapConfiguration
-> POSIX
-> Text
-> Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> DescribeMapResponse
DescribeMapResponse'
            (Maybe (HashMap Text Text)
 -> Int
 -> MapConfiguration
 -> POSIX
 -> Text
 -> Text
 -> Text
 -> Text
 -> PricingPlan
 -> POSIX
 -> DescribeMapResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either
     String
     (Int
      -> MapConfiguration
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeMapResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either
  String
  (Int
   -> MapConfiguration
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeMapResponse)
-> Either String Int
-> Either
     String
     (MapConfiguration
      -> POSIX
      -> Text
      -> Text
      -> Text
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either
  String
  (MapConfiguration
   -> POSIX
   -> Text
   -> Text
   -> Text
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeMapResponse)
-> Either String MapConfiguration
-> Either
     String
     (POSIX
      -> Text
      -> Text
      -> Text
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String MapConfiguration
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Configuration")
            Either
  String
  (POSIX
   -> Text
   -> Text
   -> Text
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeMapResponse)
-> Either String POSIX
-> Either
     String
     (Text
      -> Text
      -> Text
      -> Text
      -> PricingPlan
      -> POSIX
      -> DescribeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"CreateTime")
            Either
  String
  (Text
   -> Text
   -> Text
   -> Text
   -> PricingPlan
   -> POSIX
   -> DescribeMapResponse)
-> Either String Text
-> Either
     String
     (Text
      -> Text -> Text -> PricingPlan -> POSIX -> DescribeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"DataSource")
            Either
  String
  (Text
   -> Text -> Text -> PricingPlan -> POSIX -> DescribeMapResponse)
-> Either String Text
-> Either
     String
     (Text -> Text -> PricingPlan -> POSIX -> DescribeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Description")
            Either
  String
  (Text -> Text -> PricingPlan -> POSIX -> DescribeMapResponse)
-> Either String Text
-> Either
     String (Text -> PricingPlan -> POSIX -> DescribeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"MapArn")
            Either String (Text -> PricingPlan -> POSIX -> DescribeMapResponse)
-> Either String Text
-> Either String (PricingPlan -> POSIX -> DescribeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"MapName")
            Either String (PricingPlan -> POSIX -> DescribeMapResponse)
-> Either String PricingPlan
-> Either String (POSIX -> DescribeMapResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String PricingPlan
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"PricingPlan")
            Either String (POSIX -> DescribeMapResponse)
-> Either String POSIX -> Either String DescribeMapResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"UpdateTime")
      )

instance Prelude.Hashable DescribeMap

instance Prelude.NFData DescribeMap

instance Core.ToHeaders DescribeMap where
  toHeaders :: DescribeMap -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeMap -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DescribeMap where
  toPath :: DescribeMap -> ByteString
toPath DescribeMap' {Text
mapName :: Text
$sel:mapName:DescribeMap' :: DescribeMap -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/maps/v0/maps/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
mapName]

instance Core.ToQuery DescribeMap where
  toQuery :: DescribeMap -> QueryString
toQuery = QueryString -> DescribeMap -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeMapResponse' smart constructor.
data DescribeMapResponse = DescribeMapResponse'
  { -- | Tags associated with the map resource.
    DescribeMapResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    DescribeMapResponse -> Int
httpStatus :: Prelude.Int,
    -- | Specifies the map tile style selected from a partner data provider.
    DescribeMapResponse -> MapConfiguration
configuration :: MapConfiguration,
    -- | The timestamp for when the map resource was created in
    -- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
    -- format: @YYYY-MM-DDThh:mm:ss.sssZ@.
    DescribeMapResponse -> POSIX
createTime :: Core.POSIX,
    -- | Specifies the data provider for the associated map tiles.
    DescribeMapResponse -> Text
dataSource :: Prelude.Text,
    -- | The optional description for the map resource.
    DescribeMapResponse -> Text
description :: Prelude.Text,
    -- | The Amazon Resource Name (ARN) for the map resource. Used to specify a
    -- resource across all AWS.
    --
    -- -   Format example: @arn:aws:geo:region:account-id:maps\/ExampleMap@
    DescribeMapResponse -> Text
mapArn :: Prelude.Text,
    -- | The map style selected from an available provider.
    DescribeMapResponse -> Text
mapName :: Prelude.Text,
    -- | The pricing plan selected for the specified map resource.
    --
    -- >  <p>For additional details and restrictions on each pricing plan option, see <a href="https://aws.amazon.com/location/pricing/">Amazon Location Service pricing</a>.</p>
    DescribeMapResponse -> PricingPlan
pricingPlan :: PricingPlan,
    -- | The timestamp for when the map resource was last update in
    -- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
    -- format: @YYYY-MM-DDThh:mm:ss.sssZ@.
    DescribeMapResponse -> POSIX
updateTime :: Core.POSIX
  }
  deriving (DescribeMapResponse -> DescribeMapResponse -> Bool
(DescribeMapResponse -> DescribeMapResponse -> Bool)
-> (DescribeMapResponse -> DescribeMapResponse -> Bool)
-> Eq DescribeMapResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeMapResponse -> DescribeMapResponse -> Bool
$c/= :: DescribeMapResponse -> DescribeMapResponse -> Bool
== :: DescribeMapResponse -> DescribeMapResponse -> Bool
$c== :: DescribeMapResponse -> DescribeMapResponse -> Bool
Prelude.Eq, ReadPrec [DescribeMapResponse]
ReadPrec DescribeMapResponse
Int -> ReadS DescribeMapResponse
ReadS [DescribeMapResponse]
(Int -> ReadS DescribeMapResponse)
-> ReadS [DescribeMapResponse]
-> ReadPrec DescribeMapResponse
-> ReadPrec [DescribeMapResponse]
-> Read DescribeMapResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeMapResponse]
$creadListPrec :: ReadPrec [DescribeMapResponse]
readPrec :: ReadPrec DescribeMapResponse
$creadPrec :: ReadPrec DescribeMapResponse
readList :: ReadS [DescribeMapResponse]
$creadList :: ReadS [DescribeMapResponse]
readsPrec :: Int -> ReadS DescribeMapResponse
$creadsPrec :: Int -> ReadS DescribeMapResponse
Prelude.Read, Int -> DescribeMapResponse -> ShowS
[DescribeMapResponse] -> ShowS
DescribeMapResponse -> String
(Int -> DescribeMapResponse -> ShowS)
-> (DescribeMapResponse -> String)
-> ([DescribeMapResponse] -> ShowS)
-> Show DescribeMapResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeMapResponse] -> ShowS
$cshowList :: [DescribeMapResponse] -> ShowS
show :: DescribeMapResponse -> String
$cshow :: DescribeMapResponse -> String
showsPrec :: Int -> DescribeMapResponse -> ShowS
$cshowsPrec :: Int -> DescribeMapResponse -> ShowS
Prelude.Show, (forall x. DescribeMapResponse -> Rep DescribeMapResponse x)
-> (forall x. Rep DescribeMapResponse x -> DescribeMapResponse)
-> Generic DescribeMapResponse
forall x. Rep DescribeMapResponse x -> DescribeMapResponse
forall x. DescribeMapResponse -> Rep DescribeMapResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeMapResponse x -> DescribeMapResponse
$cfrom :: forall x. DescribeMapResponse -> Rep DescribeMapResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeMapResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'tags', 'describeMapResponse_tags' - Tags associated with the map resource.
--
-- 'httpStatus', 'describeMapResponse_httpStatus' - The response's http status code.
--
-- 'configuration', 'describeMapResponse_configuration' - Specifies the map tile style selected from a partner data provider.
--
-- 'createTime', 'describeMapResponse_createTime' - The timestamp for when the map resource was created in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
-- format: @YYYY-MM-DDThh:mm:ss.sssZ@.
--
-- 'dataSource', 'describeMapResponse_dataSource' - Specifies the data provider for the associated map tiles.
--
-- 'description', 'describeMapResponse_description' - The optional description for the map resource.
--
-- 'mapArn', 'describeMapResponse_mapArn' - The Amazon Resource Name (ARN) for the map resource. Used to specify a
-- resource across all AWS.
--
-- -   Format example: @arn:aws:geo:region:account-id:maps\/ExampleMap@
--
-- 'mapName', 'describeMapResponse_mapName' - The map style selected from an available provider.
--
-- 'pricingPlan', 'describeMapResponse_pricingPlan' - The pricing plan selected for the specified map resource.
--
-- >  <p>For additional details and restrictions on each pricing plan option, see <a href="https://aws.amazon.com/location/pricing/">Amazon Location Service pricing</a>.</p>
--
-- 'updateTime', 'describeMapResponse_updateTime' - The timestamp for when the map resource was last update in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
-- format: @YYYY-MM-DDThh:mm:ss.sssZ@.
newDescribeMapResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'configuration'
  MapConfiguration ->
  -- | 'createTime'
  Prelude.UTCTime ->
  -- | 'dataSource'
  Prelude.Text ->
  -- | 'description'
  Prelude.Text ->
  -- | 'mapArn'
  Prelude.Text ->
  -- | 'mapName'
  Prelude.Text ->
  -- | 'pricingPlan'
  PricingPlan ->
  -- | 'updateTime'
  Prelude.UTCTime ->
  DescribeMapResponse
newDescribeMapResponse :: Int
-> MapConfiguration
-> UTCTime
-> Text
-> Text
-> Text
-> Text
-> PricingPlan
-> UTCTime
-> DescribeMapResponse
newDescribeMapResponse
  Int
pHttpStatus_
  MapConfiguration
pConfiguration_
  UTCTime
pCreateTime_
  Text
pDataSource_
  Text
pDescription_
  Text
pMapArn_
  Text
pMapName_
  PricingPlan
pPricingPlan_
  UTCTime
pUpdateTime_ =
    DescribeMapResponse' :: Maybe (HashMap Text Text)
-> Int
-> MapConfiguration
-> POSIX
-> Text
-> Text
-> Text
-> Text
-> PricingPlan
-> POSIX
-> DescribeMapResponse
DescribeMapResponse'
      { $sel:tags:DescribeMapResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeMapResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:configuration:DescribeMapResponse' :: MapConfiguration
configuration = MapConfiguration
pConfiguration_,
        $sel:createTime:DescribeMapResponse' :: POSIX
createTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreateTime_,
        $sel:dataSource:DescribeMapResponse' :: Text
dataSource = Text
pDataSource_,
        $sel:description:DescribeMapResponse' :: Text
description = Text
pDescription_,
        $sel:mapArn:DescribeMapResponse' :: Text
mapArn = Text
pMapArn_,
        $sel:mapName:DescribeMapResponse' :: Text
mapName = Text
pMapName_,
        $sel:pricingPlan:DescribeMapResponse' :: PricingPlan
pricingPlan = PricingPlan
pPricingPlan_,
        $sel:updateTime:DescribeMapResponse' :: POSIX
updateTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
 -> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pUpdateTime_
      }

-- | Tags associated with the map resource.
describeMapResponse_tags :: Lens.Lens' DescribeMapResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
describeMapResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_tags = (DescribeMapResponse -> Maybe (HashMap Text Text))
-> (DescribeMapResponse
    -> Maybe (HashMap Text Text) -> DescribeMapResponse)
-> Lens
     DescribeMapResponse
     DescribeMapResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:DescribeMapResponse' :: DescribeMapResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} Maybe (HashMap Text Text)
a -> DescribeMapResponse
s {$sel:tags:DescribeMapResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: DescribeMapResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> DescribeMapResponse -> f DescribeMapResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> DescribeMapResponse
-> f DescribeMapResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
describeMapResponse_httpStatus :: Lens.Lens' DescribeMapResponse Prelude.Int
describeMapResponse_httpStatus :: (Int -> f Int) -> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_httpStatus = (DescribeMapResponse -> Int)
-> (DescribeMapResponse -> Int -> DescribeMapResponse)
-> Lens DescribeMapResponse DescribeMapResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeMapResponse' :: DescribeMapResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} Int
a -> DescribeMapResponse
s {$sel:httpStatus:DescribeMapResponse' :: Int
httpStatus = Int
a} :: DescribeMapResponse)

-- | Specifies the map tile style selected from a partner data provider.
describeMapResponse_configuration :: Lens.Lens' DescribeMapResponse MapConfiguration
describeMapResponse_configuration :: (MapConfiguration -> f MapConfiguration)
-> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_configuration = (DescribeMapResponse -> MapConfiguration)
-> (DescribeMapResponse -> MapConfiguration -> DescribeMapResponse)
-> Lens
     DescribeMapResponse
     DescribeMapResponse
     MapConfiguration
     MapConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {MapConfiguration
configuration :: MapConfiguration
$sel:configuration:DescribeMapResponse' :: DescribeMapResponse -> MapConfiguration
configuration} -> MapConfiguration
configuration) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} MapConfiguration
a -> DescribeMapResponse
s {$sel:configuration:DescribeMapResponse' :: MapConfiguration
configuration = MapConfiguration
a} :: DescribeMapResponse)

-- | The timestamp for when the map resource was created in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
-- format: @YYYY-MM-DDThh:mm:ss.sssZ@.
describeMapResponse_createTime :: Lens.Lens' DescribeMapResponse Prelude.UTCTime
describeMapResponse_createTime :: (UTCTime -> f UTCTime)
-> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_createTime = (DescribeMapResponse -> POSIX)
-> (DescribeMapResponse -> POSIX -> DescribeMapResponse)
-> Lens DescribeMapResponse DescribeMapResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {POSIX
createTime :: POSIX
$sel:createTime:DescribeMapResponse' :: DescribeMapResponse -> POSIX
createTime} -> POSIX
createTime) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} POSIX
a -> DescribeMapResponse
s {$sel:createTime:DescribeMapResponse' :: POSIX
createTime = POSIX
a} :: DescribeMapResponse) ((POSIX -> f POSIX)
 -> DescribeMapResponse -> f DescribeMapResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeMapResponse
-> f DescribeMapResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Specifies the data provider for the associated map tiles.
describeMapResponse_dataSource :: Lens.Lens' DescribeMapResponse Prelude.Text
describeMapResponse_dataSource :: (Text -> f Text) -> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_dataSource = (DescribeMapResponse -> Text)
-> (DescribeMapResponse -> Text -> DescribeMapResponse)
-> Lens DescribeMapResponse DescribeMapResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {Text
dataSource :: Text
$sel:dataSource:DescribeMapResponse' :: DescribeMapResponse -> Text
dataSource} -> Text
dataSource) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} Text
a -> DescribeMapResponse
s {$sel:dataSource:DescribeMapResponse' :: Text
dataSource = Text
a} :: DescribeMapResponse)

-- | The optional description for the map resource.
describeMapResponse_description :: Lens.Lens' DescribeMapResponse Prelude.Text
describeMapResponse_description :: (Text -> f Text) -> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_description = (DescribeMapResponse -> Text)
-> (DescribeMapResponse -> Text -> DescribeMapResponse)
-> Lens DescribeMapResponse DescribeMapResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {Text
description :: Text
$sel:description:DescribeMapResponse' :: DescribeMapResponse -> Text
description} -> Text
description) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} Text
a -> DescribeMapResponse
s {$sel:description:DescribeMapResponse' :: Text
description = Text
a} :: DescribeMapResponse)

-- | The Amazon Resource Name (ARN) for the map resource. Used to specify a
-- resource across all AWS.
--
-- -   Format example: @arn:aws:geo:region:account-id:maps\/ExampleMap@
describeMapResponse_mapArn :: Lens.Lens' DescribeMapResponse Prelude.Text
describeMapResponse_mapArn :: (Text -> f Text) -> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_mapArn = (DescribeMapResponse -> Text)
-> (DescribeMapResponse -> Text -> DescribeMapResponse)
-> Lens DescribeMapResponse DescribeMapResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {Text
mapArn :: Text
$sel:mapArn:DescribeMapResponse' :: DescribeMapResponse -> Text
mapArn} -> Text
mapArn) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} Text
a -> DescribeMapResponse
s {$sel:mapArn:DescribeMapResponse' :: Text
mapArn = Text
a} :: DescribeMapResponse)

-- | The map style selected from an available provider.
describeMapResponse_mapName :: Lens.Lens' DescribeMapResponse Prelude.Text
describeMapResponse_mapName :: (Text -> f Text) -> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_mapName = (DescribeMapResponse -> Text)
-> (DescribeMapResponse -> Text -> DescribeMapResponse)
-> Lens DescribeMapResponse DescribeMapResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {Text
mapName :: Text
$sel:mapName:DescribeMapResponse' :: DescribeMapResponse -> Text
mapName} -> Text
mapName) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} Text
a -> DescribeMapResponse
s {$sel:mapName:DescribeMapResponse' :: Text
mapName = Text
a} :: DescribeMapResponse)

-- | The pricing plan selected for the specified map resource.
--
-- >  <p>For additional details and restrictions on each pricing plan option, see <a href="https://aws.amazon.com/location/pricing/">Amazon Location Service pricing</a>.</p>
describeMapResponse_pricingPlan :: Lens.Lens' DescribeMapResponse PricingPlan
describeMapResponse_pricingPlan :: (PricingPlan -> f PricingPlan)
-> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_pricingPlan = (DescribeMapResponse -> PricingPlan)
-> (DescribeMapResponse -> PricingPlan -> DescribeMapResponse)
-> Lens
     DescribeMapResponse DescribeMapResponse PricingPlan PricingPlan
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {PricingPlan
pricingPlan :: PricingPlan
$sel:pricingPlan:DescribeMapResponse' :: DescribeMapResponse -> PricingPlan
pricingPlan} -> PricingPlan
pricingPlan) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} PricingPlan
a -> DescribeMapResponse
s {$sel:pricingPlan:DescribeMapResponse' :: PricingPlan
pricingPlan = PricingPlan
a} :: DescribeMapResponse)

-- | The timestamp for when the map resource was last update in
-- <https://www.iso.org/iso-8601-date-and-time-format.html ISO 8601>
-- format: @YYYY-MM-DDThh:mm:ss.sssZ@.
describeMapResponse_updateTime :: Lens.Lens' DescribeMapResponse Prelude.UTCTime
describeMapResponse_updateTime :: (UTCTime -> f UTCTime)
-> DescribeMapResponse -> f DescribeMapResponse
describeMapResponse_updateTime = (DescribeMapResponse -> POSIX)
-> (DescribeMapResponse -> POSIX -> DescribeMapResponse)
-> Lens DescribeMapResponse DescribeMapResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeMapResponse' {POSIX
updateTime :: POSIX
$sel:updateTime:DescribeMapResponse' :: DescribeMapResponse -> POSIX
updateTime} -> POSIX
updateTime) (\s :: DescribeMapResponse
s@DescribeMapResponse' {} POSIX
a -> DescribeMapResponse
s {$sel:updateTime:DescribeMapResponse' :: POSIX
updateTime = POSIX
a} :: DescribeMapResponse) ((POSIX -> f POSIX)
 -> DescribeMapResponse -> f DescribeMapResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeMapResponse
-> f DescribeMapResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

instance Prelude.NFData DescribeMapResponse