{-# 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.Lightsail.GetLoadBalancerTlsCertificates
-- 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 information about the TLS certificates that are associated with
-- the specified Lightsail load balancer.
--
-- TLS is just an updated, more secure version of Secure Socket Layer
-- (SSL).
--
-- You can have a maximum of 2 certificates associated with a Lightsail
-- load balancer. One is active and the other is inactive.
module Amazonka.Lightsail.GetLoadBalancerTlsCertificates
  ( -- * Creating a Request
    GetLoadBalancerTlsCertificates (..),
    newGetLoadBalancerTlsCertificates,

    -- * Request Lenses
    getLoadBalancerTlsCertificates_loadBalancerName,

    -- * Destructuring the Response
    GetLoadBalancerTlsCertificatesResponse (..),
    newGetLoadBalancerTlsCertificatesResponse,

    -- * Response Lenses
    getLoadBalancerTlsCertificatesResponse_tlsCertificates,
    getLoadBalancerTlsCertificatesResponse_httpStatus,
  )
where

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

-- | /See:/ 'newGetLoadBalancerTlsCertificates' smart constructor.
data GetLoadBalancerTlsCertificates = GetLoadBalancerTlsCertificates'
  { -- | The name of the load balancer you associated with your SSL\/TLS
    -- certificate.
    GetLoadBalancerTlsCertificates -> Text
loadBalancerName :: Prelude.Text
  }
  deriving (GetLoadBalancerTlsCertificates
-> GetLoadBalancerTlsCertificates -> Bool
(GetLoadBalancerTlsCertificates
 -> GetLoadBalancerTlsCertificates -> Bool)
-> (GetLoadBalancerTlsCertificates
    -> GetLoadBalancerTlsCertificates -> Bool)
-> Eq GetLoadBalancerTlsCertificates
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLoadBalancerTlsCertificates
-> GetLoadBalancerTlsCertificates -> Bool
$c/= :: GetLoadBalancerTlsCertificates
-> GetLoadBalancerTlsCertificates -> Bool
== :: GetLoadBalancerTlsCertificates
-> GetLoadBalancerTlsCertificates -> Bool
$c== :: GetLoadBalancerTlsCertificates
-> GetLoadBalancerTlsCertificates -> Bool
Prelude.Eq, ReadPrec [GetLoadBalancerTlsCertificates]
ReadPrec GetLoadBalancerTlsCertificates
Int -> ReadS GetLoadBalancerTlsCertificates
ReadS [GetLoadBalancerTlsCertificates]
(Int -> ReadS GetLoadBalancerTlsCertificates)
-> ReadS [GetLoadBalancerTlsCertificates]
-> ReadPrec GetLoadBalancerTlsCertificates
-> ReadPrec [GetLoadBalancerTlsCertificates]
-> Read GetLoadBalancerTlsCertificates
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLoadBalancerTlsCertificates]
$creadListPrec :: ReadPrec [GetLoadBalancerTlsCertificates]
readPrec :: ReadPrec GetLoadBalancerTlsCertificates
$creadPrec :: ReadPrec GetLoadBalancerTlsCertificates
readList :: ReadS [GetLoadBalancerTlsCertificates]
$creadList :: ReadS [GetLoadBalancerTlsCertificates]
readsPrec :: Int -> ReadS GetLoadBalancerTlsCertificates
$creadsPrec :: Int -> ReadS GetLoadBalancerTlsCertificates
Prelude.Read, Int -> GetLoadBalancerTlsCertificates -> ShowS
[GetLoadBalancerTlsCertificates] -> ShowS
GetLoadBalancerTlsCertificates -> String
(Int -> GetLoadBalancerTlsCertificates -> ShowS)
-> (GetLoadBalancerTlsCertificates -> String)
-> ([GetLoadBalancerTlsCertificates] -> ShowS)
-> Show GetLoadBalancerTlsCertificates
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLoadBalancerTlsCertificates] -> ShowS
$cshowList :: [GetLoadBalancerTlsCertificates] -> ShowS
show :: GetLoadBalancerTlsCertificates -> String
$cshow :: GetLoadBalancerTlsCertificates -> String
showsPrec :: Int -> GetLoadBalancerTlsCertificates -> ShowS
$cshowsPrec :: Int -> GetLoadBalancerTlsCertificates -> ShowS
Prelude.Show, (forall x.
 GetLoadBalancerTlsCertificates
 -> Rep GetLoadBalancerTlsCertificates x)
-> (forall x.
    Rep GetLoadBalancerTlsCertificates x
    -> GetLoadBalancerTlsCertificates)
-> Generic GetLoadBalancerTlsCertificates
forall x.
Rep GetLoadBalancerTlsCertificates x
-> GetLoadBalancerTlsCertificates
forall x.
GetLoadBalancerTlsCertificates
-> Rep GetLoadBalancerTlsCertificates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetLoadBalancerTlsCertificates x
-> GetLoadBalancerTlsCertificates
$cfrom :: forall x.
GetLoadBalancerTlsCertificates
-> Rep GetLoadBalancerTlsCertificates x
Prelude.Generic)

-- |
-- Create a value of 'GetLoadBalancerTlsCertificates' 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:
--
-- 'loadBalancerName', 'getLoadBalancerTlsCertificates_loadBalancerName' - The name of the load balancer you associated with your SSL\/TLS
-- certificate.
newGetLoadBalancerTlsCertificates ::
  -- | 'loadBalancerName'
  Prelude.Text ->
  GetLoadBalancerTlsCertificates
newGetLoadBalancerTlsCertificates :: Text -> GetLoadBalancerTlsCertificates
newGetLoadBalancerTlsCertificates Text
pLoadBalancerName_ =
  GetLoadBalancerTlsCertificates' :: Text -> GetLoadBalancerTlsCertificates
GetLoadBalancerTlsCertificates'
    { $sel:loadBalancerName:GetLoadBalancerTlsCertificates' :: Text
loadBalancerName =
        Text
pLoadBalancerName_
    }

-- | The name of the load balancer you associated with your SSL\/TLS
-- certificate.
getLoadBalancerTlsCertificates_loadBalancerName :: Lens.Lens' GetLoadBalancerTlsCertificates Prelude.Text
getLoadBalancerTlsCertificates_loadBalancerName :: (Text -> f Text)
-> GetLoadBalancerTlsCertificates
-> f GetLoadBalancerTlsCertificates
getLoadBalancerTlsCertificates_loadBalancerName = (GetLoadBalancerTlsCertificates -> Text)
-> (GetLoadBalancerTlsCertificates
    -> Text -> GetLoadBalancerTlsCertificates)
-> Lens
     GetLoadBalancerTlsCertificates
     GetLoadBalancerTlsCertificates
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLoadBalancerTlsCertificates' {Text
loadBalancerName :: Text
$sel:loadBalancerName:GetLoadBalancerTlsCertificates' :: GetLoadBalancerTlsCertificates -> Text
loadBalancerName} -> Text
loadBalancerName) (\s :: GetLoadBalancerTlsCertificates
s@GetLoadBalancerTlsCertificates' {} Text
a -> GetLoadBalancerTlsCertificates
s {$sel:loadBalancerName:GetLoadBalancerTlsCertificates' :: Text
loadBalancerName = Text
a} :: GetLoadBalancerTlsCertificates)

instance
  Core.AWSRequest
    GetLoadBalancerTlsCertificates
  where
  type
    AWSResponse GetLoadBalancerTlsCertificates =
      GetLoadBalancerTlsCertificatesResponse
  request :: GetLoadBalancerTlsCertificates
-> Request GetLoadBalancerTlsCertificates
request = Service
-> GetLoadBalancerTlsCertificates
-> Request GetLoadBalancerTlsCertificates
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetLoadBalancerTlsCertificates
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetLoadBalancerTlsCertificates)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetLoadBalancerTlsCertificates))
-> Logger
-> Service
-> Proxy GetLoadBalancerTlsCertificates
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetLoadBalancerTlsCertificates)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [LoadBalancerTlsCertificate]
-> Int -> GetLoadBalancerTlsCertificatesResponse
GetLoadBalancerTlsCertificatesResponse'
            (Maybe [LoadBalancerTlsCertificate]
 -> Int -> GetLoadBalancerTlsCertificatesResponse)
-> Either String (Maybe [LoadBalancerTlsCertificate])
-> Either String (Int -> GetLoadBalancerTlsCertificatesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [LoadBalancerTlsCertificate]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tlsCertificates"
                            Either String (Maybe (Maybe [LoadBalancerTlsCertificate]))
-> Maybe [LoadBalancerTlsCertificate]
-> Either String (Maybe [LoadBalancerTlsCertificate])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LoadBalancerTlsCertificate]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either String (Int -> GetLoadBalancerTlsCertificatesResponse)
-> Either String Int
-> Either String GetLoadBalancerTlsCertificatesResponse
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
    GetLoadBalancerTlsCertificates

instance
  Prelude.NFData
    GetLoadBalancerTlsCertificates

instance
  Core.ToHeaders
    GetLoadBalancerTlsCertificates
  where
  toHeaders :: GetLoadBalancerTlsCertificates -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetLoadBalancerTlsCertificates -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Lightsail_20161128.GetLoadBalancerTlsCertificates" ::
                          Prelude.ByteString
                      ),
            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 GetLoadBalancerTlsCertificates where
  toJSON :: GetLoadBalancerTlsCertificates -> Value
toJSON GetLoadBalancerTlsCertificates' {Text
loadBalancerName :: Text
$sel:loadBalancerName:GetLoadBalancerTlsCertificates' :: GetLoadBalancerTlsCertificates -> 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
"loadBalancerName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
loadBalancerName)
          ]
      )

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

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

-- | /See:/ 'newGetLoadBalancerTlsCertificatesResponse' smart constructor.
data GetLoadBalancerTlsCertificatesResponse = GetLoadBalancerTlsCertificatesResponse'
  { -- | An array of LoadBalancerTlsCertificate objects describing your SSL\/TLS
    -- certificates.
    GetLoadBalancerTlsCertificatesResponse
-> Maybe [LoadBalancerTlsCertificate]
tlsCertificates :: Prelude.Maybe [LoadBalancerTlsCertificate],
    -- | The response's http status code.
    GetLoadBalancerTlsCertificatesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetLoadBalancerTlsCertificatesResponse
-> GetLoadBalancerTlsCertificatesResponse -> Bool
(GetLoadBalancerTlsCertificatesResponse
 -> GetLoadBalancerTlsCertificatesResponse -> Bool)
-> (GetLoadBalancerTlsCertificatesResponse
    -> GetLoadBalancerTlsCertificatesResponse -> Bool)
-> Eq GetLoadBalancerTlsCertificatesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetLoadBalancerTlsCertificatesResponse
-> GetLoadBalancerTlsCertificatesResponse -> Bool
$c/= :: GetLoadBalancerTlsCertificatesResponse
-> GetLoadBalancerTlsCertificatesResponse -> Bool
== :: GetLoadBalancerTlsCertificatesResponse
-> GetLoadBalancerTlsCertificatesResponse -> Bool
$c== :: GetLoadBalancerTlsCertificatesResponse
-> GetLoadBalancerTlsCertificatesResponse -> Bool
Prelude.Eq, ReadPrec [GetLoadBalancerTlsCertificatesResponse]
ReadPrec GetLoadBalancerTlsCertificatesResponse
Int -> ReadS GetLoadBalancerTlsCertificatesResponse
ReadS [GetLoadBalancerTlsCertificatesResponse]
(Int -> ReadS GetLoadBalancerTlsCertificatesResponse)
-> ReadS [GetLoadBalancerTlsCertificatesResponse]
-> ReadPrec GetLoadBalancerTlsCertificatesResponse
-> ReadPrec [GetLoadBalancerTlsCertificatesResponse]
-> Read GetLoadBalancerTlsCertificatesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetLoadBalancerTlsCertificatesResponse]
$creadListPrec :: ReadPrec [GetLoadBalancerTlsCertificatesResponse]
readPrec :: ReadPrec GetLoadBalancerTlsCertificatesResponse
$creadPrec :: ReadPrec GetLoadBalancerTlsCertificatesResponse
readList :: ReadS [GetLoadBalancerTlsCertificatesResponse]
$creadList :: ReadS [GetLoadBalancerTlsCertificatesResponse]
readsPrec :: Int -> ReadS GetLoadBalancerTlsCertificatesResponse
$creadsPrec :: Int -> ReadS GetLoadBalancerTlsCertificatesResponse
Prelude.Read, Int -> GetLoadBalancerTlsCertificatesResponse -> ShowS
[GetLoadBalancerTlsCertificatesResponse] -> ShowS
GetLoadBalancerTlsCertificatesResponse -> String
(Int -> GetLoadBalancerTlsCertificatesResponse -> ShowS)
-> (GetLoadBalancerTlsCertificatesResponse -> String)
-> ([GetLoadBalancerTlsCertificatesResponse] -> ShowS)
-> Show GetLoadBalancerTlsCertificatesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetLoadBalancerTlsCertificatesResponse] -> ShowS
$cshowList :: [GetLoadBalancerTlsCertificatesResponse] -> ShowS
show :: GetLoadBalancerTlsCertificatesResponse -> String
$cshow :: GetLoadBalancerTlsCertificatesResponse -> String
showsPrec :: Int -> GetLoadBalancerTlsCertificatesResponse -> ShowS
$cshowsPrec :: Int -> GetLoadBalancerTlsCertificatesResponse -> ShowS
Prelude.Show, (forall x.
 GetLoadBalancerTlsCertificatesResponse
 -> Rep GetLoadBalancerTlsCertificatesResponse x)
-> (forall x.
    Rep GetLoadBalancerTlsCertificatesResponse x
    -> GetLoadBalancerTlsCertificatesResponse)
-> Generic GetLoadBalancerTlsCertificatesResponse
forall x.
Rep GetLoadBalancerTlsCertificatesResponse x
-> GetLoadBalancerTlsCertificatesResponse
forall x.
GetLoadBalancerTlsCertificatesResponse
-> Rep GetLoadBalancerTlsCertificatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetLoadBalancerTlsCertificatesResponse x
-> GetLoadBalancerTlsCertificatesResponse
$cfrom :: forall x.
GetLoadBalancerTlsCertificatesResponse
-> Rep GetLoadBalancerTlsCertificatesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetLoadBalancerTlsCertificatesResponse' 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:
--
-- 'tlsCertificates', 'getLoadBalancerTlsCertificatesResponse_tlsCertificates' - An array of LoadBalancerTlsCertificate objects describing your SSL\/TLS
-- certificates.
--
-- 'httpStatus', 'getLoadBalancerTlsCertificatesResponse_httpStatus' - The response's http status code.
newGetLoadBalancerTlsCertificatesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetLoadBalancerTlsCertificatesResponse
newGetLoadBalancerTlsCertificatesResponse :: Int -> GetLoadBalancerTlsCertificatesResponse
newGetLoadBalancerTlsCertificatesResponse
  Int
pHttpStatus_ =
    GetLoadBalancerTlsCertificatesResponse' :: Maybe [LoadBalancerTlsCertificate]
-> Int -> GetLoadBalancerTlsCertificatesResponse
GetLoadBalancerTlsCertificatesResponse'
      { $sel:tlsCertificates:GetLoadBalancerTlsCertificatesResponse' :: Maybe [LoadBalancerTlsCertificate]
tlsCertificates =
          Maybe [LoadBalancerTlsCertificate]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetLoadBalancerTlsCertificatesResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | An array of LoadBalancerTlsCertificate objects describing your SSL\/TLS
-- certificates.
getLoadBalancerTlsCertificatesResponse_tlsCertificates :: Lens.Lens' GetLoadBalancerTlsCertificatesResponse (Prelude.Maybe [LoadBalancerTlsCertificate])
getLoadBalancerTlsCertificatesResponse_tlsCertificates :: (Maybe [LoadBalancerTlsCertificate]
 -> f (Maybe [LoadBalancerTlsCertificate]))
-> GetLoadBalancerTlsCertificatesResponse
-> f GetLoadBalancerTlsCertificatesResponse
getLoadBalancerTlsCertificatesResponse_tlsCertificates = (GetLoadBalancerTlsCertificatesResponse
 -> Maybe [LoadBalancerTlsCertificate])
-> (GetLoadBalancerTlsCertificatesResponse
    -> Maybe [LoadBalancerTlsCertificate]
    -> GetLoadBalancerTlsCertificatesResponse)
-> Lens
     GetLoadBalancerTlsCertificatesResponse
     GetLoadBalancerTlsCertificatesResponse
     (Maybe [LoadBalancerTlsCertificate])
     (Maybe [LoadBalancerTlsCertificate])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetLoadBalancerTlsCertificatesResponse' {Maybe [LoadBalancerTlsCertificate]
tlsCertificates :: Maybe [LoadBalancerTlsCertificate]
$sel:tlsCertificates:GetLoadBalancerTlsCertificatesResponse' :: GetLoadBalancerTlsCertificatesResponse
-> Maybe [LoadBalancerTlsCertificate]
tlsCertificates} -> Maybe [LoadBalancerTlsCertificate]
tlsCertificates) (\s :: GetLoadBalancerTlsCertificatesResponse
s@GetLoadBalancerTlsCertificatesResponse' {} Maybe [LoadBalancerTlsCertificate]
a -> GetLoadBalancerTlsCertificatesResponse
s {$sel:tlsCertificates:GetLoadBalancerTlsCertificatesResponse' :: Maybe [LoadBalancerTlsCertificate]
tlsCertificates = Maybe [LoadBalancerTlsCertificate]
a} :: GetLoadBalancerTlsCertificatesResponse) ((Maybe [LoadBalancerTlsCertificate]
  -> f (Maybe [LoadBalancerTlsCertificate]))
 -> GetLoadBalancerTlsCertificatesResponse
 -> f GetLoadBalancerTlsCertificatesResponse)
-> ((Maybe [LoadBalancerTlsCertificate]
     -> f (Maybe [LoadBalancerTlsCertificate]))
    -> Maybe [LoadBalancerTlsCertificate]
    -> f (Maybe [LoadBalancerTlsCertificate]))
-> (Maybe [LoadBalancerTlsCertificate]
    -> f (Maybe [LoadBalancerTlsCertificate]))
-> GetLoadBalancerTlsCertificatesResponse
-> f GetLoadBalancerTlsCertificatesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LoadBalancerTlsCertificate]
  [LoadBalancerTlsCertificate]
  [LoadBalancerTlsCertificate]
  [LoadBalancerTlsCertificate]
-> Iso
     (Maybe [LoadBalancerTlsCertificate])
     (Maybe [LoadBalancerTlsCertificate])
     (Maybe [LoadBalancerTlsCertificate])
     (Maybe [LoadBalancerTlsCertificate])
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  [LoadBalancerTlsCertificate]
  [LoadBalancerTlsCertificate]
  [LoadBalancerTlsCertificate]
  [LoadBalancerTlsCertificate]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    GetLoadBalancerTlsCertificatesResponse