{-# 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.SNS.GetPlatformApplicationAttributes
-- 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 attributes of the platform application object for the
-- supported push notification services, such as APNS and GCM (Firebase
-- Cloud Messaging). For more information, see
-- <https://docs.aws.amazon.com/sns/latest/dg/SNSMobilePush.html Using Amazon SNS Mobile Push Notifications>.
module Amazonka.SNS.GetPlatformApplicationAttributes
  ( -- * Creating a Request
    GetPlatformApplicationAttributes (..),
    newGetPlatformApplicationAttributes,

    -- * Request Lenses
    getPlatformApplicationAttributes_platformApplicationArn,

    -- * Destructuring the Response
    GetPlatformApplicationAttributesResponse (..),
    newGetPlatformApplicationAttributesResponse,

    -- * Response Lenses
    getPlatformApplicationAttributesResponse_attributes,
    getPlatformApplicationAttributesResponse_httpStatus,
  )
where

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

-- | Input for GetPlatformApplicationAttributes action.
--
-- /See:/ 'newGetPlatformApplicationAttributes' smart constructor.
data GetPlatformApplicationAttributes = GetPlatformApplicationAttributes'
  { -- | PlatformApplicationArn for GetPlatformApplicationAttributesInput.
    GetPlatformApplicationAttributes -> Text
platformApplicationArn :: Prelude.Text
  }
  deriving (GetPlatformApplicationAttributes
-> GetPlatformApplicationAttributes -> Bool
(GetPlatformApplicationAttributes
 -> GetPlatformApplicationAttributes -> Bool)
-> (GetPlatformApplicationAttributes
    -> GetPlatformApplicationAttributes -> Bool)
-> Eq GetPlatformApplicationAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPlatformApplicationAttributes
-> GetPlatformApplicationAttributes -> Bool
$c/= :: GetPlatformApplicationAttributes
-> GetPlatformApplicationAttributes -> Bool
== :: GetPlatformApplicationAttributes
-> GetPlatformApplicationAttributes -> Bool
$c== :: GetPlatformApplicationAttributes
-> GetPlatformApplicationAttributes -> Bool
Prelude.Eq, ReadPrec [GetPlatformApplicationAttributes]
ReadPrec GetPlatformApplicationAttributes
Int -> ReadS GetPlatformApplicationAttributes
ReadS [GetPlatformApplicationAttributes]
(Int -> ReadS GetPlatformApplicationAttributes)
-> ReadS [GetPlatformApplicationAttributes]
-> ReadPrec GetPlatformApplicationAttributes
-> ReadPrec [GetPlatformApplicationAttributes]
-> Read GetPlatformApplicationAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPlatformApplicationAttributes]
$creadListPrec :: ReadPrec [GetPlatformApplicationAttributes]
readPrec :: ReadPrec GetPlatformApplicationAttributes
$creadPrec :: ReadPrec GetPlatformApplicationAttributes
readList :: ReadS [GetPlatformApplicationAttributes]
$creadList :: ReadS [GetPlatformApplicationAttributes]
readsPrec :: Int -> ReadS GetPlatformApplicationAttributes
$creadsPrec :: Int -> ReadS GetPlatformApplicationAttributes
Prelude.Read, Int -> GetPlatformApplicationAttributes -> ShowS
[GetPlatformApplicationAttributes] -> ShowS
GetPlatformApplicationAttributes -> String
(Int -> GetPlatformApplicationAttributes -> ShowS)
-> (GetPlatformApplicationAttributes -> String)
-> ([GetPlatformApplicationAttributes] -> ShowS)
-> Show GetPlatformApplicationAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPlatformApplicationAttributes] -> ShowS
$cshowList :: [GetPlatformApplicationAttributes] -> ShowS
show :: GetPlatformApplicationAttributes -> String
$cshow :: GetPlatformApplicationAttributes -> String
showsPrec :: Int -> GetPlatformApplicationAttributes -> ShowS
$cshowsPrec :: Int -> GetPlatformApplicationAttributes -> ShowS
Prelude.Show, (forall x.
 GetPlatformApplicationAttributes
 -> Rep GetPlatformApplicationAttributes x)
-> (forall x.
    Rep GetPlatformApplicationAttributes x
    -> GetPlatformApplicationAttributes)
-> Generic GetPlatformApplicationAttributes
forall x.
Rep GetPlatformApplicationAttributes x
-> GetPlatformApplicationAttributes
forall x.
GetPlatformApplicationAttributes
-> Rep GetPlatformApplicationAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPlatformApplicationAttributes x
-> GetPlatformApplicationAttributes
$cfrom :: forall x.
GetPlatformApplicationAttributes
-> Rep GetPlatformApplicationAttributes x
Prelude.Generic)

-- |
-- Create a value of 'GetPlatformApplicationAttributes' 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:
--
-- 'platformApplicationArn', 'getPlatformApplicationAttributes_platformApplicationArn' - PlatformApplicationArn for GetPlatformApplicationAttributesInput.
newGetPlatformApplicationAttributes ::
  -- | 'platformApplicationArn'
  Prelude.Text ->
  GetPlatformApplicationAttributes
newGetPlatformApplicationAttributes :: Text -> GetPlatformApplicationAttributes
newGetPlatformApplicationAttributes
  Text
pPlatformApplicationArn_ =
    GetPlatformApplicationAttributes' :: Text -> GetPlatformApplicationAttributes
GetPlatformApplicationAttributes'
      { $sel:platformApplicationArn:GetPlatformApplicationAttributes' :: Text
platformApplicationArn =
          Text
pPlatformApplicationArn_
      }

-- | PlatformApplicationArn for GetPlatformApplicationAttributesInput.
getPlatformApplicationAttributes_platformApplicationArn :: Lens.Lens' GetPlatformApplicationAttributes Prelude.Text
getPlatformApplicationAttributes_platformApplicationArn :: (Text -> f Text)
-> GetPlatformApplicationAttributes
-> f GetPlatformApplicationAttributes
getPlatformApplicationAttributes_platformApplicationArn = (GetPlatformApplicationAttributes -> Text)
-> (GetPlatformApplicationAttributes
    -> Text -> GetPlatformApplicationAttributes)
-> Lens
     GetPlatformApplicationAttributes
     GetPlatformApplicationAttributes
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlatformApplicationAttributes' {Text
platformApplicationArn :: Text
$sel:platformApplicationArn:GetPlatformApplicationAttributes' :: GetPlatformApplicationAttributes -> Text
platformApplicationArn} -> Text
platformApplicationArn) (\s :: GetPlatformApplicationAttributes
s@GetPlatformApplicationAttributes' {} Text
a -> GetPlatformApplicationAttributes
s {$sel:platformApplicationArn:GetPlatformApplicationAttributes' :: Text
platformApplicationArn = Text
a} :: GetPlatformApplicationAttributes)

instance
  Core.AWSRequest
    GetPlatformApplicationAttributes
  where
  type
    AWSResponse GetPlatformApplicationAttributes =
      GetPlatformApplicationAttributesResponse
  request :: GetPlatformApplicationAttributes
-> Request GetPlatformApplicationAttributes
request = Service
-> GetPlatformApplicationAttributes
-> Request GetPlatformApplicationAttributes
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy GetPlatformApplicationAttributes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetPlatformApplicationAttributes)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse GetPlatformApplicationAttributes))
-> Logger
-> Service
-> Proxy GetPlatformApplicationAttributes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetPlatformApplicationAttributes)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"GetPlatformApplicationAttributesResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe (HashMap Text Text)
-> Int -> GetPlatformApplicationAttributesResponse
GetPlatformApplicationAttributesResponse'
            (Maybe (HashMap Text Text)
 -> Int -> GetPlatformApplicationAttributesResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> GetPlatformApplicationAttributesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Attributes" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
                            Either String [Node]
-> ([Node] -> Either String (Maybe (HashMap Text Text)))
-> Either String (Maybe (HashMap Text Text))
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String (HashMap Text Text))
-> [Node] -> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> Text -> Text -> [Node] -> Either String (HashMap Text Text)
forall k v.
(Eq k, Hashable k, FromText k, FromXML v) =>
Text -> Text -> Text -> [Node] -> Either String (HashMap k v)
Core.parseXMLMap Text
"entry" Text
"key" Text
"value")
                        )
            Either String (Int -> GetPlatformApplicationAttributesResponse)
-> Either String Int
-> Either String GetPlatformApplicationAttributesResponse
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))
      )

instance
  Prelude.Hashable
    GetPlatformApplicationAttributes

instance
  Prelude.NFData
    GetPlatformApplicationAttributes

instance
  Core.ToHeaders
    GetPlatformApplicationAttributes
  where
  toHeaders :: GetPlatformApplicationAttributes -> ResponseHeaders
toHeaders = ResponseHeaders
-> GetPlatformApplicationAttributes -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath GetPlatformApplicationAttributes where
  toPath :: GetPlatformApplicationAttributes -> ByteString
toPath = ByteString -> GetPlatformApplicationAttributes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    GetPlatformApplicationAttributes
  where
  toQuery :: GetPlatformApplicationAttributes -> QueryString
toQuery GetPlatformApplicationAttributes' {Text
platformApplicationArn :: Text
$sel:platformApplicationArn:GetPlatformApplicationAttributes' :: GetPlatformApplicationAttributes -> Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"GetPlatformApplicationAttributes" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-03-31" :: Prelude.ByteString),
        ByteString
"PlatformApplicationArn"
          ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
platformApplicationArn
      ]

-- | Response for GetPlatformApplicationAttributes action.
--
-- /See:/ 'newGetPlatformApplicationAttributesResponse' smart constructor.
data GetPlatformApplicationAttributesResponse = GetPlatformApplicationAttributesResponse'
  { -- | Attributes include the following:
    --
    -- -   @EventEndpointCreated@ – Topic ARN to which EndpointCreated event
    --     notifications should be sent.
    --
    -- -   @EventEndpointDeleted@ – Topic ARN to which EndpointDeleted event
    --     notifications should be sent.
    --
    -- -   @EventEndpointUpdated@ – Topic ARN to which EndpointUpdate event
    --     notifications should be sent.
    --
    -- -   @EventDeliveryFailure@ – Topic ARN to which DeliveryFailure event
    --     notifications should be sent upon Direct Publish delivery failure
    --     (permanent) to one of the application\'s endpoints.
    GetPlatformApplicationAttributesResponse
-> Maybe (HashMap Text Text)
attributes :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    GetPlatformApplicationAttributesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetPlatformApplicationAttributesResponse
-> GetPlatformApplicationAttributesResponse -> Bool
(GetPlatformApplicationAttributesResponse
 -> GetPlatformApplicationAttributesResponse -> Bool)
-> (GetPlatformApplicationAttributesResponse
    -> GetPlatformApplicationAttributesResponse -> Bool)
-> Eq GetPlatformApplicationAttributesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetPlatformApplicationAttributesResponse
-> GetPlatformApplicationAttributesResponse -> Bool
$c/= :: GetPlatformApplicationAttributesResponse
-> GetPlatformApplicationAttributesResponse -> Bool
== :: GetPlatformApplicationAttributesResponse
-> GetPlatformApplicationAttributesResponse -> Bool
$c== :: GetPlatformApplicationAttributesResponse
-> GetPlatformApplicationAttributesResponse -> Bool
Prelude.Eq, ReadPrec [GetPlatformApplicationAttributesResponse]
ReadPrec GetPlatformApplicationAttributesResponse
Int -> ReadS GetPlatformApplicationAttributesResponse
ReadS [GetPlatformApplicationAttributesResponse]
(Int -> ReadS GetPlatformApplicationAttributesResponse)
-> ReadS [GetPlatformApplicationAttributesResponse]
-> ReadPrec GetPlatformApplicationAttributesResponse
-> ReadPrec [GetPlatformApplicationAttributesResponse]
-> Read GetPlatformApplicationAttributesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetPlatformApplicationAttributesResponse]
$creadListPrec :: ReadPrec [GetPlatformApplicationAttributesResponse]
readPrec :: ReadPrec GetPlatformApplicationAttributesResponse
$creadPrec :: ReadPrec GetPlatformApplicationAttributesResponse
readList :: ReadS [GetPlatformApplicationAttributesResponse]
$creadList :: ReadS [GetPlatformApplicationAttributesResponse]
readsPrec :: Int -> ReadS GetPlatformApplicationAttributesResponse
$creadsPrec :: Int -> ReadS GetPlatformApplicationAttributesResponse
Prelude.Read, Int -> GetPlatformApplicationAttributesResponse -> ShowS
[GetPlatformApplicationAttributesResponse] -> ShowS
GetPlatformApplicationAttributesResponse -> String
(Int -> GetPlatformApplicationAttributesResponse -> ShowS)
-> (GetPlatformApplicationAttributesResponse -> String)
-> ([GetPlatformApplicationAttributesResponse] -> ShowS)
-> Show GetPlatformApplicationAttributesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetPlatformApplicationAttributesResponse] -> ShowS
$cshowList :: [GetPlatformApplicationAttributesResponse] -> ShowS
show :: GetPlatformApplicationAttributesResponse -> String
$cshow :: GetPlatformApplicationAttributesResponse -> String
showsPrec :: Int -> GetPlatformApplicationAttributesResponse -> ShowS
$cshowsPrec :: Int -> GetPlatformApplicationAttributesResponse -> ShowS
Prelude.Show, (forall x.
 GetPlatformApplicationAttributesResponse
 -> Rep GetPlatformApplicationAttributesResponse x)
-> (forall x.
    Rep GetPlatformApplicationAttributesResponse x
    -> GetPlatformApplicationAttributesResponse)
-> Generic GetPlatformApplicationAttributesResponse
forall x.
Rep GetPlatformApplicationAttributesResponse x
-> GetPlatformApplicationAttributesResponse
forall x.
GetPlatformApplicationAttributesResponse
-> Rep GetPlatformApplicationAttributesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetPlatformApplicationAttributesResponse x
-> GetPlatformApplicationAttributesResponse
$cfrom :: forall x.
GetPlatformApplicationAttributesResponse
-> Rep GetPlatformApplicationAttributesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetPlatformApplicationAttributesResponse' 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:
--
-- 'attributes', 'getPlatformApplicationAttributesResponse_attributes' - Attributes include the following:
--
-- -   @EventEndpointCreated@ – Topic ARN to which EndpointCreated event
--     notifications should be sent.
--
-- -   @EventEndpointDeleted@ – Topic ARN to which EndpointDeleted event
--     notifications should be sent.
--
-- -   @EventEndpointUpdated@ – Topic ARN to which EndpointUpdate event
--     notifications should be sent.
--
-- -   @EventDeliveryFailure@ – Topic ARN to which DeliveryFailure event
--     notifications should be sent upon Direct Publish delivery failure
--     (permanent) to one of the application\'s endpoints.
--
-- 'httpStatus', 'getPlatformApplicationAttributesResponse_httpStatus' - The response's http status code.
newGetPlatformApplicationAttributesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetPlatformApplicationAttributesResponse
newGetPlatformApplicationAttributesResponse :: Int -> GetPlatformApplicationAttributesResponse
newGetPlatformApplicationAttributesResponse
  Int
pHttpStatus_ =
    GetPlatformApplicationAttributesResponse' :: Maybe (HashMap Text Text)
-> Int -> GetPlatformApplicationAttributesResponse
GetPlatformApplicationAttributesResponse'
      { $sel:attributes:GetPlatformApplicationAttributesResponse' :: Maybe (HashMap Text Text)
attributes =
          Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetPlatformApplicationAttributesResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Attributes include the following:
--
-- -   @EventEndpointCreated@ – Topic ARN to which EndpointCreated event
--     notifications should be sent.
--
-- -   @EventEndpointDeleted@ – Topic ARN to which EndpointDeleted event
--     notifications should be sent.
--
-- -   @EventEndpointUpdated@ – Topic ARN to which EndpointUpdate event
--     notifications should be sent.
--
-- -   @EventDeliveryFailure@ – Topic ARN to which DeliveryFailure event
--     notifications should be sent upon Direct Publish delivery failure
--     (permanent) to one of the application\'s endpoints.
getPlatformApplicationAttributesResponse_attributes :: Lens.Lens' GetPlatformApplicationAttributesResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
getPlatformApplicationAttributesResponse_attributes :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> GetPlatformApplicationAttributesResponse
-> f GetPlatformApplicationAttributesResponse
getPlatformApplicationAttributesResponse_attributes = (GetPlatformApplicationAttributesResponse
 -> Maybe (HashMap Text Text))
-> (GetPlatformApplicationAttributesResponse
    -> Maybe (HashMap Text Text)
    -> GetPlatformApplicationAttributesResponse)
-> Lens
     GetPlatformApplicationAttributesResponse
     GetPlatformApplicationAttributesResponse
     (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 (\GetPlatformApplicationAttributesResponse' {Maybe (HashMap Text Text)
attributes :: Maybe (HashMap Text Text)
$sel:attributes:GetPlatformApplicationAttributesResponse' :: GetPlatformApplicationAttributesResponse
-> Maybe (HashMap Text Text)
attributes} -> Maybe (HashMap Text Text)
attributes) (\s :: GetPlatformApplicationAttributesResponse
s@GetPlatformApplicationAttributesResponse' {} Maybe (HashMap Text Text)
a -> GetPlatformApplicationAttributesResponse
s {$sel:attributes:GetPlatformApplicationAttributesResponse' :: Maybe (HashMap Text Text)
attributes = Maybe (HashMap Text Text)
a} :: GetPlatformApplicationAttributesResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> GetPlatformApplicationAttributesResponse
 -> f GetPlatformApplicationAttributesResponse)
-> ((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)))
-> GetPlatformApplicationAttributesResponse
-> f GetPlatformApplicationAttributesResponse
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.
getPlatformApplicationAttributesResponse_httpStatus :: Lens.Lens' GetPlatformApplicationAttributesResponse Prelude.Int
getPlatformApplicationAttributesResponse_httpStatus :: (Int -> f Int)
-> GetPlatformApplicationAttributesResponse
-> f GetPlatformApplicationAttributesResponse
getPlatformApplicationAttributesResponse_httpStatus = (GetPlatformApplicationAttributesResponse -> Int)
-> (GetPlatformApplicationAttributesResponse
    -> Int -> GetPlatformApplicationAttributesResponse)
-> Lens
     GetPlatformApplicationAttributesResponse
     GetPlatformApplicationAttributesResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetPlatformApplicationAttributesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetPlatformApplicationAttributesResponse' :: GetPlatformApplicationAttributesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetPlatformApplicationAttributesResponse
s@GetPlatformApplicationAttributesResponse' {} Int
a -> GetPlatformApplicationAttributesResponse
s {$sel:httpStatus:GetPlatformApplicationAttributesResponse' :: Int
httpStatus = Int
a} :: GetPlatformApplicationAttributesResponse)

instance
  Prelude.NFData
    GetPlatformApplicationAttributesResponse