{-# 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.Route53Resolver.ListFirewallConfigs
(
ListFirewallConfigs (..),
newListFirewallConfigs,
listFirewallConfigs_nextToken,
listFirewallConfigs_maxResults,
ListFirewallConfigsResponse (..),
newListFirewallConfigsResponse,
listFirewallConfigsResponse_nextToken,
listFirewallConfigsResponse_firewallConfigs,
listFirewallConfigsResponse_httpStatus,
)
where
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
import Amazonka.Route53Resolver.Types
data ListFirewallConfigs = ListFirewallConfigs'
{
ListFirewallConfigs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFirewallConfigs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListFirewallConfigs -> ListFirewallConfigs -> Bool
(ListFirewallConfigs -> ListFirewallConfigs -> Bool)
-> (ListFirewallConfigs -> ListFirewallConfigs -> Bool)
-> Eq ListFirewallConfigs
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFirewallConfigs -> ListFirewallConfigs -> Bool
$c/= :: ListFirewallConfigs -> ListFirewallConfigs -> Bool
== :: ListFirewallConfigs -> ListFirewallConfigs -> Bool
$c== :: ListFirewallConfigs -> ListFirewallConfigs -> Bool
Prelude.Eq, ReadPrec [ListFirewallConfigs]
ReadPrec ListFirewallConfigs
Int -> ReadS ListFirewallConfigs
ReadS [ListFirewallConfigs]
(Int -> ReadS ListFirewallConfigs)
-> ReadS [ListFirewallConfigs]
-> ReadPrec ListFirewallConfigs
-> ReadPrec [ListFirewallConfigs]
-> Read ListFirewallConfigs
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFirewallConfigs]
$creadListPrec :: ReadPrec [ListFirewallConfigs]
readPrec :: ReadPrec ListFirewallConfigs
$creadPrec :: ReadPrec ListFirewallConfigs
readList :: ReadS [ListFirewallConfigs]
$creadList :: ReadS [ListFirewallConfigs]
readsPrec :: Int -> ReadS ListFirewallConfigs
$creadsPrec :: Int -> ReadS ListFirewallConfigs
Prelude.Read, Int -> ListFirewallConfigs -> ShowS
[ListFirewallConfigs] -> ShowS
ListFirewallConfigs -> String
(Int -> ListFirewallConfigs -> ShowS)
-> (ListFirewallConfigs -> String)
-> ([ListFirewallConfigs] -> ShowS)
-> Show ListFirewallConfigs
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFirewallConfigs] -> ShowS
$cshowList :: [ListFirewallConfigs] -> ShowS
show :: ListFirewallConfigs -> String
$cshow :: ListFirewallConfigs -> String
showsPrec :: Int -> ListFirewallConfigs -> ShowS
$cshowsPrec :: Int -> ListFirewallConfigs -> ShowS
Prelude.Show, (forall x. ListFirewallConfigs -> Rep ListFirewallConfigs x)
-> (forall x. Rep ListFirewallConfigs x -> ListFirewallConfigs)
-> Generic ListFirewallConfigs
forall x. Rep ListFirewallConfigs x -> ListFirewallConfigs
forall x. ListFirewallConfigs -> Rep ListFirewallConfigs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListFirewallConfigs x -> ListFirewallConfigs
$cfrom :: forall x. ListFirewallConfigs -> Rep ListFirewallConfigs x
Prelude.Generic)
newListFirewallConfigs ::
ListFirewallConfigs
newListFirewallConfigs :: ListFirewallConfigs
newListFirewallConfigs =
ListFirewallConfigs' :: Maybe Text -> Maybe Natural -> ListFirewallConfigs
ListFirewallConfigs'
{ $sel:nextToken:ListFirewallConfigs' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListFirewallConfigs' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listFirewallConfigs_nextToken :: Lens.Lens' ListFirewallConfigs (Prelude.Maybe Prelude.Text)
listFirewallConfigs_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFirewallConfigs -> f ListFirewallConfigs
listFirewallConfigs_nextToken = (ListFirewallConfigs -> Maybe Text)
-> (ListFirewallConfigs -> Maybe Text -> ListFirewallConfigs)
-> Lens
ListFirewallConfigs ListFirewallConfigs (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallConfigs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFirewallConfigs' :: ListFirewallConfigs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFirewallConfigs
s@ListFirewallConfigs' {} Maybe Text
a -> ListFirewallConfigs
s {$sel:nextToken:ListFirewallConfigs' :: Maybe Text
nextToken = Maybe Text
a} :: ListFirewallConfigs)
listFirewallConfigs_maxResults :: Lens.Lens' ListFirewallConfigs (Prelude.Maybe Prelude.Natural)
listFirewallConfigs_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListFirewallConfigs -> f ListFirewallConfigs
listFirewallConfigs_maxResults = (ListFirewallConfigs -> Maybe Natural)
-> (ListFirewallConfigs -> Maybe Natural -> ListFirewallConfigs)
-> Lens
ListFirewallConfigs
ListFirewallConfigs
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallConfigs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListFirewallConfigs' :: ListFirewallConfigs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListFirewallConfigs
s@ListFirewallConfigs' {} Maybe Natural
a -> ListFirewallConfigs
s {$sel:maxResults:ListFirewallConfigs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListFirewallConfigs)
instance Core.AWSPager ListFirewallConfigs where
page :: ListFirewallConfigs
-> AWSResponse ListFirewallConfigs -> Maybe ListFirewallConfigs
page ListFirewallConfigs
rq AWSResponse ListFirewallConfigs
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListFirewallConfigs
ListFirewallConfigsResponse
rs
ListFirewallConfigsResponse
-> Getting (First Text) ListFirewallConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallConfigsResponse
-> Const (First Text) ListFirewallConfigsResponse
Lens' ListFirewallConfigsResponse (Maybe Text)
listFirewallConfigsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallConfigsResponse
-> Const (First Text) ListFirewallConfigsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListFirewallConfigsResponse 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 ListFirewallConfigs
forall a. Maybe a
Prelude.Nothing
| Maybe [FirewallConfig] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListFirewallConfigs
ListFirewallConfigsResponse
rs
ListFirewallConfigsResponse
-> Getting
(First [FirewallConfig])
ListFirewallConfigsResponse
[FirewallConfig]
-> Maybe [FirewallConfig]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [FirewallConfig]
-> Const (First [FirewallConfig]) (Maybe [FirewallConfig]))
-> ListFirewallConfigsResponse
-> Const (First [FirewallConfig]) ListFirewallConfigsResponse
Lens' ListFirewallConfigsResponse (Maybe [FirewallConfig])
listFirewallConfigsResponse_firewallConfigs
((Maybe [FirewallConfig]
-> Const (First [FirewallConfig]) (Maybe [FirewallConfig]))
-> ListFirewallConfigsResponse
-> Const (First [FirewallConfig]) ListFirewallConfigsResponse)
-> (([FirewallConfig]
-> Const (First [FirewallConfig]) [FirewallConfig])
-> Maybe [FirewallConfig]
-> Const (First [FirewallConfig]) (Maybe [FirewallConfig]))
-> Getting
(First [FirewallConfig])
ListFirewallConfigsResponse
[FirewallConfig]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([FirewallConfig]
-> Const (First [FirewallConfig]) [FirewallConfig])
-> Maybe [FirewallConfig]
-> Const (First [FirewallConfig]) (Maybe [FirewallConfig])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListFirewallConfigs
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListFirewallConfigs -> Maybe ListFirewallConfigs
forall a. a -> Maybe a
Prelude.Just (ListFirewallConfigs -> Maybe ListFirewallConfigs)
-> ListFirewallConfigs -> Maybe ListFirewallConfigs
forall a b. (a -> b) -> a -> b
Prelude.$
ListFirewallConfigs
rq
ListFirewallConfigs
-> (ListFirewallConfigs -> ListFirewallConfigs)
-> ListFirewallConfigs
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListFirewallConfigs -> Identity ListFirewallConfigs
Lens
ListFirewallConfigs ListFirewallConfigs (Maybe Text) (Maybe Text)
listFirewallConfigs_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListFirewallConfigs -> Identity ListFirewallConfigs)
-> Maybe Text -> ListFirewallConfigs -> ListFirewallConfigs
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListFirewallConfigs
ListFirewallConfigsResponse
rs
ListFirewallConfigsResponse
-> Getting (First Text) ListFirewallConfigsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallConfigsResponse
-> Const (First Text) ListFirewallConfigsResponse
Lens' ListFirewallConfigsResponse (Maybe Text)
listFirewallConfigsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallConfigsResponse
-> Const (First Text) ListFirewallConfigsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListFirewallConfigsResponse 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 ListFirewallConfigs where
type
AWSResponse ListFirewallConfigs =
ListFirewallConfigsResponse
request :: ListFirewallConfigs -> Request ListFirewallConfigs
request = Service -> ListFirewallConfigs -> Request ListFirewallConfigs
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListFirewallConfigs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListFirewallConfigs)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListFirewallConfigs))
-> Logger
-> Service
-> Proxy ListFirewallConfigs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListFirewallConfigs)))
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 Text
-> Maybe [FirewallConfig] -> Int -> ListFirewallConfigsResponse
ListFirewallConfigsResponse'
(Maybe Text
-> Maybe [FirewallConfig] -> Int -> ListFirewallConfigsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [FirewallConfig] -> Int -> ListFirewallConfigsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
Either
String
(Maybe [FirewallConfig] -> Int -> ListFirewallConfigsResponse)
-> Either String (Maybe [FirewallConfig])
-> Either String (Int -> ListFirewallConfigsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [FirewallConfig]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FirewallConfigs"
Either String (Maybe (Maybe [FirewallConfig]))
-> Maybe [FirewallConfig] -> Either String (Maybe [FirewallConfig])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FirewallConfig]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListFirewallConfigsResponse)
-> Either String Int -> Either String ListFirewallConfigsResponse
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 ListFirewallConfigs
instance Prelude.NFData ListFirewallConfigs
instance Core.ToHeaders ListFirewallConfigs where
toHeaders :: ListFirewallConfigs -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListFirewallConfigs -> 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
"Route53Resolver.ListFirewallConfigs" ::
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 ListFirewallConfigs where
toJSON :: ListFirewallConfigs -> Value
toJSON ListFirewallConfigs' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListFirewallConfigs' :: ListFirewallConfigs -> Maybe Natural
$sel:nextToken:ListFirewallConfigs' :: ListFirewallConfigs -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListFirewallConfigs where
toPath :: ListFirewallConfigs -> ByteString
toPath = ByteString -> ListFirewallConfigs -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListFirewallConfigs where
toQuery :: ListFirewallConfigs -> QueryString
toQuery = QueryString -> ListFirewallConfigs -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListFirewallConfigsResponse = ListFirewallConfigsResponse'
{
ListFirewallConfigsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFirewallConfigsResponse -> Maybe [FirewallConfig]
firewallConfigs :: Prelude.Maybe [FirewallConfig],
ListFirewallConfigsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListFirewallConfigsResponse -> ListFirewallConfigsResponse -> Bool
(ListFirewallConfigsResponse
-> ListFirewallConfigsResponse -> Bool)
-> (ListFirewallConfigsResponse
-> ListFirewallConfigsResponse -> Bool)
-> Eq ListFirewallConfigsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFirewallConfigsResponse -> ListFirewallConfigsResponse -> Bool
$c/= :: ListFirewallConfigsResponse -> ListFirewallConfigsResponse -> Bool
== :: ListFirewallConfigsResponse -> ListFirewallConfigsResponse -> Bool
$c== :: ListFirewallConfigsResponse -> ListFirewallConfigsResponse -> Bool
Prelude.Eq, ReadPrec [ListFirewallConfigsResponse]
ReadPrec ListFirewallConfigsResponse
Int -> ReadS ListFirewallConfigsResponse
ReadS [ListFirewallConfigsResponse]
(Int -> ReadS ListFirewallConfigsResponse)
-> ReadS [ListFirewallConfigsResponse]
-> ReadPrec ListFirewallConfigsResponse
-> ReadPrec [ListFirewallConfigsResponse]
-> Read ListFirewallConfigsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFirewallConfigsResponse]
$creadListPrec :: ReadPrec [ListFirewallConfigsResponse]
readPrec :: ReadPrec ListFirewallConfigsResponse
$creadPrec :: ReadPrec ListFirewallConfigsResponse
readList :: ReadS [ListFirewallConfigsResponse]
$creadList :: ReadS [ListFirewallConfigsResponse]
readsPrec :: Int -> ReadS ListFirewallConfigsResponse
$creadsPrec :: Int -> ReadS ListFirewallConfigsResponse
Prelude.Read, Int -> ListFirewallConfigsResponse -> ShowS
[ListFirewallConfigsResponse] -> ShowS
ListFirewallConfigsResponse -> String
(Int -> ListFirewallConfigsResponse -> ShowS)
-> (ListFirewallConfigsResponse -> String)
-> ([ListFirewallConfigsResponse] -> ShowS)
-> Show ListFirewallConfigsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFirewallConfigsResponse] -> ShowS
$cshowList :: [ListFirewallConfigsResponse] -> ShowS
show :: ListFirewallConfigsResponse -> String
$cshow :: ListFirewallConfigsResponse -> String
showsPrec :: Int -> ListFirewallConfigsResponse -> ShowS
$cshowsPrec :: Int -> ListFirewallConfigsResponse -> ShowS
Prelude.Show, (forall x.
ListFirewallConfigsResponse -> Rep ListFirewallConfigsResponse x)
-> (forall x.
Rep ListFirewallConfigsResponse x -> ListFirewallConfigsResponse)
-> Generic ListFirewallConfigsResponse
forall x.
Rep ListFirewallConfigsResponse x -> ListFirewallConfigsResponse
forall x.
ListFirewallConfigsResponse -> Rep ListFirewallConfigsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFirewallConfigsResponse x -> ListFirewallConfigsResponse
$cfrom :: forall x.
ListFirewallConfigsResponse -> Rep ListFirewallConfigsResponse x
Prelude.Generic)
newListFirewallConfigsResponse ::
Prelude.Int ->
ListFirewallConfigsResponse
newListFirewallConfigsResponse :: Int -> ListFirewallConfigsResponse
newListFirewallConfigsResponse Int
pHttpStatus_ =
ListFirewallConfigsResponse' :: Maybe Text
-> Maybe [FirewallConfig] -> Int -> ListFirewallConfigsResponse
ListFirewallConfigsResponse'
{ $sel:nextToken:ListFirewallConfigsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:firewallConfigs:ListFirewallConfigsResponse' :: Maybe [FirewallConfig]
firewallConfigs = Maybe [FirewallConfig]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListFirewallConfigsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listFirewallConfigsResponse_nextToken :: Lens.Lens' ListFirewallConfigsResponse (Prelude.Maybe Prelude.Text)
listFirewallConfigsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFirewallConfigsResponse -> f ListFirewallConfigsResponse
listFirewallConfigsResponse_nextToken = (ListFirewallConfigsResponse -> Maybe Text)
-> (ListFirewallConfigsResponse
-> Maybe Text -> ListFirewallConfigsResponse)
-> Lens' ListFirewallConfigsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallConfigsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFirewallConfigsResponse' :: ListFirewallConfigsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFirewallConfigsResponse
s@ListFirewallConfigsResponse' {} Maybe Text
a -> ListFirewallConfigsResponse
s {$sel:nextToken:ListFirewallConfigsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFirewallConfigsResponse)
listFirewallConfigsResponse_firewallConfigs :: Lens.Lens' ListFirewallConfigsResponse (Prelude.Maybe [FirewallConfig])
listFirewallConfigsResponse_firewallConfigs :: (Maybe [FirewallConfig] -> f (Maybe [FirewallConfig]))
-> ListFirewallConfigsResponse -> f ListFirewallConfigsResponse
listFirewallConfigsResponse_firewallConfigs = (ListFirewallConfigsResponse -> Maybe [FirewallConfig])
-> (ListFirewallConfigsResponse
-> Maybe [FirewallConfig] -> ListFirewallConfigsResponse)
-> Lens' ListFirewallConfigsResponse (Maybe [FirewallConfig])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallConfigsResponse' {Maybe [FirewallConfig]
firewallConfigs :: Maybe [FirewallConfig]
$sel:firewallConfigs:ListFirewallConfigsResponse' :: ListFirewallConfigsResponse -> Maybe [FirewallConfig]
firewallConfigs} -> Maybe [FirewallConfig]
firewallConfigs) (\s :: ListFirewallConfigsResponse
s@ListFirewallConfigsResponse' {} Maybe [FirewallConfig]
a -> ListFirewallConfigsResponse
s {$sel:firewallConfigs:ListFirewallConfigsResponse' :: Maybe [FirewallConfig]
firewallConfigs = Maybe [FirewallConfig]
a} :: ListFirewallConfigsResponse) ((Maybe [FirewallConfig] -> f (Maybe [FirewallConfig]))
-> ListFirewallConfigsResponse -> f ListFirewallConfigsResponse)
-> ((Maybe [FirewallConfig] -> f (Maybe [FirewallConfig]))
-> Maybe [FirewallConfig] -> f (Maybe [FirewallConfig]))
-> (Maybe [FirewallConfig] -> f (Maybe [FirewallConfig]))
-> ListFirewallConfigsResponse
-> f ListFirewallConfigsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FirewallConfig] [FirewallConfig] [FirewallConfig] [FirewallConfig]
-> Iso
(Maybe [FirewallConfig])
(Maybe [FirewallConfig])
(Maybe [FirewallConfig])
(Maybe [FirewallConfig])
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
[FirewallConfig] [FirewallConfig] [FirewallConfig] [FirewallConfig]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listFirewallConfigsResponse_httpStatus :: Lens.Lens' ListFirewallConfigsResponse Prelude.Int
listFirewallConfigsResponse_httpStatus :: (Int -> f Int)
-> ListFirewallConfigsResponse -> f ListFirewallConfigsResponse
listFirewallConfigsResponse_httpStatus = (ListFirewallConfigsResponse -> Int)
-> (ListFirewallConfigsResponse
-> Int -> ListFirewallConfigsResponse)
-> Lens
ListFirewallConfigsResponse ListFirewallConfigsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallConfigsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListFirewallConfigsResponse' :: ListFirewallConfigsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListFirewallConfigsResponse
s@ListFirewallConfigsResponse' {} Int
a -> ListFirewallConfigsResponse
s {$sel:httpStatus:ListFirewallConfigsResponse' :: Int
httpStatus = Int
a} :: ListFirewallConfigsResponse)
instance Prelude.NFData ListFirewallConfigsResponse