{-# 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.LookoutMetrics.ListAnomalyDetectors
(
ListAnomalyDetectors (..),
newListAnomalyDetectors,
listAnomalyDetectors_nextToken,
listAnomalyDetectors_maxResults,
ListAnomalyDetectorsResponse (..),
newListAnomalyDetectorsResponse,
listAnomalyDetectorsResponse_nextToken,
listAnomalyDetectorsResponse_anomalyDetectorSummaryList,
listAnomalyDetectorsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LookoutMetrics.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListAnomalyDetectors = ListAnomalyDetectors'
{
ListAnomalyDetectors -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAnomalyDetectors -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListAnomalyDetectors -> ListAnomalyDetectors -> Bool
(ListAnomalyDetectors -> ListAnomalyDetectors -> Bool)
-> (ListAnomalyDetectors -> ListAnomalyDetectors -> Bool)
-> Eq ListAnomalyDetectors
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAnomalyDetectors -> ListAnomalyDetectors -> Bool
$c/= :: ListAnomalyDetectors -> ListAnomalyDetectors -> Bool
== :: ListAnomalyDetectors -> ListAnomalyDetectors -> Bool
$c== :: ListAnomalyDetectors -> ListAnomalyDetectors -> Bool
Prelude.Eq, ReadPrec [ListAnomalyDetectors]
ReadPrec ListAnomalyDetectors
Int -> ReadS ListAnomalyDetectors
ReadS [ListAnomalyDetectors]
(Int -> ReadS ListAnomalyDetectors)
-> ReadS [ListAnomalyDetectors]
-> ReadPrec ListAnomalyDetectors
-> ReadPrec [ListAnomalyDetectors]
-> Read ListAnomalyDetectors
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAnomalyDetectors]
$creadListPrec :: ReadPrec [ListAnomalyDetectors]
readPrec :: ReadPrec ListAnomalyDetectors
$creadPrec :: ReadPrec ListAnomalyDetectors
readList :: ReadS [ListAnomalyDetectors]
$creadList :: ReadS [ListAnomalyDetectors]
readsPrec :: Int -> ReadS ListAnomalyDetectors
$creadsPrec :: Int -> ReadS ListAnomalyDetectors
Prelude.Read, Int -> ListAnomalyDetectors -> ShowS
[ListAnomalyDetectors] -> ShowS
ListAnomalyDetectors -> String
(Int -> ListAnomalyDetectors -> ShowS)
-> (ListAnomalyDetectors -> String)
-> ([ListAnomalyDetectors] -> ShowS)
-> Show ListAnomalyDetectors
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAnomalyDetectors] -> ShowS
$cshowList :: [ListAnomalyDetectors] -> ShowS
show :: ListAnomalyDetectors -> String
$cshow :: ListAnomalyDetectors -> String
showsPrec :: Int -> ListAnomalyDetectors -> ShowS
$cshowsPrec :: Int -> ListAnomalyDetectors -> ShowS
Prelude.Show, (forall x. ListAnomalyDetectors -> Rep ListAnomalyDetectors x)
-> (forall x. Rep ListAnomalyDetectors x -> ListAnomalyDetectors)
-> Generic ListAnomalyDetectors
forall x. Rep ListAnomalyDetectors x -> ListAnomalyDetectors
forall x. ListAnomalyDetectors -> Rep ListAnomalyDetectors x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAnomalyDetectors x -> ListAnomalyDetectors
$cfrom :: forall x. ListAnomalyDetectors -> Rep ListAnomalyDetectors x
Prelude.Generic)
newListAnomalyDetectors ::
ListAnomalyDetectors
newListAnomalyDetectors :: ListAnomalyDetectors
newListAnomalyDetectors =
ListAnomalyDetectors' :: Maybe Text -> Maybe Natural -> ListAnomalyDetectors
ListAnomalyDetectors'
{ $sel:nextToken:ListAnomalyDetectors' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAnomalyDetectors' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listAnomalyDetectors_nextToken :: Lens.Lens' ListAnomalyDetectors (Prelude.Maybe Prelude.Text)
listAnomalyDetectors_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAnomalyDetectors -> f ListAnomalyDetectors
listAnomalyDetectors_nextToken = (ListAnomalyDetectors -> Maybe Text)
-> (ListAnomalyDetectors -> Maybe Text -> ListAnomalyDetectors)
-> Lens
ListAnomalyDetectors ListAnomalyDetectors (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnomalyDetectors' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAnomalyDetectors' :: ListAnomalyDetectors -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAnomalyDetectors
s@ListAnomalyDetectors' {} Maybe Text
a -> ListAnomalyDetectors
s {$sel:nextToken:ListAnomalyDetectors' :: Maybe Text
nextToken = Maybe Text
a} :: ListAnomalyDetectors)
listAnomalyDetectors_maxResults :: Lens.Lens' ListAnomalyDetectors (Prelude.Maybe Prelude.Natural)
listAnomalyDetectors_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListAnomalyDetectors -> f ListAnomalyDetectors
listAnomalyDetectors_maxResults = (ListAnomalyDetectors -> Maybe Natural)
-> (ListAnomalyDetectors -> Maybe Natural -> ListAnomalyDetectors)
-> Lens
ListAnomalyDetectors
ListAnomalyDetectors
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnomalyDetectors' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAnomalyDetectors' :: ListAnomalyDetectors -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAnomalyDetectors
s@ListAnomalyDetectors' {} Maybe Natural
a -> ListAnomalyDetectors
s {$sel:maxResults:ListAnomalyDetectors' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAnomalyDetectors)
instance Core.AWSRequest ListAnomalyDetectors where
type
AWSResponse ListAnomalyDetectors =
ListAnomalyDetectorsResponse
request :: ListAnomalyDetectors -> Request ListAnomalyDetectors
request = Service -> ListAnomalyDetectors -> Request ListAnomalyDetectors
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListAnomalyDetectors
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAnomalyDetectors)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListAnomalyDetectors))
-> Logger
-> Service
-> Proxy ListAnomalyDetectors
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAnomalyDetectors)))
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 Text
-> Maybe [AnomalyDetectorSummary]
-> Int
-> ListAnomalyDetectorsResponse
ListAnomalyDetectorsResponse'
(Maybe Text
-> Maybe [AnomalyDetectorSummary]
-> Int
-> ListAnomalyDetectorsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [AnomalyDetectorSummary]
-> Int -> ListAnomalyDetectorsResponse)
forall (f :: * -> *) a b. Functor 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
(Maybe [AnomalyDetectorSummary]
-> Int -> ListAnomalyDetectorsResponse)
-> Either String (Maybe [AnomalyDetectorSummary])
-> Either String (Int -> ListAnomalyDetectorsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [AnomalyDetectorSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"AnomalyDetectorSummaryList"
Either String (Maybe (Maybe [AnomalyDetectorSummary]))
-> Maybe [AnomalyDetectorSummary]
-> Either String (Maybe [AnomalyDetectorSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AnomalyDetectorSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListAnomalyDetectorsResponse)
-> Either String Int -> Either String ListAnomalyDetectorsResponse
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 ListAnomalyDetectors
instance Prelude.NFData ListAnomalyDetectors
instance Core.ToHeaders ListAnomalyDetectors where
toHeaders :: ListAnomalyDetectors -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListAnomalyDetectors -> 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.ToJSON ListAnomalyDetectors where
toJSON :: ListAnomalyDetectors -> Value
toJSON ListAnomalyDetectors' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListAnomalyDetectors' :: ListAnomalyDetectors -> Maybe Natural
$sel:nextToken:ListAnomalyDetectors' :: ListAnomalyDetectors -> 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
]
)
instance Core.ToPath ListAnomalyDetectors where
toPath :: ListAnomalyDetectors -> ByteString
toPath = ByteString -> ListAnomalyDetectors -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/ListAnomalyDetectors"
instance Core.ToQuery ListAnomalyDetectors where
toQuery :: ListAnomalyDetectors -> QueryString
toQuery = QueryString -> ListAnomalyDetectors -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListAnomalyDetectorsResponse = ListAnomalyDetectorsResponse'
{
ListAnomalyDetectorsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAnomalyDetectorsResponse -> Maybe [AnomalyDetectorSummary]
anomalyDetectorSummaryList :: Prelude.Maybe [AnomalyDetectorSummary],
ListAnomalyDetectorsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAnomalyDetectorsResponse
-> ListAnomalyDetectorsResponse -> Bool
(ListAnomalyDetectorsResponse
-> ListAnomalyDetectorsResponse -> Bool)
-> (ListAnomalyDetectorsResponse
-> ListAnomalyDetectorsResponse -> Bool)
-> Eq ListAnomalyDetectorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAnomalyDetectorsResponse
-> ListAnomalyDetectorsResponse -> Bool
$c/= :: ListAnomalyDetectorsResponse
-> ListAnomalyDetectorsResponse -> Bool
== :: ListAnomalyDetectorsResponse
-> ListAnomalyDetectorsResponse -> Bool
$c== :: ListAnomalyDetectorsResponse
-> ListAnomalyDetectorsResponse -> Bool
Prelude.Eq, ReadPrec [ListAnomalyDetectorsResponse]
ReadPrec ListAnomalyDetectorsResponse
Int -> ReadS ListAnomalyDetectorsResponse
ReadS [ListAnomalyDetectorsResponse]
(Int -> ReadS ListAnomalyDetectorsResponse)
-> ReadS [ListAnomalyDetectorsResponse]
-> ReadPrec ListAnomalyDetectorsResponse
-> ReadPrec [ListAnomalyDetectorsResponse]
-> Read ListAnomalyDetectorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAnomalyDetectorsResponse]
$creadListPrec :: ReadPrec [ListAnomalyDetectorsResponse]
readPrec :: ReadPrec ListAnomalyDetectorsResponse
$creadPrec :: ReadPrec ListAnomalyDetectorsResponse
readList :: ReadS [ListAnomalyDetectorsResponse]
$creadList :: ReadS [ListAnomalyDetectorsResponse]
readsPrec :: Int -> ReadS ListAnomalyDetectorsResponse
$creadsPrec :: Int -> ReadS ListAnomalyDetectorsResponse
Prelude.Read, Int -> ListAnomalyDetectorsResponse -> ShowS
[ListAnomalyDetectorsResponse] -> ShowS
ListAnomalyDetectorsResponse -> String
(Int -> ListAnomalyDetectorsResponse -> ShowS)
-> (ListAnomalyDetectorsResponse -> String)
-> ([ListAnomalyDetectorsResponse] -> ShowS)
-> Show ListAnomalyDetectorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAnomalyDetectorsResponse] -> ShowS
$cshowList :: [ListAnomalyDetectorsResponse] -> ShowS
show :: ListAnomalyDetectorsResponse -> String
$cshow :: ListAnomalyDetectorsResponse -> String
showsPrec :: Int -> ListAnomalyDetectorsResponse -> ShowS
$cshowsPrec :: Int -> ListAnomalyDetectorsResponse -> ShowS
Prelude.Show, (forall x.
ListAnomalyDetectorsResponse -> Rep ListAnomalyDetectorsResponse x)
-> (forall x.
Rep ListAnomalyDetectorsResponse x -> ListAnomalyDetectorsResponse)
-> Generic ListAnomalyDetectorsResponse
forall x.
Rep ListAnomalyDetectorsResponse x -> ListAnomalyDetectorsResponse
forall x.
ListAnomalyDetectorsResponse -> Rep ListAnomalyDetectorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAnomalyDetectorsResponse x -> ListAnomalyDetectorsResponse
$cfrom :: forall x.
ListAnomalyDetectorsResponse -> Rep ListAnomalyDetectorsResponse x
Prelude.Generic)
newListAnomalyDetectorsResponse ::
Prelude.Int ->
ListAnomalyDetectorsResponse
newListAnomalyDetectorsResponse :: Int -> ListAnomalyDetectorsResponse
newListAnomalyDetectorsResponse Int
pHttpStatus_ =
ListAnomalyDetectorsResponse' :: Maybe Text
-> Maybe [AnomalyDetectorSummary]
-> Int
-> ListAnomalyDetectorsResponse
ListAnomalyDetectorsResponse'
{ $sel:nextToken:ListAnomalyDetectorsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:anomalyDetectorSummaryList:ListAnomalyDetectorsResponse' :: Maybe [AnomalyDetectorSummary]
anomalyDetectorSummaryList = Maybe [AnomalyDetectorSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAnomalyDetectorsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAnomalyDetectorsResponse_nextToken :: Lens.Lens' ListAnomalyDetectorsResponse (Prelude.Maybe Prelude.Text)
listAnomalyDetectorsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListAnomalyDetectorsResponse -> f ListAnomalyDetectorsResponse
listAnomalyDetectorsResponse_nextToken = (ListAnomalyDetectorsResponse -> Maybe Text)
-> (ListAnomalyDetectorsResponse
-> Maybe Text -> ListAnomalyDetectorsResponse)
-> Lens
ListAnomalyDetectorsResponse
ListAnomalyDetectorsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnomalyDetectorsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAnomalyDetectorsResponse' :: ListAnomalyDetectorsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAnomalyDetectorsResponse
s@ListAnomalyDetectorsResponse' {} Maybe Text
a -> ListAnomalyDetectorsResponse
s {$sel:nextToken:ListAnomalyDetectorsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAnomalyDetectorsResponse)
listAnomalyDetectorsResponse_anomalyDetectorSummaryList :: Lens.Lens' ListAnomalyDetectorsResponse (Prelude.Maybe [AnomalyDetectorSummary])
listAnomalyDetectorsResponse_anomalyDetectorSummaryList :: (Maybe [AnomalyDetectorSummary]
-> f (Maybe [AnomalyDetectorSummary]))
-> ListAnomalyDetectorsResponse -> f ListAnomalyDetectorsResponse
listAnomalyDetectorsResponse_anomalyDetectorSummaryList = (ListAnomalyDetectorsResponse -> Maybe [AnomalyDetectorSummary])
-> (ListAnomalyDetectorsResponse
-> Maybe [AnomalyDetectorSummary] -> ListAnomalyDetectorsResponse)
-> Lens
ListAnomalyDetectorsResponse
ListAnomalyDetectorsResponse
(Maybe [AnomalyDetectorSummary])
(Maybe [AnomalyDetectorSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnomalyDetectorsResponse' {Maybe [AnomalyDetectorSummary]
anomalyDetectorSummaryList :: Maybe [AnomalyDetectorSummary]
$sel:anomalyDetectorSummaryList:ListAnomalyDetectorsResponse' :: ListAnomalyDetectorsResponse -> Maybe [AnomalyDetectorSummary]
anomalyDetectorSummaryList} -> Maybe [AnomalyDetectorSummary]
anomalyDetectorSummaryList) (\s :: ListAnomalyDetectorsResponse
s@ListAnomalyDetectorsResponse' {} Maybe [AnomalyDetectorSummary]
a -> ListAnomalyDetectorsResponse
s {$sel:anomalyDetectorSummaryList:ListAnomalyDetectorsResponse' :: Maybe [AnomalyDetectorSummary]
anomalyDetectorSummaryList = Maybe [AnomalyDetectorSummary]
a} :: ListAnomalyDetectorsResponse) ((Maybe [AnomalyDetectorSummary]
-> f (Maybe [AnomalyDetectorSummary]))
-> ListAnomalyDetectorsResponse -> f ListAnomalyDetectorsResponse)
-> ((Maybe [AnomalyDetectorSummary]
-> f (Maybe [AnomalyDetectorSummary]))
-> Maybe [AnomalyDetectorSummary]
-> f (Maybe [AnomalyDetectorSummary]))
-> (Maybe [AnomalyDetectorSummary]
-> f (Maybe [AnomalyDetectorSummary]))
-> ListAnomalyDetectorsResponse
-> f ListAnomalyDetectorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AnomalyDetectorSummary]
[AnomalyDetectorSummary]
[AnomalyDetectorSummary]
[AnomalyDetectorSummary]
-> Iso
(Maybe [AnomalyDetectorSummary])
(Maybe [AnomalyDetectorSummary])
(Maybe [AnomalyDetectorSummary])
(Maybe [AnomalyDetectorSummary])
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
[AnomalyDetectorSummary]
[AnomalyDetectorSummary]
[AnomalyDetectorSummary]
[AnomalyDetectorSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAnomalyDetectorsResponse_httpStatus :: Lens.Lens' ListAnomalyDetectorsResponse Prelude.Int
listAnomalyDetectorsResponse_httpStatus :: (Int -> f Int)
-> ListAnomalyDetectorsResponse -> f ListAnomalyDetectorsResponse
listAnomalyDetectorsResponse_httpStatus = (ListAnomalyDetectorsResponse -> Int)
-> (ListAnomalyDetectorsResponse
-> Int -> ListAnomalyDetectorsResponse)
-> Lens
ListAnomalyDetectorsResponse ListAnomalyDetectorsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAnomalyDetectorsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAnomalyDetectorsResponse' :: ListAnomalyDetectorsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAnomalyDetectorsResponse
s@ListAnomalyDetectorsResponse' {} Int
a -> ListAnomalyDetectorsResponse
s {$sel:httpStatus:ListAnomalyDetectorsResponse' :: Int
httpStatus = Int
a} :: ListAnomalyDetectorsResponse)
instance Prelude.NFData ListAnomalyDetectorsResponse