{-# 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.Redshift.ModifyAuthenticationProfile
-- 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)
--
-- Modifies an authentication profile.
module Amazonka.Redshift.ModifyAuthenticationProfile
  ( -- * Creating a Request
    ModifyAuthenticationProfile (..),
    newModifyAuthenticationProfile,

    -- * Request Lenses
    modifyAuthenticationProfile_authenticationProfileName,
    modifyAuthenticationProfile_authenticationProfileContent,

    -- * Destructuring the Response
    ModifyAuthenticationProfileResponse (..),
    newModifyAuthenticationProfileResponse,

    -- * Response Lenses
    modifyAuthenticationProfileResponse_authenticationProfileName,
    modifyAuthenticationProfileResponse_authenticationProfileContent,
    modifyAuthenticationProfileResponse_httpStatus,
  )
where

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

-- | /See:/ 'newModifyAuthenticationProfile' smart constructor.
data ModifyAuthenticationProfile = ModifyAuthenticationProfile'
  { -- | The name of the authentication profile to replace.
    ModifyAuthenticationProfile -> Text
authenticationProfileName :: Prelude.Text,
    -- | The new content of the authentication profile in JSON format. The
    -- maximum length of the JSON string is determined by a quota for your
    -- account.
    ModifyAuthenticationProfile -> Text
authenticationProfileContent :: Prelude.Text
  }
  deriving (ModifyAuthenticationProfile -> ModifyAuthenticationProfile -> Bool
(ModifyAuthenticationProfile
 -> ModifyAuthenticationProfile -> Bool)
-> (ModifyAuthenticationProfile
    -> ModifyAuthenticationProfile -> Bool)
-> Eq ModifyAuthenticationProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyAuthenticationProfile -> ModifyAuthenticationProfile -> Bool
$c/= :: ModifyAuthenticationProfile -> ModifyAuthenticationProfile -> Bool
== :: ModifyAuthenticationProfile -> ModifyAuthenticationProfile -> Bool
$c== :: ModifyAuthenticationProfile -> ModifyAuthenticationProfile -> Bool
Prelude.Eq, ReadPrec [ModifyAuthenticationProfile]
ReadPrec ModifyAuthenticationProfile
Int -> ReadS ModifyAuthenticationProfile
ReadS [ModifyAuthenticationProfile]
(Int -> ReadS ModifyAuthenticationProfile)
-> ReadS [ModifyAuthenticationProfile]
-> ReadPrec ModifyAuthenticationProfile
-> ReadPrec [ModifyAuthenticationProfile]
-> Read ModifyAuthenticationProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyAuthenticationProfile]
$creadListPrec :: ReadPrec [ModifyAuthenticationProfile]
readPrec :: ReadPrec ModifyAuthenticationProfile
$creadPrec :: ReadPrec ModifyAuthenticationProfile
readList :: ReadS [ModifyAuthenticationProfile]
$creadList :: ReadS [ModifyAuthenticationProfile]
readsPrec :: Int -> ReadS ModifyAuthenticationProfile
$creadsPrec :: Int -> ReadS ModifyAuthenticationProfile
Prelude.Read, Int -> ModifyAuthenticationProfile -> ShowS
[ModifyAuthenticationProfile] -> ShowS
ModifyAuthenticationProfile -> String
(Int -> ModifyAuthenticationProfile -> ShowS)
-> (ModifyAuthenticationProfile -> String)
-> ([ModifyAuthenticationProfile] -> ShowS)
-> Show ModifyAuthenticationProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyAuthenticationProfile] -> ShowS
$cshowList :: [ModifyAuthenticationProfile] -> ShowS
show :: ModifyAuthenticationProfile -> String
$cshow :: ModifyAuthenticationProfile -> String
showsPrec :: Int -> ModifyAuthenticationProfile -> ShowS
$cshowsPrec :: Int -> ModifyAuthenticationProfile -> ShowS
Prelude.Show, (forall x.
 ModifyAuthenticationProfile -> Rep ModifyAuthenticationProfile x)
-> (forall x.
    Rep ModifyAuthenticationProfile x -> ModifyAuthenticationProfile)
-> Generic ModifyAuthenticationProfile
forall x.
Rep ModifyAuthenticationProfile x -> ModifyAuthenticationProfile
forall x.
ModifyAuthenticationProfile -> Rep ModifyAuthenticationProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModifyAuthenticationProfile x -> ModifyAuthenticationProfile
$cfrom :: forall x.
ModifyAuthenticationProfile -> Rep ModifyAuthenticationProfile x
Prelude.Generic)

-- |
-- Create a value of 'ModifyAuthenticationProfile' 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:
--
-- 'authenticationProfileName', 'modifyAuthenticationProfile_authenticationProfileName' - The name of the authentication profile to replace.
--
-- 'authenticationProfileContent', 'modifyAuthenticationProfile_authenticationProfileContent' - The new content of the authentication profile in JSON format. The
-- maximum length of the JSON string is determined by a quota for your
-- account.
newModifyAuthenticationProfile ::
  -- | 'authenticationProfileName'
  Prelude.Text ->
  -- | 'authenticationProfileContent'
  Prelude.Text ->
  ModifyAuthenticationProfile
newModifyAuthenticationProfile :: Text -> Text -> ModifyAuthenticationProfile
newModifyAuthenticationProfile
  Text
pAuthenticationProfileName_
  Text
pAuthenticationProfileContent_ =
    ModifyAuthenticationProfile' :: Text -> Text -> ModifyAuthenticationProfile
ModifyAuthenticationProfile'
      { $sel:authenticationProfileName:ModifyAuthenticationProfile' :: Text
authenticationProfileName =
          Text
pAuthenticationProfileName_,
        $sel:authenticationProfileContent:ModifyAuthenticationProfile' :: Text
authenticationProfileContent =
          Text
pAuthenticationProfileContent_
      }

-- | The name of the authentication profile to replace.
modifyAuthenticationProfile_authenticationProfileName :: Lens.Lens' ModifyAuthenticationProfile Prelude.Text
modifyAuthenticationProfile_authenticationProfileName :: (Text -> f Text)
-> ModifyAuthenticationProfile -> f ModifyAuthenticationProfile
modifyAuthenticationProfile_authenticationProfileName = (ModifyAuthenticationProfile -> Text)
-> (ModifyAuthenticationProfile
    -> Text -> ModifyAuthenticationProfile)
-> Lens
     ModifyAuthenticationProfile ModifyAuthenticationProfile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyAuthenticationProfile' {Text
authenticationProfileName :: Text
$sel:authenticationProfileName:ModifyAuthenticationProfile' :: ModifyAuthenticationProfile -> Text
authenticationProfileName} -> Text
authenticationProfileName) (\s :: ModifyAuthenticationProfile
s@ModifyAuthenticationProfile' {} Text
a -> ModifyAuthenticationProfile
s {$sel:authenticationProfileName:ModifyAuthenticationProfile' :: Text
authenticationProfileName = Text
a} :: ModifyAuthenticationProfile)

-- | The new content of the authentication profile in JSON format. The
-- maximum length of the JSON string is determined by a quota for your
-- account.
modifyAuthenticationProfile_authenticationProfileContent :: Lens.Lens' ModifyAuthenticationProfile Prelude.Text
modifyAuthenticationProfile_authenticationProfileContent :: (Text -> f Text)
-> ModifyAuthenticationProfile -> f ModifyAuthenticationProfile
modifyAuthenticationProfile_authenticationProfileContent = (ModifyAuthenticationProfile -> Text)
-> (ModifyAuthenticationProfile
    -> Text -> ModifyAuthenticationProfile)
-> Lens
     ModifyAuthenticationProfile ModifyAuthenticationProfile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyAuthenticationProfile' {Text
authenticationProfileContent :: Text
$sel:authenticationProfileContent:ModifyAuthenticationProfile' :: ModifyAuthenticationProfile -> Text
authenticationProfileContent} -> Text
authenticationProfileContent) (\s :: ModifyAuthenticationProfile
s@ModifyAuthenticationProfile' {} Text
a -> ModifyAuthenticationProfile
s {$sel:authenticationProfileContent:ModifyAuthenticationProfile' :: Text
authenticationProfileContent = Text
a} :: ModifyAuthenticationProfile)

instance Core.AWSRequest ModifyAuthenticationProfile where
  type
    AWSResponse ModifyAuthenticationProfile =
      ModifyAuthenticationProfileResponse
  request :: ModifyAuthenticationProfile -> Request ModifyAuthenticationProfile
request = Service
-> ModifyAuthenticationProfile
-> Request ModifyAuthenticationProfile
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy ModifyAuthenticationProfile
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ModifyAuthenticationProfile)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse ModifyAuthenticationProfile))
-> Logger
-> Service
-> Proxy ModifyAuthenticationProfile
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ModifyAuthenticationProfile)))
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
"ModifyAuthenticationProfileResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe Text -> Int -> ModifyAuthenticationProfileResponse
ModifyAuthenticationProfileResponse'
            (Maybe Text
 -> Maybe Text -> Int -> ModifyAuthenticationProfileResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Int -> ModifyAuthenticationProfileResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AuthenticationProfileName")
            Either
  String (Maybe Text -> Int -> ModifyAuthenticationProfileResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ModifyAuthenticationProfileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"AuthenticationProfileContent")
            Either String (Int -> ModifyAuthenticationProfileResponse)
-> Either String Int
-> Either String ModifyAuthenticationProfileResponse
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 ModifyAuthenticationProfile

instance Prelude.NFData ModifyAuthenticationProfile

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

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

instance Core.ToQuery ModifyAuthenticationProfile where
  toQuery :: ModifyAuthenticationProfile -> QueryString
toQuery ModifyAuthenticationProfile' {Text
authenticationProfileContent :: Text
authenticationProfileName :: Text
$sel:authenticationProfileContent:ModifyAuthenticationProfile' :: ModifyAuthenticationProfile -> Text
$sel:authenticationProfileName:ModifyAuthenticationProfile' :: ModifyAuthenticationProfile -> 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
"ModifyAuthenticationProfile" ::
                      Prelude.ByteString
                  ),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2012-12-01" :: Prelude.ByteString),
        ByteString
"AuthenticationProfileName"
          ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
authenticationProfileName,
        ByteString
"AuthenticationProfileContent"
          ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
authenticationProfileContent
      ]

-- | /See:/ 'newModifyAuthenticationProfileResponse' smart constructor.
data ModifyAuthenticationProfileResponse = ModifyAuthenticationProfileResponse'
  { -- | The name of the authentication profile that was replaced.
    ModifyAuthenticationProfileResponse -> Maybe Text
authenticationProfileName :: Prelude.Maybe Prelude.Text,
    -- | The updated content of the authentication profile in JSON format.
    ModifyAuthenticationProfileResponse -> Maybe Text
authenticationProfileContent :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ModifyAuthenticationProfileResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ModifyAuthenticationProfileResponse
-> ModifyAuthenticationProfileResponse -> Bool
(ModifyAuthenticationProfileResponse
 -> ModifyAuthenticationProfileResponse -> Bool)
-> (ModifyAuthenticationProfileResponse
    -> ModifyAuthenticationProfileResponse -> Bool)
-> Eq ModifyAuthenticationProfileResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModifyAuthenticationProfileResponse
-> ModifyAuthenticationProfileResponse -> Bool
$c/= :: ModifyAuthenticationProfileResponse
-> ModifyAuthenticationProfileResponse -> Bool
== :: ModifyAuthenticationProfileResponse
-> ModifyAuthenticationProfileResponse -> Bool
$c== :: ModifyAuthenticationProfileResponse
-> ModifyAuthenticationProfileResponse -> Bool
Prelude.Eq, ReadPrec [ModifyAuthenticationProfileResponse]
ReadPrec ModifyAuthenticationProfileResponse
Int -> ReadS ModifyAuthenticationProfileResponse
ReadS [ModifyAuthenticationProfileResponse]
(Int -> ReadS ModifyAuthenticationProfileResponse)
-> ReadS [ModifyAuthenticationProfileResponse]
-> ReadPrec ModifyAuthenticationProfileResponse
-> ReadPrec [ModifyAuthenticationProfileResponse]
-> Read ModifyAuthenticationProfileResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModifyAuthenticationProfileResponse]
$creadListPrec :: ReadPrec [ModifyAuthenticationProfileResponse]
readPrec :: ReadPrec ModifyAuthenticationProfileResponse
$creadPrec :: ReadPrec ModifyAuthenticationProfileResponse
readList :: ReadS [ModifyAuthenticationProfileResponse]
$creadList :: ReadS [ModifyAuthenticationProfileResponse]
readsPrec :: Int -> ReadS ModifyAuthenticationProfileResponse
$creadsPrec :: Int -> ReadS ModifyAuthenticationProfileResponse
Prelude.Read, Int -> ModifyAuthenticationProfileResponse -> ShowS
[ModifyAuthenticationProfileResponse] -> ShowS
ModifyAuthenticationProfileResponse -> String
(Int -> ModifyAuthenticationProfileResponse -> ShowS)
-> (ModifyAuthenticationProfileResponse -> String)
-> ([ModifyAuthenticationProfileResponse] -> ShowS)
-> Show ModifyAuthenticationProfileResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModifyAuthenticationProfileResponse] -> ShowS
$cshowList :: [ModifyAuthenticationProfileResponse] -> ShowS
show :: ModifyAuthenticationProfileResponse -> String
$cshow :: ModifyAuthenticationProfileResponse -> String
showsPrec :: Int -> ModifyAuthenticationProfileResponse -> ShowS
$cshowsPrec :: Int -> ModifyAuthenticationProfileResponse -> ShowS
Prelude.Show, (forall x.
 ModifyAuthenticationProfileResponse
 -> Rep ModifyAuthenticationProfileResponse x)
-> (forall x.
    Rep ModifyAuthenticationProfileResponse x
    -> ModifyAuthenticationProfileResponse)
-> Generic ModifyAuthenticationProfileResponse
forall x.
Rep ModifyAuthenticationProfileResponse x
-> ModifyAuthenticationProfileResponse
forall x.
ModifyAuthenticationProfileResponse
-> Rep ModifyAuthenticationProfileResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModifyAuthenticationProfileResponse x
-> ModifyAuthenticationProfileResponse
$cfrom :: forall x.
ModifyAuthenticationProfileResponse
-> Rep ModifyAuthenticationProfileResponse x
Prelude.Generic)

-- |
-- Create a value of 'ModifyAuthenticationProfileResponse' 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:
--
-- 'authenticationProfileName', 'modifyAuthenticationProfileResponse_authenticationProfileName' - The name of the authentication profile that was replaced.
--
-- 'authenticationProfileContent', 'modifyAuthenticationProfileResponse_authenticationProfileContent' - The updated content of the authentication profile in JSON format.
--
-- 'httpStatus', 'modifyAuthenticationProfileResponse_httpStatus' - The response's http status code.
newModifyAuthenticationProfileResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ModifyAuthenticationProfileResponse
newModifyAuthenticationProfileResponse :: Int -> ModifyAuthenticationProfileResponse
newModifyAuthenticationProfileResponse Int
pHttpStatus_ =
  ModifyAuthenticationProfileResponse' :: Maybe Text
-> Maybe Text -> Int -> ModifyAuthenticationProfileResponse
ModifyAuthenticationProfileResponse'
    { $sel:authenticationProfileName:ModifyAuthenticationProfileResponse' :: Maybe Text
authenticationProfileName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:authenticationProfileContent:ModifyAuthenticationProfileResponse' :: Maybe Text
authenticationProfileContent =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ModifyAuthenticationProfileResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The name of the authentication profile that was replaced.
modifyAuthenticationProfileResponse_authenticationProfileName :: Lens.Lens' ModifyAuthenticationProfileResponse (Prelude.Maybe Prelude.Text)
modifyAuthenticationProfileResponse_authenticationProfileName :: (Maybe Text -> f (Maybe Text))
-> ModifyAuthenticationProfileResponse
-> f ModifyAuthenticationProfileResponse
modifyAuthenticationProfileResponse_authenticationProfileName = (ModifyAuthenticationProfileResponse -> Maybe Text)
-> (ModifyAuthenticationProfileResponse
    -> Maybe Text -> ModifyAuthenticationProfileResponse)
-> Lens
     ModifyAuthenticationProfileResponse
     ModifyAuthenticationProfileResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyAuthenticationProfileResponse' {Maybe Text
authenticationProfileName :: Maybe Text
$sel:authenticationProfileName:ModifyAuthenticationProfileResponse' :: ModifyAuthenticationProfileResponse -> Maybe Text
authenticationProfileName} -> Maybe Text
authenticationProfileName) (\s :: ModifyAuthenticationProfileResponse
s@ModifyAuthenticationProfileResponse' {} Maybe Text
a -> ModifyAuthenticationProfileResponse
s {$sel:authenticationProfileName:ModifyAuthenticationProfileResponse' :: Maybe Text
authenticationProfileName = Maybe Text
a} :: ModifyAuthenticationProfileResponse)

-- | The updated content of the authentication profile in JSON format.
modifyAuthenticationProfileResponse_authenticationProfileContent :: Lens.Lens' ModifyAuthenticationProfileResponse (Prelude.Maybe Prelude.Text)
modifyAuthenticationProfileResponse_authenticationProfileContent :: (Maybe Text -> f (Maybe Text))
-> ModifyAuthenticationProfileResponse
-> f ModifyAuthenticationProfileResponse
modifyAuthenticationProfileResponse_authenticationProfileContent = (ModifyAuthenticationProfileResponse -> Maybe Text)
-> (ModifyAuthenticationProfileResponse
    -> Maybe Text -> ModifyAuthenticationProfileResponse)
-> Lens
     ModifyAuthenticationProfileResponse
     ModifyAuthenticationProfileResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModifyAuthenticationProfileResponse' {Maybe Text
authenticationProfileContent :: Maybe Text
$sel:authenticationProfileContent:ModifyAuthenticationProfileResponse' :: ModifyAuthenticationProfileResponse -> Maybe Text
authenticationProfileContent} -> Maybe Text
authenticationProfileContent) (\s :: ModifyAuthenticationProfileResponse
s@ModifyAuthenticationProfileResponse' {} Maybe Text
a -> ModifyAuthenticationProfileResponse
s {$sel:authenticationProfileContent:ModifyAuthenticationProfileResponse' :: Maybe Text
authenticationProfileContent = Maybe Text
a} :: ModifyAuthenticationProfileResponse)

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

instance
  Prelude.NFData
    ModifyAuthenticationProfileResponse