{-# 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.Personalize.ListEventTrackers
(
ListEventTrackers (..),
newListEventTrackers,
listEventTrackers_nextToken,
listEventTrackers_datasetGroupArn,
listEventTrackers_maxResults,
ListEventTrackersResponse (..),
newListEventTrackersResponse,
listEventTrackersResponse_eventTrackers,
listEventTrackersResponse_nextToken,
listEventTrackersResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Personalize.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListEventTrackers = ListEventTrackers'
{
ListEventTrackers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListEventTrackers -> Maybe Text
datasetGroupArn :: Prelude.Maybe Prelude.Text,
ListEventTrackers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListEventTrackers -> ListEventTrackers -> Bool
(ListEventTrackers -> ListEventTrackers -> Bool)
-> (ListEventTrackers -> ListEventTrackers -> Bool)
-> Eq ListEventTrackers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEventTrackers -> ListEventTrackers -> Bool
$c/= :: ListEventTrackers -> ListEventTrackers -> Bool
== :: ListEventTrackers -> ListEventTrackers -> Bool
$c== :: ListEventTrackers -> ListEventTrackers -> Bool
Prelude.Eq, ReadPrec [ListEventTrackers]
ReadPrec ListEventTrackers
Int -> ReadS ListEventTrackers
ReadS [ListEventTrackers]
(Int -> ReadS ListEventTrackers)
-> ReadS [ListEventTrackers]
-> ReadPrec ListEventTrackers
-> ReadPrec [ListEventTrackers]
-> Read ListEventTrackers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEventTrackers]
$creadListPrec :: ReadPrec [ListEventTrackers]
readPrec :: ReadPrec ListEventTrackers
$creadPrec :: ReadPrec ListEventTrackers
readList :: ReadS [ListEventTrackers]
$creadList :: ReadS [ListEventTrackers]
readsPrec :: Int -> ReadS ListEventTrackers
$creadsPrec :: Int -> ReadS ListEventTrackers
Prelude.Read, Int -> ListEventTrackers -> ShowS
[ListEventTrackers] -> ShowS
ListEventTrackers -> String
(Int -> ListEventTrackers -> ShowS)
-> (ListEventTrackers -> String)
-> ([ListEventTrackers] -> ShowS)
-> Show ListEventTrackers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEventTrackers] -> ShowS
$cshowList :: [ListEventTrackers] -> ShowS
show :: ListEventTrackers -> String
$cshow :: ListEventTrackers -> String
showsPrec :: Int -> ListEventTrackers -> ShowS
$cshowsPrec :: Int -> ListEventTrackers -> ShowS
Prelude.Show, (forall x. ListEventTrackers -> Rep ListEventTrackers x)
-> (forall x. Rep ListEventTrackers x -> ListEventTrackers)
-> Generic ListEventTrackers
forall x. Rep ListEventTrackers x -> ListEventTrackers
forall x. ListEventTrackers -> Rep ListEventTrackers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListEventTrackers x -> ListEventTrackers
$cfrom :: forall x. ListEventTrackers -> Rep ListEventTrackers x
Prelude.Generic)
newListEventTrackers ::
ListEventTrackers
newListEventTrackers :: ListEventTrackers
newListEventTrackers =
ListEventTrackers' :: Maybe Text -> Maybe Text -> Maybe Natural -> ListEventTrackers
ListEventTrackers'
{ $sel:nextToken:ListEventTrackers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:datasetGroupArn:ListEventTrackers' :: Maybe Text
datasetGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListEventTrackers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listEventTrackers_nextToken :: Lens.Lens' ListEventTrackers (Prelude.Maybe Prelude.Text)
listEventTrackers_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEventTrackers -> f ListEventTrackers
listEventTrackers_nextToken = (ListEventTrackers -> Maybe Text)
-> (ListEventTrackers -> Maybe Text -> ListEventTrackers)
-> Lens
ListEventTrackers ListEventTrackers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventTrackers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEventTrackers' :: ListEventTrackers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEventTrackers
s@ListEventTrackers' {} Maybe Text
a -> ListEventTrackers
s {$sel:nextToken:ListEventTrackers' :: Maybe Text
nextToken = Maybe Text
a} :: ListEventTrackers)
listEventTrackers_datasetGroupArn :: Lens.Lens' ListEventTrackers (Prelude.Maybe Prelude.Text)
listEventTrackers_datasetGroupArn :: (Maybe Text -> f (Maybe Text))
-> ListEventTrackers -> f ListEventTrackers
listEventTrackers_datasetGroupArn = (ListEventTrackers -> Maybe Text)
-> (ListEventTrackers -> Maybe Text -> ListEventTrackers)
-> Lens
ListEventTrackers ListEventTrackers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventTrackers' {Maybe Text
datasetGroupArn :: Maybe Text
$sel:datasetGroupArn:ListEventTrackers' :: ListEventTrackers -> Maybe Text
datasetGroupArn} -> Maybe Text
datasetGroupArn) (\s :: ListEventTrackers
s@ListEventTrackers' {} Maybe Text
a -> ListEventTrackers
s {$sel:datasetGroupArn:ListEventTrackers' :: Maybe Text
datasetGroupArn = Maybe Text
a} :: ListEventTrackers)
listEventTrackers_maxResults :: Lens.Lens' ListEventTrackers (Prelude.Maybe Prelude.Natural)
listEventTrackers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListEventTrackers -> f ListEventTrackers
listEventTrackers_maxResults = (ListEventTrackers -> Maybe Natural)
-> (ListEventTrackers -> Maybe Natural -> ListEventTrackers)
-> Lens
ListEventTrackers ListEventTrackers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventTrackers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListEventTrackers' :: ListEventTrackers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListEventTrackers
s@ListEventTrackers' {} Maybe Natural
a -> ListEventTrackers
s {$sel:maxResults:ListEventTrackers' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListEventTrackers)
instance Core.AWSPager ListEventTrackers where
page :: ListEventTrackers
-> AWSResponse ListEventTrackers -> Maybe ListEventTrackers
page ListEventTrackers
rq AWSResponse ListEventTrackers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListEventTrackers
ListEventTrackersResponse
rs
ListEventTrackersResponse
-> Getting (First Text) ListEventTrackersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListEventTrackersResponse
-> Const (First Text) ListEventTrackersResponse
Lens' ListEventTrackersResponse (Maybe Text)
listEventTrackersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListEventTrackersResponse
-> Const (First Text) ListEventTrackersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListEventTrackersResponse 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 ListEventTrackers
forall a. Maybe a
Prelude.Nothing
| Maybe [EventTrackerSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListEventTrackers
ListEventTrackersResponse
rs
ListEventTrackersResponse
-> Getting
(First [EventTrackerSummary])
ListEventTrackersResponse
[EventTrackerSummary]
-> Maybe [EventTrackerSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [EventTrackerSummary]
-> Const
(First [EventTrackerSummary]) (Maybe [EventTrackerSummary]))
-> ListEventTrackersResponse
-> Const (First [EventTrackerSummary]) ListEventTrackersResponse
Lens' ListEventTrackersResponse (Maybe [EventTrackerSummary])
listEventTrackersResponse_eventTrackers
((Maybe [EventTrackerSummary]
-> Const
(First [EventTrackerSummary]) (Maybe [EventTrackerSummary]))
-> ListEventTrackersResponse
-> Const (First [EventTrackerSummary]) ListEventTrackersResponse)
-> (([EventTrackerSummary]
-> Const (First [EventTrackerSummary]) [EventTrackerSummary])
-> Maybe [EventTrackerSummary]
-> Const
(First [EventTrackerSummary]) (Maybe [EventTrackerSummary]))
-> Getting
(First [EventTrackerSummary])
ListEventTrackersResponse
[EventTrackerSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([EventTrackerSummary]
-> Const (First [EventTrackerSummary]) [EventTrackerSummary])
-> Maybe [EventTrackerSummary]
-> Const
(First [EventTrackerSummary]) (Maybe [EventTrackerSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListEventTrackers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListEventTrackers -> Maybe ListEventTrackers
forall a. a -> Maybe a
Prelude.Just (ListEventTrackers -> Maybe ListEventTrackers)
-> ListEventTrackers -> Maybe ListEventTrackers
forall a b. (a -> b) -> a -> b
Prelude.$
ListEventTrackers
rq
ListEventTrackers
-> (ListEventTrackers -> ListEventTrackers) -> ListEventTrackers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListEventTrackers -> Identity ListEventTrackers
Lens ListEventTrackers ListEventTrackers (Maybe Text) (Maybe Text)
listEventTrackers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListEventTrackers -> Identity ListEventTrackers)
-> Maybe Text -> ListEventTrackers -> ListEventTrackers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListEventTrackers
ListEventTrackersResponse
rs
ListEventTrackersResponse
-> Getting (First Text) ListEventTrackersResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListEventTrackersResponse
-> Const (First Text) ListEventTrackersResponse
Lens' ListEventTrackersResponse (Maybe Text)
listEventTrackersResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListEventTrackersResponse
-> Const (First Text) ListEventTrackersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListEventTrackersResponse 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 ListEventTrackers where
type
AWSResponse ListEventTrackers =
ListEventTrackersResponse
request :: ListEventTrackers -> Request ListEventTrackers
request = Service -> ListEventTrackers -> Request ListEventTrackers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListEventTrackers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListEventTrackers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListEventTrackers))
-> Logger
-> Service
-> Proxy ListEventTrackers
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListEventTrackers)))
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 [EventTrackerSummary]
-> Maybe Text -> Int -> ListEventTrackersResponse
ListEventTrackersResponse'
(Maybe [EventTrackerSummary]
-> Maybe Text -> Int -> ListEventTrackersResponse)
-> Either String (Maybe [EventTrackerSummary])
-> Either String (Maybe Text -> Int -> ListEventTrackersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [EventTrackerSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"eventTrackers" Either String (Maybe (Maybe [EventTrackerSummary]))
-> Maybe [EventTrackerSummary]
-> Either String (Maybe [EventTrackerSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [EventTrackerSummary]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListEventTrackersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListEventTrackersResponse)
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 -> ListEventTrackersResponse)
-> Either String Int -> Either String ListEventTrackersResponse
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 ListEventTrackers
instance Prelude.NFData ListEventTrackers
instance Core.ToHeaders ListEventTrackers where
toHeaders :: ListEventTrackers -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListEventTrackers -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AmazonPersonalize.ListEventTrackers" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON ListEventTrackers where
toJSON :: ListEventTrackers -> Value
toJSON ListEventTrackers' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
datasetGroupArn :: Maybe Text
nextToken :: Maybe Text
$sel:maxResults:ListEventTrackers' :: ListEventTrackers -> Maybe Natural
$sel:datasetGroupArn:ListEventTrackers' :: ListEventTrackers -> Maybe Text
$sel:nextToken:ListEventTrackers' :: ListEventTrackers -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"datasetGroupArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
datasetGroupArn,
(Text
"maxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListEventTrackers where
toPath :: ListEventTrackers -> ByteString
toPath = ByteString -> ListEventTrackers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListEventTrackers where
toQuery :: ListEventTrackers -> QueryString
toQuery = QueryString -> ListEventTrackers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListEventTrackersResponse = ListEventTrackersResponse'
{
ListEventTrackersResponse -> Maybe [EventTrackerSummary]
eventTrackers :: Prelude.Maybe [EventTrackerSummary],
ListEventTrackersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListEventTrackersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListEventTrackersResponse -> ListEventTrackersResponse -> Bool
(ListEventTrackersResponse -> ListEventTrackersResponse -> Bool)
-> (ListEventTrackersResponse -> ListEventTrackersResponse -> Bool)
-> Eq ListEventTrackersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListEventTrackersResponse -> ListEventTrackersResponse -> Bool
$c/= :: ListEventTrackersResponse -> ListEventTrackersResponse -> Bool
== :: ListEventTrackersResponse -> ListEventTrackersResponse -> Bool
$c== :: ListEventTrackersResponse -> ListEventTrackersResponse -> Bool
Prelude.Eq, ReadPrec [ListEventTrackersResponse]
ReadPrec ListEventTrackersResponse
Int -> ReadS ListEventTrackersResponse
ReadS [ListEventTrackersResponse]
(Int -> ReadS ListEventTrackersResponse)
-> ReadS [ListEventTrackersResponse]
-> ReadPrec ListEventTrackersResponse
-> ReadPrec [ListEventTrackersResponse]
-> Read ListEventTrackersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListEventTrackersResponse]
$creadListPrec :: ReadPrec [ListEventTrackersResponse]
readPrec :: ReadPrec ListEventTrackersResponse
$creadPrec :: ReadPrec ListEventTrackersResponse
readList :: ReadS [ListEventTrackersResponse]
$creadList :: ReadS [ListEventTrackersResponse]
readsPrec :: Int -> ReadS ListEventTrackersResponse
$creadsPrec :: Int -> ReadS ListEventTrackersResponse
Prelude.Read, Int -> ListEventTrackersResponse -> ShowS
[ListEventTrackersResponse] -> ShowS
ListEventTrackersResponse -> String
(Int -> ListEventTrackersResponse -> ShowS)
-> (ListEventTrackersResponse -> String)
-> ([ListEventTrackersResponse] -> ShowS)
-> Show ListEventTrackersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListEventTrackersResponse] -> ShowS
$cshowList :: [ListEventTrackersResponse] -> ShowS
show :: ListEventTrackersResponse -> String
$cshow :: ListEventTrackersResponse -> String
showsPrec :: Int -> ListEventTrackersResponse -> ShowS
$cshowsPrec :: Int -> ListEventTrackersResponse -> ShowS
Prelude.Show, (forall x.
ListEventTrackersResponse -> Rep ListEventTrackersResponse x)
-> (forall x.
Rep ListEventTrackersResponse x -> ListEventTrackersResponse)
-> Generic ListEventTrackersResponse
forall x.
Rep ListEventTrackersResponse x -> ListEventTrackersResponse
forall x.
ListEventTrackersResponse -> Rep ListEventTrackersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListEventTrackersResponse x -> ListEventTrackersResponse
$cfrom :: forall x.
ListEventTrackersResponse -> Rep ListEventTrackersResponse x
Prelude.Generic)
newListEventTrackersResponse ::
Prelude.Int ->
ListEventTrackersResponse
newListEventTrackersResponse :: Int -> ListEventTrackersResponse
newListEventTrackersResponse Int
pHttpStatus_ =
ListEventTrackersResponse' :: Maybe [EventTrackerSummary]
-> Maybe Text -> Int -> ListEventTrackersResponse
ListEventTrackersResponse'
{ $sel:eventTrackers:ListEventTrackersResponse' :: Maybe [EventTrackerSummary]
eventTrackers =
Maybe [EventTrackerSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListEventTrackersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListEventTrackersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listEventTrackersResponse_eventTrackers :: Lens.Lens' ListEventTrackersResponse (Prelude.Maybe [EventTrackerSummary])
listEventTrackersResponse_eventTrackers :: (Maybe [EventTrackerSummary] -> f (Maybe [EventTrackerSummary]))
-> ListEventTrackersResponse -> f ListEventTrackersResponse
listEventTrackersResponse_eventTrackers = (ListEventTrackersResponse -> Maybe [EventTrackerSummary])
-> (ListEventTrackersResponse
-> Maybe [EventTrackerSummary] -> ListEventTrackersResponse)
-> Lens' ListEventTrackersResponse (Maybe [EventTrackerSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventTrackersResponse' {Maybe [EventTrackerSummary]
eventTrackers :: Maybe [EventTrackerSummary]
$sel:eventTrackers:ListEventTrackersResponse' :: ListEventTrackersResponse -> Maybe [EventTrackerSummary]
eventTrackers} -> Maybe [EventTrackerSummary]
eventTrackers) (\s :: ListEventTrackersResponse
s@ListEventTrackersResponse' {} Maybe [EventTrackerSummary]
a -> ListEventTrackersResponse
s {$sel:eventTrackers:ListEventTrackersResponse' :: Maybe [EventTrackerSummary]
eventTrackers = Maybe [EventTrackerSummary]
a} :: ListEventTrackersResponse) ((Maybe [EventTrackerSummary] -> f (Maybe [EventTrackerSummary]))
-> ListEventTrackersResponse -> f ListEventTrackersResponse)
-> ((Maybe [EventTrackerSummary]
-> f (Maybe [EventTrackerSummary]))
-> Maybe [EventTrackerSummary] -> f (Maybe [EventTrackerSummary]))
-> (Maybe [EventTrackerSummary] -> f (Maybe [EventTrackerSummary]))
-> ListEventTrackersResponse
-> f ListEventTrackersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[EventTrackerSummary]
[EventTrackerSummary]
[EventTrackerSummary]
[EventTrackerSummary]
-> Iso
(Maybe [EventTrackerSummary])
(Maybe [EventTrackerSummary])
(Maybe [EventTrackerSummary])
(Maybe [EventTrackerSummary])
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
[EventTrackerSummary]
[EventTrackerSummary]
[EventTrackerSummary]
[EventTrackerSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listEventTrackersResponse_nextToken :: Lens.Lens' ListEventTrackersResponse (Prelude.Maybe Prelude.Text)
listEventTrackersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListEventTrackersResponse -> f ListEventTrackersResponse
listEventTrackersResponse_nextToken = (ListEventTrackersResponse -> Maybe Text)
-> (ListEventTrackersResponse
-> Maybe Text -> ListEventTrackersResponse)
-> Lens' ListEventTrackersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventTrackersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListEventTrackersResponse' :: ListEventTrackersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListEventTrackersResponse
s@ListEventTrackersResponse' {} Maybe Text
a -> ListEventTrackersResponse
s {$sel:nextToken:ListEventTrackersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListEventTrackersResponse)
listEventTrackersResponse_httpStatus :: Lens.Lens' ListEventTrackersResponse Prelude.Int
listEventTrackersResponse_httpStatus :: (Int -> f Int)
-> ListEventTrackersResponse -> f ListEventTrackersResponse
listEventTrackersResponse_httpStatus = (ListEventTrackersResponse -> Int)
-> (ListEventTrackersResponse -> Int -> ListEventTrackersResponse)
-> Lens ListEventTrackersResponse ListEventTrackersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListEventTrackersResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListEventTrackersResponse' :: ListEventTrackersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListEventTrackersResponse
s@ListEventTrackersResponse' {} Int
a -> ListEventTrackersResponse
s {$sel:httpStatus:ListEventTrackersResponse' :: Int
httpStatus = Int
a} :: ListEventTrackersResponse)
instance Prelude.NFData ListEventTrackersResponse