{-# 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.SES.GetIdentityNotificationAttributes
-- 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)
--
-- Given a list of verified identities (email addresses and\/or domains),
-- returns a structure describing identity notification attributes.
--
-- This operation is throttled at one request per second and can only get
-- notification attributes for up to 100 identities at a time.
--
-- For more information about using notifications with Amazon SES, see the
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html Amazon SES Developer Guide>.
module Amazonka.SES.GetIdentityNotificationAttributes
  ( -- * Creating a Request
    GetIdentityNotificationAttributes (..),
    newGetIdentityNotificationAttributes,

    -- * Request Lenses
    getIdentityNotificationAttributes_identities,

    -- * Destructuring the Response
    GetIdentityNotificationAttributesResponse (..),
    newGetIdentityNotificationAttributesResponse,

    -- * Response Lenses
    getIdentityNotificationAttributesResponse_httpStatus,
    getIdentityNotificationAttributesResponse_notificationAttributes,
  )
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.SES.Types

-- | Represents a request to return the notification attributes for a list of
-- identities you verified with Amazon SES. For information about Amazon
-- SES notifications, see the
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/notifications.html Amazon SES Developer Guide>.
--
-- /See:/ 'newGetIdentityNotificationAttributes' smart constructor.
data GetIdentityNotificationAttributes = GetIdentityNotificationAttributes'
  { -- | A list of one or more identities. You can specify an identity by using
    -- its name or by using its Amazon Resource Name (ARN). Examples:
    -- @user\@example.com@, @example.com@,
    -- @arn:aws:ses:us-east-1:123456789012:identity\/example.com@.
    GetIdentityNotificationAttributes -> [Text]
identities :: [Prelude.Text]
  }
  deriving (GetIdentityNotificationAttributes
-> GetIdentityNotificationAttributes -> Bool
(GetIdentityNotificationAttributes
 -> GetIdentityNotificationAttributes -> Bool)
-> (GetIdentityNotificationAttributes
    -> GetIdentityNotificationAttributes -> Bool)
-> Eq GetIdentityNotificationAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityNotificationAttributes
-> GetIdentityNotificationAttributes -> Bool
$c/= :: GetIdentityNotificationAttributes
-> GetIdentityNotificationAttributes -> Bool
== :: GetIdentityNotificationAttributes
-> GetIdentityNotificationAttributes -> Bool
$c== :: GetIdentityNotificationAttributes
-> GetIdentityNotificationAttributes -> Bool
Prelude.Eq, ReadPrec [GetIdentityNotificationAttributes]
ReadPrec GetIdentityNotificationAttributes
Int -> ReadS GetIdentityNotificationAttributes
ReadS [GetIdentityNotificationAttributes]
(Int -> ReadS GetIdentityNotificationAttributes)
-> ReadS [GetIdentityNotificationAttributes]
-> ReadPrec GetIdentityNotificationAttributes
-> ReadPrec [GetIdentityNotificationAttributes]
-> Read GetIdentityNotificationAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIdentityNotificationAttributes]
$creadListPrec :: ReadPrec [GetIdentityNotificationAttributes]
readPrec :: ReadPrec GetIdentityNotificationAttributes
$creadPrec :: ReadPrec GetIdentityNotificationAttributes
readList :: ReadS [GetIdentityNotificationAttributes]
$creadList :: ReadS [GetIdentityNotificationAttributes]
readsPrec :: Int -> ReadS GetIdentityNotificationAttributes
$creadsPrec :: Int -> ReadS GetIdentityNotificationAttributes
Prelude.Read, Int -> GetIdentityNotificationAttributes -> ShowS
[GetIdentityNotificationAttributes] -> ShowS
GetIdentityNotificationAttributes -> String
(Int -> GetIdentityNotificationAttributes -> ShowS)
-> (GetIdentityNotificationAttributes -> String)
-> ([GetIdentityNotificationAttributes] -> ShowS)
-> Show GetIdentityNotificationAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityNotificationAttributes] -> ShowS
$cshowList :: [GetIdentityNotificationAttributes] -> ShowS
show :: GetIdentityNotificationAttributes -> String
$cshow :: GetIdentityNotificationAttributes -> String
showsPrec :: Int -> GetIdentityNotificationAttributes -> ShowS
$cshowsPrec :: Int -> GetIdentityNotificationAttributes -> ShowS
Prelude.Show, (forall x.
 GetIdentityNotificationAttributes
 -> Rep GetIdentityNotificationAttributes x)
-> (forall x.
    Rep GetIdentityNotificationAttributes x
    -> GetIdentityNotificationAttributes)
-> Generic GetIdentityNotificationAttributes
forall x.
Rep GetIdentityNotificationAttributes x
-> GetIdentityNotificationAttributes
forall x.
GetIdentityNotificationAttributes
-> Rep GetIdentityNotificationAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetIdentityNotificationAttributes x
-> GetIdentityNotificationAttributes
$cfrom :: forall x.
GetIdentityNotificationAttributes
-> Rep GetIdentityNotificationAttributes x
Prelude.Generic)

-- |
-- Create a value of 'GetIdentityNotificationAttributes' 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:
--
-- 'identities', 'getIdentityNotificationAttributes_identities' - A list of one or more identities. You can specify an identity by using
-- its name or by using its Amazon Resource Name (ARN). Examples:
-- @user\@example.com@, @example.com@,
-- @arn:aws:ses:us-east-1:123456789012:identity\/example.com@.
newGetIdentityNotificationAttributes ::
  GetIdentityNotificationAttributes
newGetIdentityNotificationAttributes :: GetIdentityNotificationAttributes
newGetIdentityNotificationAttributes =
  GetIdentityNotificationAttributes' :: [Text] -> GetIdentityNotificationAttributes
GetIdentityNotificationAttributes'
    { $sel:identities:GetIdentityNotificationAttributes' :: [Text]
identities =
        [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | A list of one or more identities. You can specify an identity by using
-- its name or by using its Amazon Resource Name (ARN). Examples:
-- @user\@example.com@, @example.com@,
-- @arn:aws:ses:us-east-1:123456789012:identity\/example.com@.
getIdentityNotificationAttributes_identities :: Lens.Lens' GetIdentityNotificationAttributes [Prelude.Text]
getIdentityNotificationAttributes_identities :: ([Text] -> f [Text])
-> GetIdentityNotificationAttributes
-> f GetIdentityNotificationAttributes
getIdentityNotificationAttributes_identities = (GetIdentityNotificationAttributes -> [Text])
-> (GetIdentityNotificationAttributes
    -> [Text] -> GetIdentityNotificationAttributes)
-> Lens
     GetIdentityNotificationAttributes
     GetIdentityNotificationAttributes
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIdentityNotificationAttributes' {[Text]
identities :: [Text]
$sel:identities:GetIdentityNotificationAttributes' :: GetIdentityNotificationAttributes -> [Text]
identities} -> [Text]
identities) (\s :: GetIdentityNotificationAttributes
s@GetIdentityNotificationAttributes' {} [Text]
a -> GetIdentityNotificationAttributes
s {$sel:identities:GetIdentityNotificationAttributes' :: [Text]
identities = [Text]
a} :: GetIdentityNotificationAttributes) (([Text] -> f [Text])
 -> GetIdentityNotificationAttributes
 -> f GetIdentityNotificationAttributes)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> GetIdentityNotificationAttributes
-> f GetIdentityNotificationAttributes
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Core.AWSRequest
    GetIdentityNotificationAttributes
  where
  type
    AWSResponse GetIdentityNotificationAttributes =
      GetIdentityNotificationAttributesResponse
  request :: GetIdentityNotificationAttributes
-> Request GetIdentityNotificationAttributes
request = Service
-> GetIdentityNotificationAttributes
-> Request GetIdentityNotificationAttributes
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy GetIdentityNotificationAttributes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetIdentityNotificationAttributes)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse GetIdentityNotificationAttributes))
-> Logger
-> Service
-> Proxy GetIdentityNotificationAttributes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetIdentityNotificationAttributes)))
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
"GetIdentityNotificationAttributesResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int
-> HashMap Text IdentityNotificationAttributes
-> GetIdentityNotificationAttributesResponse
GetIdentityNotificationAttributesResponse'
            (Int
 -> HashMap Text IdentityNotificationAttributes
 -> GetIdentityNotificationAttributesResponse)
-> Either String Int
-> Either
     String
     (HashMap Text IdentityNotificationAttributes
      -> GetIdentityNotificationAttributesResponse)
forall (f :: * -> *) a b. Functor 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
  (HashMap Text IdentityNotificationAttributes
   -> GetIdentityNotificationAttributesResponse)
-> Either String (HashMap Text IdentityNotificationAttributes)
-> Either String GetIdentityNotificationAttributesResponse
forall (f :: * -> *) a b. Applicative f => 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
"NotificationAttributes"
                              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 (HashMap Text IdentityNotificationAttributes))
-> Either String (HashMap Text IdentityNotificationAttributes)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text
-> Text
-> Text
-> [Node]
-> Either String (HashMap Text IdentityNotificationAttributes)
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"
                          )
      )

instance
  Prelude.Hashable
    GetIdentityNotificationAttributes

instance
  Prelude.NFData
    GetIdentityNotificationAttributes

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

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

instance
  Core.ToQuery
    GetIdentityNotificationAttributes
  where
  toQuery :: GetIdentityNotificationAttributes -> QueryString
toQuery GetIdentityNotificationAttributes' {[Text]
identities :: [Text]
$sel:identities:GetIdentityNotificationAttributes' :: GetIdentityNotificationAttributes -> [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
"GetIdentityNotificationAttributes" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
        ByteString
"Identities"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ByteString -> [Text] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" [Text]
identities
      ]

-- | Represents the notification attributes for a list of identities.
--
-- /See:/ 'newGetIdentityNotificationAttributesResponse' smart constructor.
data GetIdentityNotificationAttributesResponse = GetIdentityNotificationAttributesResponse'
  { -- | The response's http status code.
    GetIdentityNotificationAttributesResponse -> Int
httpStatus :: Prelude.Int,
    -- | A map of Identity to IdentityNotificationAttributes.
    GetIdentityNotificationAttributesResponse
-> HashMap Text IdentityNotificationAttributes
notificationAttributes :: Prelude.HashMap Prelude.Text IdentityNotificationAttributes
  }
  deriving (GetIdentityNotificationAttributesResponse
-> GetIdentityNotificationAttributesResponse -> Bool
(GetIdentityNotificationAttributesResponse
 -> GetIdentityNotificationAttributesResponse -> Bool)
-> (GetIdentityNotificationAttributesResponse
    -> GetIdentityNotificationAttributesResponse -> Bool)
-> Eq GetIdentityNotificationAttributesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityNotificationAttributesResponse
-> GetIdentityNotificationAttributesResponse -> Bool
$c/= :: GetIdentityNotificationAttributesResponse
-> GetIdentityNotificationAttributesResponse -> Bool
== :: GetIdentityNotificationAttributesResponse
-> GetIdentityNotificationAttributesResponse -> Bool
$c== :: GetIdentityNotificationAttributesResponse
-> GetIdentityNotificationAttributesResponse -> Bool
Prelude.Eq, ReadPrec [GetIdentityNotificationAttributesResponse]
ReadPrec GetIdentityNotificationAttributesResponse
Int -> ReadS GetIdentityNotificationAttributesResponse
ReadS [GetIdentityNotificationAttributesResponse]
(Int -> ReadS GetIdentityNotificationAttributesResponse)
-> ReadS [GetIdentityNotificationAttributesResponse]
-> ReadPrec GetIdentityNotificationAttributesResponse
-> ReadPrec [GetIdentityNotificationAttributesResponse]
-> Read GetIdentityNotificationAttributesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIdentityNotificationAttributesResponse]
$creadListPrec :: ReadPrec [GetIdentityNotificationAttributesResponse]
readPrec :: ReadPrec GetIdentityNotificationAttributesResponse
$creadPrec :: ReadPrec GetIdentityNotificationAttributesResponse
readList :: ReadS [GetIdentityNotificationAttributesResponse]
$creadList :: ReadS [GetIdentityNotificationAttributesResponse]
readsPrec :: Int -> ReadS GetIdentityNotificationAttributesResponse
$creadsPrec :: Int -> ReadS GetIdentityNotificationAttributesResponse
Prelude.Read, Int -> GetIdentityNotificationAttributesResponse -> ShowS
[GetIdentityNotificationAttributesResponse] -> ShowS
GetIdentityNotificationAttributesResponse -> String
(Int -> GetIdentityNotificationAttributesResponse -> ShowS)
-> (GetIdentityNotificationAttributesResponse -> String)
-> ([GetIdentityNotificationAttributesResponse] -> ShowS)
-> Show GetIdentityNotificationAttributesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityNotificationAttributesResponse] -> ShowS
$cshowList :: [GetIdentityNotificationAttributesResponse] -> ShowS
show :: GetIdentityNotificationAttributesResponse -> String
$cshow :: GetIdentityNotificationAttributesResponse -> String
showsPrec :: Int -> GetIdentityNotificationAttributesResponse -> ShowS
$cshowsPrec :: Int -> GetIdentityNotificationAttributesResponse -> ShowS
Prelude.Show, (forall x.
 GetIdentityNotificationAttributesResponse
 -> Rep GetIdentityNotificationAttributesResponse x)
-> (forall x.
    Rep GetIdentityNotificationAttributesResponse x
    -> GetIdentityNotificationAttributesResponse)
-> Generic GetIdentityNotificationAttributesResponse
forall x.
Rep GetIdentityNotificationAttributesResponse x
-> GetIdentityNotificationAttributesResponse
forall x.
GetIdentityNotificationAttributesResponse
-> Rep GetIdentityNotificationAttributesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetIdentityNotificationAttributesResponse x
-> GetIdentityNotificationAttributesResponse
$cfrom :: forall x.
GetIdentityNotificationAttributesResponse
-> Rep GetIdentityNotificationAttributesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetIdentityNotificationAttributesResponse' 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:
--
-- 'httpStatus', 'getIdentityNotificationAttributesResponse_httpStatus' - The response's http status code.
--
-- 'notificationAttributes', 'getIdentityNotificationAttributesResponse_notificationAttributes' - A map of Identity to IdentityNotificationAttributes.
newGetIdentityNotificationAttributesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetIdentityNotificationAttributesResponse
newGetIdentityNotificationAttributesResponse :: Int -> GetIdentityNotificationAttributesResponse
newGetIdentityNotificationAttributesResponse
  Int
pHttpStatus_ =
    GetIdentityNotificationAttributesResponse' :: Int
-> HashMap Text IdentityNotificationAttributes
-> GetIdentityNotificationAttributesResponse
GetIdentityNotificationAttributesResponse'
      { $sel:httpStatus:GetIdentityNotificationAttributesResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:notificationAttributes:GetIdentityNotificationAttributesResponse' :: HashMap Text IdentityNotificationAttributes
notificationAttributes =
          HashMap Text IdentityNotificationAttributes
forall a. Monoid a => a
Prelude.mempty
      }

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

-- | A map of Identity to IdentityNotificationAttributes.
getIdentityNotificationAttributesResponse_notificationAttributes :: Lens.Lens' GetIdentityNotificationAttributesResponse (Prelude.HashMap Prelude.Text IdentityNotificationAttributes)
getIdentityNotificationAttributesResponse_notificationAttributes :: (HashMap Text IdentityNotificationAttributes
 -> f (HashMap Text IdentityNotificationAttributes))
-> GetIdentityNotificationAttributesResponse
-> f GetIdentityNotificationAttributesResponse
getIdentityNotificationAttributesResponse_notificationAttributes = (GetIdentityNotificationAttributesResponse
 -> HashMap Text IdentityNotificationAttributes)
-> (GetIdentityNotificationAttributesResponse
    -> HashMap Text IdentityNotificationAttributes
    -> GetIdentityNotificationAttributesResponse)
-> Lens
     GetIdentityNotificationAttributesResponse
     GetIdentityNotificationAttributesResponse
     (HashMap Text IdentityNotificationAttributes)
     (HashMap Text IdentityNotificationAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIdentityNotificationAttributesResponse' {HashMap Text IdentityNotificationAttributes
notificationAttributes :: HashMap Text IdentityNotificationAttributes
$sel:notificationAttributes:GetIdentityNotificationAttributesResponse' :: GetIdentityNotificationAttributesResponse
-> HashMap Text IdentityNotificationAttributes
notificationAttributes} -> HashMap Text IdentityNotificationAttributes
notificationAttributes) (\s :: GetIdentityNotificationAttributesResponse
s@GetIdentityNotificationAttributesResponse' {} HashMap Text IdentityNotificationAttributes
a -> GetIdentityNotificationAttributesResponse
s {$sel:notificationAttributes:GetIdentityNotificationAttributesResponse' :: HashMap Text IdentityNotificationAttributes
notificationAttributes = HashMap Text IdentityNotificationAttributes
a} :: GetIdentityNotificationAttributesResponse) ((HashMap Text IdentityNotificationAttributes
  -> f (HashMap Text IdentityNotificationAttributes))
 -> GetIdentityNotificationAttributesResponse
 -> f GetIdentityNotificationAttributesResponse)
-> ((HashMap Text IdentityNotificationAttributes
     -> f (HashMap Text IdentityNotificationAttributes))
    -> HashMap Text IdentityNotificationAttributes
    -> f (HashMap Text IdentityNotificationAttributes))
-> (HashMap Text IdentityNotificationAttributes
    -> f (HashMap Text IdentityNotificationAttributes))
-> GetIdentityNotificationAttributesResponse
-> f GetIdentityNotificationAttributesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text IdentityNotificationAttributes
 -> f (HashMap Text IdentityNotificationAttributes))
-> HashMap Text IdentityNotificationAttributes
-> f (HashMap Text IdentityNotificationAttributes)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    GetIdentityNotificationAttributesResponse