{-# 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.Lambda.ListEventSourceMappings
(
ListEventSourceMappings (..),
newListEventSourceMappings,
listEventSourceMappings_eventSourceArn,
listEventSourceMappings_marker,
listEventSourceMappings_maxItems,
listEventSourceMappings_functionName,
ListEventSourceMappingsResponse (..),
newListEventSourceMappingsResponse,
listEventSourceMappingsResponse_eventSourceMappings,
listEventSourceMappingsResponse_nextMarker,
listEventSourceMappingsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Lambda.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 ListEventSourceMappings = ListEventSourceMappings'
{
ListEventSourceMappings -> Maybe Text
eventSourceArn :: Prelude.Maybe Prelude.Text,
ListEventSourceMappings -> Maybe Text
marker :: Prelude.Maybe Prelude.Text,
ListEventSourceMappings -> Maybe Natural
maxItems :: Prelude.Maybe Prelude.Natural,
ListEventSourceMappings -> Maybe Text
functionName :: Prelude.Maybe Prelude.Text
}
deriving (ListEventSourceMappings -> ListEventSourceMappings -> Bool
(ListEventSourceMappings -> ListEventSourceMappings -> Bool)
-> (ListEventSourceMappings -> ListEventSourceMappings -> Bool)
-> Eq ListEventSourceMappings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEventSourceMappings -> ListEventSourceMappings -> Bool
$c/= :: ListEventSourceMappings -> ListEventSourceMappings -> Bool
== :: ListEventSourceMappings -> ListEventSourceMappings -> Bool
$c== :: ListEventSourceMappings -> ListEventSourceMappings -> Bool
Prelude.Eq, ReadPrec [ListEventSourceMappings]
ReadPrec ListEventSourceMappings
Int -> ReadS ListEventSourceMappings
ReadS [ListEventSourceMappings]
(Int -> ReadS ListEventSourceMappings)
-> ReadS [ListEventSourceMappings]
-> ReadPrec ListEventSourceMappings
-> ReadPrec [ListEventSourceMappings]
-> Read ListEventSourceMappings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEventSourceMappings]
$creadListPrec :: ReadPrec [ListEventSourceMappings]
readPrec :: ReadPrec ListEventSourceMappings
$creadPrec :: ReadPrec ListEventSourceMappings
readList :: ReadS [ListEventSourceMappings]
$creadList :: ReadS [ListEventSourceMappings]
readsPrec :: Int -> ReadS ListEventSourceMappings
$creadsPrec :: Int -> ReadS ListEventSourceMappings
Prelude.Read, Int -> ListEventSourceMappings -> ShowS
[ListEventSourceMappings] -> ShowS
ListEventSourceMappings -> String
(Int -> ListEventSourceMappings -> ShowS)
-> (ListEventSourceMappings -> String)
-> ([ListEventSourceMappings] -> ShowS)
-> Show ListEventSourceMappings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEventSourceMappings] -> ShowS
$cshowList :: [ListEventSourceMappings] -> ShowS
show :: ListEventSourceMappings -> String
$cshow :: ListEventSourceMappings -> String
showsPrec :: Int -> ListEventSourceMappings -> ShowS
$cshowsPrec :: Int -> ListEventSourceMappings -> ShowS
Prelude.Show, (forall x.
ListEventSourceMappings -> Rep ListEventSourceMappings x)
-> (forall x.
Rep ListEventSourceMappings x -> ListEventSourceMappings)
-> Generic ListEventSourceMappings
forall x. Rep ListEventSourceMappings x -> ListEventSourceMappings
forall x. ListEventSourceMappings -> Rep ListEventSourceMappings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListEventSourceMappings x -> ListEventSourceMappings
$cfrom :: forall x. ListEventSourceMappings -> Rep ListEventSourceMappings x
Prelude.Generic)
newListEventSourceMappings ::
ListEventSourceMappings
newListEventSourceMappings :: ListEventSourceMappings
newListEventSourceMappings =
ListEventSourceMappings' :: Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe Text
-> ListEventSourceMappings
ListEventSourceMappings'
{ $sel:eventSourceArn:ListEventSourceMappings' :: Maybe Text
eventSourceArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:marker:ListEventSourceMappings' :: Maybe Text
marker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxItems:ListEventSourceMappings' :: Maybe Natural
maxItems = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:functionName:ListEventSourceMappings' :: Maybe Text
functionName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
listEventSourceMappings_eventSourceArn :: Lens.Lens' ListEventSourceMappings (Prelude.Maybe Prelude.Text)
listEventSourceMappings_eventSourceArn :: (Maybe Text -> f (Maybe Text))
-> ListEventSourceMappings -> f ListEventSourceMappings
listEventSourceMappings_eventSourceArn = (ListEventSourceMappings -> Maybe Text)
-> (ListEventSourceMappings
-> Maybe Text -> ListEventSourceMappings)
-> Lens
ListEventSourceMappings
ListEventSourceMappings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventSourceMappings' {Maybe Text
eventSourceArn :: Maybe Text
$sel:eventSourceArn:ListEventSourceMappings' :: ListEventSourceMappings -> Maybe Text
eventSourceArn} -> Maybe Text
eventSourceArn) (\s :: ListEventSourceMappings
s@ListEventSourceMappings' {} Maybe Text
a -> ListEventSourceMappings
s {$sel:eventSourceArn:ListEventSourceMappings' :: Maybe Text
eventSourceArn = Maybe Text
a} :: ListEventSourceMappings)
listEventSourceMappings_marker :: Lens.Lens' ListEventSourceMappings (Prelude.Maybe Prelude.Text)
listEventSourceMappings_marker :: (Maybe Text -> f (Maybe Text))
-> ListEventSourceMappings -> f ListEventSourceMappings
listEventSourceMappings_marker = (ListEventSourceMappings -> Maybe Text)
-> (ListEventSourceMappings
-> Maybe Text -> ListEventSourceMappings)
-> Lens
ListEventSourceMappings
ListEventSourceMappings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventSourceMappings' {Maybe Text
marker :: Maybe Text
$sel:marker:ListEventSourceMappings' :: ListEventSourceMappings -> Maybe Text
marker} -> Maybe Text
marker) (\s :: ListEventSourceMappings
s@ListEventSourceMappings' {} Maybe Text
a -> ListEventSourceMappings
s {$sel:marker:ListEventSourceMappings' :: Maybe Text
marker = Maybe Text
a} :: ListEventSourceMappings)
listEventSourceMappings_maxItems :: Lens.Lens' ListEventSourceMappings (Prelude.Maybe Prelude.Natural)
listEventSourceMappings_maxItems :: (Maybe Natural -> f (Maybe Natural))
-> ListEventSourceMappings -> f ListEventSourceMappings
listEventSourceMappings_maxItems = (ListEventSourceMappings -> Maybe Natural)
-> (ListEventSourceMappings
-> Maybe Natural -> ListEventSourceMappings)
-> Lens
ListEventSourceMappings
ListEventSourceMappings
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventSourceMappings' {Maybe Natural
maxItems :: Maybe Natural
$sel:maxItems:ListEventSourceMappings' :: ListEventSourceMappings -> Maybe Natural
maxItems} -> Maybe Natural
maxItems) (\s :: ListEventSourceMappings
s@ListEventSourceMappings' {} Maybe Natural
a -> ListEventSourceMappings
s {$sel:maxItems:ListEventSourceMappings' :: Maybe Natural
maxItems = Maybe Natural
a} :: ListEventSourceMappings)
listEventSourceMappings_functionName :: Lens.Lens' ListEventSourceMappings (Prelude.Maybe Prelude.Text)
listEventSourceMappings_functionName :: (Maybe Text -> f (Maybe Text))
-> ListEventSourceMappings -> f ListEventSourceMappings
listEventSourceMappings_functionName = (ListEventSourceMappings -> Maybe Text)
-> (ListEventSourceMappings
-> Maybe Text -> ListEventSourceMappings)
-> Lens
ListEventSourceMappings
ListEventSourceMappings
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventSourceMappings' {Maybe Text
functionName :: Maybe Text
$sel:functionName:ListEventSourceMappings' :: ListEventSourceMappings -> Maybe Text
functionName} -> Maybe Text
functionName) (\s :: ListEventSourceMappings
s@ListEventSourceMappings' {} Maybe Text
a -> ListEventSourceMappings
s {$sel:functionName:ListEventSourceMappings' :: Maybe Text
functionName = Maybe Text
a} :: ListEventSourceMappings)
instance Core.AWSPager ListEventSourceMappings where
page :: ListEventSourceMappings
-> AWSResponse ListEventSourceMappings
-> Maybe ListEventSourceMappings
page ListEventSourceMappings
rq AWSResponse ListEventSourceMappings
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListEventSourceMappings
ListEventSourceMappingsResponse
rs
ListEventSourceMappingsResponse
-> Getting (First Text) ListEventSourceMappingsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListEventSourceMappingsResponse
-> Const (First Text) ListEventSourceMappingsResponse
Lens' ListEventSourceMappingsResponse (Maybe Text)
listEventSourceMappingsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListEventSourceMappingsResponse
-> Const (First Text) ListEventSourceMappingsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListEventSourceMappingsResponse 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 ListEventSourceMappings
forall a. Maybe a
Prelude.Nothing
| Maybe [EventSourceMappingConfiguration] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListEventSourceMappings
ListEventSourceMappingsResponse
rs
ListEventSourceMappingsResponse
-> Getting
(First [EventSourceMappingConfiguration])
ListEventSourceMappingsResponse
[EventSourceMappingConfiguration]
-> Maybe [EventSourceMappingConfiguration]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [EventSourceMappingConfiguration]
-> Const
(First [EventSourceMappingConfiguration])
(Maybe [EventSourceMappingConfiguration]))
-> ListEventSourceMappingsResponse
-> Const
(First [EventSourceMappingConfiguration])
ListEventSourceMappingsResponse
Lens'
ListEventSourceMappingsResponse
(Maybe [EventSourceMappingConfiguration])
listEventSourceMappingsResponse_eventSourceMappings
((Maybe [EventSourceMappingConfiguration]
-> Const
(First [EventSourceMappingConfiguration])
(Maybe [EventSourceMappingConfiguration]))
-> ListEventSourceMappingsResponse
-> Const
(First [EventSourceMappingConfiguration])
ListEventSourceMappingsResponse)
-> (([EventSourceMappingConfiguration]
-> Const
(First [EventSourceMappingConfiguration])
[EventSourceMappingConfiguration])
-> Maybe [EventSourceMappingConfiguration]
-> Const
(First [EventSourceMappingConfiguration])
(Maybe [EventSourceMappingConfiguration]))
-> Getting
(First [EventSourceMappingConfiguration])
ListEventSourceMappingsResponse
[EventSourceMappingConfiguration]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([EventSourceMappingConfiguration]
-> Const
(First [EventSourceMappingConfiguration])
[EventSourceMappingConfiguration])
-> Maybe [EventSourceMappingConfiguration]
-> Const
(First [EventSourceMappingConfiguration])
(Maybe [EventSourceMappingConfiguration])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListEventSourceMappings
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListEventSourceMappings -> Maybe ListEventSourceMappings
forall a. a -> Maybe a
Prelude.Just (ListEventSourceMappings -> Maybe ListEventSourceMappings)
-> ListEventSourceMappings -> Maybe ListEventSourceMappings
forall a b. (a -> b) -> a -> b
Prelude.$
ListEventSourceMappings
rq
ListEventSourceMappings
-> (ListEventSourceMappings -> ListEventSourceMappings)
-> ListEventSourceMappings
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListEventSourceMappings -> Identity ListEventSourceMappings
Lens
ListEventSourceMappings
ListEventSourceMappings
(Maybe Text)
(Maybe Text)
listEventSourceMappings_marker
((Maybe Text -> Identity (Maybe Text))
-> ListEventSourceMappings -> Identity ListEventSourceMappings)
-> Maybe Text -> ListEventSourceMappings -> ListEventSourceMappings
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListEventSourceMappings
ListEventSourceMappingsResponse
rs
ListEventSourceMappingsResponse
-> Getting (First Text) ListEventSourceMappingsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListEventSourceMappingsResponse
-> Const (First Text) ListEventSourceMappingsResponse
Lens' ListEventSourceMappingsResponse (Maybe Text)
listEventSourceMappingsResponse_nextMarker
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListEventSourceMappingsResponse
-> Const (First Text) ListEventSourceMappingsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListEventSourceMappingsResponse 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 ListEventSourceMappings where
type
AWSResponse ListEventSourceMappings =
ListEventSourceMappingsResponse
request :: ListEventSourceMappings -> Request ListEventSourceMappings
request = Service
-> ListEventSourceMappings -> Request ListEventSourceMappings
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListEventSourceMappings
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListEventSourceMappings)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListEventSourceMappings))
-> Logger
-> Service
-> Proxy ListEventSourceMappings
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListEventSourceMappings)))
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 [EventSourceMappingConfiguration]
-> Maybe Text -> Int -> ListEventSourceMappingsResponse
ListEventSourceMappingsResponse'
(Maybe [EventSourceMappingConfiguration]
-> Maybe Text -> Int -> ListEventSourceMappingsResponse)
-> Either String (Maybe [EventSourceMappingConfiguration])
-> Either
String (Maybe Text -> Int -> ListEventSourceMappingsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [EventSourceMappingConfiguration]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"EventSourceMappings"
Either String (Maybe (Maybe [EventSourceMappingConfiguration]))
-> Maybe [EventSourceMappingConfiguration]
-> Either String (Maybe [EventSourceMappingConfiguration])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [EventSourceMappingConfiguration]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> ListEventSourceMappingsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListEventSourceMappingsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextMarker")
Either String (Int -> ListEventSourceMappingsResponse)
-> Either String Int
-> Either String ListEventSourceMappingsResponse
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 ListEventSourceMappings
instance Prelude.NFData ListEventSourceMappings
instance Core.ToHeaders ListEventSourceMappings where
toHeaders :: ListEventSourceMappings -> ResponseHeaders
toHeaders = ResponseHeaders -> ListEventSourceMappings -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath ListEventSourceMappings where
toPath :: ListEventSourceMappings -> ByteString
toPath =
ByteString -> ListEventSourceMappings -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/2015-03-31/event-source-mappings/"
instance Core.ToQuery ListEventSourceMappings where
toQuery :: ListEventSourceMappings -> QueryString
toQuery ListEventSourceMappings' {Maybe Natural
Maybe Text
functionName :: Maybe Text
maxItems :: Maybe Natural
marker :: Maybe Text
eventSourceArn :: Maybe Text
$sel:functionName:ListEventSourceMappings' :: ListEventSourceMappings -> Maybe Text
$sel:maxItems:ListEventSourceMappings' :: ListEventSourceMappings -> Maybe Natural
$sel:marker:ListEventSourceMappings' :: ListEventSourceMappings -> Maybe Text
$sel:eventSourceArn:ListEventSourceMappings' :: ListEventSourceMappings -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"EventSourceArn" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
eventSourceArn,
ByteString
"Marker" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
marker,
ByteString
"MaxItems" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxItems,
ByteString
"FunctionName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
functionName
]
data ListEventSourceMappingsResponse = ListEventSourceMappingsResponse'
{
ListEventSourceMappingsResponse
-> Maybe [EventSourceMappingConfiguration]
eventSourceMappings :: Prelude.Maybe [EventSourceMappingConfiguration],
ListEventSourceMappingsResponse -> Maybe Text
nextMarker :: Prelude.Maybe Prelude.Text,
ListEventSourceMappingsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListEventSourceMappingsResponse
-> ListEventSourceMappingsResponse -> Bool
(ListEventSourceMappingsResponse
-> ListEventSourceMappingsResponse -> Bool)
-> (ListEventSourceMappingsResponse
-> ListEventSourceMappingsResponse -> Bool)
-> Eq ListEventSourceMappingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEventSourceMappingsResponse
-> ListEventSourceMappingsResponse -> Bool
$c/= :: ListEventSourceMappingsResponse
-> ListEventSourceMappingsResponse -> Bool
== :: ListEventSourceMappingsResponse
-> ListEventSourceMappingsResponse -> Bool
$c== :: ListEventSourceMappingsResponse
-> ListEventSourceMappingsResponse -> Bool
Prelude.Eq, ReadPrec [ListEventSourceMappingsResponse]
ReadPrec ListEventSourceMappingsResponse
Int -> ReadS ListEventSourceMappingsResponse
ReadS [ListEventSourceMappingsResponse]
(Int -> ReadS ListEventSourceMappingsResponse)
-> ReadS [ListEventSourceMappingsResponse]
-> ReadPrec ListEventSourceMappingsResponse
-> ReadPrec [ListEventSourceMappingsResponse]
-> Read ListEventSourceMappingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEventSourceMappingsResponse]
$creadListPrec :: ReadPrec [ListEventSourceMappingsResponse]
readPrec :: ReadPrec ListEventSourceMappingsResponse
$creadPrec :: ReadPrec ListEventSourceMappingsResponse
readList :: ReadS [ListEventSourceMappingsResponse]
$creadList :: ReadS [ListEventSourceMappingsResponse]
readsPrec :: Int -> ReadS ListEventSourceMappingsResponse
$creadsPrec :: Int -> ReadS ListEventSourceMappingsResponse
Prelude.Read, Int -> ListEventSourceMappingsResponse -> ShowS
[ListEventSourceMappingsResponse] -> ShowS
ListEventSourceMappingsResponse -> String
(Int -> ListEventSourceMappingsResponse -> ShowS)
-> (ListEventSourceMappingsResponse -> String)
-> ([ListEventSourceMappingsResponse] -> ShowS)
-> Show ListEventSourceMappingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEventSourceMappingsResponse] -> ShowS
$cshowList :: [ListEventSourceMappingsResponse] -> ShowS
show :: ListEventSourceMappingsResponse -> String
$cshow :: ListEventSourceMappingsResponse -> String
showsPrec :: Int -> ListEventSourceMappingsResponse -> ShowS
$cshowsPrec :: Int -> ListEventSourceMappingsResponse -> ShowS
Prelude.Show, (forall x.
ListEventSourceMappingsResponse
-> Rep ListEventSourceMappingsResponse x)
-> (forall x.
Rep ListEventSourceMappingsResponse x
-> ListEventSourceMappingsResponse)
-> Generic ListEventSourceMappingsResponse
forall x.
Rep ListEventSourceMappingsResponse x
-> ListEventSourceMappingsResponse
forall x.
ListEventSourceMappingsResponse
-> Rep ListEventSourceMappingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEventSourceMappingsResponse x
-> ListEventSourceMappingsResponse
$cfrom :: forall x.
ListEventSourceMappingsResponse
-> Rep ListEventSourceMappingsResponse x
Prelude.Generic)
newListEventSourceMappingsResponse ::
Prelude.Int ->
ListEventSourceMappingsResponse
newListEventSourceMappingsResponse :: Int -> ListEventSourceMappingsResponse
newListEventSourceMappingsResponse Int
pHttpStatus_ =
ListEventSourceMappingsResponse' :: Maybe [EventSourceMappingConfiguration]
-> Maybe Text -> Int -> ListEventSourceMappingsResponse
ListEventSourceMappingsResponse'
{ $sel:eventSourceMappings:ListEventSourceMappingsResponse' :: Maybe [EventSourceMappingConfiguration]
eventSourceMappings =
Maybe [EventSourceMappingConfiguration]
forall a. Maybe a
Prelude.Nothing,
$sel:nextMarker:ListEventSourceMappingsResponse' :: Maybe Text
nextMarker = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListEventSourceMappingsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listEventSourceMappingsResponse_eventSourceMappings :: Lens.Lens' ListEventSourceMappingsResponse (Prelude.Maybe [EventSourceMappingConfiguration])
listEventSourceMappingsResponse_eventSourceMappings :: (Maybe [EventSourceMappingConfiguration]
-> f (Maybe [EventSourceMappingConfiguration]))
-> ListEventSourceMappingsResponse
-> f ListEventSourceMappingsResponse
listEventSourceMappingsResponse_eventSourceMappings = (ListEventSourceMappingsResponse
-> Maybe [EventSourceMappingConfiguration])
-> (ListEventSourceMappingsResponse
-> Maybe [EventSourceMappingConfiguration]
-> ListEventSourceMappingsResponse)
-> Lens'
ListEventSourceMappingsResponse
(Maybe [EventSourceMappingConfiguration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventSourceMappingsResponse' {Maybe [EventSourceMappingConfiguration]
eventSourceMappings :: Maybe [EventSourceMappingConfiguration]
$sel:eventSourceMappings:ListEventSourceMappingsResponse' :: ListEventSourceMappingsResponse
-> Maybe [EventSourceMappingConfiguration]
eventSourceMappings} -> Maybe [EventSourceMappingConfiguration]
eventSourceMappings) (\s :: ListEventSourceMappingsResponse
s@ListEventSourceMappingsResponse' {} Maybe [EventSourceMappingConfiguration]
a -> ListEventSourceMappingsResponse
s {$sel:eventSourceMappings:ListEventSourceMappingsResponse' :: Maybe [EventSourceMappingConfiguration]
eventSourceMappings = Maybe [EventSourceMappingConfiguration]
a} :: ListEventSourceMappingsResponse) ((Maybe [EventSourceMappingConfiguration]
-> f (Maybe [EventSourceMappingConfiguration]))
-> ListEventSourceMappingsResponse
-> f ListEventSourceMappingsResponse)
-> ((Maybe [EventSourceMappingConfiguration]
-> f (Maybe [EventSourceMappingConfiguration]))
-> Maybe [EventSourceMappingConfiguration]
-> f (Maybe [EventSourceMappingConfiguration]))
-> (Maybe [EventSourceMappingConfiguration]
-> f (Maybe [EventSourceMappingConfiguration]))
-> ListEventSourceMappingsResponse
-> f ListEventSourceMappingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[EventSourceMappingConfiguration]
[EventSourceMappingConfiguration]
[EventSourceMappingConfiguration]
[EventSourceMappingConfiguration]
-> Iso
(Maybe [EventSourceMappingConfiguration])
(Maybe [EventSourceMappingConfiguration])
(Maybe [EventSourceMappingConfiguration])
(Maybe [EventSourceMappingConfiguration])
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
[EventSourceMappingConfiguration]
[EventSourceMappingConfiguration]
[EventSourceMappingConfiguration]
[EventSourceMappingConfiguration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listEventSourceMappingsResponse_nextMarker :: Lens.Lens' ListEventSourceMappingsResponse (Prelude.Maybe Prelude.Text)
listEventSourceMappingsResponse_nextMarker :: (Maybe Text -> f (Maybe Text))
-> ListEventSourceMappingsResponse
-> f ListEventSourceMappingsResponse
listEventSourceMappingsResponse_nextMarker = (ListEventSourceMappingsResponse -> Maybe Text)
-> (ListEventSourceMappingsResponse
-> Maybe Text -> ListEventSourceMappingsResponse)
-> Lens' ListEventSourceMappingsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventSourceMappingsResponse' {Maybe Text
nextMarker :: Maybe Text
$sel:nextMarker:ListEventSourceMappingsResponse' :: ListEventSourceMappingsResponse -> Maybe Text
nextMarker} -> Maybe Text
nextMarker) (\s :: ListEventSourceMappingsResponse
s@ListEventSourceMappingsResponse' {} Maybe Text
a -> ListEventSourceMappingsResponse
s {$sel:nextMarker:ListEventSourceMappingsResponse' :: Maybe Text
nextMarker = Maybe Text
a} :: ListEventSourceMappingsResponse)
listEventSourceMappingsResponse_httpStatus :: Lens.Lens' ListEventSourceMappingsResponse Prelude.Int
listEventSourceMappingsResponse_httpStatus :: (Int -> f Int)
-> ListEventSourceMappingsResponse
-> f ListEventSourceMappingsResponse
listEventSourceMappingsResponse_httpStatus = (ListEventSourceMappingsResponse -> Int)
-> (ListEventSourceMappingsResponse
-> Int -> ListEventSourceMappingsResponse)
-> Lens
ListEventSourceMappingsResponse
ListEventSourceMappingsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventSourceMappingsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListEventSourceMappingsResponse' :: ListEventSourceMappingsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListEventSourceMappingsResponse
s@ListEventSourceMappingsResponse' {} Int
a -> ListEventSourceMappingsResponse
s {$sel:httpStatus:ListEventSourceMappingsResponse' :: Int
httpStatus = Int
a} :: ListEventSourceMappingsResponse)
instance
Prelude.NFData
ListEventSourceMappingsResponse