{-# 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.GetCloudFrontOriginAccessIdentityConfig
-- 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 configuration information about an origin access identity.
module Amazonka.CloudFront.GetCloudFrontOriginAccessIdentityConfig
  ( -- * Creating a Request
    GetCloudFrontOriginAccessIdentityConfig (..),
    newGetCloudFrontOriginAccessIdentityConfig,

    -- * Request Lenses
    getCloudFrontOriginAccessIdentityConfig_id,

    -- * Destructuring the Response
    GetCloudFrontOriginAccessIdentityConfigResponse (..),
    newGetCloudFrontOriginAccessIdentityConfigResponse,

    -- * Response Lenses
    getCloudFrontOriginAccessIdentityConfigResponse_cloudFrontOriginAccessIdentityConfig,
    getCloudFrontOriginAccessIdentityConfigResponse_eTag,
    getCloudFrontOriginAccessIdentityConfigResponse_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

-- | The origin access identity\'s configuration information. For more
-- information, see
-- <https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CloudFrontOriginAccessIdentityConfig.html CloudFrontOriginAccessIdentityConfig>.
--
-- /See:/ 'newGetCloudFrontOriginAccessIdentityConfig' smart constructor.
data GetCloudFrontOriginAccessIdentityConfig = GetCloudFrontOriginAccessIdentityConfig'
  { -- | The identity\'s ID.
    GetCloudFrontOriginAccessIdentityConfig -> Text
id :: Prelude.Text
  }
  deriving (GetCloudFrontOriginAccessIdentityConfig
-> GetCloudFrontOriginAccessIdentityConfig -> Bool
(GetCloudFrontOriginAccessIdentityConfig
 -> GetCloudFrontOriginAccessIdentityConfig -> Bool)
-> (GetCloudFrontOriginAccessIdentityConfig
    -> GetCloudFrontOriginAccessIdentityConfig -> Bool)
-> Eq GetCloudFrontOriginAccessIdentityConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCloudFrontOriginAccessIdentityConfig
-> GetCloudFrontOriginAccessIdentityConfig -> Bool
$c/= :: GetCloudFrontOriginAccessIdentityConfig
-> GetCloudFrontOriginAccessIdentityConfig -> Bool
== :: GetCloudFrontOriginAccessIdentityConfig
-> GetCloudFrontOriginAccessIdentityConfig -> Bool
$c== :: GetCloudFrontOriginAccessIdentityConfig
-> GetCloudFrontOriginAccessIdentityConfig -> Bool
Prelude.Eq, ReadPrec [GetCloudFrontOriginAccessIdentityConfig]
ReadPrec GetCloudFrontOriginAccessIdentityConfig
Int -> ReadS GetCloudFrontOriginAccessIdentityConfig
ReadS [GetCloudFrontOriginAccessIdentityConfig]
(Int -> ReadS GetCloudFrontOriginAccessIdentityConfig)
-> ReadS [GetCloudFrontOriginAccessIdentityConfig]
-> ReadPrec GetCloudFrontOriginAccessIdentityConfig
-> ReadPrec [GetCloudFrontOriginAccessIdentityConfig]
-> Read GetCloudFrontOriginAccessIdentityConfig
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCloudFrontOriginAccessIdentityConfig]
$creadListPrec :: ReadPrec [GetCloudFrontOriginAccessIdentityConfig]
readPrec :: ReadPrec GetCloudFrontOriginAccessIdentityConfig
$creadPrec :: ReadPrec GetCloudFrontOriginAccessIdentityConfig
readList :: ReadS [GetCloudFrontOriginAccessIdentityConfig]
$creadList :: ReadS [GetCloudFrontOriginAccessIdentityConfig]
readsPrec :: Int -> ReadS GetCloudFrontOriginAccessIdentityConfig
$creadsPrec :: Int -> ReadS GetCloudFrontOriginAccessIdentityConfig
Prelude.Read, Int -> GetCloudFrontOriginAccessIdentityConfig -> ShowS
[GetCloudFrontOriginAccessIdentityConfig] -> ShowS
GetCloudFrontOriginAccessIdentityConfig -> String
(Int -> GetCloudFrontOriginAccessIdentityConfig -> ShowS)
-> (GetCloudFrontOriginAccessIdentityConfig -> String)
-> ([GetCloudFrontOriginAccessIdentityConfig] -> ShowS)
-> Show GetCloudFrontOriginAccessIdentityConfig
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCloudFrontOriginAccessIdentityConfig] -> ShowS
$cshowList :: [GetCloudFrontOriginAccessIdentityConfig] -> ShowS
show :: GetCloudFrontOriginAccessIdentityConfig -> String
$cshow :: GetCloudFrontOriginAccessIdentityConfig -> String
showsPrec :: Int -> GetCloudFrontOriginAccessIdentityConfig -> ShowS
$cshowsPrec :: Int -> GetCloudFrontOriginAccessIdentityConfig -> ShowS
Prelude.Show, (forall x.
 GetCloudFrontOriginAccessIdentityConfig
 -> Rep GetCloudFrontOriginAccessIdentityConfig x)
-> (forall x.
    Rep GetCloudFrontOriginAccessIdentityConfig x
    -> GetCloudFrontOriginAccessIdentityConfig)
-> Generic GetCloudFrontOriginAccessIdentityConfig
forall x.
Rep GetCloudFrontOriginAccessIdentityConfig x
-> GetCloudFrontOriginAccessIdentityConfig
forall x.
GetCloudFrontOriginAccessIdentityConfig
-> Rep GetCloudFrontOriginAccessIdentityConfig x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetCloudFrontOriginAccessIdentityConfig x
-> GetCloudFrontOriginAccessIdentityConfig
$cfrom :: forall x.
GetCloudFrontOriginAccessIdentityConfig
-> Rep GetCloudFrontOriginAccessIdentityConfig x
Prelude.Generic)

-- |
-- Create a value of 'GetCloudFrontOriginAccessIdentityConfig' 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', 'getCloudFrontOriginAccessIdentityConfig_id' - The identity\'s ID.
newGetCloudFrontOriginAccessIdentityConfig ::
  -- | 'id'
  Prelude.Text ->
  GetCloudFrontOriginAccessIdentityConfig
newGetCloudFrontOriginAccessIdentityConfig :: Text -> GetCloudFrontOriginAccessIdentityConfig
newGetCloudFrontOriginAccessIdentityConfig Text
pId_ =
  GetCloudFrontOriginAccessIdentityConfig' :: Text -> GetCloudFrontOriginAccessIdentityConfig
GetCloudFrontOriginAccessIdentityConfig' {$sel:id:GetCloudFrontOriginAccessIdentityConfig' :: Text
id = Text
pId_}

-- | The identity\'s ID.
getCloudFrontOriginAccessIdentityConfig_id :: Lens.Lens' GetCloudFrontOriginAccessIdentityConfig Prelude.Text
getCloudFrontOriginAccessIdentityConfig_id :: (Text -> f Text)
-> GetCloudFrontOriginAccessIdentityConfig
-> f GetCloudFrontOriginAccessIdentityConfig
getCloudFrontOriginAccessIdentityConfig_id = (GetCloudFrontOriginAccessIdentityConfig -> Text)
-> (GetCloudFrontOriginAccessIdentityConfig
    -> Text -> GetCloudFrontOriginAccessIdentityConfig)
-> Lens
     GetCloudFrontOriginAccessIdentityConfig
     GetCloudFrontOriginAccessIdentityConfig
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCloudFrontOriginAccessIdentityConfig' {Text
id :: Text
$sel:id:GetCloudFrontOriginAccessIdentityConfig' :: GetCloudFrontOriginAccessIdentityConfig -> Text
id} -> Text
id) (\s :: GetCloudFrontOriginAccessIdentityConfig
s@GetCloudFrontOriginAccessIdentityConfig' {} Text
a -> GetCloudFrontOriginAccessIdentityConfig
s {$sel:id:GetCloudFrontOriginAccessIdentityConfig' :: Text
id = Text
a} :: GetCloudFrontOriginAccessIdentityConfig)

instance
  Core.AWSRequest
    GetCloudFrontOriginAccessIdentityConfig
  where
  type
    AWSResponse
      GetCloudFrontOriginAccessIdentityConfig =
      GetCloudFrontOriginAccessIdentityConfigResponse
  request :: GetCloudFrontOriginAccessIdentityConfig
-> Request GetCloudFrontOriginAccessIdentityConfig
request = Service
-> GetCloudFrontOriginAccessIdentityConfig
-> Request GetCloudFrontOriginAccessIdentityConfig
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetCloudFrontOriginAccessIdentityConfig
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetCloudFrontOriginAccessIdentityConfig)))
response =
    (Int
 -> ResponseHeaders
 -> [Node]
 -> Either
      String (AWSResponse GetCloudFrontOriginAccessIdentityConfig))
-> Logger
-> Service
-> Proxy GetCloudFrontOriginAccessIdentityConfig
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse GetCloudFrontOriginAccessIdentityConfig)))
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 CloudFrontOriginAccessIdentityConfig
-> Maybe Text
-> Int
-> GetCloudFrontOriginAccessIdentityConfigResponse
GetCloudFrontOriginAccessIdentityConfigResponse'
            (Maybe CloudFrontOriginAccessIdentityConfig
 -> Maybe Text
 -> Int
 -> GetCloudFrontOriginAccessIdentityConfigResponse)
-> Either String (Maybe CloudFrontOriginAccessIdentityConfig)
-> Either
     String
     (Maybe Text
      -> Int -> GetCloudFrontOriginAccessIdentityConfigResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
-> Either String (Maybe CloudFrontOriginAccessIdentityConfig)
forall a. FromXML a => [Node] -> Either String a
Core.parseXML [Node]
x) Either
  String
  (Maybe Text
   -> Int -> GetCloudFrontOriginAccessIdentityConfigResponse)
-> Either String (Maybe Text)
-> Either
     String (Int -> GetCloudFrontOriginAccessIdentityConfigResponse)
forall (f :: * -> *) a b. Applicative f => 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 (Int -> GetCloudFrontOriginAccessIdentityConfigResponse)
-> Either String Int
-> Either String GetCloudFrontOriginAccessIdentityConfigResponse
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
    GetCloudFrontOriginAccessIdentityConfig

instance
  Prelude.NFData
    GetCloudFrontOriginAccessIdentityConfig

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

instance
  Core.ToPath
    GetCloudFrontOriginAccessIdentityConfig
  where
  toPath :: GetCloudFrontOriginAccessIdentityConfig -> ByteString
toPath GetCloudFrontOriginAccessIdentityConfig' {Text
id :: Text
$sel:id:GetCloudFrontOriginAccessIdentityConfig' :: GetCloudFrontOriginAccessIdentityConfig -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2020-05-31/origin-access-identity/cloudfront/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
id,
        ByteString
"/config"
      ]

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

-- | The returned result of the corresponding request.
--
-- /See:/ 'newGetCloudFrontOriginAccessIdentityConfigResponse' smart constructor.
data GetCloudFrontOriginAccessIdentityConfigResponse = GetCloudFrontOriginAccessIdentityConfigResponse'
  { -- | The origin access identity\'s configuration information.
    GetCloudFrontOriginAccessIdentityConfigResponse
-> Maybe CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig :: Prelude.Maybe CloudFrontOriginAccessIdentityConfig,
    -- | The current version of the configuration. For example: @E2QWRUHAPOMQZL@.
    GetCloudFrontOriginAccessIdentityConfigResponse -> Maybe Text
eTag :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetCloudFrontOriginAccessIdentityConfigResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetCloudFrontOriginAccessIdentityConfigResponse
-> GetCloudFrontOriginAccessIdentityConfigResponse -> Bool
(GetCloudFrontOriginAccessIdentityConfigResponse
 -> GetCloudFrontOriginAccessIdentityConfigResponse -> Bool)
-> (GetCloudFrontOriginAccessIdentityConfigResponse
    -> GetCloudFrontOriginAccessIdentityConfigResponse -> Bool)
-> Eq GetCloudFrontOriginAccessIdentityConfigResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetCloudFrontOriginAccessIdentityConfigResponse
-> GetCloudFrontOriginAccessIdentityConfigResponse -> Bool
$c/= :: GetCloudFrontOriginAccessIdentityConfigResponse
-> GetCloudFrontOriginAccessIdentityConfigResponse -> Bool
== :: GetCloudFrontOriginAccessIdentityConfigResponse
-> GetCloudFrontOriginAccessIdentityConfigResponse -> Bool
$c== :: GetCloudFrontOriginAccessIdentityConfigResponse
-> GetCloudFrontOriginAccessIdentityConfigResponse -> Bool
Prelude.Eq, ReadPrec [GetCloudFrontOriginAccessIdentityConfigResponse]
ReadPrec GetCloudFrontOriginAccessIdentityConfigResponse
Int -> ReadS GetCloudFrontOriginAccessIdentityConfigResponse
ReadS [GetCloudFrontOriginAccessIdentityConfigResponse]
(Int -> ReadS GetCloudFrontOriginAccessIdentityConfigResponse)
-> ReadS [GetCloudFrontOriginAccessIdentityConfigResponse]
-> ReadPrec GetCloudFrontOriginAccessIdentityConfigResponse
-> ReadPrec [GetCloudFrontOriginAccessIdentityConfigResponse]
-> Read GetCloudFrontOriginAccessIdentityConfigResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetCloudFrontOriginAccessIdentityConfigResponse]
$creadListPrec :: ReadPrec [GetCloudFrontOriginAccessIdentityConfigResponse]
readPrec :: ReadPrec GetCloudFrontOriginAccessIdentityConfigResponse
$creadPrec :: ReadPrec GetCloudFrontOriginAccessIdentityConfigResponse
readList :: ReadS [GetCloudFrontOriginAccessIdentityConfigResponse]
$creadList :: ReadS [GetCloudFrontOriginAccessIdentityConfigResponse]
readsPrec :: Int -> ReadS GetCloudFrontOriginAccessIdentityConfigResponse
$creadsPrec :: Int -> ReadS GetCloudFrontOriginAccessIdentityConfigResponse
Prelude.Read, Int -> GetCloudFrontOriginAccessIdentityConfigResponse -> ShowS
[GetCloudFrontOriginAccessIdentityConfigResponse] -> ShowS
GetCloudFrontOriginAccessIdentityConfigResponse -> String
(Int -> GetCloudFrontOriginAccessIdentityConfigResponse -> ShowS)
-> (GetCloudFrontOriginAccessIdentityConfigResponse -> String)
-> ([GetCloudFrontOriginAccessIdentityConfigResponse] -> ShowS)
-> Show GetCloudFrontOriginAccessIdentityConfigResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetCloudFrontOriginAccessIdentityConfigResponse] -> ShowS
$cshowList :: [GetCloudFrontOriginAccessIdentityConfigResponse] -> ShowS
show :: GetCloudFrontOriginAccessIdentityConfigResponse -> String
$cshow :: GetCloudFrontOriginAccessIdentityConfigResponse -> String
showsPrec :: Int -> GetCloudFrontOriginAccessIdentityConfigResponse -> ShowS
$cshowsPrec :: Int -> GetCloudFrontOriginAccessIdentityConfigResponse -> ShowS
Prelude.Show, (forall x.
 GetCloudFrontOriginAccessIdentityConfigResponse
 -> Rep GetCloudFrontOriginAccessIdentityConfigResponse x)
-> (forall x.
    Rep GetCloudFrontOriginAccessIdentityConfigResponse x
    -> GetCloudFrontOriginAccessIdentityConfigResponse)
-> Generic GetCloudFrontOriginAccessIdentityConfigResponse
forall x.
Rep GetCloudFrontOriginAccessIdentityConfigResponse x
-> GetCloudFrontOriginAccessIdentityConfigResponse
forall x.
GetCloudFrontOriginAccessIdentityConfigResponse
-> Rep GetCloudFrontOriginAccessIdentityConfigResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetCloudFrontOriginAccessIdentityConfigResponse x
-> GetCloudFrontOriginAccessIdentityConfigResponse
$cfrom :: forall x.
GetCloudFrontOriginAccessIdentityConfigResponse
-> Rep GetCloudFrontOriginAccessIdentityConfigResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetCloudFrontOriginAccessIdentityConfigResponse' 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:
--
-- 'cloudFrontOriginAccessIdentityConfig', 'getCloudFrontOriginAccessIdentityConfigResponse_cloudFrontOriginAccessIdentityConfig' - The origin access identity\'s configuration information.
--
-- 'eTag', 'getCloudFrontOriginAccessIdentityConfigResponse_eTag' - The current version of the configuration. For example: @E2QWRUHAPOMQZL@.
--
-- 'httpStatus', 'getCloudFrontOriginAccessIdentityConfigResponse_httpStatus' - The response's http status code.
newGetCloudFrontOriginAccessIdentityConfigResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetCloudFrontOriginAccessIdentityConfigResponse
newGetCloudFrontOriginAccessIdentityConfigResponse :: Int -> GetCloudFrontOriginAccessIdentityConfigResponse
newGetCloudFrontOriginAccessIdentityConfigResponse
  Int
pHttpStatus_ =
    GetCloudFrontOriginAccessIdentityConfigResponse' :: Maybe CloudFrontOriginAccessIdentityConfig
-> Maybe Text
-> Int
-> GetCloudFrontOriginAccessIdentityConfigResponse
GetCloudFrontOriginAccessIdentityConfigResponse'
      { $sel:cloudFrontOriginAccessIdentityConfig:GetCloudFrontOriginAccessIdentityConfigResponse' :: Maybe CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig =
          Maybe CloudFrontOriginAccessIdentityConfig
forall a. Maybe a
Prelude.Nothing,
        $sel:eTag:GetCloudFrontOriginAccessIdentityConfigResponse' :: Maybe Text
eTag = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetCloudFrontOriginAccessIdentityConfigResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The origin access identity\'s configuration information.
getCloudFrontOriginAccessIdentityConfigResponse_cloudFrontOriginAccessIdentityConfig :: Lens.Lens' GetCloudFrontOriginAccessIdentityConfigResponse (Prelude.Maybe CloudFrontOriginAccessIdentityConfig)
getCloudFrontOriginAccessIdentityConfigResponse_cloudFrontOriginAccessIdentityConfig :: (Maybe CloudFrontOriginAccessIdentityConfig
 -> f (Maybe CloudFrontOriginAccessIdentityConfig))
-> GetCloudFrontOriginAccessIdentityConfigResponse
-> f GetCloudFrontOriginAccessIdentityConfigResponse
getCloudFrontOriginAccessIdentityConfigResponse_cloudFrontOriginAccessIdentityConfig = (GetCloudFrontOriginAccessIdentityConfigResponse
 -> Maybe CloudFrontOriginAccessIdentityConfig)
-> (GetCloudFrontOriginAccessIdentityConfigResponse
    -> Maybe CloudFrontOriginAccessIdentityConfig
    -> GetCloudFrontOriginAccessIdentityConfigResponse)
-> Lens
     GetCloudFrontOriginAccessIdentityConfigResponse
     GetCloudFrontOriginAccessIdentityConfigResponse
     (Maybe CloudFrontOriginAccessIdentityConfig)
     (Maybe CloudFrontOriginAccessIdentityConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetCloudFrontOriginAccessIdentityConfigResponse' {Maybe CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig :: Maybe CloudFrontOriginAccessIdentityConfig
$sel:cloudFrontOriginAccessIdentityConfig:GetCloudFrontOriginAccessIdentityConfigResponse' :: GetCloudFrontOriginAccessIdentityConfigResponse
-> Maybe CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig} -> Maybe CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig) (\s :: GetCloudFrontOriginAccessIdentityConfigResponse
s@GetCloudFrontOriginAccessIdentityConfigResponse' {} Maybe CloudFrontOriginAccessIdentityConfig
a -> GetCloudFrontOriginAccessIdentityConfigResponse
s {$sel:cloudFrontOriginAccessIdentityConfig:GetCloudFrontOriginAccessIdentityConfigResponse' :: Maybe CloudFrontOriginAccessIdentityConfig
cloudFrontOriginAccessIdentityConfig = Maybe CloudFrontOriginAccessIdentityConfig
a} :: GetCloudFrontOriginAccessIdentityConfigResponse)

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

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

instance
  Prelude.NFData
    GetCloudFrontOriginAccessIdentityConfigResponse