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