{-# 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.IoT.ListTopicRuleDestinations
(
ListTopicRuleDestinations (..),
newListTopicRuleDestinations,
listTopicRuleDestinations_nextToken,
listTopicRuleDestinations_maxResults,
ListTopicRuleDestinationsResponse (..),
newListTopicRuleDestinationsResponse,
listTopicRuleDestinationsResponse_destinationSummaries,
listTopicRuleDestinationsResponse_nextToken,
listTopicRuleDestinationsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.Types
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 ListTopicRuleDestinations = ListTopicRuleDestinations'
{
ListTopicRuleDestinations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTopicRuleDestinations -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListTopicRuleDestinations -> ListTopicRuleDestinations -> Bool
(ListTopicRuleDestinations -> ListTopicRuleDestinations -> Bool)
-> (ListTopicRuleDestinations -> ListTopicRuleDestinations -> Bool)
-> Eq ListTopicRuleDestinations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTopicRuleDestinations -> ListTopicRuleDestinations -> Bool
$c/= :: ListTopicRuleDestinations -> ListTopicRuleDestinations -> Bool
== :: ListTopicRuleDestinations -> ListTopicRuleDestinations -> Bool
$c== :: ListTopicRuleDestinations -> ListTopicRuleDestinations -> Bool
Prelude.Eq, ReadPrec [ListTopicRuleDestinations]
ReadPrec ListTopicRuleDestinations
Int -> ReadS ListTopicRuleDestinations
ReadS [ListTopicRuleDestinations]
(Int -> ReadS ListTopicRuleDestinations)
-> ReadS [ListTopicRuleDestinations]
-> ReadPrec ListTopicRuleDestinations
-> ReadPrec [ListTopicRuleDestinations]
-> Read ListTopicRuleDestinations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTopicRuleDestinations]
$creadListPrec :: ReadPrec [ListTopicRuleDestinations]
readPrec :: ReadPrec ListTopicRuleDestinations
$creadPrec :: ReadPrec ListTopicRuleDestinations
readList :: ReadS [ListTopicRuleDestinations]
$creadList :: ReadS [ListTopicRuleDestinations]
readsPrec :: Int -> ReadS ListTopicRuleDestinations
$creadsPrec :: Int -> ReadS ListTopicRuleDestinations
Prelude.Read, Int -> ListTopicRuleDestinations -> ShowS
[ListTopicRuleDestinations] -> ShowS
ListTopicRuleDestinations -> String
(Int -> ListTopicRuleDestinations -> ShowS)
-> (ListTopicRuleDestinations -> String)
-> ([ListTopicRuleDestinations] -> ShowS)
-> Show ListTopicRuleDestinations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTopicRuleDestinations] -> ShowS
$cshowList :: [ListTopicRuleDestinations] -> ShowS
show :: ListTopicRuleDestinations -> String
$cshow :: ListTopicRuleDestinations -> String
showsPrec :: Int -> ListTopicRuleDestinations -> ShowS
$cshowsPrec :: Int -> ListTopicRuleDestinations -> ShowS
Prelude.Show, (forall x.
ListTopicRuleDestinations -> Rep ListTopicRuleDestinations x)
-> (forall x.
Rep ListTopicRuleDestinations x -> ListTopicRuleDestinations)
-> Generic ListTopicRuleDestinations
forall x.
Rep ListTopicRuleDestinations x -> ListTopicRuleDestinations
forall x.
ListTopicRuleDestinations -> Rep ListTopicRuleDestinations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTopicRuleDestinations x -> ListTopicRuleDestinations
$cfrom :: forall x.
ListTopicRuleDestinations -> Rep ListTopicRuleDestinations x
Prelude.Generic)
newListTopicRuleDestinations ::
ListTopicRuleDestinations
newListTopicRuleDestinations :: ListTopicRuleDestinations
newListTopicRuleDestinations =
ListTopicRuleDestinations' :: Maybe Text -> Maybe Natural -> ListTopicRuleDestinations
ListTopicRuleDestinations'
{ $sel:nextToken:ListTopicRuleDestinations' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListTopicRuleDestinations' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listTopicRuleDestinations_nextToken :: Lens.Lens' ListTopicRuleDestinations (Prelude.Maybe Prelude.Text)
listTopicRuleDestinations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTopicRuleDestinations -> f ListTopicRuleDestinations
listTopicRuleDestinations_nextToken = (ListTopicRuleDestinations -> Maybe Text)
-> (ListTopicRuleDestinations
-> Maybe Text -> ListTopicRuleDestinations)
-> Lens
ListTopicRuleDestinations
ListTopicRuleDestinations
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTopicRuleDestinations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTopicRuleDestinations' :: ListTopicRuleDestinations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTopicRuleDestinations
s@ListTopicRuleDestinations' {} Maybe Text
a -> ListTopicRuleDestinations
s {$sel:nextToken:ListTopicRuleDestinations' :: Maybe Text
nextToken = Maybe Text
a} :: ListTopicRuleDestinations)
listTopicRuleDestinations_maxResults :: Lens.Lens' ListTopicRuleDestinations (Prelude.Maybe Prelude.Natural)
listTopicRuleDestinations_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListTopicRuleDestinations -> f ListTopicRuleDestinations
listTopicRuleDestinations_maxResults = (ListTopicRuleDestinations -> Maybe Natural)
-> (ListTopicRuleDestinations
-> Maybe Natural -> ListTopicRuleDestinations)
-> Lens
ListTopicRuleDestinations
ListTopicRuleDestinations
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTopicRuleDestinations' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListTopicRuleDestinations' :: ListTopicRuleDestinations -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListTopicRuleDestinations
s@ListTopicRuleDestinations' {} Maybe Natural
a -> ListTopicRuleDestinations
s {$sel:maxResults:ListTopicRuleDestinations' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListTopicRuleDestinations)
instance Core.AWSPager ListTopicRuleDestinations where
page :: ListTopicRuleDestinations
-> AWSResponse ListTopicRuleDestinations
-> Maybe ListTopicRuleDestinations
page ListTopicRuleDestinations
rq AWSResponse ListTopicRuleDestinations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTopicRuleDestinations
ListTopicRuleDestinationsResponse
rs
ListTopicRuleDestinationsResponse
-> Getting (First Text) ListTopicRuleDestinationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTopicRuleDestinationsResponse
-> Const (First Text) ListTopicRuleDestinationsResponse
Lens' ListTopicRuleDestinationsResponse (Maybe Text)
listTopicRuleDestinationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTopicRuleDestinationsResponse
-> Const (First Text) ListTopicRuleDestinationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTopicRuleDestinationsResponse 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 ListTopicRuleDestinations
forall a. Maybe a
Prelude.Nothing
| Maybe [TopicRuleDestinationSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListTopicRuleDestinations
ListTopicRuleDestinationsResponse
rs
ListTopicRuleDestinationsResponse
-> Getting
(First [TopicRuleDestinationSummary])
ListTopicRuleDestinationsResponse
[TopicRuleDestinationSummary]
-> Maybe [TopicRuleDestinationSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [TopicRuleDestinationSummary]
-> Const
(First [TopicRuleDestinationSummary])
(Maybe [TopicRuleDestinationSummary]))
-> ListTopicRuleDestinationsResponse
-> Const
(First [TopicRuleDestinationSummary])
ListTopicRuleDestinationsResponse
Lens'
ListTopicRuleDestinationsResponse
(Maybe [TopicRuleDestinationSummary])
listTopicRuleDestinationsResponse_destinationSummaries
((Maybe [TopicRuleDestinationSummary]
-> Const
(First [TopicRuleDestinationSummary])
(Maybe [TopicRuleDestinationSummary]))
-> ListTopicRuleDestinationsResponse
-> Const
(First [TopicRuleDestinationSummary])
ListTopicRuleDestinationsResponse)
-> (([TopicRuleDestinationSummary]
-> Const
(First [TopicRuleDestinationSummary])
[TopicRuleDestinationSummary])
-> Maybe [TopicRuleDestinationSummary]
-> Const
(First [TopicRuleDestinationSummary])
(Maybe [TopicRuleDestinationSummary]))
-> Getting
(First [TopicRuleDestinationSummary])
ListTopicRuleDestinationsResponse
[TopicRuleDestinationSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([TopicRuleDestinationSummary]
-> Const
(First [TopicRuleDestinationSummary])
[TopicRuleDestinationSummary])
-> Maybe [TopicRuleDestinationSummary]
-> Const
(First [TopicRuleDestinationSummary])
(Maybe [TopicRuleDestinationSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListTopicRuleDestinations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListTopicRuleDestinations -> Maybe ListTopicRuleDestinations
forall a. a -> Maybe a
Prelude.Just (ListTopicRuleDestinations -> Maybe ListTopicRuleDestinations)
-> ListTopicRuleDestinations -> Maybe ListTopicRuleDestinations
forall a b. (a -> b) -> a -> b
Prelude.$
ListTopicRuleDestinations
rq
ListTopicRuleDestinations
-> (ListTopicRuleDestinations -> ListTopicRuleDestinations)
-> ListTopicRuleDestinations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListTopicRuleDestinations -> Identity ListTopicRuleDestinations
Lens
ListTopicRuleDestinations
ListTopicRuleDestinations
(Maybe Text)
(Maybe Text)
listTopicRuleDestinations_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListTopicRuleDestinations -> Identity ListTopicRuleDestinations)
-> Maybe Text
-> ListTopicRuleDestinations
-> ListTopicRuleDestinations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListTopicRuleDestinations
ListTopicRuleDestinationsResponse
rs
ListTopicRuleDestinationsResponse
-> Getting (First Text) ListTopicRuleDestinationsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListTopicRuleDestinationsResponse
-> Const (First Text) ListTopicRuleDestinationsResponse
Lens' ListTopicRuleDestinationsResponse (Maybe Text)
listTopicRuleDestinationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListTopicRuleDestinationsResponse
-> Const (First Text) ListTopicRuleDestinationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListTopicRuleDestinationsResponse 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 ListTopicRuleDestinations where
type
AWSResponse ListTopicRuleDestinations =
ListTopicRuleDestinationsResponse
request :: ListTopicRuleDestinations -> Request ListTopicRuleDestinations
request = Service
-> ListTopicRuleDestinations -> Request ListTopicRuleDestinations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListTopicRuleDestinations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTopicRuleDestinations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListTopicRuleDestinations))
-> Logger
-> Service
-> Proxy ListTopicRuleDestinations
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListTopicRuleDestinations)))
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 [TopicRuleDestinationSummary]
-> Maybe Text -> Int -> ListTopicRuleDestinationsResponse
ListTopicRuleDestinationsResponse'
(Maybe [TopicRuleDestinationSummary]
-> Maybe Text -> Int -> ListTopicRuleDestinationsResponse)
-> Either String (Maybe [TopicRuleDestinationSummary])
-> Either
String (Maybe Text -> Int -> ListTopicRuleDestinationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [TopicRuleDestinationSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"destinationSummaries"
Either String (Maybe (Maybe [TopicRuleDestinationSummary]))
-> Maybe [TopicRuleDestinationSummary]
-> Either String (Maybe [TopicRuleDestinationSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [TopicRuleDestinationSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> ListTopicRuleDestinationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListTopicRuleDestinationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"nextToken")
Either String (Int -> ListTopicRuleDestinationsResponse)
-> Either String Int
-> Either String ListTopicRuleDestinationsResponse
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 ListTopicRuleDestinations
instance Prelude.NFData ListTopicRuleDestinations
instance Core.ToHeaders ListTopicRuleDestinations where
toHeaders :: ListTopicRuleDestinations -> ResponseHeaders
toHeaders = ResponseHeaders -> ListTopicRuleDestinations -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListTopicRuleDestinations where
toPath :: ListTopicRuleDestinations -> ByteString
toPath = ByteString -> ListTopicRuleDestinations -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/destinations"
instance Core.ToQuery ListTopicRuleDestinations where
toQuery :: ListTopicRuleDestinations -> QueryString
toQuery ListTopicRuleDestinations' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListTopicRuleDestinations' :: ListTopicRuleDestinations -> Maybe Natural
$sel:nextToken:ListTopicRuleDestinations' :: ListTopicRuleDestinations -> 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
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListTopicRuleDestinationsResponse = ListTopicRuleDestinationsResponse'
{
ListTopicRuleDestinationsResponse
-> Maybe [TopicRuleDestinationSummary]
destinationSummaries :: Prelude.Maybe [TopicRuleDestinationSummary],
ListTopicRuleDestinationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListTopicRuleDestinationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListTopicRuleDestinationsResponse
-> ListTopicRuleDestinationsResponse -> Bool
(ListTopicRuleDestinationsResponse
-> ListTopicRuleDestinationsResponse -> Bool)
-> (ListTopicRuleDestinationsResponse
-> ListTopicRuleDestinationsResponse -> Bool)
-> Eq ListTopicRuleDestinationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListTopicRuleDestinationsResponse
-> ListTopicRuleDestinationsResponse -> Bool
$c/= :: ListTopicRuleDestinationsResponse
-> ListTopicRuleDestinationsResponse -> Bool
== :: ListTopicRuleDestinationsResponse
-> ListTopicRuleDestinationsResponse -> Bool
$c== :: ListTopicRuleDestinationsResponse
-> ListTopicRuleDestinationsResponse -> Bool
Prelude.Eq, ReadPrec [ListTopicRuleDestinationsResponse]
ReadPrec ListTopicRuleDestinationsResponse
Int -> ReadS ListTopicRuleDestinationsResponse
ReadS [ListTopicRuleDestinationsResponse]
(Int -> ReadS ListTopicRuleDestinationsResponse)
-> ReadS [ListTopicRuleDestinationsResponse]
-> ReadPrec ListTopicRuleDestinationsResponse
-> ReadPrec [ListTopicRuleDestinationsResponse]
-> Read ListTopicRuleDestinationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListTopicRuleDestinationsResponse]
$creadListPrec :: ReadPrec [ListTopicRuleDestinationsResponse]
readPrec :: ReadPrec ListTopicRuleDestinationsResponse
$creadPrec :: ReadPrec ListTopicRuleDestinationsResponse
readList :: ReadS [ListTopicRuleDestinationsResponse]
$creadList :: ReadS [ListTopicRuleDestinationsResponse]
readsPrec :: Int -> ReadS ListTopicRuleDestinationsResponse
$creadsPrec :: Int -> ReadS ListTopicRuleDestinationsResponse
Prelude.Read, Int -> ListTopicRuleDestinationsResponse -> ShowS
[ListTopicRuleDestinationsResponse] -> ShowS
ListTopicRuleDestinationsResponse -> String
(Int -> ListTopicRuleDestinationsResponse -> ShowS)
-> (ListTopicRuleDestinationsResponse -> String)
-> ([ListTopicRuleDestinationsResponse] -> ShowS)
-> Show ListTopicRuleDestinationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListTopicRuleDestinationsResponse] -> ShowS
$cshowList :: [ListTopicRuleDestinationsResponse] -> ShowS
show :: ListTopicRuleDestinationsResponse -> String
$cshow :: ListTopicRuleDestinationsResponse -> String
showsPrec :: Int -> ListTopicRuleDestinationsResponse -> ShowS
$cshowsPrec :: Int -> ListTopicRuleDestinationsResponse -> ShowS
Prelude.Show, (forall x.
ListTopicRuleDestinationsResponse
-> Rep ListTopicRuleDestinationsResponse x)
-> (forall x.
Rep ListTopicRuleDestinationsResponse x
-> ListTopicRuleDestinationsResponse)
-> Generic ListTopicRuleDestinationsResponse
forall x.
Rep ListTopicRuleDestinationsResponse x
-> ListTopicRuleDestinationsResponse
forall x.
ListTopicRuleDestinationsResponse
-> Rep ListTopicRuleDestinationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListTopicRuleDestinationsResponse x
-> ListTopicRuleDestinationsResponse
$cfrom :: forall x.
ListTopicRuleDestinationsResponse
-> Rep ListTopicRuleDestinationsResponse x
Prelude.Generic)
newListTopicRuleDestinationsResponse ::
Prelude.Int ->
ListTopicRuleDestinationsResponse
newListTopicRuleDestinationsResponse :: Int -> ListTopicRuleDestinationsResponse
newListTopicRuleDestinationsResponse Int
pHttpStatus_ =
ListTopicRuleDestinationsResponse' :: Maybe [TopicRuleDestinationSummary]
-> Maybe Text -> Int -> ListTopicRuleDestinationsResponse
ListTopicRuleDestinationsResponse'
{ $sel:destinationSummaries:ListTopicRuleDestinationsResponse' :: Maybe [TopicRuleDestinationSummary]
destinationSummaries =
Maybe [TopicRuleDestinationSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListTopicRuleDestinationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListTopicRuleDestinationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listTopicRuleDestinationsResponse_destinationSummaries :: Lens.Lens' ListTopicRuleDestinationsResponse (Prelude.Maybe [TopicRuleDestinationSummary])
listTopicRuleDestinationsResponse_destinationSummaries :: (Maybe [TopicRuleDestinationSummary]
-> f (Maybe [TopicRuleDestinationSummary]))
-> ListTopicRuleDestinationsResponse
-> f ListTopicRuleDestinationsResponse
listTopicRuleDestinationsResponse_destinationSummaries = (ListTopicRuleDestinationsResponse
-> Maybe [TopicRuleDestinationSummary])
-> (ListTopicRuleDestinationsResponse
-> Maybe [TopicRuleDestinationSummary]
-> ListTopicRuleDestinationsResponse)
-> Lens'
ListTopicRuleDestinationsResponse
(Maybe [TopicRuleDestinationSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTopicRuleDestinationsResponse' {Maybe [TopicRuleDestinationSummary]
destinationSummaries :: Maybe [TopicRuleDestinationSummary]
$sel:destinationSummaries:ListTopicRuleDestinationsResponse' :: ListTopicRuleDestinationsResponse
-> Maybe [TopicRuleDestinationSummary]
destinationSummaries} -> Maybe [TopicRuleDestinationSummary]
destinationSummaries) (\s :: ListTopicRuleDestinationsResponse
s@ListTopicRuleDestinationsResponse' {} Maybe [TopicRuleDestinationSummary]
a -> ListTopicRuleDestinationsResponse
s {$sel:destinationSummaries:ListTopicRuleDestinationsResponse' :: Maybe [TopicRuleDestinationSummary]
destinationSummaries = Maybe [TopicRuleDestinationSummary]
a} :: ListTopicRuleDestinationsResponse) ((Maybe [TopicRuleDestinationSummary]
-> f (Maybe [TopicRuleDestinationSummary]))
-> ListTopicRuleDestinationsResponse
-> f ListTopicRuleDestinationsResponse)
-> ((Maybe [TopicRuleDestinationSummary]
-> f (Maybe [TopicRuleDestinationSummary]))
-> Maybe [TopicRuleDestinationSummary]
-> f (Maybe [TopicRuleDestinationSummary]))
-> (Maybe [TopicRuleDestinationSummary]
-> f (Maybe [TopicRuleDestinationSummary]))
-> ListTopicRuleDestinationsResponse
-> f ListTopicRuleDestinationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[TopicRuleDestinationSummary]
[TopicRuleDestinationSummary]
[TopicRuleDestinationSummary]
[TopicRuleDestinationSummary]
-> Iso
(Maybe [TopicRuleDestinationSummary])
(Maybe [TopicRuleDestinationSummary])
(Maybe [TopicRuleDestinationSummary])
(Maybe [TopicRuleDestinationSummary])
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
[TopicRuleDestinationSummary]
[TopicRuleDestinationSummary]
[TopicRuleDestinationSummary]
[TopicRuleDestinationSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listTopicRuleDestinationsResponse_nextToken :: Lens.Lens' ListTopicRuleDestinationsResponse (Prelude.Maybe Prelude.Text)
listTopicRuleDestinationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListTopicRuleDestinationsResponse
-> f ListTopicRuleDestinationsResponse
listTopicRuleDestinationsResponse_nextToken = (ListTopicRuleDestinationsResponse -> Maybe Text)
-> (ListTopicRuleDestinationsResponse
-> Maybe Text -> ListTopicRuleDestinationsResponse)
-> Lens' ListTopicRuleDestinationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTopicRuleDestinationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListTopicRuleDestinationsResponse' :: ListTopicRuleDestinationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListTopicRuleDestinationsResponse
s@ListTopicRuleDestinationsResponse' {} Maybe Text
a -> ListTopicRuleDestinationsResponse
s {$sel:nextToken:ListTopicRuleDestinationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListTopicRuleDestinationsResponse)
listTopicRuleDestinationsResponse_httpStatus :: Lens.Lens' ListTopicRuleDestinationsResponse Prelude.Int
listTopicRuleDestinationsResponse_httpStatus :: (Int -> f Int)
-> ListTopicRuleDestinationsResponse
-> f ListTopicRuleDestinationsResponse
listTopicRuleDestinationsResponse_httpStatus = (ListTopicRuleDestinationsResponse -> Int)
-> (ListTopicRuleDestinationsResponse
-> Int -> ListTopicRuleDestinationsResponse)
-> Lens
ListTopicRuleDestinationsResponse
ListTopicRuleDestinationsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListTopicRuleDestinationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListTopicRuleDestinationsResponse' :: ListTopicRuleDestinationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListTopicRuleDestinationsResponse
s@ListTopicRuleDestinationsResponse' {} Int
a -> ListTopicRuleDestinationsResponse
s {$sel:httpStatus:ListTopicRuleDestinationsResponse' :: Int
httpStatus = Int
a} :: ListTopicRuleDestinationsResponse)
instance
Prelude.NFData
ListTopicRuleDestinationsResponse