{-# 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.CloudFront.GetFieldLevelEncryptionProfileConfig
-- 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)
--
-- Get the field-level encryption profile configuration information.
module Amazonka.CloudFront.GetFieldLevelEncryptionProfileConfig
  ( -- * Creating a Request
    GetFieldLevelEncryptionProfileConfig (..),
    newGetFieldLevelEncryptionProfileConfig,

    -- * Request Lenses
    getFieldLevelEncryptionProfileConfig_id,

    -- * Destructuring the Response
    GetFieldLevelEncryptionProfileConfigResponse (..),
    newGetFieldLevelEncryptionProfileConfigResponse,

    -- * Response Lenses
    getFieldLevelEncryptionProfileConfigResponse_eTag,
    getFieldLevelEncryptionProfileConfigResponse_fieldLevelEncryptionProfileConfig,
    getFieldLevelEncryptionProfileConfigResponse_httpStatus,
  )
where

import Amazonka.CloudFront.Types
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

-- | /See:/ 'newGetFieldLevelEncryptionProfileConfig' smart constructor.
data GetFieldLevelEncryptionProfileConfig = GetFieldLevelEncryptionProfileConfig'
  { -- | Get the ID for the field-level encryption profile configuration
    -- information.
    GetFieldLevelEncryptionProfileConfig -> Text
id :: Prelude.Text
  }
  deriving (GetFieldLevelEncryptionProfileConfig
-> GetFieldLevelEncryptionProfileConfig -> Bool
(GetFieldLevelEncryptionProfileConfig
 -> GetFieldLevelEncryptionProfileConfig -> Bool)
-> (GetFieldLevelEncryptionProfileConfig
    -> GetFieldLevelEncryptionProfileConfig -> Bool)
-> Eq GetFieldLevelEncryptionProfileConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFieldLevelEncryptionProfileConfig
-> GetFieldLevelEncryptionProfileConfig -> Bool
$c/= :: GetFieldLevelEncryptionProfileConfig
-> GetFieldLevelEncryptionProfileConfig -> Bool
== :: GetFieldLevelEncryptionProfileConfig
-> GetFieldLevelEncryptionProfileConfig -> Bool
$c== :: GetFieldLevelEncryptionProfileConfig
-> GetFieldLevelEncryptionProfileConfig -> Bool
Prelude.Eq, ReadPrec [GetFieldLevelEncryptionProfileConfig]
ReadPrec GetFieldLevelEncryptionProfileConfig
Int -> ReadS GetFieldLevelEncryptionProfileConfig
ReadS [GetFieldLevelEncryptionProfileConfig]
(Int -> ReadS GetFieldLevelEncryptionProfileConfig)
-> ReadS [GetFieldLevelEncryptionProfileConfig]
-> ReadPrec GetFieldLevelEncryptionProfileConfig
-> ReadPrec [GetFieldLevelEncryptionProfileConfig]
-> Read GetFieldLevelEncryptionProfileConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFieldLevelEncryptionProfileConfig]
$creadListPrec :: ReadPrec [GetFieldLevelEncryptionProfileConfig]
readPrec :: ReadPrec GetFieldLevelEncryptionProfileConfig
$creadPrec :: ReadPrec GetFieldLevelEncryptionProfileConfig
readList :: ReadS [GetFieldLevelEncryptionProfileConfig]
$creadList :: ReadS [GetFieldLevelEncryptionProfileConfig]
readsPrec :: Int -> ReadS GetFieldLevelEncryptionProfileConfig
$creadsPrec :: Int -> ReadS GetFieldLevelEncryptionProfileConfig
Prelude.Read, Int -> GetFieldLevelEncryptionProfileConfig -> ShowS
[GetFieldLevelEncryptionProfileConfig] -> ShowS
GetFieldLevelEncryptionProfileConfig -> String
(Int -> GetFieldLevelEncryptionProfileConfig -> ShowS)
-> (GetFieldLevelEncryptionProfileConfig -> String)
-> ([GetFieldLevelEncryptionProfileConfig] -> ShowS)
-> Show GetFieldLevelEncryptionProfileConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFieldLevelEncryptionProfileConfig] -> ShowS
$cshowList :: [GetFieldLevelEncryptionProfileConfig] -> ShowS
show :: GetFieldLevelEncryptionProfileConfig -> String
$cshow :: GetFieldLevelEncryptionProfileConfig -> String
showsPrec :: Int -> GetFieldLevelEncryptionProfileConfig -> ShowS
$cshowsPrec :: Int -> GetFieldLevelEncryptionProfileConfig -> ShowS
Prelude.Show, (forall x.
 GetFieldLevelEncryptionProfileConfig
 -> Rep GetFieldLevelEncryptionProfileConfig x)
-> (forall x.
    Rep GetFieldLevelEncryptionProfileConfig x
    -> GetFieldLevelEncryptionProfileConfig)
-> Generic GetFieldLevelEncryptionProfileConfig
forall x.
Rep GetFieldLevelEncryptionProfileConfig x
-> GetFieldLevelEncryptionProfileConfig
forall x.
GetFieldLevelEncryptionProfileConfig
-> Rep GetFieldLevelEncryptionProfileConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetFieldLevelEncryptionProfileConfig x
-> GetFieldLevelEncryptionProfileConfig
$cfrom :: forall x.
GetFieldLevelEncryptionProfileConfig
-> Rep GetFieldLevelEncryptionProfileConfig x
Prelude.Generic)

-- |
-- Create a value of 'GetFieldLevelEncryptionProfileConfig' 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:
--
-- 'id', 'getFieldLevelEncryptionProfileConfig_id' - Get the ID for the field-level encryption profile configuration
-- information.
newGetFieldLevelEncryptionProfileConfig ::
  -- | 'id'
  Prelude.Text ->
  GetFieldLevelEncryptionProfileConfig
newGetFieldLevelEncryptionProfileConfig :: Text -> GetFieldLevelEncryptionProfileConfig
newGetFieldLevelEncryptionProfileConfig Text
pId_ =
  GetFieldLevelEncryptionProfileConfig' :: Text -> GetFieldLevelEncryptionProfileConfig
GetFieldLevelEncryptionProfileConfig' {$sel:id:GetFieldLevelEncryptionProfileConfig' :: Text
id = Text
pId_}

-- | Get the ID for the field-level encryption profile configuration
-- information.
getFieldLevelEncryptionProfileConfig_id :: Lens.Lens' GetFieldLevelEncryptionProfileConfig Prelude.Text
getFieldLevelEncryptionProfileConfig_id :: (Text -> f Text)
-> GetFieldLevelEncryptionProfileConfig
-> f GetFieldLevelEncryptionProfileConfig
getFieldLevelEncryptionProfileConfig_id = (GetFieldLevelEncryptionProfileConfig -> Text)
-> (GetFieldLevelEncryptionProfileConfig
    -> Text -> GetFieldLevelEncryptionProfileConfig)
-> Lens
     GetFieldLevelEncryptionProfileConfig
     GetFieldLevelEncryptionProfileConfig
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFieldLevelEncryptionProfileConfig' {Text
id :: Text
$sel:id:GetFieldLevelEncryptionProfileConfig' :: GetFieldLevelEncryptionProfileConfig -> Text
id} -> Text
id) (\s :: GetFieldLevelEncryptionProfileConfig
s@GetFieldLevelEncryptionProfileConfig' {} Text
a -> GetFieldLevelEncryptionProfileConfig
s {$sel:id:GetFieldLevelEncryptionProfileConfig' :: Text
id = Text
a} :: GetFieldLevelEncryptionProfileConfig)

instance
  Core.AWSRequest
    GetFieldLevelEncryptionProfileConfig
  where
  type
    AWSResponse GetFieldLevelEncryptionProfileConfig =
      GetFieldLevelEncryptionProfileConfigResponse
  request :: GetFieldLevelEncryptionProfileConfig
-> Request GetFieldLevelEncryptionProfileConfig
request = Service
-> GetFieldLevelEncryptionProfileConfig
-> Request GetFieldLevelEncryptionProfileConfig
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetFieldLevelEncryptionProfileConfig
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetFieldLevelEncryptionProfileConfig)))
response =
    (Int
 -> ResponseHeaders
 -> [Node]
 -> Either
      String (AWSResponse GetFieldLevelEncryptionProfileConfig))
-> Logger
-> Service
-> Proxy GetFieldLevelEncryptionProfileConfig
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetFieldLevelEncryptionProfileConfig)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXML
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe FieldLevelEncryptionProfileConfig
-> Int
-> GetFieldLevelEncryptionProfileConfigResponse
GetFieldLevelEncryptionProfileConfigResponse'
            (Maybe Text
 -> Maybe FieldLevelEncryptionProfileConfig
 -> Int
 -> GetFieldLevelEncryptionProfileConfigResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe FieldLevelEncryptionProfileConfig
      -> Int -> GetFieldLevelEncryptionProfileConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (ResponseHeaders
h ResponseHeaders -> HeaderName -> Either String (Maybe Text)
forall a.
FromText a =>
ResponseHeaders -> HeaderName -> Either String (Maybe a)
Core..#? HeaderName
"ETag") Either
  String
  (Maybe FieldLevelEncryptionProfileConfig
   -> Int -> GetFieldLevelEncryptionProfileConfigResponse)
-> Either String (Maybe FieldLevelEncryptionProfileConfig)
-> Either
     String (Int -> GetFieldLevelEncryptionProfileConfigResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node] -> Either String (Maybe FieldLevelEncryptionProfileConfig)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x)
              Either String (Int -> GetFieldLevelEncryptionProfileConfigResponse)
-> Either String Int
-> Either String GetFieldLevelEncryptionProfileConfigResponse
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
    GetFieldLevelEncryptionProfileConfig

instance
  Prelude.NFData
    GetFieldLevelEncryptionProfileConfig

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

instance
  Core.ToPath
    GetFieldLevelEncryptionProfileConfig
  where
  toPath :: GetFieldLevelEncryptionProfileConfig -> ByteString
toPath GetFieldLevelEncryptionProfileConfig' {Text
id :: Text
$sel:id:GetFieldLevelEncryptionProfileConfig' :: GetFieldLevelEncryptionProfileConfig -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2020-05-31/field-level-encryption-profile/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id,
        ByteString
"/config"
      ]

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

-- | /See:/ 'newGetFieldLevelEncryptionProfileConfigResponse' smart constructor.
data GetFieldLevelEncryptionProfileConfigResponse = GetFieldLevelEncryptionProfileConfigResponse'
  { -- | The current version of the field-level encryption profile configuration
    -- result. For example: @E2QWRUHAPOMQZL@.
    GetFieldLevelEncryptionProfileConfigResponse -> Maybe Text
eTag :: Prelude.Maybe Prelude.Text,
    -- | Return the field-level encryption profile configuration information.
    GetFieldLevelEncryptionProfileConfigResponse
-> Maybe FieldLevelEncryptionProfileConfig
fieldLevelEncryptionProfileConfig :: Prelude.Maybe FieldLevelEncryptionProfileConfig,
    -- | The response's http status code.
    GetFieldLevelEncryptionProfileConfigResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetFieldLevelEncryptionProfileConfigResponse
-> GetFieldLevelEncryptionProfileConfigResponse -> Bool
(GetFieldLevelEncryptionProfileConfigResponse
 -> GetFieldLevelEncryptionProfileConfigResponse -> Bool)
-> (GetFieldLevelEncryptionProfileConfigResponse
    -> GetFieldLevelEncryptionProfileConfigResponse -> Bool)
-> Eq GetFieldLevelEncryptionProfileConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFieldLevelEncryptionProfileConfigResponse
-> GetFieldLevelEncryptionProfileConfigResponse -> Bool
$c/= :: GetFieldLevelEncryptionProfileConfigResponse
-> GetFieldLevelEncryptionProfileConfigResponse -> Bool
== :: GetFieldLevelEncryptionProfileConfigResponse
-> GetFieldLevelEncryptionProfileConfigResponse -> Bool
$c== :: GetFieldLevelEncryptionProfileConfigResponse
-> GetFieldLevelEncryptionProfileConfigResponse -> Bool
Prelude.Eq, ReadPrec [GetFieldLevelEncryptionProfileConfigResponse]
ReadPrec GetFieldLevelEncryptionProfileConfigResponse
Int -> ReadS GetFieldLevelEncryptionProfileConfigResponse
ReadS [GetFieldLevelEncryptionProfileConfigResponse]
(Int -> ReadS GetFieldLevelEncryptionProfileConfigResponse)
-> ReadS [GetFieldLevelEncryptionProfileConfigResponse]
-> ReadPrec GetFieldLevelEncryptionProfileConfigResponse
-> ReadPrec [GetFieldLevelEncryptionProfileConfigResponse]
-> Read GetFieldLevelEncryptionProfileConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFieldLevelEncryptionProfileConfigResponse]
$creadListPrec :: ReadPrec [GetFieldLevelEncryptionProfileConfigResponse]
readPrec :: ReadPrec GetFieldLevelEncryptionProfileConfigResponse
$creadPrec :: ReadPrec GetFieldLevelEncryptionProfileConfigResponse
readList :: ReadS [GetFieldLevelEncryptionProfileConfigResponse]
$creadList :: ReadS [GetFieldLevelEncryptionProfileConfigResponse]
readsPrec :: Int -> ReadS GetFieldLevelEncryptionProfileConfigResponse
$creadsPrec :: Int -> ReadS GetFieldLevelEncryptionProfileConfigResponse
Prelude.Read, Int -> GetFieldLevelEncryptionProfileConfigResponse -> ShowS
[GetFieldLevelEncryptionProfileConfigResponse] -> ShowS
GetFieldLevelEncryptionProfileConfigResponse -> String
(Int -> GetFieldLevelEncryptionProfileConfigResponse -> ShowS)
-> (GetFieldLevelEncryptionProfileConfigResponse -> String)
-> ([GetFieldLevelEncryptionProfileConfigResponse] -> ShowS)
-> Show GetFieldLevelEncryptionProfileConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFieldLevelEncryptionProfileConfigResponse] -> ShowS
$cshowList :: [GetFieldLevelEncryptionProfileConfigResponse] -> ShowS
show :: GetFieldLevelEncryptionProfileConfigResponse -> String
$cshow :: GetFieldLevelEncryptionProfileConfigResponse -> String
showsPrec :: Int -> GetFieldLevelEncryptionProfileConfigResponse -> ShowS
$cshowsPrec :: Int -> GetFieldLevelEncryptionProfileConfigResponse -> ShowS
Prelude.Show, (forall x.
 GetFieldLevelEncryptionProfileConfigResponse
 -> Rep GetFieldLevelEncryptionProfileConfigResponse x)
-> (forall x.
    Rep GetFieldLevelEncryptionProfileConfigResponse x
    -> GetFieldLevelEncryptionProfileConfigResponse)
-> Generic GetFieldLevelEncryptionProfileConfigResponse
forall x.
Rep GetFieldLevelEncryptionProfileConfigResponse x
-> GetFieldLevelEncryptionProfileConfigResponse
forall x.
GetFieldLevelEncryptionProfileConfigResponse
-> Rep GetFieldLevelEncryptionProfileConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetFieldLevelEncryptionProfileConfigResponse x
-> GetFieldLevelEncryptionProfileConfigResponse
$cfrom :: forall x.
GetFieldLevelEncryptionProfileConfigResponse
-> Rep GetFieldLevelEncryptionProfileConfigResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetFieldLevelEncryptionProfileConfigResponse' 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:
--
-- 'eTag', 'getFieldLevelEncryptionProfileConfigResponse_eTag' - The current version of the field-level encryption profile configuration
-- result. For example: @E2QWRUHAPOMQZL@.
--
-- 'fieldLevelEncryptionProfileConfig', 'getFieldLevelEncryptionProfileConfigResponse_fieldLevelEncryptionProfileConfig' - Return the field-level encryption profile configuration information.
--
-- 'httpStatus', 'getFieldLevelEncryptionProfileConfigResponse_httpStatus' - The response's http status code.
newGetFieldLevelEncryptionProfileConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetFieldLevelEncryptionProfileConfigResponse
newGetFieldLevelEncryptionProfileConfigResponse :: Int -> GetFieldLevelEncryptionProfileConfigResponse
newGetFieldLevelEncryptionProfileConfigResponse
  Int
pHttpStatus_ =
    GetFieldLevelEncryptionProfileConfigResponse' :: Maybe Text
-> Maybe FieldLevelEncryptionProfileConfig
-> Int
-> GetFieldLevelEncryptionProfileConfigResponse
GetFieldLevelEncryptionProfileConfigResponse'
      { $sel:eTag:GetFieldLevelEncryptionProfileConfigResponse' :: Maybe Text
eTag =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:fieldLevelEncryptionProfileConfig:GetFieldLevelEncryptionProfileConfigResponse' :: Maybe FieldLevelEncryptionProfileConfig
fieldLevelEncryptionProfileConfig =
          Maybe FieldLevelEncryptionProfileConfig
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetFieldLevelEncryptionProfileConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The current version of the field-level encryption profile configuration
-- result. For example: @E2QWRUHAPOMQZL@.
getFieldLevelEncryptionProfileConfigResponse_eTag :: Lens.Lens' GetFieldLevelEncryptionProfileConfigResponse (Prelude.Maybe Prelude.Text)
getFieldLevelEncryptionProfileConfigResponse_eTag :: (Maybe Text -> f (Maybe Text))
-> GetFieldLevelEncryptionProfileConfigResponse
-> f GetFieldLevelEncryptionProfileConfigResponse
getFieldLevelEncryptionProfileConfigResponse_eTag = (GetFieldLevelEncryptionProfileConfigResponse -> Maybe Text)
-> (GetFieldLevelEncryptionProfileConfigResponse
    -> Maybe Text -> GetFieldLevelEncryptionProfileConfigResponse)
-> Lens
     GetFieldLevelEncryptionProfileConfigResponse
     GetFieldLevelEncryptionProfileConfigResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFieldLevelEncryptionProfileConfigResponse' {Maybe Text
eTag :: Maybe Text
$sel:eTag:GetFieldLevelEncryptionProfileConfigResponse' :: GetFieldLevelEncryptionProfileConfigResponse -> Maybe Text
eTag} -> Maybe Text
eTag) (\s :: GetFieldLevelEncryptionProfileConfigResponse
s@GetFieldLevelEncryptionProfileConfigResponse' {} Maybe Text
a -> GetFieldLevelEncryptionProfileConfigResponse
s {$sel:eTag:GetFieldLevelEncryptionProfileConfigResponse' :: Maybe Text
eTag = Maybe Text
a} :: GetFieldLevelEncryptionProfileConfigResponse)

-- | Return the field-level encryption profile configuration information.
getFieldLevelEncryptionProfileConfigResponse_fieldLevelEncryptionProfileConfig :: Lens.Lens' GetFieldLevelEncryptionProfileConfigResponse (Prelude.Maybe FieldLevelEncryptionProfileConfig)
getFieldLevelEncryptionProfileConfigResponse_fieldLevelEncryptionProfileConfig :: (Maybe FieldLevelEncryptionProfileConfig
 -> f (Maybe FieldLevelEncryptionProfileConfig))
-> GetFieldLevelEncryptionProfileConfigResponse
-> f GetFieldLevelEncryptionProfileConfigResponse
getFieldLevelEncryptionProfileConfigResponse_fieldLevelEncryptionProfileConfig = (GetFieldLevelEncryptionProfileConfigResponse
 -> Maybe FieldLevelEncryptionProfileConfig)
-> (GetFieldLevelEncryptionProfileConfigResponse
    -> Maybe FieldLevelEncryptionProfileConfig
    -> GetFieldLevelEncryptionProfileConfigResponse)
-> Lens
     GetFieldLevelEncryptionProfileConfigResponse
     GetFieldLevelEncryptionProfileConfigResponse
     (Maybe FieldLevelEncryptionProfileConfig)
     (Maybe FieldLevelEncryptionProfileConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFieldLevelEncryptionProfileConfigResponse' {Maybe FieldLevelEncryptionProfileConfig
fieldLevelEncryptionProfileConfig :: Maybe FieldLevelEncryptionProfileConfig
$sel:fieldLevelEncryptionProfileConfig:GetFieldLevelEncryptionProfileConfigResponse' :: GetFieldLevelEncryptionProfileConfigResponse
-> Maybe FieldLevelEncryptionProfileConfig
fieldLevelEncryptionProfileConfig} -> Maybe FieldLevelEncryptionProfileConfig
fieldLevelEncryptionProfileConfig) (\s :: GetFieldLevelEncryptionProfileConfigResponse
s@GetFieldLevelEncryptionProfileConfigResponse' {} Maybe FieldLevelEncryptionProfileConfig
a -> GetFieldLevelEncryptionProfileConfigResponse
s {$sel:fieldLevelEncryptionProfileConfig:GetFieldLevelEncryptionProfileConfigResponse' :: Maybe FieldLevelEncryptionProfileConfig
fieldLevelEncryptionProfileConfig = Maybe FieldLevelEncryptionProfileConfig
a} :: GetFieldLevelEncryptionProfileConfigResponse)

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

instance
  Prelude.NFData
    GetFieldLevelEncryptionProfileConfigResponse