{-# 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.DescribeAnomalyDetectionExecutions
(
DescribeAnomalyDetectionExecutions (..),
newDescribeAnomalyDetectionExecutions,
describeAnomalyDetectionExecutions_nextToken,
describeAnomalyDetectionExecutions_timestamp,
describeAnomalyDetectionExecutions_maxResults,
describeAnomalyDetectionExecutions_anomalyDetectorArn,
DescribeAnomalyDetectionExecutionsResponse (..),
newDescribeAnomalyDetectionExecutionsResponse,
describeAnomalyDetectionExecutionsResponse_nextToken,
describeAnomalyDetectionExecutionsResponse_executionList,
describeAnomalyDetectionExecutionsResponse_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 DescribeAnomalyDetectionExecutions = DescribeAnomalyDetectionExecutions'
{
DescribeAnomalyDetectionExecutions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeAnomalyDetectionExecutions -> Maybe Text
timestamp :: Prelude.Maybe Prelude.Text,
DescribeAnomalyDetectionExecutions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeAnomalyDetectionExecutions -> Text
anomalyDetectorArn :: Prelude.Text
}
deriving (DescribeAnomalyDetectionExecutions
-> DescribeAnomalyDetectionExecutions -> Bool
(DescribeAnomalyDetectionExecutions
-> DescribeAnomalyDetectionExecutions -> Bool)
-> (DescribeAnomalyDetectionExecutions
-> DescribeAnomalyDetectionExecutions -> Bool)
-> Eq DescribeAnomalyDetectionExecutions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAnomalyDetectionExecutions
-> DescribeAnomalyDetectionExecutions -> Bool
$c/= :: DescribeAnomalyDetectionExecutions
-> DescribeAnomalyDetectionExecutions -> Bool
== :: DescribeAnomalyDetectionExecutions
-> DescribeAnomalyDetectionExecutions -> Bool
$c== :: DescribeAnomalyDetectionExecutions
-> DescribeAnomalyDetectionExecutions -> Bool
Prelude.Eq, ReadPrec [DescribeAnomalyDetectionExecutions]
ReadPrec DescribeAnomalyDetectionExecutions
Int -> ReadS DescribeAnomalyDetectionExecutions
ReadS [DescribeAnomalyDetectionExecutions]
(Int -> ReadS DescribeAnomalyDetectionExecutions)
-> ReadS [DescribeAnomalyDetectionExecutions]
-> ReadPrec DescribeAnomalyDetectionExecutions
-> ReadPrec [DescribeAnomalyDetectionExecutions]
-> Read DescribeAnomalyDetectionExecutions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAnomalyDetectionExecutions]
$creadListPrec :: ReadPrec [DescribeAnomalyDetectionExecutions]
readPrec :: ReadPrec DescribeAnomalyDetectionExecutions
$creadPrec :: ReadPrec DescribeAnomalyDetectionExecutions
readList :: ReadS [DescribeAnomalyDetectionExecutions]
$creadList :: ReadS [DescribeAnomalyDetectionExecutions]
readsPrec :: Int -> ReadS DescribeAnomalyDetectionExecutions
$creadsPrec :: Int -> ReadS DescribeAnomalyDetectionExecutions
Prelude.Read, Int -> DescribeAnomalyDetectionExecutions -> ShowS
[DescribeAnomalyDetectionExecutions] -> ShowS
DescribeAnomalyDetectionExecutions -> String
(Int -> DescribeAnomalyDetectionExecutions -> ShowS)
-> (DescribeAnomalyDetectionExecutions -> String)
-> ([DescribeAnomalyDetectionExecutions] -> ShowS)
-> Show DescribeAnomalyDetectionExecutions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAnomalyDetectionExecutions] -> ShowS
$cshowList :: [DescribeAnomalyDetectionExecutions] -> ShowS
show :: DescribeAnomalyDetectionExecutions -> String
$cshow :: DescribeAnomalyDetectionExecutions -> String
showsPrec :: Int -> DescribeAnomalyDetectionExecutions -> ShowS
$cshowsPrec :: Int -> DescribeAnomalyDetectionExecutions -> ShowS
Prelude.Show, (forall x.
DescribeAnomalyDetectionExecutions
-> Rep DescribeAnomalyDetectionExecutions x)
-> (forall x.
Rep DescribeAnomalyDetectionExecutions x
-> DescribeAnomalyDetectionExecutions)
-> Generic DescribeAnomalyDetectionExecutions
forall x.
Rep DescribeAnomalyDetectionExecutions x
-> DescribeAnomalyDetectionExecutions
forall x.
DescribeAnomalyDetectionExecutions
-> Rep DescribeAnomalyDetectionExecutions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAnomalyDetectionExecutions x
-> DescribeAnomalyDetectionExecutions
$cfrom :: forall x.
DescribeAnomalyDetectionExecutions
-> Rep DescribeAnomalyDetectionExecutions x
Prelude.Generic)
newDescribeAnomalyDetectionExecutions ::
Prelude.Text ->
DescribeAnomalyDetectionExecutions
newDescribeAnomalyDetectionExecutions :: Text -> DescribeAnomalyDetectionExecutions
newDescribeAnomalyDetectionExecutions
Text
pAnomalyDetectorArn_ =
DescribeAnomalyDetectionExecutions' :: Maybe Text
-> Maybe Text
-> Maybe Natural
-> Text
-> DescribeAnomalyDetectionExecutions
DescribeAnomalyDetectionExecutions'
{ $sel:nextToken:DescribeAnomalyDetectionExecutions' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:timestamp:DescribeAnomalyDetectionExecutions' :: Maybe Text
timestamp = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeAnomalyDetectionExecutions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:anomalyDetectorArn:DescribeAnomalyDetectionExecutions' :: Text
anomalyDetectorArn =
Text
pAnomalyDetectorArn_
}
describeAnomalyDetectionExecutions_nextToken :: Lens.Lens' DescribeAnomalyDetectionExecutions (Prelude.Maybe Prelude.Text)
describeAnomalyDetectionExecutions_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeAnomalyDetectionExecutions
-> f DescribeAnomalyDetectionExecutions
describeAnomalyDetectionExecutions_nextToken = (DescribeAnomalyDetectionExecutions -> Maybe Text)
-> (DescribeAnomalyDetectionExecutions
-> Maybe Text -> DescribeAnomalyDetectionExecutions)
-> Lens
DescribeAnomalyDetectionExecutions
DescribeAnomalyDetectionExecutions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnomalyDetectionExecutions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeAnomalyDetectionExecutions
s@DescribeAnomalyDetectionExecutions' {} Maybe Text
a -> DescribeAnomalyDetectionExecutions
s {$sel:nextToken:DescribeAnomalyDetectionExecutions' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeAnomalyDetectionExecutions)
describeAnomalyDetectionExecutions_timestamp :: Lens.Lens' DescribeAnomalyDetectionExecutions (Prelude.Maybe Prelude.Text)
describeAnomalyDetectionExecutions_timestamp :: (Maybe Text -> f (Maybe Text))
-> DescribeAnomalyDetectionExecutions
-> f DescribeAnomalyDetectionExecutions
describeAnomalyDetectionExecutions_timestamp = (DescribeAnomalyDetectionExecutions -> Maybe Text)
-> (DescribeAnomalyDetectionExecutions
-> Maybe Text -> DescribeAnomalyDetectionExecutions)
-> Lens
DescribeAnomalyDetectionExecutions
DescribeAnomalyDetectionExecutions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnomalyDetectionExecutions' {Maybe Text
timestamp :: Maybe Text
$sel:timestamp:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
timestamp} -> Maybe Text
timestamp) (\s :: DescribeAnomalyDetectionExecutions
s@DescribeAnomalyDetectionExecutions' {} Maybe Text
a -> DescribeAnomalyDetectionExecutions
s {$sel:timestamp:DescribeAnomalyDetectionExecutions' :: Maybe Text
timestamp = Maybe Text
a} :: DescribeAnomalyDetectionExecutions)
describeAnomalyDetectionExecutions_maxResults :: Lens.Lens' DescribeAnomalyDetectionExecutions (Prelude.Maybe Prelude.Natural)
describeAnomalyDetectionExecutions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeAnomalyDetectionExecutions
-> f DescribeAnomalyDetectionExecutions
describeAnomalyDetectionExecutions_maxResults = (DescribeAnomalyDetectionExecutions -> Maybe Natural)
-> (DescribeAnomalyDetectionExecutions
-> Maybe Natural -> DescribeAnomalyDetectionExecutions)
-> Lens
DescribeAnomalyDetectionExecutions
DescribeAnomalyDetectionExecutions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnomalyDetectionExecutions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeAnomalyDetectionExecutions
s@DescribeAnomalyDetectionExecutions' {} Maybe Natural
a -> DescribeAnomalyDetectionExecutions
s {$sel:maxResults:DescribeAnomalyDetectionExecutions' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeAnomalyDetectionExecutions)
describeAnomalyDetectionExecutions_anomalyDetectorArn :: Lens.Lens' DescribeAnomalyDetectionExecutions Prelude.Text
describeAnomalyDetectionExecutions_anomalyDetectorArn :: (Text -> f Text)
-> DescribeAnomalyDetectionExecutions
-> f DescribeAnomalyDetectionExecutions
describeAnomalyDetectionExecutions_anomalyDetectorArn = (DescribeAnomalyDetectionExecutions -> Text)
-> (DescribeAnomalyDetectionExecutions
-> Text -> DescribeAnomalyDetectionExecutions)
-> Lens
DescribeAnomalyDetectionExecutions
DescribeAnomalyDetectionExecutions
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnomalyDetectionExecutions' {Text
anomalyDetectorArn :: Text
$sel:anomalyDetectorArn:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Text
anomalyDetectorArn} -> Text
anomalyDetectorArn) (\s :: DescribeAnomalyDetectionExecutions
s@DescribeAnomalyDetectionExecutions' {} Text
a -> DescribeAnomalyDetectionExecutions
s {$sel:anomalyDetectorArn:DescribeAnomalyDetectionExecutions' :: Text
anomalyDetectorArn = Text
a} :: DescribeAnomalyDetectionExecutions)
instance
Core.AWSRequest
DescribeAnomalyDetectionExecutions
where
type
AWSResponse DescribeAnomalyDetectionExecutions =
DescribeAnomalyDetectionExecutionsResponse
request :: DescribeAnomalyDetectionExecutions
-> Request DescribeAnomalyDetectionExecutions
request = Service
-> DescribeAnomalyDetectionExecutions
-> Request DescribeAnomalyDetectionExecutions
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeAnomalyDetectionExecutions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeAnomalyDetectionExecutions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeAnomalyDetectionExecutions))
-> Logger
-> Service
-> Proxy DescribeAnomalyDetectionExecutions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeAnomalyDetectionExecutions)))
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 [ExecutionStatus]
-> Int
-> DescribeAnomalyDetectionExecutionsResponse
DescribeAnomalyDetectionExecutionsResponse'
(Maybe Text
-> Maybe [ExecutionStatus]
-> Int
-> DescribeAnomalyDetectionExecutionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ExecutionStatus]
-> Int -> DescribeAnomalyDetectionExecutionsResponse)
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 [ExecutionStatus]
-> Int -> DescribeAnomalyDetectionExecutionsResponse)
-> Either String (Maybe [ExecutionStatus])
-> Either
String (Int -> DescribeAnomalyDetectionExecutionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ExecutionStatus]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ExecutionList" Either String (Maybe (Maybe [ExecutionStatus]))
-> Maybe [ExecutionStatus]
-> Either String (Maybe [ExecutionStatus])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ExecutionStatus]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> DescribeAnomalyDetectionExecutionsResponse)
-> Either String Int
-> Either String DescribeAnomalyDetectionExecutionsResponse
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
DescribeAnomalyDetectionExecutions
instance
Prelude.NFData
DescribeAnomalyDetectionExecutions
instance
Core.ToHeaders
DescribeAnomalyDetectionExecutions
where
toHeaders :: DescribeAnomalyDetectionExecutions -> ResponseHeaders
toHeaders =
ResponseHeaders
-> DescribeAnomalyDetectionExecutions -> 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
DescribeAnomalyDetectionExecutions
where
toJSON :: DescribeAnomalyDetectionExecutions -> Value
toJSON DescribeAnomalyDetectionExecutions' {Maybe Natural
Maybe Text
Text
anomalyDetectorArn :: Text
maxResults :: Maybe Natural
timestamp :: Maybe Text
nextToken :: Maybe Text
$sel:anomalyDetectorArn:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Text
$sel:maxResults:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Natural
$sel:timestamp:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
$sel:nextToken:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> 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
"Timestamp" 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
timestamp,
(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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"AnomalyDetectorArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
anomalyDetectorArn)
]
)
instance
Core.ToPath
DescribeAnomalyDetectionExecutions
where
toPath :: DescribeAnomalyDetectionExecutions -> ByteString
toPath =
ByteString -> DescribeAnomalyDetectionExecutions -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/DescribeAnomalyDetectionExecutions"
instance
Core.ToQuery
DescribeAnomalyDetectionExecutions
where
toQuery :: DescribeAnomalyDetectionExecutions -> QueryString
toQuery = QueryString -> DescribeAnomalyDetectionExecutions -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeAnomalyDetectionExecutionsResponse = DescribeAnomalyDetectionExecutionsResponse'
{
DescribeAnomalyDetectionExecutionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeAnomalyDetectionExecutionsResponse
-> Maybe [ExecutionStatus]
executionList :: Prelude.Maybe [ExecutionStatus],
DescribeAnomalyDetectionExecutionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeAnomalyDetectionExecutionsResponse
-> DescribeAnomalyDetectionExecutionsResponse -> Bool
(DescribeAnomalyDetectionExecutionsResponse
-> DescribeAnomalyDetectionExecutionsResponse -> Bool)
-> (DescribeAnomalyDetectionExecutionsResponse
-> DescribeAnomalyDetectionExecutionsResponse -> Bool)
-> Eq DescribeAnomalyDetectionExecutionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAnomalyDetectionExecutionsResponse
-> DescribeAnomalyDetectionExecutionsResponse -> Bool
$c/= :: DescribeAnomalyDetectionExecutionsResponse
-> DescribeAnomalyDetectionExecutionsResponse -> Bool
== :: DescribeAnomalyDetectionExecutionsResponse
-> DescribeAnomalyDetectionExecutionsResponse -> Bool
$c== :: DescribeAnomalyDetectionExecutionsResponse
-> DescribeAnomalyDetectionExecutionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAnomalyDetectionExecutionsResponse]
ReadPrec DescribeAnomalyDetectionExecutionsResponse
Int -> ReadS DescribeAnomalyDetectionExecutionsResponse
ReadS [DescribeAnomalyDetectionExecutionsResponse]
(Int -> ReadS DescribeAnomalyDetectionExecutionsResponse)
-> ReadS [DescribeAnomalyDetectionExecutionsResponse]
-> ReadPrec DescribeAnomalyDetectionExecutionsResponse
-> ReadPrec [DescribeAnomalyDetectionExecutionsResponse]
-> Read DescribeAnomalyDetectionExecutionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAnomalyDetectionExecutionsResponse]
$creadListPrec :: ReadPrec [DescribeAnomalyDetectionExecutionsResponse]
readPrec :: ReadPrec DescribeAnomalyDetectionExecutionsResponse
$creadPrec :: ReadPrec DescribeAnomalyDetectionExecutionsResponse
readList :: ReadS [DescribeAnomalyDetectionExecutionsResponse]
$creadList :: ReadS [DescribeAnomalyDetectionExecutionsResponse]
readsPrec :: Int -> ReadS DescribeAnomalyDetectionExecutionsResponse
$creadsPrec :: Int -> ReadS DescribeAnomalyDetectionExecutionsResponse
Prelude.Read, Int -> DescribeAnomalyDetectionExecutionsResponse -> ShowS
[DescribeAnomalyDetectionExecutionsResponse] -> ShowS
DescribeAnomalyDetectionExecutionsResponse -> String
(Int -> DescribeAnomalyDetectionExecutionsResponse -> ShowS)
-> (DescribeAnomalyDetectionExecutionsResponse -> String)
-> ([DescribeAnomalyDetectionExecutionsResponse] -> ShowS)
-> Show DescribeAnomalyDetectionExecutionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAnomalyDetectionExecutionsResponse] -> ShowS
$cshowList :: [DescribeAnomalyDetectionExecutionsResponse] -> ShowS
show :: DescribeAnomalyDetectionExecutionsResponse -> String
$cshow :: DescribeAnomalyDetectionExecutionsResponse -> String
showsPrec :: Int -> DescribeAnomalyDetectionExecutionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeAnomalyDetectionExecutionsResponse -> ShowS
Prelude.Show, (forall x.
DescribeAnomalyDetectionExecutionsResponse
-> Rep DescribeAnomalyDetectionExecutionsResponse x)
-> (forall x.
Rep DescribeAnomalyDetectionExecutionsResponse x
-> DescribeAnomalyDetectionExecutionsResponse)
-> Generic DescribeAnomalyDetectionExecutionsResponse
forall x.
Rep DescribeAnomalyDetectionExecutionsResponse x
-> DescribeAnomalyDetectionExecutionsResponse
forall x.
DescribeAnomalyDetectionExecutionsResponse
-> Rep DescribeAnomalyDetectionExecutionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAnomalyDetectionExecutionsResponse x
-> DescribeAnomalyDetectionExecutionsResponse
$cfrom :: forall x.
DescribeAnomalyDetectionExecutionsResponse
-> Rep DescribeAnomalyDetectionExecutionsResponse x
Prelude.Generic)
newDescribeAnomalyDetectionExecutionsResponse ::
Prelude.Int ->
DescribeAnomalyDetectionExecutionsResponse
newDescribeAnomalyDetectionExecutionsResponse :: Int -> DescribeAnomalyDetectionExecutionsResponse
newDescribeAnomalyDetectionExecutionsResponse
Int
pHttpStatus_ =
DescribeAnomalyDetectionExecutionsResponse' :: Maybe Text
-> Maybe [ExecutionStatus]
-> Int
-> DescribeAnomalyDetectionExecutionsResponse
DescribeAnomalyDetectionExecutionsResponse'
{ $sel:nextToken:DescribeAnomalyDetectionExecutionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionList:DescribeAnomalyDetectionExecutionsResponse' :: Maybe [ExecutionStatus]
executionList = Maybe [ExecutionStatus]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeAnomalyDetectionExecutionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeAnomalyDetectionExecutionsResponse_nextToken :: Lens.Lens' DescribeAnomalyDetectionExecutionsResponse (Prelude.Maybe Prelude.Text)
describeAnomalyDetectionExecutionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeAnomalyDetectionExecutionsResponse
-> f DescribeAnomalyDetectionExecutionsResponse
describeAnomalyDetectionExecutionsResponse_nextToken = (DescribeAnomalyDetectionExecutionsResponse -> Maybe Text)
-> (DescribeAnomalyDetectionExecutionsResponse
-> Maybe Text -> DescribeAnomalyDetectionExecutionsResponse)
-> Lens
DescribeAnomalyDetectionExecutionsResponse
DescribeAnomalyDetectionExecutionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnomalyDetectionExecutionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeAnomalyDetectionExecutionsResponse' :: DescribeAnomalyDetectionExecutionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeAnomalyDetectionExecutionsResponse
s@DescribeAnomalyDetectionExecutionsResponse' {} Maybe Text
a -> DescribeAnomalyDetectionExecutionsResponse
s {$sel:nextToken:DescribeAnomalyDetectionExecutionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeAnomalyDetectionExecutionsResponse)
describeAnomalyDetectionExecutionsResponse_executionList :: Lens.Lens' DescribeAnomalyDetectionExecutionsResponse (Prelude.Maybe [ExecutionStatus])
describeAnomalyDetectionExecutionsResponse_executionList :: (Maybe [ExecutionStatus] -> f (Maybe [ExecutionStatus]))
-> DescribeAnomalyDetectionExecutionsResponse
-> f DescribeAnomalyDetectionExecutionsResponse
describeAnomalyDetectionExecutionsResponse_executionList = (DescribeAnomalyDetectionExecutionsResponse
-> Maybe [ExecutionStatus])
-> (DescribeAnomalyDetectionExecutionsResponse
-> Maybe [ExecutionStatus]
-> DescribeAnomalyDetectionExecutionsResponse)
-> Lens
DescribeAnomalyDetectionExecutionsResponse
DescribeAnomalyDetectionExecutionsResponse
(Maybe [ExecutionStatus])
(Maybe [ExecutionStatus])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnomalyDetectionExecutionsResponse' {Maybe [ExecutionStatus]
executionList :: Maybe [ExecutionStatus]
$sel:executionList:DescribeAnomalyDetectionExecutionsResponse' :: DescribeAnomalyDetectionExecutionsResponse
-> Maybe [ExecutionStatus]
executionList} -> Maybe [ExecutionStatus]
executionList) (\s :: DescribeAnomalyDetectionExecutionsResponse
s@DescribeAnomalyDetectionExecutionsResponse' {} Maybe [ExecutionStatus]
a -> DescribeAnomalyDetectionExecutionsResponse
s {$sel:executionList:DescribeAnomalyDetectionExecutionsResponse' :: Maybe [ExecutionStatus]
executionList = Maybe [ExecutionStatus]
a} :: DescribeAnomalyDetectionExecutionsResponse) ((Maybe [ExecutionStatus] -> f (Maybe [ExecutionStatus]))
-> DescribeAnomalyDetectionExecutionsResponse
-> f DescribeAnomalyDetectionExecutionsResponse)
-> ((Maybe [ExecutionStatus] -> f (Maybe [ExecutionStatus]))
-> Maybe [ExecutionStatus] -> f (Maybe [ExecutionStatus]))
-> (Maybe [ExecutionStatus] -> f (Maybe [ExecutionStatus]))
-> DescribeAnomalyDetectionExecutionsResponse
-> f DescribeAnomalyDetectionExecutionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ExecutionStatus]
[ExecutionStatus]
[ExecutionStatus]
[ExecutionStatus]
-> Iso
(Maybe [ExecutionStatus])
(Maybe [ExecutionStatus])
(Maybe [ExecutionStatus])
(Maybe [ExecutionStatus])
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
[ExecutionStatus]
[ExecutionStatus]
[ExecutionStatus]
[ExecutionStatus]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAnomalyDetectionExecutionsResponse_httpStatus :: Lens.Lens' DescribeAnomalyDetectionExecutionsResponse Prelude.Int
describeAnomalyDetectionExecutionsResponse_httpStatus :: (Int -> f Int)
-> DescribeAnomalyDetectionExecutionsResponse
-> f DescribeAnomalyDetectionExecutionsResponse
describeAnomalyDetectionExecutionsResponse_httpStatus = (DescribeAnomalyDetectionExecutionsResponse -> Int)
-> (DescribeAnomalyDetectionExecutionsResponse
-> Int -> DescribeAnomalyDetectionExecutionsResponse)
-> Lens
DescribeAnomalyDetectionExecutionsResponse
DescribeAnomalyDetectionExecutionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAnomalyDetectionExecutionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeAnomalyDetectionExecutionsResponse' :: DescribeAnomalyDetectionExecutionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeAnomalyDetectionExecutionsResponse
s@DescribeAnomalyDetectionExecutionsResponse' {} Int
a -> DescribeAnomalyDetectionExecutionsResponse
s {$sel:httpStatus:DescribeAnomalyDetectionExecutionsResponse' :: Int
httpStatus = Int
a} :: DescribeAnomalyDetectionExecutionsResponse)
instance
Prelude.NFData
DescribeAnomalyDetectionExecutionsResponse