{-# 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.WAF.ListSubscribedRuleGroups
(
ListSubscribedRuleGroups (..),
newListSubscribedRuleGroups,
listSubscribedRuleGroups_nextMarker,
listSubscribedRuleGroups_limit,
ListSubscribedRuleGroupsResponse (..),
newListSubscribedRuleGroupsResponse,
listSubscribedRuleGroupsResponse_ruleGroups,
listSubscribedRuleGroupsResponse_nextMarker,
listSubscribedRuleGroupsResponse_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.WAF.Types
data ListSubscribedRuleGroups = ListSubscribedRuleGroups'
{
ListSubscribedRuleGroups -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListSubscribedRuleGroups -> Maybe Natural
limit :: Prelude.Maybe Prelude.Natural
}
deriving (ListSubscribedRuleGroups -> ListSubscribedRuleGroups -> Bool
(ListSubscribedRuleGroups -> ListSubscribedRuleGroups -> Bool)
-> (ListSubscribedRuleGroups -> ListSubscribedRuleGroups -> Bool)
-> Eq ListSubscribedRuleGroups
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSubscribedRuleGroups -> ListSubscribedRuleGroups -> Bool
$c/= :: ListSubscribedRuleGroups -> ListSubscribedRuleGroups -> Bool
== :: ListSubscribedRuleGroups -> ListSubscribedRuleGroups -> Bool
$c== :: ListSubscribedRuleGroups -> ListSubscribedRuleGroups -> Bool
Prelude.Eq, ReadPrec [ListSubscribedRuleGroups]
ReadPrec ListSubscribedRuleGroups
Int -> ReadS ListSubscribedRuleGroups
ReadS [ListSubscribedRuleGroups]
(Int -> ReadS ListSubscribedRuleGroups)
-> ReadS [ListSubscribedRuleGroups]
-> ReadPrec ListSubscribedRuleGroups
-> ReadPrec [ListSubscribedRuleGroups]
-> Read ListSubscribedRuleGroups
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSubscribedRuleGroups]
$creadListPrec :: ReadPrec [ListSubscribedRuleGroups]
readPrec :: ReadPrec ListSubscribedRuleGroups
$creadPrec :: ReadPrec ListSubscribedRuleGroups
readList :: ReadS [ListSubscribedRuleGroups]
$creadList :: ReadS [ListSubscribedRuleGroups]
readsPrec :: Int -> ReadS ListSubscribedRuleGroups
$creadsPrec :: Int -> ReadS ListSubscribedRuleGroups
Prelude.Read, Int -> ListSubscribedRuleGroups -> ShowS
[ListSubscribedRuleGroups] -> ShowS
ListSubscribedRuleGroups -> String
(Int -> ListSubscribedRuleGroups -> ShowS)
-> (ListSubscribedRuleGroups -> String)
-> ([ListSubscribedRuleGroups] -> ShowS)
-> Show ListSubscribedRuleGroups
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSubscribedRuleGroups] -> ShowS
$cshowList :: [ListSubscribedRuleGroups] -> ShowS
show :: ListSubscribedRuleGroups -> String
$cshow :: ListSubscribedRuleGroups -> String
showsPrec :: Int -> ListSubscribedRuleGroups -> ShowS
$cshowsPrec :: Int -> ListSubscribedRuleGroups -> ShowS
Prelude.Show, (forall x.
ListSubscribedRuleGroups -> Rep ListSubscribedRuleGroups x)
-> (forall x.
Rep ListSubscribedRuleGroups x -> ListSubscribedRuleGroups)
-> Generic ListSubscribedRuleGroups
forall x.
Rep ListSubscribedRuleGroups x -> ListSubscribedRuleGroups
forall x.
ListSubscribedRuleGroups -> Rep ListSubscribedRuleGroups x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSubscribedRuleGroups x -> ListSubscribedRuleGroups
$cfrom :: forall x.
ListSubscribedRuleGroups -> Rep ListSubscribedRuleGroups x
Prelude.Generic)
newListSubscribedRuleGroups ::
ListSubscribedRuleGroups
newListSubscribedRuleGroups :: ListSubscribedRuleGroups
newListSubscribedRuleGroups =
ListSubscribedRuleGroups' :: Maybe Text -> Maybe Natural -> ListSubscribedRuleGroups
ListSubscribedRuleGroups'
{ $sel:nextMarker:ListSubscribedRuleGroups' :: Maybe Text
nextMarker =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:limit:ListSubscribedRuleGroups' :: Maybe Natural
limit = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listSubscribedRuleGroups_nextMarker :: Lens.Lens' ListSubscribedRuleGroups (Prelude.Maybe Prelude.Text)
listSubscribedRuleGroups_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListSubscribedRuleGroups -> f ListSubscribedRuleGroups
listSubscribedRuleGroups_nextMarker = (ListSubscribedRuleGroups -> Maybe Text)
-> (ListSubscribedRuleGroups
-> Maybe Text -> ListSubscribedRuleGroups)
-> Lens
ListSubscribedRuleGroups
ListSubscribedRuleGroups
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscribedRuleGroups' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListSubscribedRuleGroups' :: ListSubscribedRuleGroups -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListSubscribedRuleGroups
s@ListSubscribedRuleGroups' {} Maybe Text
a -> ListSubscribedRuleGroups
s {$sel:nextMarker:ListSubscribedRuleGroups' :: Maybe Text
nextMarker = Maybe Text
a} :: ListSubscribedRuleGroups)
listSubscribedRuleGroups_limit :: Lens.Lens' ListSubscribedRuleGroups (Prelude.Maybe Prelude.Natural)
listSubscribedRuleGroups_limit :: (Maybe Natural -> f (Maybe Natural))
-> ListSubscribedRuleGroups -> f ListSubscribedRuleGroups
listSubscribedRuleGroups_limit = (ListSubscribedRuleGroups -> Maybe Natural)
-> (ListSubscribedRuleGroups
-> Maybe Natural -> ListSubscribedRuleGroups)
-> Lens
ListSubscribedRuleGroups
ListSubscribedRuleGroups
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscribedRuleGroups' {Maybe Natural
limit :: Maybe Natural
$sel:limit:ListSubscribedRuleGroups' :: ListSubscribedRuleGroups -> Maybe Natural
limit} -> Maybe Natural
limit) (\s :: ListSubscribedRuleGroups
s@ListSubscribedRuleGroups' {} Maybe Natural
a -> ListSubscribedRuleGroups
s {$sel:limit:ListSubscribedRuleGroups' :: Maybe Natural
limit = Maybe Natural
a} :: ListSubscribedRuleGroups)
instance Core.AWSPager ListSubscribedRuleGroups where
page :: ListSubscribedRuleGroups
-> AWSResponse ListSubscribedRuleGroups
-> Maybe ListSubscribedRuleGroups
page ListSubscribedRuleGroups
rq AWSResponse ListSubscribedRuleGroups
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSubscribedRuleGroups
ListSubscribedRuleGroupsResponse
rs
ListSubscribedRuleGroupsResponse
-> Getting (First Text) ListSubscribedRuleGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSubscribedRuleGroupsResponse
-> Const (First Text) ListSubscribedRuleGroupsResponse
Lens' ListSubscribedRuleGroupsResponse (Maybe Text)
listSubscribedRuleGroupsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSubscribedRuleGroupsResponse
-> Const (First Text) ListSubscribedRuleGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSubscribedRuleGroupsResponse 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 ListSubscribedRuleGroups
forall a. Maybe a
Prelude.Nothing
| Maybe [SubscribedRuleGroupSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSubscribedRuleGroups
ListSubscribedRuleGroupsResponse
rs
ListSubscribedRuleGroupsResponse
-> Getting
(First [SubscribedRuleGroupSummary])
ListSubscribedRuleGroupsResponse
[SubscribedRuleGroupSummary]
-> Maybe [SubscribedRuleGroupSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SubscribedRuleGroupSummary]
-> Const
(First [SubscribedRuleGroupSummary])
(Maybe [SubscribedRuleGroupSummary]))
-> ListSubscribedRuleGroupsResponse
-> Const
(First [SubscribedRuleGroupSummary])
ListSubscribedRuleGroupsResponse
Lens'
ListSubscribedRuleGroupsResponse
(Maybe [SubscribedRuleGroupSummary])
listSubscribedRuleGroupsResponse_ruleGroups
((Maybe [SubscribedRuleGroupSummary]
-> Const
(First [SubscribedRuleGroupSummary])
(Maybe [SubscribedRuleGroupSummary]))
-> ListSubscribedRuleGroupsResponse
-> Const
(First [SubscribedRuleGroupSummary])
ListSubscribedRuleGroupsResponse)
-> (([SubscribedRuleGroupSummary]
-> Const
(First [SubscribedRuleGroupSummary]) [SubscribedRuleGroupSummary])
-> Maybe [SubscribedRuleGroupSummary]
-> Const
(First [SubscribedRuleGroupSummary])
(Maybe [SubscribedRuleGroupSummary]))
-> Getting
(First [SubscribedRuleGroupSummary])
ListSubscribedRuleGroupsResponse
[SubscribedRuleGroupSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SubscribedRuleGroupSummary]
-> Const
(First [SubscribedRuleGroupSummary]) [SubscribedRuleGroupSummary])
-> Maybe [SubscribedRuleGroupSummary]
-> Const
(First [SubscribedRuleGroupSummary])
(Maybe [SubscribedRuleGroupSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSubscribedRuleGroups
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListSubscribedRuleGroups -> Maybe ListSubscribedRuleGroups
forall a. a -> Maybe a
Prelude.Just (ListSubscribedRuleGroups -> Maybe ListSubscribedRuleGroups)
-> ListSubscribedRuleGroups -> Maybe ListSubscribedRuleGroups
forall a b. (a -> b) -> a -> b
Prelude.$
ListSubscribedRuleGroups
rq
ListSubscribedRuleGroups
-> (ListSubscribedRuleGroups -> ListSubscribedRuleGroups)
-> ListSubscribedRuleGroups
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSubscribedRuleGroups -> Identity ListSubscribedRuleGroups
Lens
ListSubscribedRuleGroups
ListSubscribedRuleGroups
(Maybe Text)
(Maybe Text)
listSubscribedRuleGroups_nextMarker
((Maybe Text -> Identity (Maybe Text))
-> ListSubscribedRuleGroups -> Identity ListSubscribedRuleGroups)
-> Maybe Text
-> ListSubscribedRuleGroups
-> ListSubscribedRuleGroups
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSubscribedRuleGroups
ListSubscribedRuleGroupsResponse
rs
ListSubscribedRuleGroupsResponse
-> Getting (First Text) ListSubscribedRuleGroupsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSubscribedRuleGroupsResponse
-> Const (First Text) ListSubscribedRuleGroupsResponse
Lens' ListSubscribedRuleGroupsResponse (Maybe Text)
listSubscribedRuleGroupsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSubscribedRuleGroupsResponse
-> Const (First Text) ListSubscribedRuleGroupsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSubscribedRuleGroupsResponse 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 ListSubscribedRuleGroups where
type
AWSResponse ListSubscribedRuleGroups =
ListSubscribedRuleGroupsResponse
request :: ListSubscribedRuleGroups -> Request ListSubscribedRuleGroups
request = Service
-> ListSubscribedRuleGroups -> Request ListSubscribedRuleGroups
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListSubscribedRuleGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSubscribedRuleGroups)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListSubscribedRuleGroups))
-> Logger
-> Service
-> Proxy ListSubscribedRuleGroups
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSubscribedRuleGroups)))
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 [SubscribedRuleGroupSummary]
-> Maybe Text -> Int -> ListSubscribedRuleGroupsResponse
ListSubscribedRuleGroupsResponse'
(Maybe [SubscribedRuleGroupSummary]
-> Maybe Text -> Int -> ListSubscribedRuleGroupsResponse)
-> Either String (Maybe [SubscribedRuleGroupSummary])
-> Either
String (Maybe Text -> Int -> ListSubscribedRuleGroupsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [SubscribedRuleGroupSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RuleGroups" Either String (Maybe (Maybe [SubscribedRuleGroupSummary]))
-> Maybe [SubscribedRuleGroupSummary]
-> Either String (Maybe [SubscribedRuleGroupSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SubscribedRuleGroupSummary]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Int -> ListSubscribedRuleGroupsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListSubscribedRuleGroupsResponse)
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
"NextMarker")
Either String (Int -> ListSubscribedRuleGroupsResponse)
-> Either String Int
-> Either String ListSubscribedRuleGroupsResponse
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 ListSubscribedRuleGroups
instance Prelude.NFData ListSubscribedRuleGroups
instance Core.ToHeaders ListSubscribedRuleGroups where
toHeaders :: ListSubscribedRuleGroups -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListSubscribedRuleGroups -> 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
"AWSWAF_20150824.ListSubscribedRuleGroups" ::
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 ListSubscribedRuleGroups where
toJSON :: ListSubscribedRuleGroups -> Value
toJSON ListSubscribedRuleGroups' {Maybe Natural
Maybe Text
limit :: Maybe Natural
nextMarker :: Maybe Text
$sel:limit:ListSubscribedRuleGroups' :: ListSubscribedRuleGroups -> Maybe Natural
$sel:nextMarker:ListSubscribedRuleGroups' :: ListSubscribedRuleGroups -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextMarker" 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
nextMarker,
(Text
"Limit" 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
limit
]
)
instance Core.ToPath ListSubscribedRuleGroups where
toPath :: ListSubscribedRuleGroups -> ByteString
toPath = ByteString -> ListSubscribedRuleGroups -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListSubscribedRuleGroups where
toQuery :: ListSubscribedRuleGroups -> QueryString
toQuery = QueryString -> ListSubscribedRuleGroups -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListSubscribedRuleGroupsResponse = ListSubscribedRuleGroupsResponse'
{
ListSubscribedRuleGroupsResponse
-> Maybe [SubscribedRuleGroupSummary]
ruleGroups :: Prelude.Maybe [SubscribedRuleGroupSummary],
ListSubscribedRuleGroupsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListSubscribedRuleGroupsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSubscribedRuleGroupsResponse
-> ListSubscribedRuleGroupsResponse -> Bool
(ListSubscribedRuleGroupsResponse
-> ListSubscribedRuleGroupsResponse -> Bool)
-> (ListSubscribedRuleGroupsResponse
-> ListSubscribedRuleGroupsResponse -> Bool)
-> Eq ListSubscribedRuleGroupsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSubscribedRuleGroupsResponse
-> ListSubscribedRuleGroupsResponse -> Bool
$c/= :: ListSubscribedRuleGroupsResponse
-> ListSubscribedRuleGroupsResponse -> Bool
== :: ListSubscribedRuleGroupsResponse
-> ListSubscribedRuleGroupsResponse -> Bool
$c== :: ListSubscribedRuleGroupsResponse
-> ListSubscribedRuleGroupsResponse -> Bool
Prelude.Eq, ReadPrec [ListSubscribedRuleGroupsResponse]
ReadPrec ListSubscribedRuleGroupsResponse
Int -> ReadS ListSubscribedRuleGroupsResponse
ReadS [ListSubscribedRuleGroupsResponse]
(Int -> ReadS ListSubscribedRuleGroupsResponse)
-> ReadS [ListSubscribedRuleGroupsResponse]
-> ReadPrec ListSubscribedRuleGroupsResponse
-> ReadPrec [ListSubscribedRuleGroupsResponse]
-> Read ListSubscribedRuleGroupsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSubscribedRuleGroupsResponse]
$creadListPrec :: ReadPrec [ListSubscribedRuleGroupsResponse]
readPrec :: ReadPrec ListSubscribedRuleGroupsResponse
$creadPrec :: ReadPrec ListSubscribedRuleGroupsResponse
readList :: ReadS [ListSubscribedRuleGroupsResponse]
$creadList :: ReadS [ListSubscribedRuleGroupsResponse]
readsPrec :: Int -> ReadS ListSubscribedRuleGroupsResponse
$creadsPrec :: Int -> ReadS ListSubscribedRuleGroupsResponse
Prelude.Read, Int -> ListSubscribedRuleGroupsResponse -> ShowS
[ListSubscribedRuleGroupsResponse] -> ShowS
ListSubscribedRuleGroupsResponse -> String
(Int -> ListSubscribedRuleGroupsResponse -> ShowS)
-> (ListSubscribedRuleGroupsResponse -> String)
-> ([ListSubscribedRuleGroupsResponse] -> ShowS)
-> Show ListSubscribedRuleGroupsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSubscribedRuleGroupsResponse] -> ShowS
$cshowList :: [ListSubscribedRuleGroupsResponse] -> ShowS
show :: ListSubscribedRuleGroupsResponse -> String
$cshow :: ListSubscribedRuleGroupsResponse -> String
showsPrec :: Int -> ListSubscribedRuleGroupsResponse -> ShowS
$cshowsPrec :: Int -> ListSubscribedRuleGroupsResponse -> ShowS
Prelude.Show, (forall x.
ListSubscribedRuleGroupsResponse
-> Rep ListSubscribedRuleGroupsResponse x)
-> (forall x.
Rep ListSubscribedRuleGroupsResponse x
-> ListSubscribedRuleGroupsResponse)
-> Generic ListSubscribedRuleGroupsResponse
forall x.
Rep ListSubscribedRuleGroupsResponse x
-> ListSubscribedRuleGroupsResponse
forall x.
ListSubscribedRuleGroupsResponse
-> Rep ListSubscribedRuleGroupsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSubscribedRuleGroupsResponse x
-> ListSubscribedRuleGroupsResponse
$cfrom :: forall x.
ListSubscribedRuleGroupsResponse
-> Rep ListSubscribedRuleGroupsResponse x
Prelude.Generic)
newListSubscribedRuleGroupsResponse ::
Prelude.Int ->
ListSubscribedRuleGroupsResponse
newListSubscribedRuleGroupsResponse :: Int -> ListSubscribedRuleGroupsResponse
newListSubscribedRuleGroupsResponse Int
pHttpStatus_ =
ListSubscribedRuleGroupsResponse' :: Maybe [SubscribedRuleGroupSummary]
-> Maybe Text -> Int -> ListSubscribedRuleGroupsResponse
ListSubscribedRuleGroupsResponse'
{ $sel:ruleGroups:ListSubscribedRuleGroupsResponse' :: Maybe [SubscribedRuleGroupSummary]
ruleGroups =
Maybe [SubscribedRuleGroupSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:ListSubscribedRuleGroupsResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSubscribedRuleGroupsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSubscribedRuleGroupsResponse_ruleGroups :: Lens.Lens' ListSubscribedRuleGroupsResponse (Prelude.Maybe [SubscribedRuleGroupSummary])
listSubscribedRuleGroupsResponse_ruleGroups :: (Maybe [SubscribedRuleGroupSummary]
-> f (Maybe [SubscribedRuleGroupSummary]))
-> ListSubscribedRuleGroupsResponse
-> f ListSubscribedRuleGroupsResponse
listSubscribedRuleGroupsResponse_ruleGroups = (ListSubscribedRuleGroupsResponse
-> Maybe [SubscribedRuleGroupSummary])
-> (ListSubscribedRuleGroupsResponse
-> Maybe [SubscribedRuleGroupSummary]
-> ListSubscribedRuleGroupsResponse)
-> Lens'
ListSubscribedRuleGroupsResponse
(Maybe [SubscribedRuleGroupSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscribedRuleGroupsResponse' {Maybe [SubscribedRuleGroupSummary]
ruleGroups :: Maybe [SubscribedRuleGroupSummary]
$sel:ruleGroups:ListSubscribedRuleGroupsResponse' :: ListSubscribedRuleGroupsResponse
-> Maybe [SubscribedRuleGroupSummary]
ruleGroups} -> Maybe [SubscribedRuleGroupSummary]
ruleGroups) (\s :: ListSubscribedRuleGroupsResponse
s@ListSubscribedRuleGroupsResponse' {} Maybe [SubscribedRuleGroupSummary]
a -> ListSubscribedRuleGroupsResponse
s {$sel:ruleGroups:ListSubscribedRuleGroupsResponse' :: Maybe [SubscribedRuleGroupSummary]
ruleGroups = Maybe [SubscribedRuleGroupSummary]
a} :: ListSubscribedRuleGroupsResponse) ((Maybe [SubscribedRuleGroupSummary]
-> f (Maybe [SubscribedRuleGroupSummary]))
-> ListSubscribedRuleGroupsResponse
-> f ListSubscribedRuleGroupsResponse)
-> ((Maybe [SubscribedRuleGroupSummary]
-> f (Maybe [SubscribedRuleGroupSummary]))
-> Maybe [SubscribedRuleGroupSummary]
-> f (Maybe [SubscribedRuleGroupSummary]))
-> (Maybe [SubscribedRuleGroupSummary]
-> f (Maybe [SubscribedRuleGroupSummary]))
-> ListSubscribedRuleGroupsResponse
-> f ListSubscribedRuleGroupsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[SubscribedRuleGroupSummary]
[SubscribedRuleGroupSummary]
[SubscribedRuleGroupSummary]
[SubscribedRuleGroupSummary]
-> Iso
(Maybe [SubscribedRuleGroupSummary])
(Maybe [SubscribedRuleGroupSummary])
(Maybe [SubscribedRuleGroupSummary])
(Maybe [SubscribedRuleGroupSummary])
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
[SubscribedRuleGroupSummary]
[SubscribedRuleGroupSummary]
[SubscribedRuleGroupSummary]
[SubscribedRuleGroupSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listSubscribedRuleGroupsResponse_nextMarker :: Lens.Lens' ListSubscribedRuleGroupsResponse (Prelude.Maybe Prelude.Text)
listSubscribedRuleGroupsResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListSubscribedRuleGroupsResponse
-> f ListSubscribedRuleGroupsResponse
listSubscribedRuleGroupsResponse_nextMarker = (ListSubscribedRuleGroupsResponse -> Maybe Text)
-> (ListSubscribedRuleGroupsResponse
-> Maybe Text -> ListSubscribedRuleGroupsResponse)
-> Lens' ListSubscribedRuleGroupsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscribedRuleGroupsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListSubscribedRuleGroupsResponse' :: ListSubscribedRuleGroupsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListSubscribedRuleGroupsResponse
s@ListSubscribedRuleGroupsResponse' {} Maybe Text
a -> ListSubscribedRuleGroupsResponse
s {$sel:nextMarker:ListSubscribedRuleGroupsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListSubscribedRuleGroupsResponse)
listSubscribedRuleGroupsResponse_httpStatus :: Lens.Lens' ListSubscribedRuleGroupsResponse Prelude.Int
listSubscribedRuleGroupsResponse_httpStatus :: (Int -> f Int)
-> ListSubscribedRuleGroupsResponse
-> f ListSubscribedRuleGroupsResponse
listSubscribedRuleGroupsResponse_httpStatus = (ListSubscribedRuleGroupsResponse -> Int)
-> (ListSubscribedRuleGroupsResponse
-> Int -> ListSubscribedRuleGroupsResponse)
-> Lens
ListSubscribedRuleGroupsResponse
ListSubscribedRuleGroupsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscribedRuleGroupsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSubscribedRuleGroupsResponse' :: ListSubscribedRuleGroupsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSubscribedRuleGroupsResponse
s@ListSubscribedRuleGroupsResponse' {} Int
a -> ListSubscribedRuleGroupsResponse
s {$sel:httpStatus:ListSubscribedRuleGroupsResponse' :: Int
httpStatus = Int
a} :: ListSubscribedRuleGroupsResponse)
instance
Prelude.NFData
ListSubscribedRuleGroupsResponse