{-# 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.Glue.GetTriggers
(
GetTriggers (..),
newGetTriggers,
getTriggers_nextToken,
getTriggers_maxResults,
getTriggers_dependentJobName,
GetTriggersResponse (..),
newGetTriggersResponse,
getTriggersResponse_triggers,
getTriggersResponse_nextToken,
getTriggersResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.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 GetTriggers = GetTriggers'
{
GetTriggers -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTriggers -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetTriggers -> Maybe Text
dependentJobName :: Prelude.Maybe Prelude.Text
}
deriving (GetTriggers -> GetTriggers -> Bool
(GetTriggers -> GetTriggers -> Bool)
-> (GetTriggers -> GetTriggers -> Bool) -> Eq GetTriggers
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTriggers -> GetTriggers -> Bool
$c/= :: GetTriggers -> GetTriggers -> Bool
== :: GetTriggers -> GetTriggers -> Bool
$c== :: GetTriggers -> GetTriggers -> Bool
Prelude.Eq, ReadPrec [GetTriggers]
ReadPrec GetTriggers
Int -> ReadS GetTriggers
ReadS [GetTriggers]
(Int -> ReadS GetTriggers)
-> ReadS [GetTriggers]
-> ReadPrec GetTriggers
-> ReadPrec [GetTriggers]
-> Read GetTriggers
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTriggers]
$creadListPrec :: ReadPrec [GetTriggers]
readPrec :: ReadPrec GetTriggers
$creadPrec :: ReadPrec GetTriggers
readList :: ReadS [GetTriggers]
$creadList :: ReadS [GetTriggers]
readsPrec :: Int -> ReadS GetTriggers
$creadsPrec :: Int -> ReadS GetTriggers
Prelude.Read, Int -> GetTriggers -> ShowS
[GetTriggers] -> ShowS
GetTriggers -> String
(Int -> GetTriggers -> ShowS)
-> (GetTriggers -> String)
-> ([GetTriggers] -> ShowS)
-> Show GetTriggers
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTriggers] -> ShowS
$cshowList :: [GetTriggers] -> ShowS
show :: GetTriggers -> String
$cshow :: GetTriggers -> String
showsPrec :: Int -> GetTriggers -> ShowS
$cshowsPrec :: Int -> GetTriggers -> ShowS
Prelude.Show, (forall x. GetTriggers -> Rep GetTriggers x)
-> (forall x. Rep GetTriggers x -> GetTriggers)
-> Generic GetTriggers
forall x. Rep GetTriggers x -> GetTriggers
forall x. GetTriggers -> Rep GetTriggers x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetTriggers x -> GetTriggers
$cfrom :: forall x. GetTriggers -> Rep GetTriggers x
Prelude.Generic)
newGetTriggers ::
GetTriggers
newGetTriggers :: GetTriggers
newGetTriggers =
GetTriggers' :: Maybe Text -> Maybe Natural -> Maybe Text -> GetTriggers
GetTriggers'
{ $sel:nextToken:GetTriggers' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetTriggers' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:dependentJobName:GetTriggers' :: Maybe Text
dependentJobName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
getTriggers_nextToken :: Lens.Lens' GetTriggers (Prelude.Maybe Prelude.Text)
getTriggers_nextToken :: (Maybe Text -> f (Maybe Text)) -> GetTriggers -> f GetTriggers
getTriggers_nextToken = (GetTriggers -> Maybe Text)
-> (GetTriggers -> Maybe Text -> GetTriggers)
-> Lens GetTriggers GetTriggers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTriggers' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTriggers' :: GetTriggers -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTriggers
s@GetTriggers' {} Maybe Text
a -> GetTriggers
s {$sel:nextToken:GetTriggers' :: Maybe Text
nextToken = Maybe Text
a} :: GetTriggers)
getTriggers_maxResults :: Lens.Lens' GetTriggers (Prelude.Maybe Prelude.Natural)
getTriggers_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetTriggers -> f GetTriggers
getTriggers_maxResults = (GetTriggers -> Maybe Natural)
-> (GetTriggers -> Maybe Natural -> GetTriggers)
-> Lens GetTriggers GetTriggers (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTriggers' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetTriggers' :: GetTriggers -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetTriggers
s@GetTriggers' {} Maybe Natural
a -> GetTriggers
s {$sel:maxResults:GetTriggers' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetTriggers)
getTriggers_dependentJobName :: Lens.Lens' GetTriggers (Prelude.Maybe Prelude.Text)
getTriggers_dependentJobName :: (Maybe Text -> f (Maybe Text)) -> GetTriggers -> f GetTriggers
getTriggers_dependentJobName = (GetTriggers -> Maybe Text)
-> (GetTriggers -> Maybe Text -> GetTriggers)
-> Lens GetTriggers GetTriggers (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTriggers' {Maybe Text
dependentJobName :: Maybe Text
$sel:dependentJobName:GetTriggers' :: GetTriggers -> Maybe Text
dependentJobName} -> Maybe Text
dependentJobName) (\s :: GetTriggers
s@GetTriggers' {} Maybe Text
a -> GetTriggers
s {$sel:dependentJobName:GetTriggers' :: Maybe Text
dependentJobName = Maybe Text
a} :: GetTriggers)
instance Core.AWSPager GetTriggers where
page :: GetTriggers -> AWSResponse GetTriggers -> Maybe GetTriggers
page GetTriggers
rq AWSResponse GetTriggers
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetTriggers
GetTriggersResponse
rs
GetTriggersResponse
-> Getting (First Text) GetTriggersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetTriggersResponse -> Const (First Text) GetTriggersResponse
Lens' GetTriggersResponse (Maybe Text)
getTriggersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetTriggersResponse -> Const (First Text) GetTriggersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetTriggersResponse 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 GetTriggers
forall a. Maybe a
Prelude.Nothing
| Maybe [Trigger] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetTriggers
GetTriggersResponse
rs
GetTriggersResponse
-> Getting (First [Trigger]) GetTriggersResponse [Trigger]
-> Maybe [Trigger]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Trigger] -> Const (First [Trigger]) (Maybe [Trigger]))
-> GetTriggersResponse
-> Const (First [Trigger]) GetTriggersResponse
Lens' GetTriggersResponse (Maybe [Trigger])
getTriggersResponse_triggers ((Maybe [Trigger] -> Const (First [Trigger]) (Maybe [Trigger]))
-> GetTriggersResponse
-> Const (First [Trigger]) GetTriggersResponse)
-> (([Trigger] -> Const (First [Trigger]) [Trigger])
-> Maybe [Trigger] -> Const (First [Trigger]) (Maybe [Trigger]))
-> Getting (First [Trigger]) GetTriggersResponse [Trigger]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Trigger] -> Const (First [Trigger]) [Trigger])
-> Maybe [Trigger] -> Const (First [Trigger]) (Maybe [Trigger])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetTriggers
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetTriggers -> Maybe GetTriggers
forall a. a -> Maybe a
Prelude.Just (GetTriggers -> Maybe GetTriggers)
-> GetTriggers -> Maybe GetTriggers
forall a b. (a -> b) -> a -> b
Prelude.$
GetTriggers
rq
GetTriggers -> (GetTriggers -> GetTriggers) -> GetTriggers
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetTriggers -> Identity GetTriggers
Lens GetTriggers GetTriggers (Maybe Text) (Maybe Text)
getTriggers_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetTriggers -> Identity GetTriggers)
-> Maybe Text -> GetTriggers -> GetTriggers
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetTriggers
GetTriggersResponse
rs
GetTriggersResponse
-> Getting (First Text) GetTriggersResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetTriggersResponse -> Const (First Text) GetTriggersResponse
Lens' GetTriggersResponse (Maybe Text)
getTriggersResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetTriggersResponse -> Const (First Text) GetTriggersResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetTriggersResponse 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 GetTriggers where
type AWSResponse GetTriggers = GetTriggersResponse
request :: GetTriggers -> Request GetTriggers
request = Service -> GetTriggers -> Request GetTriggers
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetTriggers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetTriggers)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetTriggers))
-> Logger
-> Service
-> Proxy GetTriggers
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetTriggers)))
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 [Trigger] -> Maybe Text -> Int -> GetTriggersResponse
GetTriggersResponse'
(Maybe [Trigger] -> Maybe Text -> Int -> GetTriggersResponse)
-> Either String (Maybe [Trigger])
-> Either String (Maybe Text -> Int -> GetTriggersResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Trigger]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Triggers" Either String (Maybe (Maybe [Trigger]))
-> Maybe [Trigger] -> Either String (Maybe [Trigger])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Trigger]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> GetTriggersResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetTriggersResponse)
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 -> GetTriggersResponse)
-> Either String Int -> Either String GetTriggersResponse
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 GetTriggers
instance Prelude.NFData GetTriggers
instance Core.ToHeaders GetTriggers where
toHeaders :: GetTriggers -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetTriggers -> 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
"AWSGlue.GetTriggers" :: 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 GetTriggers where
toJSON :: GetTriggers -> Value
toJSON GetTriggers' {Maybe Natural
Maybe Text
dependentJobName :: Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:dependentJobName:GetTriggers' :: GetTriggers -> Maybe Text
$sel:maxResults:GetTriggers' :: GetTriggers -> Maybe Natural
$sel:nextToken:GetTriggers' :: GetTriggers -> 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
"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,
(Text
"DependentJobName" 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
dependentJobName
]
)
instance Core.ToPath GetTriggers where
toPath :: GetTriggers -> ByteString
toPath = ByteString -> GetTriggers -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetTriggers where
toQuery :: GetTriggers -> QueryString
toQuery = QueryString -> GetTriggers -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetTriggersResponse = GetTriggersResponse'
{
GetTriggersResponse -> Maybe [Trigger]
triggers :: Prelude.Maybe [Trigger],
GetTriggersResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTriggersResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetTriggersResponse -> GetTriggersResponse -> Bool
(GetTriggersResponse -> GetTriggersResponse -> Bool)
-> (GetTriggersResponse -> GetTriggersResponse -> Bool)
-> Eq GetTriggersResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTriggersResponse -> GetTriggersResponse -> Bool
$c/= :: GetTriggersResponse -> GetTriggersResponse -> Bool
== :: GetTriggersResponse -> GetTriggersResponse -> Bool
$c== :: GetTriggersResponse -> GetTriggersResponse -> Bool
Prelude.Eq, ReadPrec [GetTriggersResponse]
ReadPrec GetTriggersResponse
Int -> ReadS GetTriggersResponse
ReadS [GetTriggersResponse]
(Int -> ReadS GetTriggersResponse)
-> ReadS [GetTriggersResponse]
-> ReadPrec GetTriggersResponse
-> ReadPrec [GetTriggersResponse]
-> Read GetTriggersResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTriggersResponse]
$creadListPrec :: ReadPrec [GetTriggersResponse]
readPrec :: ReadPrec GetTriggersResponse
$creadPrec :: ReadPrec GetTriggersResponse
readList :: ReadS [GetTriggersResponse]
$creadList :: ReadS [GetTriggersResponse]
readsPrec :: Int -> ReadS GetTriggersResponse
$creadsPrec :: Int -> ReadS GetTriggersResponse
Prelude.Read, Int -> GetTriggersResponse -> ShowS
[GetTriggersResponse] -> ShowS
GetTriggersResponse -> String
(Int -> GetTriggersResponse -> ShowS)
-> (GetTriggersResponse -> String)
-> ([GetTriggersResponse] -> ShowS)
-> Show GetTriggersResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTriggersResponse] -> ShowS
$cshowList :: [GetTriggersResponse] -> ShowS
show :: GetTriggersResponse -> String
$cshow :: GetTriggersResponse -> String
showsPrec :: Int -> GetTriggersResponse -> ShowS
$cshowsPrec :: Int -> GetTriggersResponse -> ShowS
Prelude.Show, (forall x. GetTriggersResponse -> Rep GetTriggersResponse x)
-> (forall x. Rep GetTriggersResponse x -> GetTriggersResponse)
-> Generic GetTriggersResponse
forall x. Rep GetTriggersResponse x -> GetTriggersResponse
forall x. GetTriggersResponse -> Rep GetTriggersResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetTriggersResponse x -> GetTriggersResponse
$cfrom :: forall x. GetTriggersResponse -> Rep GetTriggersResponse x
Prelude.Generic)
newGetTriggersResponse ::
Prelude.Int ->
GetTriggersResponse
newGetTriggersResponse :: Int -> GetTriggersResponse
newGetTriggersResponse Int
pHttpStatus_ =
GetTriggersResponse' :: Maybe [Trigger] -> Maybe Text -> Int -> GetTriggersResponse
GetTriggersResponse'
{ $sel:triggers:GetTriggersResponse' :: Maybe [Trigger]
triggers = Maybe [Trigger]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetTriggersResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetTriggersResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getTriggersResponse_triggers :: Lens.Lens' GetTriggersResponse (Prelude.Maybe [Trigger])
getTriggersResponse_triggers :: (Maybe [Trigger] -> f (Maybe [Trigger]))
-> GetTriggersResponse -> f GetTriggersResponse
getTriggersResponse_triggers = (GetTriggersResponse -> Maybe [Trigger])
-> (GetTriggersResponse -> Maybe [Trigger] -> GetTriggersResponse)
-> Lens' GetTriggersResponse (Maybe [Trigger])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTriggersResponse' {Maybe [Trigger]
triggers :: Maybe [Trigger]
$sel:triggers:GetTriggersResponse' :: GetTriggersResponse -> Maybe [Trigger]
triggers} -> Maybe [Trigger]
triggers) (\s :: GetTriggersResponse
s@GetTriggersResponse' {} Maybe [Trigger]
a -> GetTriggersResponse
s {$sel:triggers:GetTriggersResponse' :: Maybe [Trigger]
triggers = Maybe [Trigger]
a} :: GetTriggersResponse) ((Maybe [Trigger] -> f (Maybe [Trigger]))
-> GetTriggersResponse -> f GetTriggersResponse)
-> ((Maybe [Trigger] -> f (Maybe [Trigger]))
-> Maybe [Trigger] -> f (Maybe [Trigger]))
-> (Maybe [Trigger] -> f (Maybe [Trigger]))
-> GetTriggersResponse
-> f GetTriggersResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Trigger] [Trigger] [Trigger] [Trigger]
-> Iso
(Maybe [Trigger])
(Maybe [Trigger])
(Maybe [Trigger])
(Maybe [Trigger])
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 [Trigger] [Trigger] [Trigger] [Trigger]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getTriggersResponse_nextToken :: Lens.Lens' GetTriggersResponse (Prelude.Maybe Prelude.Text)
getTriggersResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetTriggersResponse -> f GetTriggersResponse
getTriggersResponse_nextToken = (GetTriggersResponse -> Maybe Text)
-> (GetTriggersResponse -> Maybe Text -> GetTriggersResponse)
-> Lens' GetTriggersResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTriggersResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTriggersResponse' :: GetTriggersResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTriggersResponse
s@GetTriggersResponse' {} Maybe Text
a -> GetTriggersResponse
s {$sel:nextToken:GetTriggersResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetTriggersResponse)
getTriggersResponse_httpStatus :: Lens.Lens' GetTriggersResponse Prelude.Int
getTriggersResponse_httpStatus :: (Int -> f Int) -> GetTriggersResponse -> f GetTriggersResponse
getTriggersResponse_httpStatus = (GetTriggersResponse -> Int)
-> (GetTriggersResponse -> Int -> GetTriggersResponse)
-> Lens GetTriggersResponse GetTriggersResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTriggersResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetTriggersResponse' :: GetTriggersResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetTriggersResponse
s@GetTriggersResponse' {} Int
a -> GetTriggersResponse
s {$sel:httpStatus:GetTriggersResponse' :: Int
httpStatus = Int
a} :: GetTriggersResponse)
instance Prelude.NFData GetTriggersResponse