{-# 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.OpsWorks.DescribeElasticLoadBalancers
-- 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)
--
-- Describes a stack\'s Elastic Load Balancing instances.
--
-- This call accepts only one resource-identifying parameter.
--
-- __Required Permissions__: To use this action, an IAM user must have a
-- Show, Deploy, or Manage permissions level for the stack, or an attached
-- policy that explicitly grants permissions. For more information about
-- user permissions, see
-- <https://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html Managing User Permissions>.
module Amazonka.OpsWorks.DescribeElasticLoadBalancers
  ( -- * Creating a Request
    DescribeElasticLoadBalancers (..),
    newDescribeElasticLoadBalancers,

    -- * Request Lenses
    describeElasticLoadBalancers_layerIds,
    describeElasticLoadBalancers_stackId,

    -- * Destructuring the Response
    DescribeElasticLoadBalancersResponse (..),
    newDescribeElasticLoadBalancersResponse,

    -- * Response Lenses
    describeElasticLoadBalancersResponse_elasticLoadBalancers,
    describeElasticLoadBalancersResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeElasticLoadBalancers' smart constructor.
data DescribeElasticLoadBalancers = DescribeElasticLoadBalancers'
  { -- | A list of layer IDs. The action describes the Elastic Load Balancing
    -- instances for the specified layers.
    DescribeElasticLoadBalancers -> Maybe [Text]
layerIds :: Prelude.Maybe [Prelude.Text],
    -- | A stack ID. The action describes the stack\'s Elastic Load Balancing
    -- instances.
    DescribeElasticLoadBalancers -> Maybe Text
stackId :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribeElasticLoadBalancers
-> DescribeElasticLoadBalancers -> Bool
(DescribeElasticLoadBalancers
 -> DescribeElasticLoadBalancers -> Bool)
-> (DescribeElasticLoadBalancers
    -> DescribeElasticLoadBalancers -> Bool)
-> Eq DescribeElasticLoadBalancers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeElasticLoadBalancers
-> DescribeElasticLoadBalancers -> Bool
$c/= :: DescribeElasticLoadBalancers
-> DescribeElasticLoadBalancers -> Bool
== :: DescribeElasticLoadBalancers
-> DescribeElasticLoadBalancers -> Bool
$c== :: DescribeElasticLoadBalancers
-> DescribeElasticLoadBalancers -> Bool
Prelude.Eq, ReadPrec [DescribeElasticLoadBalancers]
ReadPrec DescribeElasticLoadBalancers
Int -> ReadS DescribeElasticLoadBalancers
ReadS [DescribeElasticLoadBalancers]
(Int -> ReadS DescribeElasticLoadBalancers)
-> ReadS [DescribeElasticLoadBalancers]
-> ReadPrec DescribeElasticLoadBalancers
-> ReadPrec [DescribeElasticLoadBalancers]
-> Read DescribeElasticLoadBalancers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeElasticLoadBalancers]
$creadListPrec :: ReadPrec [DescribeElasticLoadBalancers]
readPrec :: ReadPrec DescribeElasticLoadBalancers
$creadPrec :: ReadPrec DescribeElasticLoadBalancers
readList :: ReadS [DescribeElasticLoadBalancers]
$creadList :: ReadS [DescribeElasticLoadBalancers]
readsPrec :: Int -> ReadS DescribeElasticLoadBalancers
$creadsPrec :: Int -> ReadS DescribeElasticLoadBalancers
Prelude.Read, Int -> DescribeElasticLoadBalancers -> ShowS
[DescribeElasticLoadBalancers] -> ShowS
DescribeElasticLoadBalancers -> String
(Int -> DescribeElasticLoadBalancers -> ShowS)
-> (DescribeElasticLoadBalancers -> String)
-> ([DescribeElasticLoadBalancers] -> ShowS)
-> Show DescribeElasticLoadBalancers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeElasticLoadBalancers] -> ShowS
$cshowList :: [DescribeElasticLoadBalancers] -> ShowS
show :: DescribeElasticLoadBalancers -> String
$cshow :: DescribeElasticLoadBalancers -> String
showsPrec :: Int -> DescribeElasticLoadBalancers -> ShowS
$cshowsPrec :: Int -> DescribeElasticLoadBalancers -> ShowS
Prelude.Show, (forall x.
 DescribeElasticLoadBalancers -> Rep DescribeElasticLoadBalancers x)
-> (forall x.
    Rep DescribeElasticLoadBalancers x -> DescribeElasticLoadBalancers)
-> Generic DescribeElasticLoadBalancers
forall x.
Rep DescribeElasticLoadBalancers x -> DescribeElasticLoadBalancers
forall x.
DescribeElasticLoadBalancers -> Rep DescribeElasticLoadBalancers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeElasticLoadBalancers x -> DescribeElasticLoadBalancers
$cfrom :: forall x.
DescribeElasticLoadBalancers -> Rep DescribeElasticLoadBalancers x
Prelude.Generic)

-- |
-- Create a value of 'DescribeElasticLoadBalancers' 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:
--
-- 'layerIds', 'describeElasticLoadBalancers_layerIds' - A list of layer IDs. The action describes the Elastic Load Balancing
-- instances for the specified layers.
--
-- 'stackId', 'describeElasticLoadBalancers_stackId' - A stack ID. The action describes the stack\'s Elastic Load Balancing
-- instances.
newDescribeElasticLoadBalancers ::
  DescribeElasticLoadBalancers
newDescribeElasticLoadBalancers :: DescribeElasticLoadBalancers
newDescribeElasticLoadBalancers =
  DescribeElasticLoadBalancers' :: Maybe [Text] -> Maybe Text -> DescribeElasticLoadBalancers
DescribeElasticLoadBalancers'
    { $sel:layerIds:DescribeElasticLoadBalancers' :: Maybe [Text]
layerIds =
        Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
      $sel:stackId:DescribeElasticLoadBalancers' :: Maybe Text
stackId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | A list of layer IDs. The action describes the Elastic Load Balancing
-- instances for the specified layers.
describeElasticLoadBalancers_layerIds :: Lens.Lens' DescribeElasticLoadBalancers (Prelude.Maybe [Prelude.Text])
describeElasticLoadBalancers_layerIds :: (Maybe [Text] -> f (Maybe [Text]))
-> DescribeElasticLoadBalancers -> f DescribeElasticLoadBalancers
describeElasticLoadBalancers_layerIds = (DescribeElasticLoadBalancers -> Maybe [Text])
-> (DescribeElasticLoadBalancers
    -> Maybe [Text] -> DescribeElasticLoadBalancers)
-> Lens
     DescribeElasticLoadBalancers
     DescribeElasticLoadBalancers
     (Maybe [Text])
     (Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeElasticLoadBalancers' {Maybe [Text]
layerIds :: Maybe [Text]
$sel:layerIds:DescribeElasticLoadBalancers' :: DescribeElasticLoadBalancers -> Maybe [Text]
layerIds} -> Maybe [Text]
layerIds) (\s :: DescribeElasticLoadBalancers
s@DescribeElasticLoadBalancers' {} Maybe [Text]
a -> DescribeElasticLoadBalancers
s {$sel:layerIds:DescribeElasticLoadBalancers' :: Maybe [Text]
layerIds = Maybe [Text]
a} :: DescribeElasticLoadBalancers) ((Maybe [Text] -> f (Maybe [Text]))
 -> DescribeElasticLoadBalancers -> f DescribeElasticLoadBalancers)
-> ((Maybe [Text] -> f (Maybe [Text]))
    -> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> DescribeElasticLoadBalancers
-> f DescribeElasticLoadBalancers
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A stack ID. The action describes the stack\'s Elastic Load Balancing
-- instances.
describeElasticLoadBalancers_stackId :: Lens.Lens' DescribeElasticLoadBalancers (Prelude.Maybe Prelude.Text)
describeElasticLoadBalancers_stackId :: (Maybe Text -> f (Maybe Text))
-> DescribeElasticLoadBalancers -> f DescribeElasticLoadBalancers
describeElasticLoadBalancers_stackId = (DescribeElasticLoadBalancers -> Maybe Text)
-> (DescribeElasticLoadBalancers
    -> Maybe Text -> DescribeElasticLoadBalancers)
-> Lens
     DescribeElasticLoadBalancers
     DescribeElasticLoadBalancers
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeElasticLoadBalancers' {Maybe Text
stackId :: Maybe Text
$sel:stackId:DescribeElasticLoadBalancers' :: DescribeElasticLoadBalancers -> Maybe Text
stackId} -> Maybe Text
stackId) (\s :: DescribeElasticLoadBalancers
s@DescribeElasticLoadBalancers' {} Maybe Text
a -> DescribeElasticLoadBalancers
s {$sel:stackId:DescribeElasticLoadBalancers' :: Maybe Text
stackId = Maybe Text
a} :: DescribeElasticLoadBalancers)

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

instance Prelude.NFData DescribeElasticLoadBalancers

instance Core.ToHeaders DescribeElasticLoadBalancers where
  toHeaders :: DescribeElasticLoadBalancers -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeElasticLoadBalancers -> 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
"OpsWorks_20130218.DescribeElasticLoadBalancers" ::
                          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 DescribeElasticLoadBalancers where
  toJSON :: DescribeElasticLoadBalancers -> Value
toJSON DescribeElasticLoadBalancers' {Maybe [Text]
Maybe Text
stackId :: Maybe Text
layerIds :: Maybe [Text]
$sel:stackId:DescribeElasticLoadBalancers' :: DescribeElasticLoadBalancers -> Maybe Text
$sel:layerIds:DescribeElasticLoadBalancers' :: DescribeElasticLoadBalancers -> Maybe [Text]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"LayerIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
layerIds,
            (Text
"StackId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
stackId
          ]
      )

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

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

-- | Contains the response to a @DescribeElasticLoadBalancers@ request.
--
-- /See:/ 'newDescribeElasticLoadBalancersResponse' smart constructor.
data DescribeElasticLoadBalancersResponse = DescribeElasticLoadBalancersResponse'
  { -- | A list of @ElasticLoadBalancer@ objects that describe the specified
    -- Elastic Load Balancing instances.
    DescribeElasticLoadBalancersResponse -> Maybe [ElasticLoadBalancer]
elasticLoadBalancers :: Prelude.Maybe [ElasticLoadBalancer],
    -- | The response's http status code.
    DescribeElasticLoadBalancersResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeElasticLoadBalancersResponse
-> DescribeElasticLoadBalancersResponse -> Bool
(DescribeElasticLoadBalancersResponse
 -> DescribeElasticLoadBalancersResponse -> Bool)
-> (DescribeElasticLoadBalancersResponse
    -> DescribeElasticLoadBalancersResponse -> Bool)
-> Eq DescribeElasticLoadBalancersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeElasticLoadBalancersResponse
-> DescribeElasticLoadBalancersResponse -> Bool
$c/= :: DescribeElasticLoadBalancersResponse
-> DescribeElasticLoadBalancersResponse -> Bool
== :: DescribeElasticLoadBalancersResponse
-> DescribeElasticLoadBalancersResponse -> Bool
$c== :: DescribeElasticLoadBalancersResponse
-> DescribeElasticLoadBalancersResponse -> Bool
Prelude.Eq, ReadPrec [DescribeElasticLoadBalancersResponse]
ReadPrec DescribeElasticLoadBalancersResponse
Int -> ReadS DescribeElasticLoadBalancersResponse
ReadS [DescribeElasticLoadBalancersResponse]
(Int -> ReadS DescribeElasticLoadBalancersResponse)
-> ReadS [DescribeElasticLoadBalancersResponse]
-> ReadPrec DescribeElasticLoadBalancersResponse
-> ReadPrec [DescribeElasticLoadBalancersResponse]
-> Read DescribeElasticLoadBalancersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeElasticLoadBalancersResponse]
$creadListPrec :: ReadPrec [DescribeElasticLoadBalancersResponse]
readPrec :: ReadPrec DescribeElasticLoadBalancersResponse
$creadPrec :: ReadPrec DescribeElasticLoadBalancersResponse
readList :: ReadS [DescribeElasticLoadBalancersResponse]
$creadList :: ReadS [DescribeElasticLoadBalancersResponse]
readsPrec :: Int -> ReadS DescribeElasticLoadBalancersResponse
$creadsPrec :: Int -> ReadS DescribeElasticLoadBalancersResponse
Prelude.Read, Int -> DescribeElasticLoadBalancersResponse -> ShowS
[DescribeElasticLoadBalancersResponse] -> ShowS
DescribeElasticLoadBalancersResponse -> String
(Int -> DescribeElasticLoadBalancersResponse -> ShowS)
-> (DescribeElasticLoadBalancersResponse -> String)
-> ([DescribeElasticLoadBalancersResponse] -> ShowS)
-> Show DescribeElasticLoadBalancersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeElasticLoadBalancersResponse] -> ShowS
$cshowList :: [DescribeElasticLoadBalancersResponse] -> ShowS
show :: DescribeElasticLoadBalancersResponse -> String
$cshow :: DescribeElasticLoadBalancersResponse -> String
showsPrec :: Int -> DescribeElasticLoadBalancersResponse -> ShowS
$cshowsPrec :: Int -> DescribeElasticLoadBalancersResponse -> ShowS
Prelude.Show, (forall x.
 DescribeElasticLoadBalancersResponse
 -> Rep DescribeElasticLoadBalancersResponse x)
-> (forall x.
    Rep DescribeElasticLoadBalancersResponse x
    -> DescribeElasticLoadBalancersResponse)
-> Generic DescribeElasticLoadBalancersResponse
forall x.
Rep DescribeElasticLoadBalancersResponse x
-> DescribeElasticLoadBalancersResponse
forall x.
DescribeElasticLoadBalancersResponse
-> Rep DescribeElasticLoadBalancersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeElasticLoadBalancersResponse x
-> DescribeElasticLoadBalancersResponse
$cfrom :: forall x.
DescribeElasticLoadBalancersResponse
-> Rep DescribeElasticLoadBalancersResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeElasticLoadBalancersResponse' 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:
--
-- 'elasticLoadBalancers', 'describeElasticLoadBalancersResponse_elasticLoadBalancers' - A list of @ElasticLoadBalancer@ objects that describe the specified
-- Elastic Load Balancing instances.
--
-- 'httpStatus', 'describeElasticLoadBalancersResponse_httpStatus' - The response's http status code.
newDescribeElasticLoadBalancersResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeElasticLoadBalancersResponse
newDescribeElasticLoadBalancersResponse :: Int -> DescribeElasticLoadBalancersResponse
newDescribeElasticLoadBalancersResponse Int
pHttpStatus_ =
  DescribeElasticLoadBalancersResponse' :: Maybe [ElasticLoadBalancer]
-> Int -> DescribeElasticLoadBalancersResponse
DescribeElasticLoadBalancersResponse'
    { $sel:elasticLoadBalancers:DescribeElasticLoadBalancersResponse' :: Maybe [ElasticLoadBalancer]
elasticLoadBalancers =
        Maybe [ElasticLoadBalancer]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeElasticLoadBalancersResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of @ElasticLoadBalancer@ objects that describe the specified
-- Elastic Load Balancing instances.
describeElasticLoadBalancersResponse_elasticLoadBalancers :: Lens.Lens' DescribeElasticLoadBalancersResponse (Prelude.Maybe [ElasticLoadBalancer])
describeElasticLoadBalancersResponse_elasticLoadBalancers :: (Maybe [ElasticLoadBalancer] -> f (Maybe [ElasticLoadBalancer]))
-> DescribeElasticLoadBalancersResponse
-> f DescribeElasticLoadBalancersResponse
describeElasticLoadBalancersResponse_elasticLoadBalancers = (DescribeElasticLoadBalancersResponse
 -> Maybe [ElasticLoadBalancer])
-> (DescribeElasticLoadBalancersResponse
    -> Maybe [ElasticLoadBalancer]
    -> DescribeElasticLoadBalancersResponse)
-> Lens
     DescribeElasticLoadBalancersResponse
     DescribeElasticLoadBalancersResponse
     (Maybe [ElasticLoadBalancer])
     (Maybe [ElasticLoadBalancer])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeElasticLoadBalancersResponse' {Maybe [ElasticLoadBalancer]
elasticLoadBalancers :: Maybe [ElasticLoadBalancer]
$sel:elasticLoadBalancers:DescribeElasticLoadBalancersResponse' :: DescribeElasticLoadBalancersResponse -> Maybe [ElasticLoadBalancer]
elasticLoadBalancers} -> Maybe [ElasticLoadBalancer]
elasticLoadBalancers) (\s :: DescribeElasticLoadBalancersResponse
s@DescribeElasticLoadBalancersResponse' {} Maybe [ElasticLoadBalancer]
a -> DescribeElasticLoadBalancersResponse
s {$sel:elasticLoadBalancers:DescribeElasticLoadBalancersResponse' :: Maybe [ElasticLoadBalancer]
elasticLoadBalancers = Maybe [ElasticLoadBalancer]
a} :: DescribeElasticLoadBalancersResponse) ((Maybe [ElasticLoadBalancer] -> f (Maybe [ElasticLoadBalancer]))
 -> DescribeElasticLoadBalancersResponse
 -> f DescribeElasticLoadBalancersResponse)
-> ((Maybe [ElasticLoadBalancer]
     -> f (Maybe [ElasticLoadBalancer]))
    -> Maybe [ElasticLoadBalancer] -> f (Maybe [ElasticLoadBalancer]))
-> (Maybe [ElasticLoadBalancer] -> f (Maybe [ElasticLoadBalancer]))
-> DescribeElasticLoadBalancersResponse
-> f DescribeElasticLoadBalancersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ElasticLoadBalancer]
  [ElasticLoadBalancer]
  [ElasticLoadBalancer]
  [ElasticLoadBalancer]
-> Iso
     (Maybe [ElasticLoadBalancer])
     (Maybe [ElasticLoadBalancer])
     (Maybe [ElasticLoadBalancer])
     (Maybe [ElasticLoadBalancer])
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
  [ElasticLoadBalancer]
  [ElasticLoadBalancer]
  [ElasticLoadBalancer]
  [ElasticLoadBalancer]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeElasticLoadBalancersResponse