{-# 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 #-}
module Amazonka.ELBV2.DescribeAccountLimits
(
DescribeAccountLimits (..),
newDescribeAccountLimits,
describeAccountLimits_marker,
describeAccountLimits_pageSize,
DescribeAccountLimitsResponse (..),
newDescribeAccountLimitsResponse,
describeAccountLimitsResponse_limits,
describeAccountLimitsResponse_nextMarker,
describeAccountLimitsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ELBV2.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeAccountLimits = DescribeAccountLimits'
{
DescribeAccountLimits -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
DescribeAccountLimits -> Maybe Natural
pageSize :: Prelude.Maybe Prelude.Natural
}
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)
newDescribeAccountLimits ::
DescribeAccountLimits
newDescribeAccountLimits :: DescribeAccountLimits
newDescribeAccountLimits =
DescribeAccountLimits' :: Maybe Text -> Maybe Natural -> DescribeAccountLimits
DescribeAccountLimits'
{ $sel:marker:DescribeAccountLimits' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pageSize:DescribeAccountLimits' :: Maybe Natural
pageSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
describeAccountLimits_marker :: Lens.Lens' DescribeAccountLimits (Prelude.Maybe Prelude.Text)
describeAccountLimits_marker :: (Maybe Text -> f (Maybe Text))
-> DescribeAccountLimits -> f DescribeAccountLimits
describeAccountLimits_marker = (DescribeAccountLimits -> Maybe Text)
-> (DescribeAccountLimits -> Maybe Text -> DescribeAccountLimits)
-> Lens
DescribeAccountLimits
DescribeAccountLimits
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountLimits' {Maybe Text
marker :: Maybe Text
$sel:marker:DescribeAccountLimits' :: DescribeAccountLimits -> Maybe Text
marker} -> Maybe Text
marker) (\s :: DescribeAccountLimits
s@DescribeAccountLimits' {} Maybe Text
a -> DescribeAccountLimits
s {$sel:marker:DescribeAccountLimits' :: Maybe Text
marker = Maybe Text
a} :: DescribeAccountLimits)
describeAccountLimits_pageSize :: Lens.Lens' DescribeAccountLimits (Prelude.Maybe Prelude.Natural)
describeAccountLimits_pageSize :: (Maybe Natural -> f (Maybe Natural))
-> DescribeAccountLimits -> f DescribeAccountLimits
describeAccountLimits_pageSize = (DescribeAccountLimits -> Maybe Natural)
-> (DescribeAccountLimits
-> Maybe Natural -> DescribeAccountLimits)
-> Lens
DescribeAccountLimits
DescribeAccountLimits
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountLimits' {Maybe Natural
pageSize :: Maybe Natural
$sel:pageSize:DescribeAccountLimits' :: DescribeAccountLimits -> Maybe Natural
pageSize} -> Maybe Natural
pageSize) (\s :: DescribeAccountLimits
s@DescribeAccountLimits' {} Maybe Natural
a -> DescribeAccountLimits
s {$sel:pageSize:DescribeAccountLimits' :: Maybe Natural
pageSize = Maybe Natural
a} :: DescribeAccountLimits)
instance Core.AWSPager DescribeAccountLimits where
page :: DescribeAccountLimits
-> AWSResponse DescribeAccountLimits -> Maybe DescribeAccountLimits
page DescribeAccountLimits
rq AWSResponse DescribeAccountLimits
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeAccountLimits
DescribeAccountLimitsResponse
rs
DescribeAccountLimitsResponse
-> Getting (First Text) DescribeAccountLimitsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAccountLimitsResponse
-> Const (First Text) DescribeAccountLimitsResponse
Lens' DescribeAccountLimitsResponse (Maybe Text)
describeAccountLimitsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAccountLimitsResponse
-> Const (First Text) DescribeAccountLimitsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeAccountLimitsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeAccountLimits
forall a. Maybe a
Prelude.Nothing
| Maybe [Limit] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeAccountLimits
DescribeAccountLimitsResponse
rs
DescribeAccountLimitsResponse
-> Getting (First [Limit]) DescribeAccountLimitsResponse [Limit]
-> Maybe [Limit]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Limit] -> Const (First [Limit]) (Maybe [Limit]))
-> DescribeAccountLimitsResponse
-> Const (First [Limit]) DescribeAccountLimitsResponse
Lens' DescribeAccountLimitsResponse (Maybe [Limit])
describeAccountLimitsResponse_limits
((Maybe [Limit] -> Const (First [Limit]) (Maybe [Limit]))
-> DescribeAccountLimitsResponse
-> Const (First [Limit]) DescribeAccountLimitsResponse)
-> (([Limit] -> Const (First [Limit]) [Limit])
-> Maybe [Limit] -> Const (First [Limit]) (Maybe [Limit]))
-> Getting (First [Limit]) DescribeAccountLimitsResponse [Limit]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Limit] -> Const (First [Limit]) [Limit])
-> Maybe [Limit] -> Const (First [Limit]) (Maybe [Limit])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeAccountLimits
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeAccountLimits -> Maybe DescribeAccountLimits
forall a. a -> Maybe a
Prelude.Just (DescribeAccountLimits -> Maybe DescribeAccountLimits)
-> DescribeAccountLimits -> Maybe DescribeAccountLimits
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeAccountLimits
rq
DescribeAccountLimits
-> (DescribeAccountLimits -> DescribeAccountLimits)
-> DescribeAccountLimits
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeAccountLimits -> Identity DescribeAccountLimits
Lens
DescribeAccountLimits
DescribeAccountLimits
(Maybe Text)
(Maybe Text)
describeAccountLimits_marker
((Maybe Text -> Identity (Maybe Text))
-> DescribeAccountLimits -> Identity DescribeAccountLimits)
-> Maybe Text -> DescribeAccountLimits -> DescribeAccountLimits
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeAccountLimits
DescribeAccountLimitsResponse
rs
DescribeAccountLimitsResponse
-> Getting (First Text) DescribeAccountLimitsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAccountLimitsResponse
-> Const (First Text) DescribeAccountLimitsResponse
Lens' DescribeAccountLimitsResponse (Maybe Text)
describeAccountLimitsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeAccountLimitsResponse
-> Const (First Text) DescribeAccountLimitsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeAccountLimitsResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
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 [Limit] -> Maybe Text -> Int -> DescribeAccountLimitsResponse
DescribeAccountLimitsResponse'
(Maybe [Limit]
-> Maybe Text -> Int -> DescribeAccountLimitsResponse)
-> Either String (Maybe [Limit])
-> Either
String (Maybe Text -> Int -> DescribeAccountLimitsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Limits" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [Limit]))
-> Either String (Maybe [Limit])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Limit])
-> [Node] -> Either String (Maybe [Limit])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Limit]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe Text -> Int -> DescribeAccountLimitsResponse)
-> Either String (Maybe Text)
-> 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 Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NextMarker")
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 DescribeAccountLimits' {Maybe Natural
Maybe Text
pageSize :: Maybe Natural
marker :: Maybe Text
$sel:pageSize:DescribeAccountLimits' :: DescribeAccountLimits -> Maybe Natural
$sel:marker:DescribeAccountLimits' :: DescribeAccountLimits -> Maybe Text
..} =
[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
"2015-12-01" :: Prelude.ByteString),
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"PageSize" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
pageSize
]
data DescribeAccountLimitsResponse = DescribeAccountLimitsResponse'
{
DescribeAccountLimitsResponse -> Maybe [Limit]
limits :: Prelude.Maybe [Limit],
DescribeAccountLimitsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
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)
newDescribeAccountLimitsResponse ::
Prelude.Int ->
DescribeAccountLimitsResponse
newDescribeAccountLimitsResponse :: Int -> DescribeAccountLimitsResponse
newDescribeAccountLimitsResponse Int
pHttpStatus_ =
DescribeAccountLimitsResponse' :: Maybe [Limit] -> Maybe Text -> Int -> DescribeAccountLimitsResponse
DescribeAccountLimitsResponse'
{ $sel:limits:DescribeAccountLimitsResponse' :: Maybe [Limit]
limits =
Maybe [Limit]
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:DescribeAccountLimitsResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeAccountLimitsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeAccountLimitsResponse_limits :: Lens.Lens' DescribeAccountLimitsResponse (Prelude.Maybe [Limit])
describeAccountLimitsResponse_limits :: (Maybe [Limit] -> f (Maybe [Limit]))
-> DescribeAccountLimitsResponse -> f DescribeAccountLimitsResponse
describeAccountLimitsResponse_limits = (DescribeAccountLimitsResponse -> Maybe [Limit])
-> (DescribeAccountLimitsResponse
-> Maybe [Limit] -> DescribeAccountLimitsResponse)
-> Lens' DescribeAccountLimitsResponse (Maybe [Limit])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountLimitsResponse' {Maybe [Limit]
limits :: Maybe [Limit]
$sel:limits:DescribeAccountLimitsResponse' :: DescribeAccountLimitsResponse -> Maybe [Limit]
limits} -> Maybe [Limit]
limits) (\s :: DescribeAccountLimitsResponse
s@DescribeAccountLimitsResponse' {} Maybe [Limit]
a -> DescribeAccountLimitsResponse
s {$sel:limits:DescribeAccountLimitsResponse' :: Maybe [Limit]
limits = Maybe [Limit]
a} :: DescribeAccountLimitsResponse) ((Maybe [Limit] -> f (Maybe [Limit]))
-> DescribeAccountLimitsResponse
-> f DescribeAccountLimitsResponse)
-> ((Maybe [Limit] -> f (Maybe [Limit]))
-> Maybe [Limit] -> f (Maybe [Limit]))
-> (Maybe [Limit] -> f (Maybe [Limit]))
-> DescribeAccountLimitsResponse
-> f DescribeAccountLimitsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Limit] [Limit] [Limit] [Limit]
-> Iso
(Maybe [Limit]) (Maybe [Limit]) (Maybe [Limit]) (Maybe [Limit])
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 [Limit] [Limit] [Limit] [Limit]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAccountLimitsResponse_nextMarker :: Lens.Lens' DescribeAccountLimitsResponse (Prelude.Maybe Prelude.Text)
describeAccountLimitsResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> DescribeAccountLimitsResponse -> f DescribeAccountLimitsResponse
describeAccountLimitsResponse_nextMarker = (DescribeAccountLimitsResponse -> Maybe Text)
-> (DescribeAccountLimitsResponse
-> Maybe Text -> DescribeAccountLimitsResponse)
-> Lens' DescribeAccountLimitsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountLimitsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:DescribeAccountLimitsResponse' :: DescribeAccountLimitsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: DescribeAccountLimitsResponse
s@DescribeAccountLimitsResponse' {} Maybe Text
a -> DescribeAccountLimitsResponse
s {$sel:nextMarker:DescribeAccountLimitsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: DescribeAccountLimitsResponse)
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