{-# 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.AMP.ListRuleGroupsNamespaces
(
ListRuleGroupsNamespaces (..),
newListRuleGroupsNamespaces,
listRuleGroupsNamespaces_nextToken,
listRuleGroupsNamespaces_name,
listRuleGroupsNamespaces_maxResults,
listRuleGroupsNamespaces_workspaceId,
ListRuleGroupsNamespacesResponse (..),
newListRuleGroupsNamespacesResponse,
listRuleGroupsNamespacesResponse_nextToken,
listRuleGroupsNamespacesResponse_httpStatus,
listRuleGroupsNamespacesResponse_ruleGroupsNamespaces,
)
where
import Amazonka.AMP.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListRuleGroupsNamespaces = ListRuleGroupsNamespaces'
{
ListRuleGroupsNamespaces -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRuleGroupsNamespaces -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ListRuleGroupsNamespaces -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListRuleGroupsNamespaces -> Text
workspaceId :: Prelude.Text
}
deriving (ListRuleGroupsNamespaces -> ListRuleGroupsNamespaces -> Bool
(ListRuleGroupsNamespaces -> ListRuleGroupsNamespaces -> Bool)
-> (ListRuleGroupsNamespaces -> ListRuleGroupsNamespaces -> Bool)
-> Eq ListRuleGroupsNamespaces
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRuleGroupsNamespaces -> ListRuleGroupsNamespaces -> Bool
$c/= :: ListRuleGroupsNamespaces -> ListRuleGroupsNamespaces -> Bool
== :: ListRuleGroupsNamespaces -> ListRuleGroupsNamespaces -> Bool
$c== :: ListRuleGroupsNamespaces -> ListRuleGroupsNamespaces -> Bool
Prelude.Eq, ReadPrec [ListRuleGroupsNamespaces]
ReadPrec ListRuleGroupsNamespaces
Int -> ReadS ListRuleGroupsNamespaces
ReadS [ListRuleGroupsNamespaces]
(Int -> ReadS ListRuleGroupsNamespaces)
-> ReadS [ListRuleGroupsNamespaces]
-> ReadPrec ListRuleGroupsNamespaces
-> ReadPrec [ListRuleGroupsNamespaces]
-> Read ListRuleGroupsNamespaces
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRuleGroupsNamespaces]
$creadListPrec :: ReadPrec [ListRuleGroupsNamespaces]
readPrec :: ReadPrec ListRuleGroupsNamespaces
$creadPrec :: ReadPrec ListRuleGroupsNamespaces
readList :: ReadS [ListRuleGroupsNamespaces]
$creadList :: ReadS [ListRuleGroupsNamespaces]
readsPrec :: Int -> ReadS ListRuleGroupsNamespaces
$creadsPrec :: Int -> ReadS ListRuleGroupsNamespaces
Prelude.Read, Int -> ListRuleGroupsNamespaces -> ShowS
[ListRuleGroupsNamespaces] -> ShowS
ListRuleGroupsNamespaces -> String
(Int -> ListRuleGroupsNamespaces -> ShowS)
-> (ListRuleGroupsNamespaces -> String)
-> ([ListRuleGroupsNamespaces] -> ShowS)
-> Show ListRuleGroupsNamespaces
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRuleGroupsNamespaces] -> ShowS
$cshowList :: [ListRuleGroupsNamespaces] -> ShowS
show :: ListRuleGroupsNamespaces -> String
$cshow :: ListRuleGroupsNamespaces -> String
showsPrec :: Int -> ListRuleGroupsNamespaces -> ShowS
$cshowsPrec :: Int -> ListRuleGroupsNamespaces -> ShowS
Prelude.Show, (forall x.
ListRuleGroupsNamespaces -> Rep ListRuleGroupsNamespaces x)
-> (forall x.
Rep ListRuleGroupsNamespaces x -> ListRuleGroupsNamespaces)
-> Generic ListRuleGroupsNamespaces
forall x.
Rep ListRuleGroupsNamespaces x -> ListRuleGroupsNamespaces
forall x.
ListRuleGroupsNamespaces -> Rep ListRuleGroupsNamespaces x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRuleGroupsNamespaces x -> ListRuleGroupsNamespaces
$cfrom :: forall x.
ListRuleGroupsNamespaces -> Rep ListRuleGroupsNamespaces x
Prelude.Generic)
newListRuleGroupsNamespaces ::
Prelude.Text ->
ListRuleGroupsNamespaces
newListRuleGroupsNamespaces :: Text -> ListRuleGroupsNamespaces
newListRuleGroupsNamespaces Text
pWorkspaceId_ =
ListRuleGroupsNamespaces' :: Maybe Text
-> Maybe Text -> Maybe Natural -> Text -> ListRuleGroupsNamespaces
ListRuleGroupsNamespaces'
{ $sel:nextToken:ListRuleGroupsNamespaces' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:ListRuleGroupsNamespaces' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListRuleGroupsNamespaces' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:workspaceId:ListRuleGroupsNamespaces' :: Text
workspaceId = Text
pWorkspaceId_
}
listRuleGroupsNamespaces_nextToken :: Lens.Lens' ListRuleGroupsNamespaces (Prelude.Maybe Prelude.Text)
listRuleGroupsNamespaces_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRuleGroupsNamespaces -> f ListRuleGroupsNamespaces
listRuleGroupsNamespaces_nextToken = (ListRuleGroupsNamespaces -> Maybe Text)
-> (ListRuleGroupsNamespaces
-> Maybe Text -> ListRuleGroupsNamespaces)
-> Lens
ListRuleGroupsNamespaces
ListRuleGroupsNamespaces
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRuleGroupsNamespaces' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRuleGroupsNamespaces
s@ListRuleGroupsNamespaces' {} Maybe Text
a -> ListRuleGroupsNamespaces
s {$sel:nextToken:ListRuleGroupsNamespaces' :: Maybe Text
nextToken = Maybe Text
a} :: ListRuleGroupsNamespaces)
listRuleGroupsNamespaces_name :: Lens.Lens' ListRuleGroupsNamespaces (Prelude.Maybe Prelude.Text)
listRuleGroupsNamespaces_name :: (Maybe Text -> f (Maybe Text))
-> ListRuleGroupsNamespaces -> f ListRuleGroupsNamespaces
listRuleGroupsNamespaces_name = (ListRuleGroupsNamespaces -> Maybe Text)
-> (ListRuleGroupsNamespaces
-> Maybe Text -> ListRuleGroupsNamespaces)
-> Lens
ListRuleGroupsNamespaces
ListRuleGroupsNamespaces
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRuleGroupsNamespaces' {Maybe Text
name :: Maybe Text
$sel:name:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Text
name} -> Maybe Text
name) (\s :: ListRuleGroupsNamespaces
s@ListRuleGroupsNamespaces' {} Maybe Text
a -> ListRuleGroupsNamespaces
s {$sel:name:ListRuleGroupsNamespaces' :: Maybe Text
name = Maybe Text
a} :: ListRuleGroupsNamespaces)
listRuleGroupsNamespaces_maxResults :: Lens.Lens' ListRuleGroupsNamespaces (Prelude.Maybe Prelude.Natural)
listRuleGroupsNamespaces_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListRuleGroupsNamespaces -> f ListRuleGroupsNamespaces
listRuleGroupsNamespaces_maxResults = (ListRuleGroupsNamespaces -> Maybe Natural)
-> (ListRuleGroupsNamespaces
-> Maybe Natural -> ListRuleGroupsNamespaces)
-> Lens
ListRuleGroupsNamespaces
ListRuleGroupsNamespaces
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRuleGroupsNamespaces' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListRuleGroupsNamespaces
s@ListRuleGroupsNamespaces' {} Maybe Natural
a -> ListRuleGroupsNamespaces
s {$sel:maxResults:ListRuleGroupsNamespaces' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListRuleGroupsNamespaces)
listRuleGroupsNamespaces_workspaceId :: Lens.Lens' ListRuleGroupsNamespaces Prelude.Text
listRuleGroupsNamespaces_workspaceId :: (Text -> f Text)
-> ListRuleGroupsNamespaces -> f ListRuleGroupsNamespaces
listRuleGroupsNamespaces_workspaceId = (ListRuleGroupsNamespaces -> Text)
-> (ListRuleGroupsNamespaces -> Text -> ListRuleGroupsNamespaces)
-> Lens ListRuleGroupsNamespaces ListRuleGroupsNamespaces Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRuleGroupsNamespaces' {Text
workspaceId :: Text
$sel:workspaceId:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Text
workspaceId} -> Text
workspaceId) (\s :: ListRuleGroupsNamespaces
s@ListRuleGroupsNamespaces' {} Text
a -> ListRuleGroupsNamespaces
s {$sel:workspaceId:ListRuleGroupsNamespaces' :: Text
workspaceId = Text
a} :: ListRuleGroupsNamespaces)
instance Core.AWSPager ListRuleGroupsNamespaces where
page :: ListRuleGroupsNamespaces
-> AWSResponse ListRuleGroupsNamespaces
-> Maybe ListRuleGroupsNamespaces
page ListRuleGroupsNamespaces
rq AWSResponse ListRuleGroupsNamespaces
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRuleGroupsNamespaces
ListRuleGroupsNamespacesResponse
rs
ListRuleGroupsNamespacesResponse
-> Getting (First Text) ListRuleGroupsNamespacesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRuleGroupsNamespacesResponse
-> Const (First Text) ListRuleGroupsNamespacesResponse
Lens' ListRuleGroupsNamespacesResponse (Maybe Text)
listRuleGroupsNamespacesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRuleGroupsNamespacesResponse
-> Const (First Text) ListRuleGroupsNamespacesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRuleGroupsNamespacesResponse 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 ListRuleGroupsNamespaces
forall a. Maybe a
Prelude.Nothing
| [RuleGroupsNamespaceSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListRuleGroupsNamespaces
ListRuleGroupsNamespacesResponse
rs
ListRuleGroupsNamespacesResponse
-> Getting
[RuleGroupsNamespaceSummary]
ListRuleGroupsNamespacesResponse
[RuleGroupsNamespaceSummary]
-> [RuleGroupsNamespaceSummary]
forall s a. s -> Getting a s a -> a
Lens.^. Getting
[RuleGroupsNamespaceSummary]
ListRuleGroupsNamespacesResponse
[RuleGroupsNamespaceSummary]
Lens' ListRuleGroupsNamespacesResponse [RuleGroupsNamespaceSummary]
listRuleGroupsNamespacesResponse_ruleGroupsNamespaces
) =
Maybe ListRuleGroupsNamespaces
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListRuleGroupsNamespaces -> Maybe ListRuleGroupsNamespaces
forall a. a -> Maybe a
Prelude.Just (ListRuleGroupsNamespaces -> Maybe ListRuleGroupsNamespaces)
-> ListRuleGroupsNamespaces -> Maybe ListRuleGroupsNamespaces
forall a b. (a -> b) -> a -> b
Prelude.$
ListRuleGroupsNamespaces
rq
ListRuleGroupsNamespaces
-> (ListRuleGroupsNamespaces -> ListRuleGroupsNamespaces)
-> ListRuleGroupsNamespaces
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListRuleGroupsNamespaces -> Identity ListRuleGroupsNamespaces
Lens
ListRuleGroupsNamespaces
ListRuleGroupsNamespaces
(Maybe Text)
(Maybe Text)
listRuleGroupsNamespaces_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListRuleGroupsNamespaces -> Identity ListRuleGroupsNamespaces)
-> Maybe Text
-> ListRuleGroupsNamespaces
-> ListRuleGroupsNamespaces
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListRuleGroupsNamespaces
ListRuleGroupsNamespacesResponse
rs
ListRuleGroupsNamespacesResponse
-> Getting (First Text) ListRuleGroupsNamespacesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListRuleGroupsNamespacesResponse
-> Const (First Text) ListRuleGroupsNamespacesResponse
Lens' ListRuleGroupsNamespacesResponse (Maybe Text)
listRuleGroupsNamespacesResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListRuleGroupsNamespacesResponse
-> Const (First Text) ListRuleGroupsNamespacesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListRuleGroupsNamespacesResponse 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 ListRuleGroupsNamespaces where
type
AWSResponse ListRuleGroupsNamespaces =
ListRuleGroupsNamespacesResponse
request :: ListRuleGroupsNamespaces -> Request ListRuleGroupsNamespaces
request = Service
-> ListRuleGroupsNamespaces -> Request ListRuleGroupsNamespaces
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListRuleGroupsNamespaces
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListRuleGroupsNamespaces)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListRuleGroupsNamespaces))
-> Logger
-> Service
-> Proxy ListRuleGroupsNamespaces
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListRuleGroupsNamespaces)))
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
-> Int
-> [RuleGroupsNamespaceSummary]
-> ListRuleGroupsNamespacesResponse
ListRuleGroupsNamespacesResponse'
(Maybe Text
-> Int
-> [RuleGroupsNamespaceSummary]
-> ListRuleGroupsNamespacesResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> [RuleGroupsNamespaceSummary]
-> ListRuleGroupsNamespacesResponse)
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
(Int
-> [RuleGroupsNamespaceSummary]
-> ListRuleGroupsNamespacesResponse)
-> Either String Int
-> Either
String
([RuleGroupsNamespaceSummary] -> ListRuleGroupsNamespacesResponse)
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))
Either
String
([RuleGroupsNamespaceSummary] -> ListRuleGroupsNamespacesResponse)
-> Either String [RuleGroupsNamespaceSummary]
-> Either String ListRuleGroupsNamespacesResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe [RuleGroupsNamespaceSummary])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ruleGroupsNamespaces"
Either String (Maybe [RuleGroupsNamespaceSummary])
-> [RuleGroupsNamespaceSummary]
-> Either String [RuleGroupsNamespaceSummary]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [RuleGroupsNamespaceSummary]
forall a. Monoid a => a
Prelude.mempty
)
)
instance Prelude.Hashable ListRuleGroupsNamespaces
instance Prelude.NFData ListRuleGroupsNamespaces
instance Core.ToHeaders ListRuleGroupsNamespaces where
toHeaders :: ListRuleGroupsNamespaces -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListRuleGroupsNamespaces -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath ListRuleGroupsNamespaces where
toPath :: ListRuleGroupsNamespaces -> ByteString
toPath ListRuleGroupsNamespaces' {Maybe Natural
Maybe Text
Text
workspaceId :: Text
maxResults :: Maybe Natural
name :: Maybe Text
nextToken :: Maybe Text
$sel:workspaceId:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Text
$sel:maxResults:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Natural
$sel:name:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Text
$sel:nextToken:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/workspaces/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
workspaceId,
ByteString
"/rulegroupsnamespaces"
]
instance Core.ToQuery ListRuleGroupsNamespaces where
toQuery :: ListRuleGroupsNamespaces -> QueryString
toQuery ListRuleGroupsNamespaces' {Maybe Natural
Maybe Text
Text
workspaceId :: Text
maxResults :: Maybe Natural
name :: Maybe Text
nextToken :: Maybe Text
$sel:workspaceId:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Text
$sel:maxResults:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Natural
$sel:name:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Text
$sel:nextToken:ListRuleGroupsNamespaces' :: ListRuleGroupsNamespaces -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"name" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
name,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListRuleGroupsNamespacesResponse = ListRuleGroupsNamespacesResponse'
{
ListRuleGroupsNamespacesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListRuleGroupsNamespacesResponse -> Int
httpStatus :: Prelude.Int,
ListRuleGroupsNamespacesResponse -> [RuleGroupsNamespaceSummary]
ruleGroupsNamespaces :: [RuleGroupsNamespaceSummary]
}
deriving (ListRuleGroupsNamespacesResponse
-> ListRuleGroupsNamespacesResponse -> Bool
(ListRuleGroupsNamespacesResponse
-> ListRuleGroupsNamespacesResponse -> Bool)
-> (ListRuleGroupsNamespacesResponse
-> ListRuleGroupsNamespacesResponse -> Bool)
-> Eq ListRuleGroupsNamespacesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListRuleGroupsNamespacesResponse
-> ListRuleGroupsNamespacesResponse -> Bool
$c/= :: ListRuleGroupsNamespacesResponse
-> ListRuleGroupsNamespacesResponse -> Bool
== :: ListRuleGroupsNamespacesResponse
-> ListRuleGroupsNamespacesResponse -> Bool
$c== :: ListRuleGroupsNamespacesResponse
-> ListRuleGroupsNamespacesResponse -> Bool
Prelude.Eq, ReadPrec [ListRuleGroupsNamespacesResponse]
ReadPrec ListRuleGroupsNamespacesResponse
Int -> ReadS ListRuleGroupsNamespacesResponse
ReadS [ListRuleGroupsNamespacesResponse]
(Int -> ReadS ListRuleGroupsNamespacesResponse)
-> ReadS [ListRuleGroupsNamespacesResponse]
-> ReadPrec ListRuleGroupsNamespacesResponse
-> ReadPrec [ListRuleGroupsNamespacesResponse]
-> Read ListRuleGroupsNamespacesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListRuleGroupsNamespacesResponse]
$creadListPrec :: ReadPrec [ListRuleGroupsNamespacesResponse]
readPrec :: ReadPrec ListRuleGroupsNamespacesResponse
$creadPrec :: ReadPrec ListRuleGroupsNamespacesResponse
readList :: ReadS [ListRuleGroupsNamespacesResponse]
$creadList :: ReadS [ListRuleGroupsNamespacesResponse]
readsPrec :: Int -> ReadS ListRuleGroupsNamespacesResponse
$creadsPrec :: Int -> ReadS ListRuleGroupsNamespacesResponse
Prelude.Read, Int -> ListRuleGroupsNamespacesResponse -> ShowS
[ListRuleGroupsNamespacesResponse] -> ShowS
ListRuleGroupsNamespacesResponse -> String
(Int -> ListRuleGroupsNamespacesResponse -> ShowS)
-> (ListRuleGroupsNamespacesResponse -> String)
-> ([ListRuleGroupsNamespacesResponse] -> ShowS)
-> Show ListRuleGroupsNamespacesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListRuleGroupsNamespacesResponse] -> ShowS
$cshowList :: [ListRuleGroupsNamespacesResponse] -> ShowS
show :: ListRuleGroupsNamespacesResponse -> String
$cshow :: ListRuleGroupsNamespacesResponse -> String
showsPrec :: Int -> ListRuleGroupsNamespacesResponse -> ShowS
$cshowsPrec :: Int -> ListRuleGroupsNamespacesResponse -> ShowS
Prelude.Show, (forall x.
ListRuleGroupsNamespacesResponse
-> Rep ListRuleGroupsNamespacesResponse x)
-> (forall x.
Rep ListRuleGroupsNamespacesResponse x
-> ListRuleGroupsNamespacesResponse)
-> Generic ListRuleGroupsNamespacesResponse
forall x.
Rep ListRuleGroupsNamespacesResponse x
-> ListRuleGroupsNamespacesResponse
forall x.
ListRuleGroupsNamespacesResponse
-> Rep ListRuleGroupsNamespacesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListRuleGroupsNamespacesResponse x
-> ListRuleGroupsNamespacesResponse
$cfrom :: forall x.
ListRuleGroupsNamespacesResponse
-> Rep ListRuleGroupsNamespacesResponse x
Prelude.Generic)
newListRuleGroupsNamespacesResponse ::
Prelude.Int ->
ListRuleGroupsNamespacesResponse
newListRuleGroupsNamespacesResponse :: Int -> ListRuleGroupsNamespacesResponse
newListRuleGroupsNamespacesResponse Int
pHttpStatus_ =
ListRuleGroupsNamespacesResponse' :: Maybe Text
-> Int
-> [RuleGroupsNamespaceSummary]
-> ListRuleGroupsNamespacesResponse
ListRuleGroupsNamespacesResponse'
{ $sel:nextToken:ListRuleGroupsNamespacesResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListRuleGroupsNamespacesResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:ruleGroupsNamespaces:ListRuleGroupsNamespacesResponse' :: [RuleGroupsNamespaceSummary]
ruleGroupsNamespaces = [RuleGroupsNamespaceSummary]
forall a. Monoid a => a
Prelude.mempty
}
listRuleGroupsNamespacesResponse_nextToken :: Lens.Lens' ListRuleGroupsNamespacesResponse (Prelude.Maybe Prelude.Text)
listRuleGroupsNamespacesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListRuleGroupsNamespacesResponse
-> f ListRuleGroupsNamespacesResponse
listRuleGroupsNamespacesResponse_nextToken = (ListRuleGroupsNamespacesResponse -> Maybe Text)
-> (ListRuleGroupsNamespacesResponse
-> Maybe Text -> ListRuleGroupsNamespacesResponse)
-> Lens' ListRuleGroupsNamespacesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRuleGroupsNamespacesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListRuleGroupsNamespacesResponse' :: ListRuleGroupsNamespacesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListRuleGroupsNamespacesResponse
s@ListRuleGroupsNamespacesResponse' {} Maybe Text
a -> ListRuleGroupsNamespacesResponse
s {$sel:nextToken:ListRuleGroupsNamespacesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListRuleGroupsNamespacesResponse)
listRuleGroupsNamespacesResponse_httpStatus :: Lens.Lens' ListRuleGroupsNamespacesResponse Prelude.Int
listRuleGroupsNamespacesResponse_httpStatus :: (Int -> f Int)
-> ListRuleGroupsNamespacesResponse
-> f ListRuleGroupsNamespacesResponse
listRuleGroupsNamespacesResponse_httpStatus = (ListRuleGroupsNamespacesResponse -> Int)
-> (ListRuleGroupsNamespacesResponse
-> Int -> ListRuleGroupsNamespacesResponse)
-> Lens
ListRuleGroupsNamespacesResponse
ListRuleGroupsNamespacesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRuleGroupsNamespacesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListRuleGroupsNamespacesResponse' :: ListRuleGroupsNamespacesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListRuleGroupsNamespacesResponse
s@ListRuleGroupsNamespacesResponse' {} Int
a -> ListRuleGroupsNamespacesResponse
s {$sel:httpStatus:ListRuleGroupsNamespacesResponse' :: Int
httpStatus = Int
a} :: ListRuleGroupsNamespacesResponse)
listRuleGroupsNamespacesResponse_ruleGroupsNamespaces :: Lens.Lens' ListRuleGroupsNamespacesResponse [RuleGroupsNamespaceSummary]
listRuleGroupsNamespacesResponse_ruleGroupsNamespaces :: ([RuleGroupsNamespaceSummary] -> f [RuleGroupsNamespaceSummary])
-> ListRuleGroupsNamespacesResponse
-> f ListRuleGroupsNamespacesResponse
listRuleGroupsNamespacesResponse_ruleGroupsNamespaces = (ListRuleGroupsNamespacesResponse -> [RuleGroupsNamespaceSummary])
-> (ListRuleGroupsNamespacesResponse
-> [RuleGroupsNamespaceSummary]
-> ListRuleGroupsNamespacesResponse)
-> Lens'
ListRuleGroupsNamespacesResponse [RuleGroupsNamespaceSummary]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListRuleGroupsNamespacesResponse' {[RuleGroupsNamespaceSummary]
ruleGroupsNamespaces :: [RuleGroupsNamespaceSummary]
$sel:ruleGroupsNamespaces:ListRuleGroupsNamespacesResponse' :: ListRuleGroupsNamespacesResponse -> [RuleGroupsNamespaceSummary]
ruleGroupsNamespaces} -> [RuleGroupsNamespaceSummary]
ruleGroupsNamespaces) (\s :: ListRuleGroupsNamespacesResponse
s@ListRuleGroupsNamespacesResponse' {} [RuleGroupsNamespaceSummary]
a -> ListRuleGroupsNamespacesResponse
s {$sel:ruleGroupsNamespaces:ListRuleGroupsNamespacesResponse' :: [RuleGroupsNamespaceSummary]
ruleGroupsNamespaces = [RuleGroupsNamespaceSummary]
a} :: ListRuleGroupsNamespacesResponse) (([RuleGroupsNamespaceSummary] -> f [RuleGroupsNamespaceSummary])
-> ListRuleGroupsNamespacesResponse
-> f ListRuleGroupsNamespacesResponse)
-> (([RuleGroupsNamespaceSummary]
-> f [RuleGroupsNamespaceSummary])
-> [RuleGroupsNamespaceSummary] -> f [RuleGroupsNamespaceSummary])
-> ([RuleGroupsNamespaceSummary] -> f [RuleGroupsNamespaceSummary])
-> ListRuleGroupsNamespacesResponse
-> f ListRuleGroupsNamespacesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RuleGroupsNamespaceSummary] -> f [RuleGroupsNamespaceSummary])
-> [RuleGroupsNamespaceSummary] -> f [RuleGroupsNamespaceSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance
Prelude.NFData
ListRuleGroupsNamespacesResponse