{-# 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_maxResults,
describeAnomalyDetectionExecutions_nextToken,
describeAnomalyDetectionExecutions_timestamp,
describeAnomalyDetectionExecutions_anomalyDetectorArn,
DescribeAnomalyDetectionExecutionsResponse (..),
newDescribeAnomalyDetectionExecutionsResponse,
describeAnomalyDetectionExecutionsResponse_executionList,
describeAnomalyDetectionExecutionsResponse_nextToken,
describeAnomalyDetectionExecutionsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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 Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeAnomalyDetectionExecutions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeAnomalyDetectionExecutions -> Maybe Text
timestamp :: Prelude.Maybe Prelude.Text,
DescribeAnomalyDetectionExecutions -> Text
anomalyDetectorArn :: Prelude.Text
}
deriving (DescribeAnomalyDetectionExecutions
-> DescribeAnomalyDetectionExecutions -> Bool
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]
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
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.
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'
{ $sel:maxResults:DescribeAnomalyDetectionExecutions' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeAnomalyDetectionExecutions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:timestamp:DescribeAnomalyDetectionExecutions' :: Maybe Text
timestamp = forall a. Maybe a
Prelude.Nothing,
$sel:anomalyDetectorArn:DescribeAnomalyDetectionExecutions' :: Text
anomalyDetectorArn =
Text
pAnomalyDetectorArn_
}
describeAnomalyDetectionExecutions_maxResults :: Lens.Lens' DescribeAnomalyDetectionExecutions (Prelude.Maybe Prelude.Natural)
describeAnomalyDetectionExecutions_maxResults :: Lens' DescribeAnomalyDetectionExecutions (Maybe Natural)
describeAnomalyDetectionExecutions_maxResults = 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_nextToken :: Lens.Lens' DescribeAnomalyDetectionExecutions (Prelude.Maybe Prelude.Text)
describeAnomalyDetectionExecutions_nextToken :: Lens' DescribeAnomalyDetectionExecutions (Maybe Text)
describeAnomalyDetectionExecutions_nextToken = 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 :: Lens' DescribeAnomalyDetectionExecutions (Maybe Text)
describeAnomalyDetectionExecutions_timestamp = 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_anomalyDetectorArn :: Lens.Lens' DescribeAnomalyDetectionExecutions Prelude.Text
describeAnomalyDetectionExecutions_anomalyDetectorArn :: Lens' DescribeAnomalyDetectionExecutions Text
describeAnomalyDetectionExecutions_anomalyDetectorArn = 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 :: (Service -> Service)
-> DescribeAnomalyDetectionExecutions
-> Request DescribeAnomalyDetectionExecutions
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DescribeAnomalyDetectionExecutions
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse DescribeAnomalyDetectionExecutions)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [ExecutionStatus]
-> Maybe Text -> Int -> DescribeAnomalyDetectionExecutionsResponse
DescribeAnomalyDetectionExecutionsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"ExecutionList" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
DescribeAnomalyDetectionExecutions
where
hashWithSalt :: Int -> DescribeAnomalyDetectionExecutions -> Int
hashWithSalt
Int
_salt
DescribeAnomalyDetectionExecutions' {Maybe Natural
Maybe Text
Text
anomalyDetectorArn :: Text
timestamp :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:anomalyDetectorArn:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Text
$sel:timestamp:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
$sel:nextToken:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
$sel:maxResults:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Natural
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
timestamp
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
anomalyDetectorArn
instance
Prelude.NFData
DescribeAnomalyDetectionExecutions
where
rnf :: DescribeAnomalyDetectionExecutions -> ()
rnf DescribeAnomalyDetectionExecutions' {Maybe Natural
Maybe Text
Text
anomalyDetectorArn :: Text
timestamp :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:anomalyDetectorArn:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Text
$sel:timestamp:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
$sel:nextToken:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
$sel:maxResults:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Natural
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
timestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
anomalyDetectorArn
instance
Data.ToHeaders
DescribeAnomalyDetectionExecutions
where
toHeaders :: DescribeAnomalyDetectionExecutions -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Data.ToJSON
DescribeAnomalyDetectionExecutions
where
toJSON :: DescribeAnomalyDetectionExecutions -> Value
toJSON DescribeAnomalyDetectionExecutions' {Maybe Natural
Maybe Text
Text
anomalyDetectorArn :: Text
timestamp :: Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:anomalyDetectorArn:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Text
$sel:timestamp:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
$sel:nextToken:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Text
$sel:maxResults:DescribeAnomalyDetectionExecutions' :: DescribeAnomalyDetectionExecutions -> Maybe Natural
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Key
"Timestamp" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
timestamp,
forall a. a -> Maybe a
Prelude.Just
(Key
"AnomalyDetectorArn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
anomalyDetectorArn)
]
)
instance
Data.ToPath
DescribeAnomalyDetectionExecutions
where
toPath :: DescribeAnomalyDetectionExecutions -> ByteString
toPath =
forall a b. a -> b -> a
Prelude.const ByteString
"/DescribeAnomalyDetectionExecutions"
instance
Data.ToQuery
DescribeAnomalyDetectionExecutions
where
toQuery :: DescribeAnomalyDetectionExecutions -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DescribeAnomalyDetectionExecutionsResponse = DescribeAnomalyDetectionExecutionsResponse'
{
DescribeAnomalyDetectionExecutionsResponse
-> Maybe [ExecutionStatus]
executionList :: Prelude.Maybe [ExecutionStatus],
DescribeAnomalyDetectionExecutionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeAnomalyDetectionExecutionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeAnomalyDetectionExecutionsResponse
-> DescribeAnomalyDetectionExecutionsResponse -> Bool
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]
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
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.
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'
{ $sel:executionList:DescribeAnomalyDetectionExecutionsResponse' :: Maybe [ExecutionStatus]
executionList =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeAnomalyDetectionExecutionsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeAnomalyDetectionExecutionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeAnomalyDetectionExecutionsResponse_executionList :: Lens.Lens' DescribeAnomalyDetectionExecutionsResponse (Prelude.Maybe [ExecutionStatus])
describeAnomalyDetectionExecutionsResponse_executionList :: Lens'
DescribeAnomalyDetectionExecutionsResponse
(Maybe [ExecutionStatus])
describeAnomalyDetectionExecutionsResponse_executionList = 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) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeAnomalyDetectionExecutionsResponse_nextToken :: Lens.Lens' DescribeAnomalyDetectionExecutionsResponse (Prelude.Maybe Prelude.Text)
describeAnomalyDetectionExecutionsResponse_nextToken :: Lens' DescribeAnomalyDetectionExecutionsResponse (Maybe Text)
describeAnomalyDetectionExecutionsResponse_nextToken = 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_httpStatus :: Lens.Lens' DescribeAnomalyDetectionExecutionsResponse Prelude.Int
describeAnomalyDetectionExecutionsResponse_httpStatus :: Lens' DescribeAnomalyDetectionExecutionsResponse Int
describeAnomalyDetectionExecutionsResponse_httpStatus = 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
where
rnf :: DescribeAnomalyDetectionExecutionsResponse -> ()
rnf DescribeAnomalyDetectionExecutionsResponse' {Int
Maybe [ExecutionStatus]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
executionList :: Maybe [ExecutionStatus]
$sel:httpStatus:DescribeAnomalyDetectionExecutionsResponse' :: DescribeAnomalyDetectionExecutionsResponse -> Int
$sel:nextToken:DescribeAnomalyDetectionExecutionsResponse' :: DescribeAnomalyDetectionExecutionsResponse -> Maybe Text
$sel:executionList:DescribeAnomalyDetectionExecutionsResponse' :: DescribeAnomalyDetectionExecutionsResponse
-> Maybe [ExecutionStatus]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [ExecutionStatus]
executionList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus