{-# 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.SNS.ListSubscriptions
(
ListSubscriptions (..),
newListSubscriptions,
listSubscriptions_nextToken,
ListSubscriptionsResponse (..),
newListSubscriptionsResponse,
listSubscriptionsResponse_nextToken,
listSubscriptionsResponse_subscriptions,
listSubscriptionsResponse_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.SNS.Types
data ListSubscriptions = ListSubscriptions'
{
ListSubscriptions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (ListSubscriptions -> ListSubscriptions -> Bool
(ListSubscriptions -> ListSubscriptions -> Bool)
-> (ListSubscriptions -> ListSubscriptions -> Bool)
-> Eq ListSubscriptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSubscriptions -> ListSubscriptions -> Bool
$c/= :: ListSubscriptions -> ListSubscriptions -> Bool
== :: ListSubscriptions -> ListSubscriptions -> Bool
$c== :: ListSubscriptions -> ListSubscriptions -> Bool
Prelude.Eq, ReadPrec [ListSubscriptions]
ReadPrec ListSubscriptions
Int -> ReadS ListSubscriptions
ReadS [ListSubscriptions]
(Int -> ReadS ListSubscriptions)
-> ReadS [ListSubscriptions]
-> ReadPrec ListSubscriptions
-> ReadPrec [ListSubscriptions]
-> Read ListSubscriptions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSubscriptions]
$creadListPrec :: ReadPrec [ListSubscriptions]
readPrec :: ReadPrec ListSubscriptions
$creadPrec :: ReadPrec ListSubscriptions
readList :: ReadS [ListSubscriptions]
$creadList :: ReadS [ListSubscriptions]
readsPrec :: Int -> ReadS ListSubscriptions
$creadsPrec :: Int -> ReadS ListSubscriptions
Prelude.Read, Int -> ListSubscriptions -> ShowS
[ListSubscriptions] -> ShowS
ListSubscriptions -> String
(Int -> ListSubscriptions -> ShowS)
-> (ListSubscriptions -> String)
-> ([ListSubscriptions] -> ShowS)
-> Show ListSubscriptions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSubscriptions] -> ShowS
$cshowList :: [ListSubscriptions] -> ShowS
show :: ListSubscriptions -> String
$cshow :: ListSubscriptions -> String
showsPrec :: Int -> ListSubscriptions -> ShowS
$cshowsPrec :: Int -> ListSubscriptions -> ShowS
Prelude.Show, (forall x. ListSubscriptions -> Rep ListSubscriptions x)
-> (forall x. Rep ListSubscriptions x -> ListSubscriptions)
-> Generic ListSubscriptions
forall x. Rep ListSubscriptions x -> ListSubscriptions
forall x. ListSubscriptions -> Rep ListSubscriptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListSubscriptions x -> ListSubscriptions
$cfrom :: forall x. ListSubscriptions -> Rep ListSubscriptions x
Prelude.Generic)
newListSubscriptions ::
ListSubscriptions
newListSubscriptions :: ListSubscriptions
newListSubscriptions =
ListSubscriptions' :: Maybe Text -> ListSubscriptions
ListSubscriptions' {$sel:nextToken:ListSubscriptions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing}
listSubscriptions_nextToken :: Lens.Lens' ListSubscriptions (Prelude.Maybe Prelude.Text)
listSubscriptions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSubscriptions -> f ListSubscriptions
listSubscriptions_nextToken = (ListSubscriptions -> Maybe Text)
-> (ListSubscriptions -> Maybe Text -> ListSubscriptions)
-> Lens
ListSubscriptions ListSubscriptions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscriptions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSubscriptions' :: ListSubscriptions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSubscriptions
s@ListSubscriptions' {} Maybe Text
a -> ListSubscriptions
s {$sel:nextToken:ListSubscriptions' :: Maybe Text
nextToken = Maybe Text
a} :: ListSubscriptions)
instance Core.AWSPager ListSubscriptions where
page :: ListSubscriptions
-> AWSResponse ListSubscriptions -> Maybe ListSubscriptions
page ListSubscriptions
rq AWSResponse ListSubscriptions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSubscriptions
ListSubscriptionsResponse
rs
ListSubscriptionsResponse
-> Getting (First Text) ListSubscriptionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSubscriptionsResponse
-> Const (First Text) ListSubscriptionsResponse
Lens' ListSubscriptionsResponse (Maybe Text)
listSubscriptionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSubscriptionsResponse
-> Const (First Text) ListSubscriptionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSubscriptionsResponse 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 ListSubscriptions
forall a. Maybe a
Prelude.Nothing
| Maybe [Subscription] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSubscriptions
ListSubscriptionsResponse
rs
ListSubscriptionsResponse
-> Getting
(First [Subscription]) ListSubscriptionsResponse [Subscription]
-> Maybe [Subscription]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Subscription]
-> Const (First [Subscription]) (Maybe [Subscription]))
-> ListSubscriptionsResponse
-> Const (First [Subscription]) ListSubscriptionsResponse
Lens' ListSubscriptionsResponse (Maybe [Subscription])
listSubscriptionsResponse_subscriptions
((Maybe [Subscription]
-> Const (First [Subscription]) (Maybe [Subscription]))
-> ListSubscriptionsResponse
-> Const (First [Subscription]) ListSubscriptionsResponse)
-> (([Subscription] -> Const (First [Subscription]) [Subscription])
-> Maybe [Subscription]
-> Const (First [Subscription]) (Maybe [Subscription]))
-> Getting
(First [Subscription]) ListSubscriptionsResponse [Subscription]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Subscription] -> Const (First [Subscription]) [Subscription])
-> Maybe [Subscription]
-> Const (First [Subscription]) (Maybe [Subscription])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListSubscriptions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListSubscriptions -> Maybe ListSubscriptions
forall a. a -> Maybe a
Prelude.Just (ListSubscriptions -> Maybe ListSubscriptions)
-> ListSubscriptions -> Maybe ListSubscriptions
forall a b. (a -> b) -> a -> b
Prelude.$
ListSubscriptions
rq
ListSubscriptions
-> (ListSubscriptions -> ListSubscriptions) -> ListSubscriptions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListSubscriptions -> Identity ListSubscriptions
Lens ListSubscriptions ListSubscriptions (Maybe Text) (Maybe Text)
listSubscriptions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListSubscriptions -> Identity ListSubscriptions)
-> Maybe Text -> ListSubscriptions -> ListSubscriptions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSubscriptions
ListSubscriptionsResponse
rs
ListSubscriptionsResponse
-> Getting (First Text) ListSubscriptionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListSubscriptionsResponse
-> Const (First Text) ListSubscriptionsResponse
Lens' ListSubscriptionsResponse (Maybe Text)
listSubscriptionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListSubscriptionsResponse
-> Const (First Text) ListSubscriptionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListSubscriptionsResponse 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 ListSubscriptions where
type
AWSResponse ListSubscriptions =
ListSubscriptionsResponse
request :: ListSubscriptions -> Request ListSubscriptions
request = Service -> ListSubscriptions -> Request ListSubscriptions
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy ListSubscriptions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSubscriptions)))
response =
Text
-> (Int
-> ResponseHeaders
-> [Node]
-> Either String (AWSResponse ListSubscriptions))
-> Logger
-> Service
-> Proxy ListSubscriptions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSubscriptions)))
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
"ListSubscriptionsResult"
( \Int
s ResponseHeaders
h [Node]
x ->
Maybe Text
-> Maybe [Subscription] -> Int -> ListSubscriptionsResponse
ListSubscriptionsResponse'
(Maybe Text
-> Maybe [Subscription] -> Int -> ListSubscriptionsResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [Subscription] -> Int -> ListSubscriptionsResponse)
forall (f :: * -> *) a b. Functor 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 (Maybe [Subscription] -> Int -> ListSubscriptionsResponse)
-> Either String (Maybe [Subscription])
-> Either String (Int -> ListSubscriptionsResponse)
forall (f :: * -> *) a b. Applicative f => 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
"Subscriptions" 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 [Subscription]))
-> Either String (Maybe [Subscription])
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
Prelude.>>= ([Node] -> Either String [Subscription])
-> [Node] -> Either String (Maybe [Subscription])
forall (f :: * -> *) a b.
Applicative f =>
([a] -> f b) -> [a] -> f (Maybe b)
Core.may (Text -> [Node] -> Either String [Subscription]
forall a. FromXML a => Text -> [Node] -> Either String [a]
Core.parseXMLList Text
"member")
)
Either String (Int -> ListSubscriptionsResponse)
-> Either String Int -> Either String ListSubscriptionsResponse
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 ListSubscriptions
instance Prelude.NFData ListSubscriptions
instance Core.ToHeaders ListSubscriptions where
toHeaders :: ListSubscriptions -> ResponseHeaders
toHeaders = ResponseHeaders -> ListSubscriptions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListSubscriptions where
toPath :: ListSubscriptions -> ByteString
toPath = ByteString -> ListSubscriptions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListSubscriptions where
toQuery :: ListSubscriptions -> QueryString
toQuery ListSubscriptions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSubscriptions' :: ListSubscriptions -> 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
"ListSubscriptions" :: Prelude.ByteString),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-03-31" :: Prelude.ByteString),
ByteString
"NextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken
]
data ListSubscriptionsResponse = ListSubscriptionsResponse'
{
ListSubscriptionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSubscriptionsResponse -> Maybe [Subscription]
subscriptions :: Prelude.Maybe [Subscription],
ListSubscriptionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSubscriptionsResponse -> ListSubscriptionsResponse -> Bool
(ListSubscriptionsResponse -> ListSubscriptionsResponse -> Bool)
-> (ListSubscriptionsResponse -> ListSubscriptionsResponse -> Bool)
-> Eq ListSubscriptionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSubscriptionsResponse -> ListSubscriptionsResponse -> Bool
$c/= :: ListSubscriptionsResponse -> ListSubscriptionsResponse -> Bool
== :: ListSubscriptionsResponse -> ListSubscriptionsResponse -> Bool
$c== :: ListSubscriptionsResponse -> ListSubscriptionsResponse -> Bool
Prelude.Eq, ReadPrec [ListSubscriptionsResponse]
ReadPrec ListSubscriptionsResponse
Int -> ReadS ListSubscriptionsResponse
ReadS [ListSubscriptionsResponse]
(Int -> ReadS ListSubscriptionsResponse)
-> ReadS [ListSubscriptionsResponse]
-> ReadPrec ListSubscriptionsResponse
-> ReadPrec [ListSubscriptionsResponse]
-> Read ListSubscriptionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSubscriptionsResponse]
$creadListPrec :: ReadPrec [ListSubscriptionsResponse]
readPrec :: ReadPrec ListSubscriptionsResponse
$creadPrec :: ReadPrec ListSubscriptionsResponse
readList :: ReadS [ListSubscriptionsResponse]
$creadList :: ReadS [ListSubscriptionsResponse]
readsPrec :: Int -> ReadS ListSubscriptionsResponse
$creadsPrec :: Int -> ReadS ListSubscriptionsResponse
Prelude.Read, Int -> ListSubscriptionsResponse -> ShowS
[ListSubscriptionsResponse] -> ShowS
ListSubscriptionsResponse -> String
(Int -> ListSubscriptionsResponse -> ShowS)
-> (ListSubscriptionsResponse -> String)
-> ([ListSubscriptionsResponse] -> ShowS)
-> Show ListSubscriptionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSubscriptionsResponse] -> ShowS
$cshowList :: [ListSubscriptionsResponse] -> ShowS
show :: ListSubscriptionsResponse -> String
$cshow :: ListSubscriptionsResponse -> String
showsPrec :: Int -> ListSubscriptionsResponse -> ShowS
$cshowsPrec :: Int -> ListSubscriptionsResponse -> ShowS
Prelude.Show, (forall x.
ListSubscriptionsResponse -> Rep ListSubscriptionsResponse x)
-> (forall x.
Rep ListSubscriptionsResponse x -> ListSubscriptionsResponse)
-> Generic ListSubscriptionsResponse
forall x.
Rep ListSubscriptionsResponse x -> ListSubscriptionsResponse
forall x.
ListSubscriptionsResponse -> Rep ListSubscriptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSubscriptionsResponse x -> ListSubscriptionsResponse
$cfrom :: forall x.
ListSubscriptionsResponse -> Rep ListSubscriptionsResponse x
Prelude.Generic)
newListSubscriptionsResponse ::
Prelude.Int ->
ListSubscriptionsResponse
newListSubscriptionsResponse :: Int -> ListSubscriptionsResponse
newListSubscriptionsResponse Int
pHttpStatus_ =
ListSubscriptionsResponse' :: Maybe Text
-> Maybe [Subscription] -> Int -> ListSubscriptionsResponse
ListSubscriptionsResponse'
{ $sel:nextToken:ListSubscriptionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:subscriptions:ListSubscriptionsResponse' :: Maybe [Subscription]
subscriptions = Maybe [Subscription]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSubscriptionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSubscriptionsResponse_nextToken :: Lens.Lens' ListSubscriptionsResponse (Prelude.Maybe Prelude.Text)
listSubscriptionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListSubscriptionsResponse -> f ListSubscriptionsResponse
listSubscriptionsResponse_nextToken = (ListSubscriptionsResponse -> Maybe Text)
-> (ListSubscriptionsResponse
-> Maybe Text -> ListSubscriptionsResponse)
-> Lens' ListSubscriptionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscriptionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSubscriptionsResponse' :: ListSubscriptionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSubscriptionsResponse
s@ListSubscriptionsResponse' {} Maybe Text
a -> ListSubscriptionsResponse
s {$sel:nextToken:ListSubscriptionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSubscriptionsResponse)
listSubscriptionsResponse_subscriptions :: Lens.Lens' ListSubscriptionsResponse (Prelude.Maybe [Subscription])
listSubscriptionsResponse_subscriptions :: (Maybe [Subscription] -> f (Maybe [Subscription]))
-> ListSubscriptionsResponse -> f ListSubscriptionsResponse
listSubscriptionsResponse_subscriptions = (ListSubscriptionsResponse -> Maybe [Subscription])
-> (ListSubscriptionsResponse
-> Maybe [Subscription] -> ListSubscriptionsResponse)
-> Lens' ListSubscriptionsResponse (Maybe [Subscription])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscriptionsResponse' {Maybe [Subscription]
subscriptions :: Maybe [Subscription]
$sel:subscriptions:ListSubscriptionsResponse' :: ListSubscriptionsResponse -> Maybe [Subscription]
subscriptions} -> Maybe [Subscription]
subscriptions) (\s :: ListSubscriptionsResponse
s@ListSubscriptionsResponse' {} Maybe [Subscription]
a -> ListSubscriptionsResponse
s {$sel:subscriptions:ListSubscriptionsResponse' :: Maybe [Subscription]
subscriptions = Maybe [Subscription]
a} :: ListSubscriptionsResponse) ((Maybe [Subscription] -> f (Maybe [Subscription]))
-> ListSubscriptionsResponse -> f ListSubscriptionsResponse)
-> ((Maybe [Subscription] -> f (Maybe [Subscription]))
-> Maybe [Subscription] -> f (Maybe [Subscription]))
-> (Maybe [Subscription] -> f (Maybe [Subscription]))
-> ListSubscriptionsResponse
-> f ListSubscriptionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Subscription] [Subscription] [Subscription] [Subscription]
-> Iso
(Maybe [Subscription])
(Maybe [Subscription])
(Maybe [Subscription])
(Maybe [Subscription])
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 [Subscription] [Subscription] [Subscription] [Subscription]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listSubscriptionsResponse_httpStatus :: Lens.Lens' ListSubscriptionsResponse Prelude.Int
listSubscriptionsResponse_httpStatus :: (Int -> f Int)
-> ListSubscriptionsResponse -> f ListSubscriptionsResponse
listSubscriptionsResponse_httpStatus = (ListSubscriptionsResponse -> Int)
-> (ListSubscriptionsResponse -> Int -> ListSubscriptionsResponse)
-> Lens ListSubscriptionsResponse ListSubscriptionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSubscriptionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSubscriptionsResponse' :: ListSubscriptionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSubscriptionsResponse
s@ListSubscriptionsResponse' {} Int
a -> ListSubscriptionsResponse
s {$sel:httpStatus:ListSubscriptionsResponse' :: Int
httpStatus = Int
a} :: ListSubscriptionsResponse)
instance Prelude.NFData ListSubscriptionsResponse