{-# 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.NetworkFirewall.ListFirewallPolicies
(
ListFirewallPolicies (..),
newListFirewallPolicies,
listFirewallPolicies_nextToken,
listFirewallPolicies_maxResults,
ListFirewallPoliciesResponse (..),
newListFirewallPoliciesResponse,
listFirewallPoliciesResponse_firewallPolicies,
listFirewallPoliciesResponse_nextToken,
listFirewallPoliciesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.NetworkFirewall.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListFirewallPolicies = ListFirewallPolicies'
{
ListFirewallPolicies -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFirewallPolicies -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListFirewallPolicies -> ListFirewallPolicies -> Bool
(ListFirewallPolicies -> ListFirewallPolicies -> Bool)
-> (ListFirewallPolicies -> ListFirewallPolicies -> Bool)
-> Eq ListFirewallPolicies
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFirewallPolicies -> ListFirewallPolicies -> Bool
$c/= :: ListFirewallPolicies -> ListFirewallPolicies -> Bool
== :: ListFirewallPolicies -> ListFirewallPolicies -> Bool
$c== :: ListFirewallPolicies -> ListFirewallPolicies -> Bool
Prelude.Eq, ReadPrec [ListFirewallPolicies]
ReadPrec ListFirewallPolicies
Int -> ReadS ListFirewallPolicies
ReadS [ListFirewallPolicies]
(Int -> ReadS ListFirewallPolicies)
-> ReadS [ListFirewallPolicies]
-> ReadPrec ListFirewallPolicies
-> ReadPrec [ListFirewallPolicies]
-> Read ListFirewallPolicies
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFirewallPolicies]
$creadListPrec :: ReadPrec [ListFirewallPolicies]
readPrec :: ReadPrec ListFirewallPolicies
$creadPrec :: ReadPrec ListFirewallPolicies
readList :: ReadS [ListFirewallPolicies]
$creadList :: ReadS [ListFirewallPolicies]
readsPrec :: Int -> ReadS ListFirewallPolicies
$creadsPrec :: Int -> ReadS ListFirewallPolicies
Prelude.Read, Int -> ListFirewallPolicies -> ShowS
[ListFirewallPolicies] -> ShowS
ListFirewallPolicies -> String
(Int -> ListFirewallPolicies -> ShowS)
-> (ListFirewallPolicies -> String)
-> ([ListFirewallPolicies] -> ShowS)
-> Show ListFirewallPolicies
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFirewallPolicies] -> ShowS
$cshowList :: [ListFirewallPolicies] -> ShowS
show :: ListFirewallPolicies -> String
$cshow :: ListFirewallPolicies -> String
showsPrec :: Int -> ListFirewallPolicies -> ShowS
$cshowsPrec :: Int -> ListFirewallPolicies -> ShowS
Prelude.Show, (forall x. ListFirewallPolicies -> Rep ListFirewallPolicies x)
-> (forall x. Rep ListFirewallPolicies x -> ListFirewallPolicies)
-> Generic ListFirewallPolicies
forall x. Rep ListFirewallPolicies x -> ListFirewallPolicies
forall x. ListFirewallPolicies -> Rep ListFirewallPolicies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListFirewallPolicies x -> ListFirewallPolicies
$cfrom :: forall x. ListFirewallPolicies -> Rep ListFirewallPolicies x
Prelude.Generic)
newListFirewallPolicies ::
ListFirewallPolicies
newListFirewallPolicies :: ListFirewallPolicies
newListFirewallPolicies =
ListFirewallPolicies' :: Maybe Text -> Maybe Natural -> ListFirewallPolicies
ListFirewallPolicies'
{ $sel:nextToken:ListFirewallPolicies' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListFirewallPolicies' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listFirewallPolicies_nextToken :: Lens.Lens' ListFirewallPolicies (Prelude.Maybe Prelude.Text)
listFirewallPolicies_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFirewallPolicies -> f ListFirewallPolicies
listFirewallPolicies_nextToken = (ListFirewallPolicies -> Maybe Text)
-> (ListFirewallPolicies -> Maybe Text -> ListFirewallPolicies)
-> Lens
ListFirewallPolicies ListFirewallPolicies (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallPolicies' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFirewallPolicies' :: ListFirewallPolicies -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFirewallPolicies
s@ListFirewallPolicies' {} Maybe Text
a -> ListFirewallPolicies
s {$sel:nextToken:ListFirewallPolicies' :: Maybe Text
nextToken = Maybe Text
a} :: ListFirewallPolicies)
listFirewallPolicies_maxResults :: Lens.Lens' ListFirewallPolicies (Prelude.Maybe Prelude.Natural)
listFirewallPolicies_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListFirewallPolicies -> f ListFirewallPolicies
listFirewallPolicies_maxResults = (ListFirewallPolicies -> Maybe Natural)
-> (ListFirewallPolicies -> Maybe Natural -> ListFirewallPolicies)
-> Lens
ListFirewallPolicies
ListFirewallPolicies
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallPolicies' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListFirewallPolicies' :: ListFirewallPolicies -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListFirewallPolicies
s@ListFirewallPolicies' {} Maybe Natural
a -> ListFirewallPolicies
s {$sel:maxResults:ListFirewallPolicies' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListFirewallPolicies)
instance Core.AWSPager ListFirewallPolicies where
page :: ListFirewallPolicies
-> AWSResponse ListFirewallPolicies -> Maybe ListFirewallPolicies
page ListFirewallPolicies
rq AWSResponse ListFirewallPolicies
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListFirewallPolicies
ListFirewallPoliciesResponse
rs
ListFirewallPoliciesResponse
-> Getting (First Text) ListFirewallPoliciesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallPoliciesResponse
-> Const (First Text) ListFirewallPoliciesResponse
Lens' ListFirewallPoliciesResponse (Maybe Text)
listFirewallPoliciesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallPoliciesResponse
-> Const (First Text) ListFirewallPoliciesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListFirewallPoliciesResponse 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 ListFirewallPolicies
forall a. Maybe a
Prelude.Nothing
| Maybe [FirewallPolicyMetadata] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListFirewallPolicies
ListFirewallPoliciesResponse
rs
ListFirewallPoliciesResponse
-> Getting
(First [FirewallPolicyMetadata])
ListFirewallPoliciesResponse
[FirewallPolicyMetadata]
-> Maybe [FirewallPolicyMetadata]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [FirewallPolicyMetadata]
-> Const
(First [FirewallPolicyMetadata]) (Maybe [FirewallPolicyMetadata]))
-> ListFirewallPoliciesResponse
-> Const
(First [FirewallPolicyMetadata]) ListFirewallPoliciesResponse
Lens' ListFirewallPoliciesResponse (Maybe [FirewallPolicyMetadata])
listFirewallPoliciesResponse_firewallPolicies
((Maybe [FirewallPolicyMetadata]
-> Const
(First [FirewallPolicyMetadata]) (Maybe [FirewallPolicyMetadata]))
-> ListFirewallPoliciesResponse
-> Const
(First [FirewallPolicyMetadata]) ListFirewallPoliciesResponse)
-> (([FirewallPolicyMetadata]
-> Const (First [FirewallPolicyMetadata]) [FirewallPolicyMetadata])
-> Maybe [FirewallPolicyMetadata]
-> Const
(First [FirewallPolicyMetadata]) (Maybe [FirewallPolicyMetadata]))
-> Getting
(First [FirewallPolicyMetadata])
ListFirewallPoliciesResponse
[FirewallPolicyMetadata]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([FirewallPolicyMetadata]
-> Const (First [FirewallPolicyMetadata]) [FirewallPolicyMetadata])
-> Maybe [FirewallPolicyMetadata]
-> Const
(First [FirewallPolicyMetadata]) (Maybe [FirewallPolicyMetadata])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListFirewallPolicies
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListFirewallPolicies -> Maybe ListFirewallPolicies
forall a. a -> Maybe a
Prelude.Just (ListFirewallPolicies -> Maybe ListFirewallPolicies)
-> ListFirewallPolicies -> Maybe ListFirewallPolicies
forall a b. (a -> b) -> a -> b
Prelude.$
ListFirewallPolicies
rq
ListFirewallPolicies
-> (ListFirewallPolicies -> ListFirewallPolicies)
-> ListFirewallPolicies
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListFirewallPolicies -> Identity ListFirewallPolicies
Lens
ListFirewallPolicies ListFirewallPolicies (Maybe Text) (Maybe Text)
listFirewallPolicies_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListFirewallPolicies -> Identity ListFirewallPolicies)
-> Maybe Text -> ListFirewallPolicies -> ListFirewallPolicies
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListFirewallPolicies
ListFirewallPoliciesResponse
rs
ListFirewallPoliciesResponse
-> Getting (First Text) ListFirewallPoliciesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallPoliciesResponse
-> Const (First Text) ListFirewallPoliciesResponse
Lens' ListFirewallPoliciesResponse (Maybe Text)
listFirewallPoliciesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListFirewallPoliciesResponse
-> Const (First Text) ListFirewallPoliciesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListFirewallPoliciesResponse 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 ListFirewallPolicies where
type
AWSResponse ListFirewallPolicies =
ListFirewallPoliciesResponse
request :: ListFirewallPolicies -> Request ListFirewallPolicies
request = Service -> ListFirewallPolicies -> Request ListFirewallPolicies
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListFirewallPolicies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListFirewallPolicies)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListFirewallPolicies))
-> Logger
-> Service
-> Proxy ListFirewallPolicies
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListFirewallPolicies)))
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 [FirewallPolicyMetadata]
-> Maybe Text -> Int -> ListFirewallPoliciesResponse
ListFirewallPoliciesResponse'
(Maybe [FirewallPolicyMetadata]
-> Maybe Text -> Int -> ListFirewallPoliciesResponse)
-> Either String (Maybe [FirewallPolicyMetadata])
-> Either
String (Maybe Text -> Int -> ListFirewallPoliciesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [FirewallPolicyMetadata]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"FirewallPolicies"
Either String (Maybe (Maybe [FirewallPolicyMetadata]))
-> Maybe [FirewallPolicyMetadata]
-> Either String (Maybe [FirewallPolicyMetadata])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [FirewallPolicyMetadata]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListFirewallPoliciesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListFirewallPoliciesResponse)
forall (f :: * -> *) a b. Applicative f => 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 (Int -> ListFirewallPoliciesResponse)
-> Either String Int -> Either String ListFirewallPoliciesResponse
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 ListFirewallPolicies
instance Prelude.NFData ListFirewallPolicies
instance Core.ToHeaders ListFirewallPolicies where
toHeaders :: ListFirewallPolicies -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListFirewallPolicies -> 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
"NetworkFirewall_20201112.ListFirewallPolicies" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListFirewallPolicies where
toJSON :: ListFirewallPolicies -> Value
toJSON ListFirewallPolicies' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListFirewallPolicies' :: ListFirewallPolicies -> Maybe Natural
$sel:nextToken:ListFirewallPolicies' :: ListFirewallPolicies -> 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 ListFirewallPolicies where
toPath :: ListFirewallPolicies -> ByteString
toPath = ByteString -> ListFirewallPolicies -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListFirewallPolicies where
toQuery :: ListFirewallPolicies -> QueryString
toQuery = QueryString -> ListFirewallPolicies -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListFirewallPoliciesResponse = ListFirewallPoliciesResponse'
{
ListFirewallPoliciesResponse -> Maybe [FirewallPolicyMetadata]
firewallPolicies :: Prelude.Maybe [FirewallPolicyMetadata],
ListFirewallPoliciesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListFirewallPoliciesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListFirewallPoliciesResponse
-> ListFirewallPoliciesResponse -> Bool
(ListFirewallPoliciesResponse
-> ListFirewallPoliciesResponse -> Bool)
-> (ListFirewallPoliciesResponse
-> ListFirewallPoliciesResponse -> Bool)
-> Eq ListFirewallPoliciesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFirewallPoliciesResponse
-> ListFirewallPoliciesResponse -> Bool
$c/= :: ListFirewallPoliciesResponse
-> ListFirewallPoliciesResponse -> Bool
== :: ListFirewallPoliciesResponse
-> ListFirewallPoliciesResponse -> Bool
$c== :: ListFirewallPoliciesResponse
-> ListFirewallPoliciesResponse -> Bool
Prelude.Eq, ReadPrec [ListFirewallPoliciesResponse]
ReadPrec ListFirewallPoliciesResponse
Int -> ReadS ListFirewallPoliciesResponse
ReadS [ListFirewallPoliciesResponse]
(Int -> ReadS ListFirewallPoliciesResponse)
-> ReadS [ListFirewallPoliciesResponse]
-> ReadPrec ListFirewallPoliciesResponse
-> ReadPrec [ListFirewallPoliciesResponse]
-> Read ListFirewallPoliciesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFirewallPoliciesResponse]
$creadListPrec :: ReadPrec [ListFirewallPoliciesResponse]
readPrec :: ReadPrec ListFirewallPoliciesResponse
$creadPrec :: ReadPrec ListFirewallPoliciesResponse
readList :: ReadS [ListFirewallPoliciesResponse]
$creadList :: ReadS [ListFirewallPoliciesResponse]
readsPrec :: Int -> ReadS ListFirewallPoliciesResponse
$creadsPrec :: Int -> ReadS ListFirewallPoliciesResponse
Prelude.Read, Int -> ListFirewallPoliciesResponse -> ShowS
[ListFirewallPoliciesResponse] -> ShowS
ListFirewallPoliciesResponse -> String
(Int -> ListFirewallPoliciesResponse -> ShowS)
-> (ListFirewallPoliciesResponse -> String)
-> ([ListFirewallPoliciesResponse] -> ShowS)
-> Show ListFirewallPoliciesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFirewallPoliciesResponse] -> ShowS
$cshowList :: [ListFirewallPoliciesResponse] -> ShowS
show :: ListFirewallPoliciesResponse -> String
$cshow :: ListFirewallPoliciesResponse -> String
showsPrec :: Int -> ListFirewallPoliciesResponse -> ShowS
$cshowsPrec :: Int -> ListFirewallPoliciesResponse -> ShowS
Prelude.Show, (forall x.
ListFirewallPoliciesResponse -> Rep ListFirewallPoliciesResponse x)
-> (forall x.
Rep ListFirewallPoliciesResponse x -> ListFirewallPoliciesResponse)
-> Generic ListFirewallPoliciesResponse
forall x.
Rep ListFirewallPoliciesResponse x -> ListFirewallPoliciesResponse
forall x.
ListFirewallPoliciesResponse -> Rep ListFirewallPoliciesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFirewallPoliciesResponse x -> ListFirewallPoliciesResponse
$cfrom :: forall x.
ListFirewallPoliciesResponse -> Rep ListFirewallPoliciesResponse x
Prelude.Generic)
newListFirewallPoliciesResponse ::
Prelude.Int ->
ListFirewallPoliciesResponse
newListFirewallPoliciesResponse :: Int -> ListFirewallPoliciesResponse
newListFirewallPoliciesResponse Int
pHttpStatus_ =
ListFirewallPoliciesResponse' :: Maybe [FirewallPolicyMetadata]
-> Maybe Text -> Int -> ListFirewallPoliciesResponse
ListFirewallPoliciesResponse'
{ $sel:firewallPolicies:ListFirewallPoliciesResponse' :: Maybe [FirewallPolicyMetadata]
firewallPolicies =
Maybe [FirewallPolicyMetadata]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListFirewallPoliciesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListFirewallPoliciesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listFirewallPoliciesResponse_firewallPolicies :: Lens.Lens' ListFirewallPoliciesResponse (Prelude.Maybe [FirewallPolicyMetadata])
listFirewallPoliciesResponse_firewallPolicies :: (Maybe [FirewallPolicyMetadata]
-> f (Maybe [FirewallPolicyMetadata]))
-> ListFirewallPoliciesResponse -> f ListFirewallPoliciesResponse
listFirewallPoliciesResponse_firewallPolicies = (ListFirewallPoliciesResponse -> Maybe [FirewallPolicyMetadata])
-> (ListFirewallPoliciesResponse
-> Maybe [FirewallPolicyMetadata] -> ListFirewallPoliciesResponse)
-> Lens'
ListFirewallPoliciesResponse (Maybe [FirewallPolicyMetadata])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallPoliciesResponse' {Maybe [FirewallPolicyMetadata]
firewallPolicies :: Maybe [FirewallPolicyMetadata]
$sel:firewallPolicies:ListFirewallPoliciesResponse' :: ListFirewallPoliciesResponse -> Maybe [FirewallPolicyMetadata]
firewallPolicies} -> Maybe [FirewallPolicyMetadata]
firewallPolicies) (\s :: ListFirewallPoliciesResponse
s@ListFirewallPoliciesResponse' {} Maybe [FirewallPolicyMetadata]
a -> ListFirewallPoliciesResponse
s {$sel:firewallPolicies:ListFirewallPoliciesResponse' :: Maybe [FirewallPolicyMetadata]
firewallPolicies = Maybe [FirewallPolicyMetadata]
a} :: ListFirewallPoliciesResponse) ((Maybe [FirewallPolicyMetadata]
-> f (Maybe [FirewallPolicyMetadata]))
-> ListFirewallPoliciesResponse -> f ListFirewallPoliciesResponse)
-> ((Maybe [FirewallPolicyMetadata]
-> f (Maybe [FirewallPolicyMetadata]))
-> Maybe [FirewallPolicyMetadata]
-> f (Maybe [FirewallPolicyMetadata]))
-> (Maybe [FirewallPolicyMetadata]
-> f (Maybe [FirewallPolicyMetadata]))
-> ListFirewallPoliciesResponse
-> f ListFirewallPoliciesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[FirewallPolicyMetadata]
[FirewallPolicyMetadata]
[FirewallPolicyMetadata]
[FirewallPolicyMetadata]
-> Iso
(Maybe [FirewallPolicyMetadata])
(Maybe [FirewallPolicyMetadata])
(Maybe [FirewallPolicyMetadata])
(Maybe [FirewallPolicyMetadata])
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
[FirewallPolicyMetadata]
[FirewallPolicyMetadata]
[FirewallPolicyMetadata]
[FirewallPolicyMetadata]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listFirewallPoliciesResponse_nextToken :: Lens.Lens' ListFirewallPoliciesResponse (Prelude.Maybe Prelude.Text)
listFirewallPoliciesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFirewallPoliciesResponse -> f ListFirewallPoliciesResponse
listFirewallPoliciesResponse_nextToken = (ListFirewallPoliciesResponse -> Maybe Text)
-> (ListFirewallPoliciesResponse
-> Maybe Text -> ListFirewallPoliciesResponse)
-> Lens' ListFirewallPoliciesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallPoliciesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFirewallPoliciesResponse' :: ListFirewallPoliciesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFirewallPoliciesResponse
s@ListFirewallPoliciesResponse' {} Maybe Text
a -> ListFirewallPoliciesResponse
s {$sel:nextToken:ListFirewallPoliciesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFirewallPoliciesResponse)
listFirewallPoliciesResponse_httpStatus :: Lens.Lens' ListFirewallPoliciesResponse Prelude.Int
listFirewallPoliciesResponse_httpStatus :: (Int -> f Int)
-> ListFirewallPoliciesResponse -> f ListFirewallPoliciesResponse
listFirewallPoliciesResponse_httpStatus = (ListFirewallPoliciesResponse -> Int)
-> (ListFirewallPoliciesResponse
-> Int -> ListFirewallPoliciesResponse)
-> Lens
ListFirewallPoliciesResponse ListFirewallPoliciesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFirewallPoliciesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListFirewallPoliciesResponse' :: ListFirewallPoliciesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListFirewallPoliciesResponse
s@ListFirewallPoliciesResponse' {} Int
a -> ListFirewallPoliciesResponse
s {$sel:httpStatus:ListFirewallPoliciesResponse' :: Int
httpStatus = Int
a} :: ListFirewallPoliciesResponse)
instance Prelude.NFData ListFirewallPoliciesResponse