{-# 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.AutoScaling.DescribeAccountLimits
-- 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 the current Amazon EC2 Auto Scaling resource quotas for your
-- account.
--
-- When you establish an Amazon Web Services account, the account has
-- initial quotas on the maximum number of Auto Scaling groups and launch
-- configurations that you can create in a given Region. For more
-- information, see
-- <https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-account-limits.html Amazon EC2 Auto Scaling service quotas>
-- in the /Amazon EC2 Auto Scaling User Guide/.
module Amazonka.AutoScaling.DescribeAccountLimits
  ( -- * Creating a Request
    DescribeAccountLimits (..),
    newDescribeAccountLimits,

    -- * Destructuring the Response
    DescribeAccountLimitsResponse (..),
    newDescribeAccountLimitsResponse,

    -- * Response Lenses
    describeAccountLimitsResponse_numberOfLaunchConfigurations,
    describeAccountLimitsResponse_numberOfAutoScalingGroups,
    describeAccountLimitsResponse_maxNumberOfAutoScalingGroups,
    describeAccountLimitsResponse_maxNumberOfLaunchConfigurations,
    describeAccountLimitsResponse_httpStatus,
  )
where

import Amazonka.AutoScaling.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:/ 'newDescribeAccountLimits' smart constructor.
data DescribeAccountLimits = DescribeAccountLimits'
  {
  }
  deriving (DescribeAccountLimits -> DescribeAccountLimits -> Bool
(DescribeAccountLimits -> DescribeAccountLimits -> Bool)
-> (DescribeAccountLimits -> DescribeAccountLimits -> Bool)
-> Eq DescribeAccountLimits
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAccountLimits -> DescribeAccountLimits -> Bool
$c/= :: DescribeAccountLimits -> DescribeAccountLimits -> Bool
== :: DescribeAccountLimits -> DescribeAccountLimits -> Bool
$c== :: DescribeAccountLimits -> DescribeAccountLimits -> Bool
Prelude.Eq, ReadPrec [DescribeAccountLimits]
ReadPrec DescribeAccountLimits
Int -> ReadS DescribeAccountLimits
ReadS [DescribeAccountLimits]
(Int -> ReadS DescribeAccountLimits)
-> ReadS [DescribeAccountLimits]
-> ReadPrec DescribeAccountLimits
-> ReadPrec [DescribeAccountLimits]
-> Read DescribeAccountLimits
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAccountLimits]
$creadListPrec :: ReadPrec [DescribeAccountLimits]
readPrec :: ReadPrec DescribeAccountLimits
$creadPrec :: ReadPrec DescribeAccountLimits
readList :: ReadS [DescribeAccountLimits]
$creadList :: ReadS [DescribeAccountLimits]
readsPrec :: Int -> ReadS DescribeAccountLimits
$creadsPrec :: Int -> ReadS DescribeAccountLimits
Prelude.Read, Int -> DescribeAccountLimits -> ShowS
[DescribeAccountLimits] -> ShowS
DescribeAccountLimits -> String
(Int -> DescribeAccountLimits -> ShowS)
-> (DescribeAccountLimits -> String)
-> ([DescribeAccountLimits] -> ShowS)
-> Show DescribeAccountLimits
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAccountLimits] -> ShowS
$cshowList :: [DescribeAccountLimits] -> ShowS
show :: DescribeAccountLimits -> String
$cshow :: DescribeAccountLimits -> String
showsPrec :: Int -> DescribeAccountLimits -> ShowS
$cshowsPrec :: Int -> DescribeAccountLimits -> ShowS
Prelude.Show, (forall x. DescribeAccountLimits -> Rep DescribeAccountLimits x)
-> (forall x. Rep DescribeAccountLimits x -> DescribeAccountLimits)
-> Generic DescribeAccountLimits
forall x. Rep DescribeAccountLimits x -> DescribeAccountLimits
forall x. DescribeAccountLimits -> Rep DescribeAccountLimits x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeAccountLimits x -> DescribeAccountLimits
$cfrom :: forall x. DescribeAccountLimits -> Rep DescribeAccountLimits x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAccountLimits' 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.
newDescribeAccountLimits ::
  DescribeAccountLimits
newDescribeAccountLimits :: DescribeAccountLimits
newDescribeAccountLimits = DescribeAccountLimits
DescribeAccountLimits'

instance Core.AWSRequest DescribeAccountLimits where
  type
    AWSResponse DescribeAccountLimits =
      DescribeAccountLimitsResponse
  request :: DescribeAccountLimits -> Request DescribeAccountLimits
request = Service -> DescribeAccountLimits -> Request DescribeAccountLimits
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeAccountLimits
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeAccountLimits)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeAccountLimits))
-> Logger
-> Service
-> Proxy DescribeAccountLimits
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeAccountLimits)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DescribeAccountLimitsResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Int
-> DescribeAccountLimitsResponse
DescribeAccountLimitsResponse'
            (Maybe Int
 -> Maybe Int
 -> Maybe Int
 -> Maybe Int
 -> Int
 -> DescribeAccountLimitsResponse)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Int
      -> Maybe Int -> Maybe Int -> Int -> DescribeAccountLimitsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NumberOfLaunchConfigurations")
            Either
  String
  (Maybe Int
   -> Maybe Int -> Maybe Int -> Int -> DescribeAccountLimitsResponse)
-> Either String (Maybe Int)
-> Either
     String
     (Maybe Int -> Maybe Int -> Int -> DescribeAccountLimitsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NumberOfAutoScalingGroups")
            Either
  String
  (Maybe Int -> Maybe Int -> Int -> DescribeAccountLimitsResponse)
-> Either String (Maybe Int)
-> Either
     String (Maybe Int -> Int -> DescribeAccountLimitsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MaxNumberOfAutoScalingGroups")
            Either String (Maybe Int -> Int -> DescribeAccountLimitsResponse)
-> Either String (Maybe Int)
-> Either String (Int -> DescribeAccountLimitsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Int)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"MaxNumberOfLaunchConfigurations")
            Either String (Int -> DescribeAccountLimitsResponse)
-> Either String Int -> Either String DescribeAccountLimitsResponse
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 DescribeAccountLimits

instance Prelude.NFData DescribeAccountLimits

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

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

instance Core.ToQuery DescribeAccountLimits where
  toQuery :: DescribeAccountLimits -> QueryString
toQuery =
    QueryString -> DescribeAccountLimits -> QueryString
forall a b. a -> b -> a
Prelude.const
      ( [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ ByteString
"Action"
              ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeAccountLimits" :: Prelude.ByteString),
            ByteString
"Version"
              ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2011-01-01" :: Prelude.ByteString)
          ]
      )

-- | /See:/ 'newDescribeAccountLimitsResponse' smart constructor.
data DescribeAccountLimitsResponse = DescribeAccountLimitsResponse'
  { -- | The current number of launch configurations for your account.
    DescribeAccountLimitsResponse -> Maybe Int
numberOfLaunchConfigurations :: Prelude.Maybe Prelude.Int,
    -- | The current number of groups for your account.
    DescribeAccountLimitsResponse -> Maybe Int
numberOfAutoScalingGroups :: Prelude.Maybe Prelude.Int,
    -- | The maximum number of groups allowed for your account. The default is
    -- 200 groups per Region.
    DescribeAccountLimitsResponse -> Maybe Int
maxNumberOfAutoScalingGroups :: Prelude.Maybe Prelude.Int,
    -- | The maximum number of launch configurations allowed for your account.
    -- The default is 200 launch configurations per Region.
    DescribeAccountLimitsResponse -> Maybe Int
maxNumberOfLaunchConfigurations :: Prelude.Maybe Prelude.Int,
    -- | The response's http status code.
    DescribeAccountLimitsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeAccountLimitsResponse
-> DescribeAccountLimitsResponse -> Bool
(DescribeAccountLimitsResponse
 -> DescribeAccountLimitsResponse -> Bool)
-> (DescribeAccountLimitsResponse
    -> DescribeAccountLimitsResponse -> Bool)
-> Eq DescribeAccountLimitsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAccountLimitsResponse
-> DescribeAccountLimitsResponse -> Bool
$c/= :: DescribeAccountLimitsResponse
-> DescribeAccountLimitsResponse -> Bool
== :: DescribeAccountLimitsResponse
-> DescribeAccountLimitsResponse -> Bool
$c== :: DescribeAccountLimitsResponse
-> DescribeAccountLimitsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAccountLimitsResponse]
ReadPrec DescribeAccountLimitsResponse
Int -> ReadS DescribeAccountLimitsResponse
ReadS [DescribeAccountLimitsResponse]
(Int -> ReadS DescribeAccountLimitsResponse)
-> ReadS [DescribeAccountLimitsResponse]
-> ReadPrec DescribeAccountLimitsResponse
-> ReadPrec [DescribeAccountLimitsResponse]
-> Read DescribeAccountLimitsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAccountLimitsResponse]
$creadListPrec :: ReadPrec [DescribeAccountLimitsResponse]
readPrec :: ReadPrec DescribeAccountLimitsResponse
$creadPrec :: ReadPrec DescribeAccountLimitsResponse
readList :: ReadS [DescribeAccountLimitsResponse]
$creadList :: ReadS [DescribeAccountLimitsResponse]
readsPrec :: Int -> ReadS DescribeAccountLimitsResponse
$creadsPrec :: Int -> ReadS DescribeAccountLimitsResponse
Prelude.Read, Int -> DescribeAccountLimitsResponse -> ShowS
[DescribeAccountLimitsResponse] -> ShowS
DescribeAccountLimitsResponse -> String
(Int -> DescribeAccountLimitsResponse -> ShowS)
-> (DescribeAccountLimitsResponse -> String)
-> ([DescribeAccountLimitsResponse] -> ShowS)
-> Show DescribeAccountLimitsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAccountLimitsResponse] -> ShowS
$cshowList :: [DescribeAccountLimitsResponse] -> ShowS
show :: DescribeAccountLimitsResponse -> String
$cshow :: DescribeAccountLimitsResponse -> String
showsPrec :: Int -> DescribeAccountLimitsResponse -> ShowS
$cshowsPrec :: Int -> DescribeAccountLimitsResponse -> ShowS
Prelude.Show, (forall x.
 DescribeAccountLimitsResponse
 -> Rep DescribeAccountLimitsResponse x)
-> (forall x.
    Rep DescribeAccountLimitsResponse x
    -> DescribeAccountLimitsResponse)
-> Generic DescribeAccountLimitsResponse
forall x.
Rep DescribeAccountLimitsResponse x
-> DescribeAccountLimitsResponse
forall x.
DescribeAccountLimitsResponse
-> Rep DescribeAccountLimitsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAccountLimitsResponse x
-> DescribeAccountLimitsResponse
$cfrom :: forall x.
DescribeAccountLimitsResponse
-> Rep DescribeAccountLimitsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAccountLimitsResponse' 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:
--
-- 'numberOfLaunchConfigurations', 'describeAccountLimitsResponse_numberOfLaunchConfigurations' - The current number of launch configurations for your account.
--
-- 'numberOfAutoScalingGroups', 'describeAccountLimitsResponse_numberOfAutoScalingGroups' - The current number of groups for your account.
--
-- 'maxNumberOfAutoScalingGroups', 'describeAccountLimitsResponse_maxNumberOfAutoScalingGroups' - The maximum number of groups allowed for your account. The default is
-- 200 groups per Region.
--
-- 'maxNumberOfLaunchConfigurations', 'describeAccountLimitsResponse_maxNumberOfLaunchConfigurations' - The maximum number of launch configurations allowed for your account.
-- The default is 200 launch configurations per Region.
--
-- 'httpStatus', 'describeAccountLimitsResponse_httpStatus' - The response's http status code.
newDescribeAccountLimitsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeAccountLimitsResponse
newDescribeAccountLimitsResponse :: Int -> DescribeAccountLimitsResponse
newDescribeAccountLimitsResponse Int
pHttpStatus_ =
  DescribeAccountLimitsResponse' :: Maybe Int
-> Maybe Int
-> Maybe Int
-> Maybe Int
-> Int
-> DescribeAccountLimitsResponse
DescribeAccountLimitsResponse'
    { $sel:numberOfLaunchConfigurations:DescribeAccountLimitsResponse' :: Maybe Int
numberOfLaunchConfigurations =
        Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:numberOfAutoScalingGroups:DescribeAccountLimitsResponse' :: Maybe Int
numberOfAutoScalingGroups = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:maxNumberOfAutoScalingGroups:DescribeAccountLimitsResponse' :: Maybe Int
maxNumberOfAutoScalingGroups =
        Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:maxNumberOfLaunchConfigurations:DescribeAccountLimitsResponse' :: Maybe Int
maxNumberOfLaunchConfigurations =
        Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeAccountLimitsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The current number of launch configurations for your account.
describeAccountLimitsResponse_numberOfLaunchConfigurations :: Lens.Lens' DescribeAccountLimitsResponse (Prelude.Maybe Prelude.Int)
describeAccountLimitsResponse_numberOfLaunchConfigurations :: (Maybe Int -> f (Maybe Int))
-> DescribeAccountLimitsResponse -> f DescribeAccountLimitsResponse
describeAccountLimitsResponse_numberOfLaunchConfigurations = (DescribeAccountLimitsResponse -> Maybe Int)
-> (DescribeAccountLimitsResponse
    -> Maybe Int -> DescribeAccountLimitsResponse)
-> Lens
     DescribeAccountLimitsResponse
     DescribeAccountLimitsResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountLimitsResponse' {Maybe Int
numberOfLaunchConfigurations :: Maybe Int
$sel:numberOfLaunchConfigurations:DescribeAccountLimitsResponse' :: DescribeAccountLimitsResponse -> Maybe Int
numberOfLaunchConfigurations} -> Maybe Int
numberOfLaunchConfigurations) (\s :: DescribeAccountLimitsResponse
s@DescribeAccountLimitsResponse' {} Maybe Int
a -> DescribeAccountLimitsResponse
s {$sel:numberOfLaunchConfigurations:DescribeAccountLimitsResponse' :: Maybe Int
numberOfLaunchConfigurations = Maybe Int
a} :: DescribeAccountLimitsResponse)

-- | The current number of groups for your account.
describeAccountLimitsResponse_numberOfAutoScalingGroups :: Lens.Lens' DescribeAccountLimitsResponse (Prelude.Maybe Prelude.Int)
describeAccountLimitsResponse_numberOfAutoScalingGroups :: (Maybe Int -> f (Maybe Int))
-> DescribeAccountLimitsResponse -> f DescribeAccountLimitsResponse
describeAccountLimitsResponse_numberOfAutoScalingGroups = (DescribeAccountLimitsResponse -> Maybe Int)
-> (DescribeAccountLimitsResponse
    -> Maybe Int -> DescribeAccountLimitsResponse)
-> Lens
     DescribeAccountLimitsResponse
     DescribeAccountLimitsResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountLimitsResponse' {Maybe Int
numberOfAutoScalingGroups :: Maybe Int
$sel:numberOfAutoScalingGroups:DescribeAccountLimitsResponse' :: DescribeAccountLimitsResponse -> Maybe Int
numberOfAutoScalingGroups} -> Maybe Int
numberOfAutoScalingGroups) (\s :: DescribeAccountLimitsResponse
s@DescribeAccountLimitsResponse' {} Maybe Int
a -> DescribeAccountLimitsResponse
s {$sel:numberOfAutoScalingGroups:DescribeAccountLimitsResponse' :: Maybe Int
numberOfAutoScalingGroups = Maybe Int
a} :: DescribeAccountLimitsResponse)

-- | The maximum number of groups allowed for your account. The default is
-- 200 groups per Region.
describeAccountLimitsResponse_maxNumberOfAutoScalingGroups :: Lens.Lens' DescribeAccountLimitsResponse (Prelude.Maybe Prelude.Int)
describeAccountLimitsResponse_maxNumberOfAutoScalingGroups :: (Maybe Int -> f (Maybe Int))
-> DescribeAccountLimitsResponse -> f DescribeAccountLimitsResponse
describeAccountLimitsResponse_maxNumberOfAutoScalingGroups = (DescribeAccountLimitsResponse -> Maybe Int)
-> (DescribeAccountLimitsResponse
    -> Maybe Int -> DescribeAccountLimitsResponse)
-> Lens
     DescribeAccountLimitsResponse
     DescribeAccountLimitsResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountLimitsResponse' {Maybe Int
maxNumberOfAutoScalingGroups :: Maybe Int
$sel:maxNumberOfAutoScalingGroups:DescribeAccountLimitsResponse' :: DescribeAccountLimitsResponse -> Maybe Int
maxNumberOfAutoScalingGroups} -> Maybe Int
maxNumberOfAutoScalingGroups) (\s :: DescribeAccountLimitsResponse
s@DescribeAccountLimitsResponse' {} Maybe Int
a -> DescribeAccountLimitsResponse
s {$sel:maxNumberOfAutoScalingGroups:DescribeAccountLimitsResponse' :: Maybe Int
maxNumberOfAutoScalingGroups = Maybe Int
a} :: DescribeAccountLimitsResponse)

-- | The maximum number of launch configurations allowed for your account.
-- The default is 200 launch configurations per Region.
describeAccountLimitsResponse_maxNumberOfLaunchConfigurations :: Lens.Lens' DescribeAccountLimitsResponse (Prelude.Maybe Prelude.Int)
describeAccountLimitsResponse_maxNumberOfLaunchConfigurations :: (Maybe Int -> f (Maybe Int))
-> DescribeAccountLimitsResponse -> f DescribeAccountLimitsResponse
describeAccountLimitsResponse_maxNumberOfLaunchConfigurations = (DescribeAccountLimitsResponse -> Maybe Int)
-> (DescribeAccountLimitsResponse
    -> Maybe Int -> DescribeAccountLimitsResponse)
-> Lens
     DescribeAccountLimitsResponse
     DescribeAccountLimitsResponse
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountLimitsResponse' {Maybe Int
maxNumberOfLaunchConfigurations :: Maybe Int
$sel:maxNumberOfLaunchConfigurations:DescribeAccountLimitsResponse' :: DescribeAccountLimitsResponse -> Maybe Int
maxNumberOfLaunchConfigurations} -> Maybe Int
maxNumberOfLaunchConfigurations) (\s :: DescribeAccountLimitsResponse
s@DescribeAccountLimitsResponse' {} Maybe Int
a -> DescribeAccountLimitsResponse
s {$sel:maxNumberOfLaunchConfigurations:DescribeAccountLimitsResponse' :: Maybe Int
maxNumberOfLaunchConfigurations = Maybe Int
a} :: DescribeAccountLimitsResponse)

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

instance Prelude.NFData DescribeAccountLimitsResponse