{-# 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.GetIdentityMailFromDomainAttributes
-- 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)
--
-- Returns the custom MAIL FROM attributes for a list of identities (email
-- addresses : domains).
--
-- This operation is throttled at one request per second and can only get
-- custom MAIL FROM attributes for up to 100 identities at a time.
module Amazonka.SES.GetIdentityMailFromDomainAttributes
  ( -- * Creating a Request
    GetIdentityMailFromDomainAttributes (..),
    newGetIdentityMailFromDomainAttributes,

    -- * Request Lenses
    getIdentityMailFromDomainAttributes_identities,

    -- * Destructuring the Response
    GetIdentityMailFromDomainAttributesResponse (..),
    newGetIdentityMailFromDomainAttributesResponse,

    -- * Response Lenses
    getIdentityMailFromDomainAttributesResponse_httpStatus,
    getIdentityMailFromDomainAttributesResponse_mailFromDomainAttributes,
  )
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 Amazon SES custom MAIL FROM
-- attributes for a list of identities. For information about using a
-- custom MAIL FROM domain, see the
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/mail-from.html Amazon SES Developer Guide>.
--
-- /See:/ 'newGetIdentityMailFromDomainAttributes' smart constructor.
data GetIdentityMailFromDomainAttributes = GetIdentityMailFromDomainAttributes'
  { -- | A list of one or more identities.
    GetIdentityMailFromDomainAttributes -> [Text]
identities :: [Prelude.Text]
  }
  deriving (GetIdentityMailFromDomainAttributes
-> GetIdentityMailFromDomainAttributes -> Bool
(GetIdentityMailFromDomainAttributes
 -> GetIdentityMailFromDomainAttributes -> Bool)
-> (GetIdentityMailFromDomainAttributes
    -> GetIdentityMailFromDomainAttributes -> Bool)
-> Eq GetIdentityMailFromDomainAttributes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityMailFromDomainAttributes
-> GetIdentityMailFromDomainAttributes -> Bool
$c/= :: GetIdentityMailFromDomainAttributes
-> GetIdentityMailFromDomainAttributes -> Bool
== :: GetIdentityMailFromDomainAttributes
-> GetIdentityMailFromDomainAttributes -> Bool
$c== :: GetIdentityMailFromDomainAttributes
-> GetIdentityMailFromDomainAttributes -> Bool
Prelude.Eq, ReadPrec [GetIdentityMailFromDomainAttributes]
ReadPrec GetIdentityMailFromDomainAttributes
Int -> ReadS GetIdentityMailFromDomainAttributes
ReadS [GetIdentityMailFromDomainAttributes]
(Int -> ReadS GetIdentityMailFromDomainAttributes)
-> ReadS [GetIdentityMailFromDomainAttributes]
-> ReadPrec GetIdentityMailFromDomainAttributes
-> ReadPrec [GetIdentityMailFromDomainAttributes]
-> Read GetIdentityMailFromDomainAttributes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIdentityMailFromDomainAttributes]
$creadListPrec :: ReadPrec [GetIdentityMailFromDomainAttributes]
readPrec :: ReadPrec GetIdentityMailFromDomainAttributes
$creadPrec :: ReadPrec GetIdentityMailFromDomainAttributes
readList :: ReadS [GetIdentityMailFromDomainAttributes]
$creadList :: ReadS [GetIdentityMailFromDomainAttributes]
readsPrec :: Int -> ReadS GetIdentityMailFromDomainAttributes
$creadsPrec :: Int -> ReadS GetIdentityMailFromDomainAttributes
Prelude.Read, Int -> GetIdentityMailFromDomainAttributes -> ShowS
[GetIdentityMailFromDomainAttributes] -> ShowS
GetIdentityMailFromDomainAttributes -> String
(Int -> GetIdentityMailFromDomainAttributes -> ShowS)
-> (GetIdentityMailFromDomainAttributes -> String)
-> ([GetIdentityMailFromDomainAttributes] -> ShowS)
-> Show GetIdentityMailFromDomainAttributes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityMailFromDomainAttributes] -> ShowS
$cshowList :: [GetIdentityMailFromDomainAttributes] -> ShowS
show :: GetIdentityMailFromDomainAttributes -> String
$cshow :: GetIdentityMailFromDomainAttributes -> String
showsPrec :: Int -> GetIdentityMailFromDomainAttributes -> ShowS
$cshowsPrec :: Int -> GetIdentityMailFromDomainAttributes -> ShowS
Prelude.Show, (forall x.
 GetIdentityMailFromDomainAttributes
 -> Rep GetIdentityMailFromDomainAttributes x)
-> (forall x.
    Rep GetIdentityMailFromDomainAttributes x
    -> GetIdentityMailFromDomainAttributes)
-> Generic GetIdentityMailFromDomainAttributes
forall x.
Rep GetIdentityMailFromDomainAttributes x
-> GetIdentityMailFromDomainAttributes
forall x.
GetIdentityMailFromDomainAttributes
-> Rep GetIdentityMailFromDomainAttributes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetIdentityMailFromDomainAttributes x
-> GetIdentityMailFromDomainAttributes
$cfrom :: forall x.
GetIdentityMailFromDomainAttributes
-> Rep GetIdentityMailFromDomainAttributes x
Prelude.Generic)

-- |
-- Create a value of 'GetIdentityMailFromDomainAttributes' 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', 'getIdentityMailFromDomainAttributes_identities' - A list of one or more identities.
newGetIdentityMailFromDomainAttributes ::
  GetIdentityMailFromDomainAttributes
newGetIdentityMailFromDomainAttributes :: GetIdentityMailFromDomainAttributes
newGetIdentityMailFromDomainAttributes =
  GetIdentityMailFromDomainAttributes' :: [Text] -> GetIdentityMailFromDomainAttributes
GetIdentityMailFromDomainAttributes'
    { $sel:identities:GetIdentityMailFromDomainAttributes' :: [Text]
identities =
        [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | A list of one or more identities.
getIdentityMailFromDomainAttributes_identities :: Lens.Lens' GetIdentityMailFromDomainAttributes [Prelude.Text]
getIdentityMailFromDomainAttributes_identities :: ([Text] -> f [Text])
-> GetIdentityMailFromDomainAttributes
-> f GetIdentityMailFromDomainAttributes
getIdentityMailFromDomainAttributes_identities = (GetIdentityMailFromDomainAttributes -> [Text])
-> (GetIdentityMailFromDomainAttributes
    -> [Text] -> GetIdentityMailFromDomainAttributes)
-> Lens
     GetIdentityMailFromDomainAttributes
     GetIdentityMailFromDomainAttributes
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIdentityMailFromDomainAttributes' {[Text]
identities :: [Text]
$sel:identities:GetIdentityMailFromDomainAttributes' :: GetIdentityMailFromDomainAttributes -> [Text]
identities} -> [Text]
identities) (\s :: GetIdentityMailFromDomainAttributes
s@GetIdentityMailFromDomainAttributes' {} [Text]
a -> GetIdentityMailFromDomainAttributes
s {$sel:identities:GetIdentityMailFromDomainAttributes' :: [Text]
identities = [Text]
a} :: GetIdentityMailFromDomainAttributes) (([Text] -> f [Text])
 -> GetIdentityMailFromDomainAttributes
 -> f GetIdentityMailFromDomainAttributes)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> GetIdentityMailFromDomainAttributes
-> f GetIdentityMailFromDomainAttributes
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
    GetIdentityMailFromDomainAttributes
  where
  type
    AWSResponse GetIdentityMailFromDomainAttributes =
      GetIdentityMailFromDomainAttributesResponse
  request :: GetIdentityMailFromDomainAttributes
-> Request GetIdentityMailFromDomainAttributes
request = Service
-> GetIdentityMailFromDomainAttributes
-> Request GetIdentityMailFromDomainAttributes
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy GetIdentityMailFromDomainAttributes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetIdentityMailFromDomainAttributes)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse GetIdentityMailFromDomainAttributes))
-> Logger
-> Service
-> Proxy GetIdentityMailFromDomainAttributes
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetIdentityMailFromDomainAttributes)))
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
"GetIdentityMailFromDomainAttributesResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int
-> HashMap Text IdentityMailFromDomainAttributes
-> GetIdentityMailFromDomainAttributesResponse
GetIdentityMailFromDomainAttributesResponse'
            (Int
 -> HashMap Text IdentityMailFromDomainAttributes
 -> GetIdentityMailFromDomainAttributesResponse)
-> Either String Int
-> Either
     String
     (HashMap Text IdentityMailFromDomainAttributes
      -> GetIdentityMailFromDomainAttributesResponse)
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 IdentityMailFromDomainAttributes
   -> GetIdentityMailFromDomainAttributesResponse)
-> Either String (HashMap Text IdentityMailFromDomainAttributes)
-> Either String GetIdentityMailFromDomainAttributesResponse
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
"MailFromDomainAttributes"
                              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 IdentityMailFromDomainAttributes))
-> Either String (HashMap Text IdentityMailFromDomainAttributes)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= Text
-> Text
-> Text
-> [Node]
-> Either String (HashMap Text IdentityMailFromDomainAttributes)
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
    GetIdentityMailFromDomainAttributes

instance
  Prelude.NFData
    GetIdentityMailFromDomainAttributes

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

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

instance
  Core.ToQuery
    GetIdentityMailFromDomainAttributes
  where
  toQuery :: GetIdentityMailFromDomainAttributes -> QueryString
toQuery GetIdentityMailFromDomainAttributes' {[Text]
identities :: [Text]
$sel:identities:GetIdentityMailFromDomainAttributes' :: GetIdentityMailFromDomainAttributes -> [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
"GetIdentityMailFromDomainAttributes" ::
                      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 custom MAIL FROM attributes for a list of identities.
--
-- /See:/ 'newGetIdentityMailFromDomainAttributesResponse' smart constructor.
data GetIdentityMailFromDomainAttributesResponse = GetIdentityMailFromDomainAttributesResponse'
  { -- | The response's http status code.
    GetIdentityMailFromDomainAttributesResponse -> Int
httpStatus :: Prelude.Int,
    -- | A map of identities to custom MAIL FROM attributes.
    GetIdentityMailFromDomainAttributesResponse
-> HashMap Text IdentityMailFromDomainAttributes
mailFromDomainAttributes :: Prelude.HashMap Prelude.Text IdentityMailFromDomainAttributes
  }
  deriving (GetIdentityMailFromDomainAttributesResponse
-> GetIdentityMailFromDomainAttributesResponse -> Bool
(GetIdentityMailFromDomainAttributesResponse
 -> GetIdentityMailFromDomainAttributesResponse -> Bool)
-> (GetIdentityMailFromDomainAttributesResponse
    -> GetIdentityMailFromDomainAttributesResponse -> Bool)
-> Eq GetIdentityMailFromDomainAttributesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIdentityMailFromDomainAttributesResponse
-> GetIdentityMailFromDomainAttributesResponse -> Bool
$c/= :: GetIdentityMailFromDomainAttributesResponse
-> GetIdentityMailFromDomainAttributesResponse -> Bool
== :: GetIdentityMailFromDomainAttributesResponse
-> GetIdentityMailFromDomainAttributesResponse -> Bool
$c== :: GetIdentityMailFromDomainAttributesResponse
-> GetIdentityMailFromDomainAttributesResponse -> Bool
Prelude.Eq, ReadPrec [GetIdentityMailFromDomainAttributesResponse]
ReadPrec GetIdentityMailFromDomainAttributesResponse
Int -> ReadS GetIdentityMailFromDomainAttributesResponse
ReadS [GetIdentityMailFromDomainAttributesResponse]
(Int -> ReadS GetIdentityMailFromDomainAttributesResponse)
-> ReadS [GetIdentityMailFromDomainAttributesResponse]
-> ReadPrec GetIdentityMailFromDomainAttributesResponse
-> ReadPrec [GetIdentityMailFromDomainAttributesResponse]
-> Read GetIdentityMailFromDomainAttributesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIdentityMailFromDomainAttributesResponse]
$creadListPrec :: ReadPrec [GetIdentityMailFromDomainAttributesResponse]
readPrec :: ReadPrec GetIdentityMailFromDomainAttributesResponse
$creadPrec :: ReadPrec GetIdentityMailFromDomainAttributesResponse
readList :: ReadS [GetIdentityMailFromDomainAttributesResponse]
$creadList :: ReadS [GetIdentityMailFromDomainAttributesResponse]
readsPrec :: Int -> ReadS GetIdentityMailFromDomainAttributesResponse
$creadsPrec :: Int -> ReadS GetIdentityMailFromDomainAttributesResponse
Prelude.Read, Int -> GetIdentityMailFromDomainAttributesResponse -> ShowS
[GetIdentityMailFromDomainAttributesResponse] -> ShowS
GetIdentityMailFromDomainAttributesResponse -> String
(Int -> GetIdentityMailFromDomainAttributesResponse -> ShowS)
-> (GetIdentityMailFromDomainAttributesResponse -> String)
-> ([GetIdentityMailFromDomainAttributesResponse] -> ShowS)
-> Show GetIdentityMailFromDomainAttributesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIdentityMailFromDomainAttributesResponse] -> ShowS
$cshowList :: [GetIdentityMailFromDomainAttributesResponse] -> ShowS
show :: GetIdentityMailFromDomainAttributesResponse -> String
$cshow :: GetIdentityMailFromDomainAttributesResponse -> String
showsPrec :: Int -> GetIdentityMailFromDomainAttributesResponse -> ShowS
$cshowsPrec :: Int -> GetIdentityMailFromDomainAttributesResponse -> ShowS
Prelude.Show, (forall x.
 GetIdentityMailFromDomainAttributesResponse
 -> Rep GetIdentityMailFromDomainAttributesResponse x)
-> (forall x.
    Rep GetIdentityMailFromDomainAttributesResponse x
    -> GetIdentityMailFromDomainAttributesResponse)
-> Generic GetIdentityMailFromDomainAttributesResponse
forall x.
Rep GetIdentityMailFromDomainAttributesResponse x
-> GetIdentityMailFromDomainAttributesResponse
forall x.
GetIdentityMailFromDomainAttributesResponse
-> Rep GetIdentityMailFromDomainAttributesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetIdentityMailFromDomainAttributesResponse x
-> GetIdentityMailFromDomainAttributesResponse
$cfrom :: forall x.
GetIdentityMailFromDomainAttributesResponse
-> Rep GetIdentityMailFromDomainAttributesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetIdentityMailFromDomainAttributesResponse' 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', 'getIdentityMailFromDomainAttributesResponse_httpStatus' - The response's http status code.
--
-- 'mailFromDomainAttributes', 'getIdentityMailFromDomainAttributesResponse_mailFromDomainAttributes' - A map of identities to custom MAIL FROM attributes.
newGetIdentityMailFromDomainAttributesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetIdentityMailFromDomainAttributesResponse
newGetIdentityMailFromDomainAttributesResponse :: Int -> GetIdentityMailFromDomainAttributesResponse
newGetIdentityMailFromDomainAttributesResponse
  Int
pHttpStatus_ =
    GetIdentityMailFromDomainAttributesResponse' :: Int
-> HashMap Text IdentityMailFromDomainAttributes
-> GetIdentityMailFromDomainAttributesResponse
GetIdentityMailFromDomainAttributesResponse'
      { $sel:httpStatus:GetIdentityMailFromDomainAttributesResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:mailFromDomainAttributes:GetIdentityMailFromDomainAttributesResponse' :: HashMap Text IdentityMailFromDomainAttributes
mailFromDomainAttributes =
          HashMap Text IdentityMailFromDomainAttributes
forall a. Monoid a => a
Prelude.mempty
      }

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

-- | A map of identities to custom MAIL FROM attributes.
getIdentityMailFromDomainAttributesResponse_mailFromDomainAttributes :: Lens.Lens' GetIdentityMailFromDomainAttributesResponse (Prelude.HashMap Prelude.Text IdentityMailFromDomainAttributes)
getIdentityMailFromDomainAttributesResponse_mailFromDomainAttributes :: (HashMap Text IdentityMailFromDomainAttributes
 -> f (HashMap Text IdentityMailFromDomainAttributes))
-> GetIdentityMailFromDomainAttributesResponse
-> f GetIdentityMailFromDomainAttributesResponse
getIdentityMailFromDomainAttributesResponse_mailFromDomainAttributes = (GetIdentityMailFromDomainAttributesResponse
 -> HashMap Text IdentityMailFromDomainAttributes)
-> (GetIdentityMailFromDomainAttributesResponse
    -> HashMap Text IdentityMailFromDomainAttributes
    -> GetIdentityMailFromDomainAttributesResponse)
-> Lens
     GetIdentityMailFromDomainAttributesResponse
     GetIdentityMailFromDomainAttributesResponse
     (HashMap Text IdentityMailFromDomainAttributes)
     (HashMap Text IdentityMailFromDomainAttributes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIdentityMailFromDomainAttributesResponse' {HashMap Text IdentityMailFromDomainAttributes
mailFromDomainAttributes :: HashMap Text IdentityMailFromDomainAttributes
$sel:mailFromDomainAttributes:GetIdentityMailFromDomainAttributesResponse' :: GetIdentityMailFromDomainAttributesResponse
-> HashMap Text IdentityMailFromDomainAttributes
mailFromDomainAttributes} -> HashMap Text IdentityMailFromDomainAttributes
mailFromDomainAttributes) (\s :: GetIdentityMailFromDomainAttributesResponse
s@GetIdentityMailFromDomainAttributesResponse' {} HashMap Text IdentityMailFromDomainAttributes
a -> GetIdentityMailFromDomainAttributesResponse
s {$sel:mailFromDomainAttributes:GetIdentityMailFromDomainAttributesResponse' :: HashMap Text IdentityMailFromDomainAttributes
mailFromDomainAttributes = HashMap Text IdentityMailFromDomainAttributes
a} :: GetIdentityMailFromDomainAttributesResponse) ((HashMap Text IdentityMailFromDomainAttributes
  -> f (HashMap Text IdentityMailFromDomainAttributes))
 -> GetIdentityMailFromDomainAttributesResponse
 -> f GetIdentityMailFromDomainAttributesResponse)
-> ((HashMap Text IdentityMailFromDomainAttributes
     -> f (HashMap Text IdentityMailFromDomainAttributes))
    -> HashMap Text IdentityMailFromDomainAttributes
    -> f (HashMap Text IdentityMailFromDomainAttributes))
-> (HashMap Text IdentityMailFromDomainAttributes
    -> f (HashMap Text IdentityMailFromDomainAttributes))
-> GetIdentityMailFromDomainAttributesResponse
-> f GetIdentityMailFromDomainAttributesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text IdentityMailFromDomainAttributes
 -> f (HashMap Text IdentityMailFromDomainAttributes))
-> HashMap Text IdentityMailFromDomainAttributes
-> f (HashMap Text IdentityMailFromDomainAttributes)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    GetIdentityMailFromDomainAttributesResponse