{-# 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.DescribeLoadBasedAutoScaling
-- 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 load-based auto scaling configurations for specified layers.
--
-- You must specify at least one of the parameters.
--
-- __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.DescribeLoadBasedAutoScaling
  ( -- * Creating a Request
    DescribeLoadBasedAutoScaling (..),
    newDescribeLoadBasedAutoScaling,

    -- * Request Lenses
    describeLoadBasedAutoScaling_layerIds,

    -- * Destructuring the Response
    DescribeLoadBasedAutoScalingResponse (..),
    newDescribeLoadBasedAutoScalingResponse,

    -- * Response Lenses
    describeLoadBasedAutoScalingResponse_loadBasedAutoScalingConfigurations,
    describeLoadBasedAutoScalingResponse_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:/ 'newDescribeLoadBasedAutoScaling' smart constructor.
data DescribeLoadBasedAutoScaling = DescribeLoadBasedAutoScaling'
  { -- | An array of layer IDs.
    DescribeLoadBasedAutoScaling -> [Text]
layerIds :: [Prelude.Text]
  }
  deriving (DescribeLoadBasedAutoScaling
-> DescribeLoadBasedAutoScaling -> Bool
(DescribeLoadBasedAutoScaling
 -> DescribeLoadBasedAutoScaling -> Bool)
-> (DescribeLoadBasedAutoScaling
    -> DescribeLoadBasedAutoScaling -> Bool)
-> Eq DescribeLoadBasedAutoScaling
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLoadBasedAutoScaling
-> DescribeLoadBasedAutoScaling -> Bool
$c/= :: DescribeLoadBasedAutoScaling
-> DescribeLoadBasedAutoScaling -> Bool
== :: DescribeLoadBasedAutoScaling
-> DescribeLoadBasedAutoScaling -> Bool
$c== :: DescribeLoadBasedAutoScaling
-> DescribeLoadBasedAutoScaling -> Bool
Prelude.Eq, ReadPrec [DescribeLoadBasedAutoScaling]
ReadPrec DescribeLoadBasedAutoScaling
Int -> ReadS DescribeLoadBasedAutoScaling
ReadS [DescribeLoadBasedAutoScaling]
(Int -> ReadS DescribeLoadBasedAutoScaling)
-> ReadS [DescribeLoadBasedAutoScaling]
-> ReadPrec DescribeLoadBasedAutoScaling
-> ReadPrec [DescribeLoadBasedAutoScaling]
-> Read DescribeLoadBasedAutoScaling
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLoadBasedAutoScaling]
$creadListPrec :: ReadPrec [DescribeLoadBasedAutoScaling]
readPrec :: ReadPrec DescribeLoadBasedAutoScaling
$creadPrec :: ReadPrec DescribeLoadBasedAutoScaling
readList :: ReadS [DescribeLoadBasedAutoScaling]
$creadList :: ReadS [DescribeLoadBasedAutoScaling]
readsPrec :: Int -> ReadS DescribeLoadBasedAutoScaling
$creadsPrec :: Int -> ReadS DescribeLoadBasedAutoScaling
Prelude.Read, Int -> DescribeLoadBasedAutoScaling -> ShowS
[DescribeLoadBasedAutoScaling] -> ShowS
DescribeLoadBasedAutoScaling -> String
(Int -> DescribeLoadBasedAutoScaling -> ShowS)
-> (DescribeLoadBasedAutoScaling -> String)
-> ([DescribeLoadBasedAutoScaling] -> ShowS)
-> Show DescribeLoadBasedAutoScaling
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLoadBasedAutoScaling] -> ShowS
$cshowList :: [DescribeLoadBasedAutoScaling] -> ShowS
show :: DescribeLoadBasedAutoScaling -> String
$cshow :: DescribeLoadBasedAutoScaling -> String
showsPrec :: Int -> DescribeLoadBasedAutoScaling -> ShowS
$cshowsPrec :: Int -> DescribeLoadBasedAutoScaling -> ShowS
Prelude.Show, (forall x.
 DescribeLoadBasedAutoScaling -> Rep DescribeLoadBasedAutoScaling x)
-> (forall x.
    Rep DescribeLoadBasedAutoScaling x -> DescribeLoadBasedAutoScaling)
-> Generic DescribeLoadBasedAutoScaling
forall x.
Rep DescribeLoadBasedAutoScaling x -> DescribeLoadBasedAutoScaling
forall x.
DescribeLoadBasedAutoScaling -> Rep DescribeLoadBasedAutoScaling x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLoadBasedAutoScaling x -> DescribeLoadBasedAutoScaling
$cfrom :: forall x.
DescribeLoadBasedAutoScaling -> Rep DescribeLoadBasedAutoScaling x
Prelude.Generic)

-- |
-- Create a value of 'DescribeLoadBasedAutoScaling' 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', 'describeLoadBasedAutoScaling_layerIds' - An array of layer IDs.
newDescribeLoadBasedAutoScaling ::
  DescribeLoadBasedAutoScaling
newDescribeLoadBasedAutoScaling :: DescribeLoadBasedAutoScaling
newDescribeLoadBasedAutoScaling =
  DescribeLoadBasedAutoScaling' :: [Text] -> DescribeLoadBasedAutoScaling
DescribeLoadBasedAutoScaling'
    { $sel:layerIds:DescribeLoadBasedAutoScaling' :: [Text]
layerIds =
        [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | An array of layer IDs.
describeLoadBasedAutoScaling_layerIds :: Lens.Lens' DescribeLoadBasedAutoScaling [Prelude.Text]
describeLoadBasedAutoScaling_layerIds :: ([Text] -> f [Text])
-> DescribeLoadBasedAutoScaling -> f DescribeLoadBasedAutoScaling
describeLoadBasedAutoScaling_layerIds = (DescribeLoadBasedAutoScaling -> [Text])
-> (DescribeLoadBasedAutoScaling
    -> [Text] -> DescribeLoadBasedAutoScaling)
-> Lens
     DescribeLoadBasedAutoScaling
     DescribeLoadBasedAutoScaling
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLoadBasedAutoScaling' {[Text]
layerIds :: [Text]
$sel:layerIds:DescribeLoadBasedAutoScaling' :: DescribeLoadBasedAutoScaling -> [Text]
layerIds} -> [Text]
layerIds) (\s :: DescribeLoadBasedAutoScaling
s@DescribeLoadBasedAutoScaling' {} [Text]
a -> DescribeLoadBasedAutoScaling
s {$sel:layerIds:DescribeLoadBasedAutoScaling' :: [Text]
layerIds = [Text]
a} :: DescribeLoadBasedAutoScaling) (([Text] -> f [Text])
 -> DescribeLoadBasedAutoScaling -> f DescribeLoadBasedAutoScaling)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> DescribeLoadBasedAutoScaling
-> f DescribeLoadBasedAutoScaling
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance Prelude.NFData DescribeLoadBasedAutoScaling

instance Core.ToHeaders DescribeLoadBasedAutoScaling where
  toHeaders :: DescribeLoadBasedAutoScaling -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeLoadBasedAutoScaling -> 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.DescribeLoadBasedAutoScaling" ::
                          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 DescribeLoadBasedAutoScaling where
  toJSON :: DescribeLoadBasedAutoScaling -> Value
toJSON DescribeLoadBasedAutoScaling' {[Text]
layerIds :: [Text]
$sel:layerIds:DescribeLoadBasedAutoScaling' :: DescribeLoadBasedAutoScaling -> [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
"LayerIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
layerIds)]
      )

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

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

-- | Contains the response to a @DescribeLoadBasedAutoScaling@ request.
--
-- /See:/ 'newDescribeLoadBasedAutoScalingResponse' smart constructor.
data DescribeLoadBasedAutoScalingResponse = DescribeLoadBasedAutoScalingResponse'
  { -- | An array of @LoadBasedAutoScalingConfiguration@ objects that describe
    -- each layer\'s configuration.
    DescribeLoadBasedAutoScalingResponse
-> Maybe [LoadBasedAutoScalingConfiguration]
loadBasedAutoScalingConfigurations :: Prelude.Maybe [LoadBasedAutoScalingConfiguration],
    -- | The response's http status code.
    DescribeLoadBasedAutoScalingResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeLoadBasedAutoScalingResponse
-> DescribeLoadBasedAutoScalingResponse -> Bool
(DescribeLoadBasedAutoScalingResponse
 -> DescribeLoadBasedAutoScalingResponse -> Bool)
-> (DescribeLoadBasedAutoScalingResponse
    -> DescribeLoadBasedAutoScalingResponse -> Bool)
-> Eq DescribeLoadBasedAutoScalingResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeLoadBasedAutoScalingResponse
-> DescribeLoadBasedAutoScalingResponse -> Bool
$c/= :: DescribeLoadBasedAutoScalingResponse
-> DescribeLoadBasedAutoScalingResponse -> Bool
== :: DescribeLoadBasedAutoScalingResponse
-> DescribeLoadBasedAutoScalingResponse -> Bool
$c== :: DescribeLoadBasedAutoScalingResponse
-> DescribeLoadBasedAutoScalingResponse -> Bool
Prelude.Eq, ReadPrec [DescribeLoadBasedAutoScalingResponse]
ReadPrec DescribeLoadBasedAutoScalingResponse
Int -> ReadS DescribeLoadBasedAutoScalingResponse
ReadS [DescribeLoadBasedAutoScalingResponse]
(Int -> ReadS DescribeLoadBasedAutoScalingResponse)
-> ReadS [DescribeLoadBasedAutoScalingResponse]
-> ReadPrec DescribeLoadBasedAutoScalingResponse
-> ReadPrec [DescribeLoadBasedAutoScalingResponse]
-> Read DescribeLoadBasedAutoScalingResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeLoadBasedAutoScalingResponse]
$creadListPrec :: ReadPrec [DescribeLoadBasedAutoScalingResponse]
readPrec :: ReadPrec DescribeLoadBasedAutoScalingResponse
$creadPrec :: ReadPrec DescribeLoadBasedAutoScalingResponse
readList :: ReadS [DescribeLoadBasedAutoScalingResponse]
$creadList :: ReadS [DescribeLoadBasedAutoScalingResponse]
readsPrec :: Int -> ReadS DescribeLoadBasedAutoScalingResponse
$creadsPrec :: Int -> ReadS DescribeLoadBasedAutoScalingResponse
Prelude.Read, Int -> DescribeLoadBasedAutoScalingResponse -> ShowS
[DescribeLoadBasedAutoScalingResponse] -> ShowS
DescribeLoadBasedAutoScalingResponse -> String
(Int -> DescribeLoadBasedAutoScalingResponse -> ShowS)
-> (DescribeLoadBasedAutoScalingResponse -> String)
-> ([DescribeLoadBasedAutoScalingResponse] -> ShowS)
-> Show DescribeLoadBasedAutoScalingResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeLoadBasedAutoScalingResponse] -> ShowS
$cshowList :: [DescribeLoadBasedAutoScalingResponse] -> ShowS
show :: DescribeLoadBasedAutoScalingResponse -> String
$cshow :: DescribeLoadBasedAutoScalingResponse -> String
showsPrec :: Int -> DescribeLoadBasedAutoScalingResponse -> ShowS
$cshowsPrec :: Int -> DescribeLoadBasedAutoScalingResponse -> ShowS
Prelude.Show, (forall x.
 DescribeLoadBasedAutoScalingResponse
 -> Rep DescribeLoadBasedAutoScalingResponse x)
-> (forall x.
    Rep DescribeLoadBasedAutoScalingResponse x
    -> DescribeLoadBasedAutoScalingResponse)
-> Generic DescribeLoadBasedAutoScalingResponse
forall x.
Rep DescribeLoadBasedAutoScalingResponse x
-> DescribeLoadBasedAutoScalingResponse
forall x.
DescribeLoadBasedAutoScalingResponse
-> Rep DescribeLoadBasedAutoScalingResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeLoadBasedAutoScalingResponse x
-> DescribeLoadBasedAutoScalingResponse
$cfrom :: forall x.
DescribeLoadBasedAutoScalingResponse
-> Rep DescribeLoadBasedAutoScalingResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeLoadBasedAutoScalingResponse' 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:
--
-- 'loadBasedAutoScalingConfigurations', 'describeLoadBasedAutoScalingResponse_loadBasedAutoScalingConfigurations' - An array of @LoadBasedAutoScalingConfiguration@ objects that describe
-- each layer\'s configuration.
--
-- 'httpStatus', 'describeLoadBasedAutoScalingResponse_httpStatus' - The response's http status code.
newDescribeLoadBasedAutoScalingResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeLoadBasedAutoScalingResponse
newDescribeLoadBasedAutoScalingResponse :: Int -> DescribeLoadBasedAutoScalingResponse
newDescribeLoadBasedAutoScalingResponse Int
pHttpStatus_ =
  DescribeLoadBasedAutoScalingResponse' :: Maybe [LoadBasedAutoScalingConfiguration]
-> Int -> DescribeLoadBasedAutoScalingResponse
DescribeLoadBasedAutoScalingResponse'
    { $sel:loadBasedAutoScalingConfigurations:DescribeLoadBasedAutoScalingResponse' :: Maybe [LoadBasedAutoScalingConfiguration]
loadBasedAutoScalingConfigurations =
        Maybe [LoadBasedAutoScalingConfiguration]
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeLoadBasedAutoScalingResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of @LoadBasedAutoScalingConfiguration@ objects that describe
-- each layer\'s configuration.
describeLoadBasedAutoScalingResponse_loadBasedAutoScalingConfigurations :: Lens.Lens' DescribeLoadBasedAutoScalingResponse (Prelude.Maybe [LoadBasedAutoScalingConfiguration])
describeLoadBasedAutoScalingResponse_loadBasedAutoScalingConfigurations :: (Maybe [LoadBasedAutoScalingConfiguration]
 -> f (Maybe [LoadBasedAutoScalingConfiguration]))
-> DescribeLoadBasedAutoScalingResponse
-> f DescribeLoadBasedAutoScalingResponse
describeLoadBasedAutoScalingResponse_loadBasedAutoScalingConfigurations = (DescribeLoadBasedAutoScalingResponse
 -> Maybe [LoadBasedAutoScalingConfiguration])
-> (DescribeLoadBasedAutoScalingResponse
    -> Maybe [LoadBasedAutoScalingConfiguration]
    -> DescribeLoadBasedAutoScalingResponse)
-> Lens
     DescribeLoadBasedAutoScalingResponse
     DescribeLoadBasedAutoScalingResponse
     (Maybe [LoadBasedAutoScalingConfiguration])
     (Maybe [LoadBasedAutoScalingConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeLoadBasedAutoScalingResponse' {Maybe [LoadBasedAutoScalingConfiguration]
loadBasedAutoScalingConfigurations :: Maybe [LoadBasedAutoScalingConfiguration]
$sel:loadBasedAutoScalingConfigurations:DescribeLoadBasedAutoScalingResponse' :: DescribeLoadBasedAutoScalingResponse
-> Maybe [LoadBasedAutoScalingConfiguration]
loadBasedAutoScalingConfigurations} -> Maybe [LoadBasedAutoScalingConfiguration]
loadBasedAutoScalingConfigurations) (\s :: DescribeLoadBasedAutoScalingResponse
s@DescribeLoadBasedAutoScalingResponse' {} Maybe [LoadBasedAutoScalingConfiguration]
a -> DescribeLoadBasedAutoScalingResponse
s {$sel:loadBasedAutoScalingConfigurations:DescribeLoadBasedAutoScalingResponse' :: Maybe [LoadBasedAutoScalingConfiguration]
loadBasedAutoScalingConfigurations = Maybe [LoadBasedAutoScalingConfiguration]
a} :: DescribeLoadBasedAutoScalingResponse) ((Maybe [LoadBasedAutoScalingConfiguration]
  -> f (Maybe [LoadBasedAutoScalingConfiguration]))
 -> DescribeLoadBasedAutoScalingResponse
 -> f DescribeLoadBasedAutoScalingResponse)
-> ((Maybe [LoadBasedAutoScalingConfiguration]
     -> f (Maybe [LoadBasedAutoScalingConfiguration]))
    -> Maybe [LoadBasedAutoScalingConfiguration]
    -> f (Maybe [LoadBasedAutoScalingConfiguration]))
-> (Maybe [LoadBasedAutoScalingConfiguration]
    -> f (Maybe [LoadBasedAutoScalingConfiguration]))
-> DescribeLoadBasedAutoScalingResponse
-> f DescribeLoadBasedAutoScalingResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LoadBasedAutoScalingConfiguration]
  [LoadBasedAutoScalingConfiguration]
  [LoadBasedAutoScalingConfiguration]
  [LoadBasedAutoScalingConfiguration]
-> Iso
     (Maybe [LoadBasedAutoScalingConfiguration])
     (Maybe [LoadBasedAutoScalingConfiguration])
     (Maybe [LoadBasedAutoScalingConfiguration])
     (Maybe [LoadBasedAutoScalingConfiguration])
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
  [LoadBasedAutoScalingConfiguration]
  [LoadBasedAutoScalingConfiguration]
  [LoadBasedAutoScalingConfiguration]
  [LoadBasedAutoScalingConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    DescribeLoadBasedAutoScalingResponse