{-# 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.SESV2.CreateEmailIdentityPolicy
-- 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)
--
-- Creates the specified sending authorization policy for the given
-- identity (an email address or a domain).
--
-- This API is for the identity owner only. If you have not verified the
-- identity, this API will return an error.
--
-- Sending authorization is a feature that enables an identity owner to
-- authorize other senders to use its identities. For information about
-- using sending authorization, see the
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization.html Amazon SES Developer Guide>.
--
-- You can execute this operation no more than once per second.
module Amazonka.SESV2.CreateEmailIdentityPolicy
  ( -- * Creating a Request
    CreateEmailIdentityPolicy (..),
    newCreateEmailIdentityPolicy,

    -- * Request Lenses
    createEmailIdentityPolicy_emailIdentity,
    createEmailIdentityPolicy_policyName,
    createEmailIdentityPolicy_policy,

    -- * Destructuring the Response
    CreateEmailIdentityPolicyResponse (..),
    newCreateEmailIdentityPolicyResponse,

    -- * Response Lenses
    createEmailIdentityPolicyResponse_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.SESV2.Types

-- | Represents a request to create a sending authorization policy for an
-- identity. Sending authorization is an Amazon SES feature that enables
-- you to authorize other senders to use your identities. For information,
-- see the
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-identity-owner-tasks-management.html Amazon SES Developer Guide>.
--
-- /See:/ 'newCreateEmailIdentityPolicy' smart constructor.
data CreateEmailIdentityPolicy = CreateEmailIdentityPolicy'
  { -- | The email identity.
    CreateEmailIdentityPolicy -> Text
emailIdentity :: Prelude.Text,
    -- | The name of the policy.
    --
    -- The policy name cannot exceed 64 characters and can only include
    -- alphanumeric characters, dashes, and underscores.
    CreateEmailIdentityPolicy -> Text
policyName :: Prelude.Text,
    -- | The text of the policy in JSON format. The policy cannot exceed 4 KB.
    --
    -- For information about the syntax of sending authorization policies, see
    -- the
    -- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html Amazon SES Developer Guide>.
    CreateEmailIdentityPolicy -> Text
policy :: Prelude.Text
  }
  deriving (CreateEmailIdentityPolicy -> CreateEmailIdentityPolicy -> Bool
(CreateEmailIdentityPolicy -> CreateEmailIdentityPolicy -> Bool)
-> (CreateEmailIdentityPolicy -> CreateEmailIdentityPolicy -> Bool)
-> Eq CreateEmailIdentityPolicy
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEmailIdentityPolicy -> CreateEmailIdentityPolicy -> Bool
$c/= :: CreateEmailIdentityPolicy -> CreateEmailIdentityPolicy -> Bool
== :: CreateEmailIdentityPolicy -> CreateEmailIdentityPolicy -> Bool
$c== :: CreateEmailIdentityPolicy -> CreateEmailIdentityPolicy -> Bool
Prelude.Eq, ReadPrec [CreateEmailIdentityPolicy]
ReadPrec CreateEmailIdentityPolicy
Int -> ReadS CreateEmailIdentityPolicy
ReadS [CreateEmailIdentityPolicy]
(Int -> ReadS CreateEmailIdentityPolicy)
-> ReadS [CreateEmailIdentityPolicy]
-> ReadPrec CreateEmailIdentityPolicy
-> ReadPrec [CreateEmailIdentityPolicy]
-> Read CreateEmailIdentityPolicy
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEmailIdentityPolicy]
$creadListPrec :: ReadPrec [CreateEmailIdentityPolicy]
readPrec :: ReadPrec CreateEmailIdentityPolicy
$creadPrec :: ReadPrec CreateEmailIdentityPolicy
readList :: ReadS [CreateEmailIdentityPolicy]
$creadList :: ReadS [CreateEmailIdentityPolicy]
readsPrec :: Int -> ReadS CreateEmailIdentityPolicy
$creadsPrec :: Int -> ReadS CreateEmailIdentityPolicy
Prelude.Read, Int -> CreateEmailIdentityPolicy -> ShowS
[CreateEmailIdentityPolicy] -> ShowS
CreateEmailIdentityPolicy -> String
(Int -> CreateEmailIdentityPolicy -> ShowS)
-> (CreateEmailIdentityPolicy -> String)
-> ([CreateEmailIdentityPolicy] -> ShowS)
-> Show CreateEmailIdentityPolicy
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEmailIdentityPolicy] -> ShowS
$cshowList :: [CreateEmailIdentityPolicy] -> ShowS
show :: CreateEmailIdentityPolicy -> String
$cshow :: CreateEmailIdentityPolicy -> String
showsPrec :: Int -> CreateEmailIdentityPolicy -> ShowS
$cshowsPrec :: Int -> CreateEmailIdentityPolicy -> ShowS
Prelude.Show, (forall x.
 CreateEmailIdentityPolicy -> Rep CreateEmailIdentityPolicy x)
-> (forall x.
    Rep CreateEmailIdentityPolicy x -> CreateEmailIdentityPolicy)
-> Generic CreateEmailIdentityPolicy
forall x.
Rep CreateEmailIdentityPolicy x -> CreateEmailIdentityPolicy
forall x.
CreateEmailIdentityPolicy -> Rep CreateEmailIdentityPolicy x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateEmailIdentityPolicy x -> CreateEmailIdentityPolicy
$cfrom :: forall x.
CreateEmailIdentityPolicy -> Rep CreateEmailIdentityPolicy x
Prelude.Generic)

-- |
-- Create a value of 'CreateEmailIdentityPolicy' 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:
--
-- 'emailIdentity', 'createEmailIdentityPolicy_emailIdentity' - The email identity.
--
-- 'policyName', 'createEmailIdentityPolicy_policyName' - The name of the policy.
--
-- The policy name cannot exceed 64 characters and can only include
-- alphanumeric characters, dashes, and underscores.
--
-- 'policy', 'createEmailIdentityPolicy_policy' - The text of the policy in JSON format. The policy cannot exceed 4 KB.
--
-- For information about the syntax of sending authorization policies, see
-- the
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html Amazon SES Developer Guide>.
newCreateEmailIdentityPolicy ::
  -- | 'emailIdentity'
  Prelude.Text ->
  -- | 'policyName'
  Prelude.Text ->
  -- | 'policy'
  Prelude.Text ->
  CreateEmailIdentityPolicy
newCreateEmailIdentityPolicy :: Text -> Text -> Text -> CreateEmailIdentityPolicy
newCreateEmailIdentityPolicy
  Text
pEmailIdentity_
  Text
pPolicyName_
  Text
pPolicy_ =
    CreateEmailIdentityPolicy' :: Text -> Text -> Text -> CreateEmailIdentityPolicy
CreateEmailIdentityPolicy'
      { $sel:emailIdentity:CreateEmailIdentityPolicy' :: Text
emailIdentity =
          Text
pEmailIdentity_,
        $sel:policyName:CreateEmailIdentityPolicy' :: Text
policyName = Text
pPolicyName_,
        $sel:policy:CreateEmailIdentityPolicy' :: Text
policy = Text
pPolicy_
      }

-- | The email identity.
createEmailIdentityPolicy_emailIdentity :: Lens.Lens' CreateEmailIdentityPolicy Prelude.Text
createEmailIdentityPolicy_emailIdentity :: (Text -> f Text)
-> CreateEmailIdentityPolicy -> f CreateEmailIdentityPolicy
createEmailIdentityPolicy_emailIdentity = (CreateEmailIdentityPolicy -> Text)
-> (CreateEmailIdentityPolicy -> Text -> CreateEmailIdentityPolicy)
-> Lens
     CreateEmailIdentityPolicy CreateEmailIdentityPolicy Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentityPolicy' {Text
emailIdentity :: Text
$sel:emailIdentity:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
emailIdentity} -> Text
emailIdentity) (\s :: CreateEmailIdentityPolicy
s@CreateEmailIdentityPolicy' {} Text
a -> CreateEmailIdentityPolicy
s {$sel:emailIdentity:CreateEmailIdentityPolicy' :: Text
emailIdentity = Text
a} :: CreateEmailIdentityPolicy)

-- | The name of the policy.
--
-- The policy name cannot exceed 64 characters and can only include
-- alphanumeric characters, dashes, and underscores.
createEmailIdentityPolicy_policyName :: Lens.Lens' CreateEmailIdentityPolicy Prelude.Text
createEmailIdentityPolicy_policyName :: (Text -> f Text)
-> CreateEmailIdentityPolicy -> f CreateEmailIdentityPolicy
createEmailIdentityPolicy_policyName = (CreateEmailIdentityPolicy -> Text)
-> (CreateEmailIdentityPolicy -> Text -> CreateEmailIdentityPolicy)
-> Lens
     CreateEmailIdentityPolicy CreateEmailIdentityPolicy Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentityPolicy' {Text
policyName :: Text
$sel:policyName:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
policyName} -> Text
policyName) (\s :: CreateEmailIdentityPolicy
s@CreateEmailIdentityPolicy' {} Text
a -> CreateEmailIdentityPolicy
s {$sel:policyName:CreateEmailIdentityPolicy' :: Text
policyName = Text
a} :: CreateEmailIdentityPolicy)

-- | The text of the policy in JSON format. The policy cannot exceed 4 KB.
--
-- For information about the syntax of sending authorization policies, see
-- the
-- <https://docs.aws.amazon.com/ses/latest/DeveloperGuide/sending-authorization-policies.html Amazon SES Developer Guide>.
createEmailIdentityPolicy_policy :: Lens.Lens' CreateEmailIdentityPolicy Prelude.Text
createEmailIdentityPolicy_policy :: (Text -> f Text)
-> CreateEmailIdentityPolicy -> f CreateEmailIdentityPolicy
createEmailIdentityPolicy_policy = (CreateEmailIdentityPolicy -> Text)
-> (CreateEmailIdentityPolicy -> Text -> CreateEmailIdentityPolicy)
-> Lens
     CreateEmailIdentityPolicy CreateEmailIdentityPolicy Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateEmailIdentityPolicy' {Text
policy :: Text
$sel:policy:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
policy} -> Text
policy) (\s :: CreateEmailIdentityPolicy
s@CreateEmailIdentityPolicy' {} Text
a -> CreateEmailIdentityPolicy
s {$sel:policy:CreateEmailIdentityPolicy' :: Text
policy = Text
a} :: CreateEmailIdentityPolicy)

instance Core.AWSRequest CreateEmailIdentityPolicy where
  type
    AWSResponse CreateEmailIdentityPolicy =
      CreateEmailIdentityPolicyResponse
  request :: CreateEmailIdentityPolicy -> Request CreateEmailIdentityPolicy
request = Service
-> CreateEmailIdentityPolicy -> Request CreateEmailIdentityPolicy
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy CreateEmailIdentityPolicy
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateEmailIdentityPolicy)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse CreateEmailIdentityPolicy))
-> Logger
-> Service
-> Proxy CreateEmailIdentityPolicy
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse CreateEmailIdentityPolicy)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> CreateEmailIdentityPolicyResponse
CreateEmailIdentityPolicyResponse'
            (Int -> CreateEmailIdentityPolicyResponse)
-> Either String Int
-> Either String CreateEmailIdentityPolicyResponse
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))
      )

instance Prelude.Hashable CreateEmailIdentityPolicy

instance Prelude.NFData CreateEmailIdentityPolicy

instance Core.ToHeaders CreateEmailIdentityPolicy where
  toHeaders :: CreateEmailIdentityPolicy -> ResponseHeaders
toHeaders =
    ResponseHeaders -> CreateEmailIdentityPolicy -> 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.ToJSON CreateEmailIdentityPolicy where
  toJSON :: CreateEmailIdentityPolicy -> Value
toJSON CreateEmailIdentityPolicy' {Text
policy :: Text
policyName :: Text
emailIdentity :: Text
$sel:policy:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
$sel:policyName:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
$sel:emailIdentity:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Policy" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
policy)]
      )

instance Core.ToPath CreateEmailIdentityPolicy where
  toPath :: CreateEmailIdentityPolicy -> ByteString
toPath CreateEmailIdentityPolicy' {Text
policy :: Text
policyName :: Text
emailIdentity :: Text
$sel:policy:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
$sel:policyName:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
$sel:emailIdentity:CreateEmailIdentityPolicy' :: CreateEmailIdentityPolicy -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/v2/email/identities/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
emailIdentity,
        ByteString
"/policies/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
policyName
      ]

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

-- | An HTTP 200 response if the request succeeds, or an error message if the
-- request fails.
--
-- /See:/ 'newCreateEmailIdentityPolicyResponse' smart constructor.
data CreateEmailIdentityPolicyResponse = CreateEmailIdentityPolicyResponse'
  { -- | The response's http status code.
    CreateEmailIdentityPolicyResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (CreateEmailIdentityPolicyResponse
-> CreateEmailIdentityPolicyResponse -> Bool
(CreateEmailIdentityPolicyResponse
 -> CreateEmailIdentityPolicyResponse -> Bool)
-> (CreateEmailIdentityPolicyResponse
    -> CreateEmailIdentityPolicyResponse -> Bool)
-> Eq CreateEmailIdentityPolicyResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateEmailIdentityPolicyResponse
-> CreateEmailIdentityPolicyResponse -> Bool
$c/= :: CreateEmailIdentityPolicyResponse
-> CreateEmailIdentityPolicyResponse -> Bool
== :: CreateEmailIdentityPolicyResponse
-> CreateEmailIdentityPolicyResponse -> Bool
$c== :: CreateEmailIdentityPolicyResponse
-> CreateEmailIdentityPolicyResponse -> Bool
Prelude.Eq, ReadPrec [CreateEmailIdentityPolicyResponse]
ReadPrec CreateEmailIdentityPolicyResponse
Int -> ReadS CreateEmailIdentityPolicyResponse
ReadS [CreateEmailIdentityPolicyResponse]
(Int -> ReadS CreateEmailIdentityPolicyResponse)
-> ReadS [CreateEmailIdentityPolicyResponse]
-> ReadPrec CreateEmailIdentityPolicyResponse
-> ReadPrec [CreateEmailIdentityPolicyResponse]
-> Read CreateEmailIdentityPolicyResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [CreateEmailIdentityPolicyResponse]
$creadListPrec :: ReadPrec [CreateEmailIdentityPolicyResponse]
readPrec :: ReadPrec CreateEmailIdentityPolicyResponse
$creadPrec :: ReadPrec CreateEmailIdentityPolicyResponse
readList :: ReadS [CreateEmailIdentityPolicyResponse]
$creadList :: ReadS [CreateEmailIdentityPolicyResponse]
readsPrec :: Int -> ReadS CreateEmailIdentityPolicyResponse
$creadsPrec :: Int -> ReadS CreateEmailIdentityPolicyResponse
Prelude.Read, Int -> CreateEmailIdentityPolicyResponse -> ShowS
[CreateEmailIdentityPolicyResponse] -> ShowS
CreateEmailIdentityPolicyResponse -> String
(Int -> CreateEmailIdentityPolicyResponse -> ShowS)
-> (CreateEmailIdentityPolicyResponse -> String)
-> ([CreateEmailIdentityPolicyResponse] -> ShowS)
-> Show CreateEmailIdentityPolicyResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateEmailIdentityPolicyResponse] -> ShowS
$cshowList :: [CreateEmailIdentityPolicyResponse] -> ShowS
show :: CreateEmailIdentityPolicyResponse -> String
$cshow :: CreateEmailIdentityPolicyResponse -> String
showsPrec :: Int -> CreateEmailIdentityPolicyResponse -> ShowS
$cshowsPrec :: Int -> CreateEmailIdentityPolicyResponse -> ShowS
Prelude.Show, (forall x.
 CreateEmailIdentityPolicyResponse
 -> Rep CreateEmailIdentityPolicyResponse x)
-> (forall x.
    Rep CreateEmailIdentityPolicyResponse x
    -> CreateEmailIdentityPolicyResponse)
-> Generic CreateEmailIdentityPolicyResponse
forall x.
Rep CreateEmailIdentityPolicyResponse x
-> CreateEmailIdentityPolicyResponse
forall x.
CreateEmailIdentityPolicyResponse
-> Rep CreateEmailIdentityPolicyResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateEmailIdentityPolicyResponse x
-> CreateEmailIdentityPolicyResponse
$cfrom :: forall x.
CreateEmailIdentityPolicyResponse
-> Rep CreateEmailIdentityPolicyResponse x
Prelude.Generic)

-- |
-- Create a value of 'CreateEmailIdentityPolicyResponse' 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', 'createEmailIdentityPolicyResponse_httpStatus' - The response's http status code.
newCreateEmailIdentityPolicyResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  CreateEmailIdentityPolicyResponse
newCreateEmailIdentityPolicyResponse :: Int -> CreateEmailIdentityPolicyResponse
newCreateEmailIdentityPolicyResponse Int
pHttpStatus_ =
  CreateEmailIdentityPolicyResponse' :: Int -> CreateEmailIdentityPolicyResponse
CreateEmailIdentityPolicyResponse'
    { $sel:httpStatus:CreateEmailIdentityPolicyResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

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

instance
  Prelude.NFData
    CreateEmailIdentityPolicyResponse