{-# 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.SES.ListReceiptRuleSets
(
ListReceiptRuleSets (..),
newListReceiptRuleSets,
listReceiptRuleSets_nextToken,
ListReceiptRuleSetsResponse (..),
newListReceiptRuleSetsResponse,
listReceiptRuleSetsResponse_ruleSets,
listReceiptRuleSetsResponse_nextToken,
listReceiptRuleSetsResponse_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.SES.Types
data ListReceiptRuleSets = ListReceiptRuleSets'
{
ListReceiptRuleSets -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (ListReceiptRuleSets -> ListReceiptRuleSets -> Bool
(ListReceiptRuleSets -> ListReceiptRuleSets -> Bool)
-> (ListReceiptRuleSets -> ListReceiptRuleSets -> Bool)
-> Eq ListReceiptRuleSets
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReceiptRuleSets -> ListReceiptRuleSets -> Bool
$c/= :: ListReceiptRuleSets -> ListReceiptRuleSets -> Bool
== :: ListReceiptRuleSets -> ListReceiptRuleSets -> Bool
$c== :: ListReceiptRuleSets -> ListReceiptRuleSets -> Bool
Prelude.Eq, ReadPrec [ListReceiptRuleSets]
ReadPrec ListReceiptRuleSets
Int -> ReadS ListReceiptRuleSets
ReadS [ListReceiptRuleSets]
(Int -> ReadS ListReceiptRuleSets)
-> ReadS [ListReceiptRuleSets]
-> ReadPrec ListReceiptRuleSets
-> ReadPrec [ListReceiptRuleSets]
-> Read ListReceiptRuleSets
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReceiptRuleSets]
$creadListPrec :: ReadPrec [ListReceiptRuleSets]
readPrec :: ReadPrec ListReceiptRuleSets
$creadPrec :: ReadPrec ListReceiptRuleSets
readList :: ReadS [ListReceiptRuleSets]
$creadList :: ReadS [ListReceiptRuleSets]
readsPrec :: Int -> ReadS ListReceiptRuleSets
$creadsPrec :: Int -> ReadS ListReceiptRuleSets
Prelude.Read, Int -> ListReceiptRuleSets -> ShowS
[ListReceiptRuleSets] -> ShowS
ListReceiptRuleSets -> String
(Int -> ListReceiptRuleSets -> ShowS)
-> (ListReceiptRuleSets -> String)
-> ([ListReceiptRuleSets] -> ShowS)
-> Show ListReceiptRuleSets
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReceiptRuleSets] -> ShowS
$cshowList :: [ListReceiptRuleSets] -> ShowS
show :: ListReceiptRuleSets -> String
$cshow :: ListReceiptRuleSets -> String
showsPrec :: Int -> ListReceiptRuleSets -> ShowS
$cshowsPrec :: Int -> ListReceiptRuleSets -> ShowS
Prelude.Show, (forall x. ListReceiptRuleSets -> Rep ListReceiptRuleSets x)
-> (forall x. Rep ListReceiptRuleSets x -> ListReceiptRuleSets)
-> Generic ListReceiptRuleSets
forall x. Rep ListReceiptRuleSets x -> ListReceiptRuleSets
forall x. ListReceiptRuleSets -> Rep ListReceiptRuleSets x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListReceiptRuleSets x -> ListReceiptRuleSets
$cfrom :: forall x. ListReceiptRuleSets -> Rep ListReceiptRuleSets x
Prelude.Generic)
newListReceiptRuleSets ::
ListReceiptRuleSets
newListReceiptRuleSets :: ListReceiptRuleSets
newListReceiptRuleSets =
ListReceiptRuleSets' :: Maybe Text -> ListReceiptRuleSets
ListReceiptRuleSets' {$sel:nextToken:ListReceiptRuleSets' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing}
listReceiptRuleSets_nextToken :: Lens.Lens' ListReceiptRuleSets (Prelude.Maybe Prelude.Text)
listReceiptRuleSets_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListReceiptRuleSets -> f ListReceiptRuleSets
listReceiptRuleSets_nextToken = (ListReceiptRuleSets -> Maybe Text)
-> (ListReceiptRuleSets -> Maybe Text -> ListReceiptRuleSets)
-> Lens
ListReceiptRuleSets ListReceiptRuleSets (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceiptRuleSets' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReceiptRuleSets' :: ListReceiptRuleSets -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReceiptRuleSets
s@ListReceiptRuleSets' {} Maybe Text
a -> ListReceiptRuleSets
s {$sel:nextToken:ListReceiptRuleSets' :: Maybe Text
nextToken = Maybe Text
a} :: ListReceiptRuleSets)
instance Core.AWSPager ListReceiptRuleSets where
page :: ListReceiptRuleSets
-> AWSResponse ListReceiptRuleSets -> Maybe ListReceiptRuleSets
page ListReceiptRuleSets
rq AWSResponse ListReceiptRuleSets
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListReceiptRuleSets
ListReceiptRuleSetsResponse
rs
ListReceiptRuleSetsResponse
-> Getting (First Text) ListReceiptRuleSetsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListReceiptRuleSetsResponse
-> Const (First Text) ListReceiptRuleSetsResponse
Lens' ListReceiptRuleSetsResponse (Maybe Text)
listReceiptRuleSetsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListReceiptRuleSetsResponse
-> Const (First Text) ListReceiptRuleSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListReceiptRuleSetsResponse 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 ListReceiptRuleSets
forall a. Maybe a
Prelude.Nothing
| Maybe [ReceiptRuleSetMetadata] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListReceiptRuleSets
ListReceiptRuleSetsResponse
rs
ListReceiptRuleSetsResponse
-> Getting
(First [ReceiptRuleSetMetadata])
ListReceiptRuleSetsResponse
[ReceiptRuleSetMetadata]
-> Maybe [ReceiptRuleSetMetadata]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ReceiptRuleSetMetadata]
-> Const
(First [ReceiptRuleSetMetadata]) (Maybe [ReceiptRuleSetMetadata]))
-> ListReceiptRuleSetsResponse
-> Const
(First [ReceiptRuleSetMetadata]) ListReceiptRuleSetsResponse
Lens' ListReceiptRuleSetsResponse (Maybe [ReceiptRuleSetMetadata])
listReceiptRuleSetsResponse_ruleSets
((Maybe [ReceiptRuleSetMetadata]
-> Const
(First [ReceiptRuleSetMetadata]) (Maybe [ReceiptRuleSetMetadata]))
-> ListReceiptRuleSetsResponse
-> Const
(First [ReceiptRuleSetMetadata]) ListReceiptRuleSetsResponse)
-> (([ReceiptRuleSetMetadata]
-> Const (First [ReceiptRuleSetMetadata]) [ReceiptRuleSetMetadata])
-> Maybe [ReceiptRuleSetMetadata]
-> Const
(First [ReceiptRuleSetMetadata]) (Maybe [ReceiptRuleSetMetadata]))
-> Getting
(First [ReceiptRuleSetMetadata])
ListReceiptRuleSetsResponse
[ReceiptRuleSetMetadata]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ReceiptRuleSetMetadata]
-> Const (First [ReceiptRuleSetMetadata]) [ReceiptRuleSetMetadata])
-> Maybe [ReceiptRuleSetMetadata]
-> Const
(First [ReceiptRuleSetMetadata]) (Maybe [ReceiptRuleSetMetadata])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListReceiptRuleSets
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListReceiptRuleSets -> Maybe ListReceiptRuleSets
forall a. a -> Maybe a
Prelude.Just (ListReceiptRuleSets -> Maybe ListReceiptRuleSets)
-> ListReceiptRuleSets -> Maybe ListReceiptRuleSets
forall a b. (a -> b) -> a -> b
Prelude.$
ListReceiptRuleSets
rq
ListReceiptRuleSets
-> (ListReceiptRuleSets -> ListReceiptRuleSets)
-> ListReceiptRuleSets
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListReceiptRuleSets -> Identity ListReceiptRuleSets
Lens
ListReceiptRuleSets ListReceiptRuleSets (Maybe Text) (Maybe Text)
listReceiptRuleSets_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListReceiptRuleSets -> Identity ListReceiptRuleSets)
-> Maybe Text -> ListReceiptRuleSets -> ListReceiptRuleSets
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListReceiptRuleSets
ListReceiptRuleSetsResponse
rs
ListReceiptRuleSetsResponse
-> Getting (First Text) ListReceiptRuleSetsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListReceiptRuleSetsResponse
-> Const (First Text) ListReceiptRuleSetsResponse
Lens' ListReceiptRuleSetsResponse (Maybe Text)
listReceiptRuleSetsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListReceiptRuleSetsResponse
-> Const (First Text) ListReceiptRuleSetsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListReceiptRuleSetsResponse 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 ListReceiptRuleSets where
type
AWSResponse ListReceiptRuleSets =
ListReceiptRuleSetsResponse
request :: ListReceiptRuleSets -> Request ListReceiptRuleSets
request = Service -> ListReceiptRuleSets -> Request ListReceiptRuleSets
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ListReceiptRuleSets
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListReceiptRuleSets)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListReceiptRuleSets))
-> Logger
-> Service
-> Proxy ListReceiptRuleSets
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListReceiptRuleSets)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
-> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
Text
"ListReceiptRuleSetsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe [ReceiptRuleSetMetadata]
-> Maybe Text -> Int -> ListReceiptRuleSetsResponse
ListReceiptRuleSetsResponse'
(Maybe [ReceiptRuleSetMetadata]
-> Maybe Text -> Int -> ListReceiptRuleSetsResponse)
-> Either String (Maybe [ReceiptRuleSetMetadata])
-> Either String (Maybe Text -> Int -> ListReceiptRuleSetsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( [Node]
x [Node] -> Text -> Either String (Maybe [Node])
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"RuleSets" Either String (Maybe [Node]) -> [Node] -> Either String [Node]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [Node]
forall a. Monoid a => a
Prelude.mempty
Either String [Node]
-> ([Node] -> Either String (Maybe [ReceiptRuleSetMetadata]))
-> Either String (Maybe [ReceiptRuleSetMetadata])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [ReceiptRuleSetMetadata])
-> [Node] -> Either String (Maybe [ReceiptRuleSetMetadata])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [ReceiptRuleSetMetadata]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Maybe Text -> Int -> ListReceiptRuleSetsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListReceiptRuleSetsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"NextToken")
Either String (Int -> ListReceiptRuleSetsResponse)
-> Either String Int -> Either String ListReceiptRuleSetsResponse
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 ListReceiptRuleSets
instance Prelude.NFData ListReceiptRuleSets
instance Core.ToHeaders ListReceiptRuleSets where
toHeaders :: ListReceiptRuleSets -> ResponseHeaders
toHeaders = ResponseHeaders -> ListReceiptRuleSets -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListReceiptRuleSets where
toPath :: ListReceiptRuleSets -> ByteString
toPath = ByteString -> ListReceiptRuleSets -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListReceiptRuleSets where
toQuery :: ListReceiptRuleSets -> QueryString
toQuery ListReceiptRuleSets' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReceiptRuleSets' :: ListReceiptRuleSets -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"ListReceiptRuleSets" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-12-01" :: Prelude.ByteString),
ByteString
"NextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken
]
data ListReceiptRuleSetsResponse = ListReceiptRuleSetsResponse'
{
ListReceiptRuleSetsResponse -> Maybe [ReceiptRuleSetMetadata]
ruleSets :: Prelude.Maybe [ReceiptRuleSetMetadata],
ListReceiptRuleSetsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListReceiptRuleSetsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListReceiptRuleSetsResponse -> ListReceiptRuleSetsResponse -> Bool
(ListReceiptRuleSetsResponse
-> ListReceiptRuleSetsResponse -> Bool)
-> (ListReceiptRuleSetsResponse
-> ListReceiptRuleSetsResponse -> Bool)
-> Eq ListReceiptRuleSetsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListReceiptRuleSetsResponse -> ListReceiptRuleSetsResponse -> Bool
$c/= :: ListReceiptRuleSetsResponse -> ListReceiptRuleSetsResponse -> Bool
== :: ListReceiptRuleSetsResponse -> ListReceiptRuleSetsResponse -> Bool
$c== :: ListReceiptRuleSetsResponse -> ListReceiptRuleSetsResponse -> Bool
Prelude.Eq, ReadPrec [ListReceiptRuleSetsResponse]
ReadPrec ListReceiptRuleSetsResponse
Int -> ReadS ListReceiptRuleSetsResponse
ReadS [ListReceiptRuleSetsResponse]
(Int -> ReadS ListReceiptRuleSetsResponse)
-> ReadS [ListReceiptRuleSetsResponse]
-> ReadPrec ListReceiptRuleSetsResponse
-> ReadPrec [ListReceiptRuleSetsResponse]
-> Read ListReceiptRuleSetsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListReceiptRuleSetsResponse]
$creadListPrec :: ReadPrec [ListReceiptRuleSetsResponse]
readPrec :: ReadPrec ListReceiptRuleSetsResponse
$creadPrec :: ReadPrec ListReceiptRuleSetsResponse
readList :: ReadS [ListReceiptRuleSetsResponse]
$creadList :: ReadS [ListReceiptRuleSetsResponse]
readsPrec :: Int -> ReadS ListReceiptRuleSetsResponse
$creadsPrec :: Int -> ReadS ListReceiptRuleSetsResponse
Prelude.Read, Int -> ListReceiptRuleSetsResponse -> ShowS
[ListReceiptRuleSetsResponse] -> ShowS
ListReceiptRuleSetsResponse -> String
(Int -> ListReceiptRuleSetsResponse -> ShowS)
-> (ListReceiptRuleSetsResponse -> String)
-> ([ListReceiptRuleSetsResponse] -> ShowS)
-> Show ListReceiptRuleSetsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListReceiptRuleSetsResponse] -> ShowS
$cshowList :: [ListReceiptRuleSetsResponse] -> ShowS
show :: ListReceiptRuleSetsResponse -> String
$cshow :: ListReceiptRuleSetsResponse -> String
showsPrec :: Int -> ListReceiptRuleSetsResponse -> ShowS
$cshowsPrec :: Int -> ListReceiptRuleSetsResponse -> ShowS
Prelude.Show, (forall x.
ListReceiptRuleSetsResponse -> Rep ListReceiptRuleSetsResponse x)
-> (forall x.
Rep ListReceiptRuleSetsResponse x -> ListReceiptRuleSetsResponse)
-> Generic ListReceiptRuleSetsResponse
forall x.
Rep ListReceiptRuleSetsResponse x -> ListReceiptRuleSetsResponse
forall x.
ListReceiptRuleSetsResponse -> Rep ListReceiptRuleSetsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListReceiptRuleSetsResponse x -> ListReceiptRuleSetsResponse
$cfrom :: forall x.
ListReceiptRuleSetsResponse -> Rep ListReceiptRuleSetsResponse x
Prelude.Generic)
newListReceiptRuleSetsResponse ::
Prelude.Int ->
ListReceiptRuleSetsResponse
newListReceiptRuleSetsResponse :: Int -> ListReceiptRuleSetsResponse
newListReceiptRuleSetsResponse Int
pHttpStatus_ =
ListReceiptRuleSetsResponse' :: Maybe [ReceiptRuleSetMetadata]
-> Maybe Text -> Int -> ListReceiptRuleSetsResponse
ListReceiptRuleSetsResponse'
{ $sel:ruleSets:ListReceiptRuleSetsResponse' :: Maybe [ReceiptRuleSetMetadata]
ruleSets =
Maybe [ReceiptRuleSetMetadata]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListReceiptRuleSetsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListReceiptRuleSetsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listReceiptRuleSetsResponse_ruleSets :: Lens.Lens' ListReceiptRuleSetsResponse (Prelude.Maybe [ReceiptRuleSetMetadata])
listReceiptRuleSetsResponse_ruleSets :: (Maybe [ReceiptRuleSetMetadata]
-> f (Maybe [ReceiptRuleSetMetadata]))
-> ListReceiptRuleSetsResponse -> f ListReceiptRuleSetsResponse
listReceiptRuleSetsResponse_ruleSets = (ListReceiptRuleSetsResponse -> Maybe [ReceiptRuleSetMetadata])
-> (ListReceiptRuleSetsResponse
-> Maybe [ReceiptRuleSetMetadata] -> ListReceiptRuleSetsResponse)
-> Lens'
ListReceiptRuleSetsResponse (Maybe [ReceiptRuleSetMetadata])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceiptRuleSetsResponse' {Maybe [ReceiptRuleSetMetadata]
ruleSets :: Maybe [ReceiptRuleSetMetadata]
$sel:ruleSets:ListReceiptRuleSetsResponse' :: ListReceiptRuleSetsResponse -> Maybe [ReceiptRuleSetMetadata]
ruleSets} -> Maybe [ReceiptRuleSetMetadata]
ruleSets) (\s :: ListReceiptRuleSetsResponse
s@ListReceiptRuleSetsResponse' {} Maybe [ReceiptRuleSetMetadata]
a -> ListReceiptRuleSetsResponse
s {$sel:ruleSets:ListReceiptRuleSetsResponse' :: Maybe [ReceiptRuleSetMetadata]
ruleSets = Maybe [ReceiptRuleSetMetadata]
a} :: ListReceiptRuleSetsResponse) ((Maybe [ReceiptRuleSetMetadata]
-> f (Maybe [ReceiptRuleSetMetadata]))
-> ListReceiptRuleSetsResponse -> f ListReceiptRuleSetsResponse)
-> ((Maybe [ReceiptRuleSetMetadata]
-> f (Maybe [ReceiptRuleSetMetadata]))
-> Maybe [ReceiptRuleSetMetadata]
-> f (Maybe [ReceiptRuleSetMetadata]))
-> (Maybe [ReceiptRuleSetMetadata]
-> f (Maybe [ReceiptRuleSetMetadata]))
-> ListReceiptRuleSetsResponse
-> f ListReceiptRuleSetsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ReceiptRuleSetMetadata]
[ReceiptRuleSetMetadata]
[ReceiptRuleSetMetadata]
[ReceiptRuleSetMetadata]
-> Iso
(Maybe [ReceiptRuleSetMetadata])
(Maybe [ReceiptRuleSetMetadata])
(Maybe [ReceiptRuleSetMetadata])
(Maybe [ReceiptRuleSetMetadata])
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
[ReceiptRuleSetMetadata]
[ReceiptRuleSetMetadata]
[ReceiptRuleSetMetadata]
[ReceiptRuleSetMetadata]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listReceiptRuleSetsResponse_nextToken :: Lens.Lens' ListReceiptRuleSetsResponse (Prelude.Maybe Prelude.Text)
listReceiptRuleSetsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListReceiptRuleSetsResponse -> f ListReceiptRuleSetsResponse
listReceiptRuleSetsResponse_nextToken = (ListReceiptRuleSetsResponse -> Maybe Text)
-> (ListReceiptRuleSetsResponse
-> Maybe Text -> ListReceiptRuleSetsResponse)
-> Lens' ListReceiptRuleSetsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceiptRuleSetsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListReceiptRuleSetsResponse' :: ListReceiptRuleSetsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListReceiptRuleSetsResponse
s@ListReceiptRuleSetsResponse' {} Maybe Text
a -> ListReceiptRuleSetsResponse
s {$sel:nextToken:ListReceiptRuleSetsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListReceiptRuleSetsResponse)
listReceiptRuleSetsResponse_httpStatus :: Lens.Lens' ListReceiptRuleSetsResponse Prelude.Int
listReceiptRuleSetsResponse_httpStatus :: (Int -> f Int)
-> ListReceiptRuleSetsResponse -> f ListReceiptRuleSetsResponse
listReceiptRuleSetsResponse_httpStatus = (ListReceiptRuleSetsResponse -> Int)
-> (ListReceiptRuleSetsResponse
-> Int -> ListReceiptRuleSetsResponse)
-> Lens
ListReceiptRuleSetsResponse ListReceiptRuleSetsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListReceiptRuleSetsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListReceiptRuleSetsResponse' :: ListReceiptRuleSetsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListReceiptRuleSetsResponse
s@ListReceiptRuleSetsResponse' {} Int
a -> ListReceiptRuleSetsResponse
s {$sel:httpStatus:ListReceiptRuleSetsResponse' :: Int
httpStatus = Int
a} :: ListReceiptRuleSetsResponse)
instance Prelude.NFData ListReceiptRuleSetsResponse