{-# 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.UpdateAnomalyDetector
(
UpdateAnomalyDetector (..),
newUpdateAnomalyDetector,
updateAnomalyDetector_kmsKeyArn,
updateAnomalyDetector_anomalyDetectorConfig,
updateAnomalyDetector_anomalyDetectorDescription,
updateAnomalyDetector_anomalyDetectorArn,
UpdateAnomalyDetectorResponse (..),
newUpdateAnomalyDetectorResponse,
updateAnomalyDetectorResponse_anomalyDetectorArn,
updateAnomalyDetectorResponse_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 UpdateAnomalyDetector = UpdateAnomalyDetector'
{
UpdateAnomalyDetector -> Maybe Text
kmsKeyArn :: Prelude.Maybe Prelude.Text,
UpdateAnomalyDetector -> Maybe AnomalyDetectorConfig
anomalyDetectorConfig :: Prelude.Maybe AnomalyDetectorConfig,
UpdateAnomalyDetector -> Maybe Text
anomalyDetectorDescription :: Prelude.Maybe Prelude.Text,
UpdateAnomalyDetector -> Text
anomalyDetectorArn :: Prelude.Text
}
deriving (UpdateAnomalyDetector -> UpdateAnomalyDetector -> Bool
(UpdateAnomalyDetector -> UpdateAnomalyDetector -> Bool)
-> (UpdateAnomalyDetector -> UpdateAnomalyDetector -> Bool)
-> Eq UpdateAnomalyDetector
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAnomalyDetector -> UpdateAnomalyDetector -> Bool
$c/= :: UpdateAnomalyDetector -> UpdateAnomalyDetector -> Bool
== :: UpdateAnomalyDetector -> UpdateAnomalyDetector -> Bool
$c== :: UpdateAnomalyDetector -> UpdateAnomalyDetector -> Bool
Prelude.Eq, ReadPrec [UpdateAnomalyDetector]
ReadPrec UpdateAnomalyDetector
Int -> ReadS UpdateAnomalyDetector
ReadS [UpdateAnomalyDetector]
(Int -> ReadS UpdateAnomalyDetector)
-> ReadS [UpdateAnomalyDetector]
-> ReadPrec UpdateAnomalyDetector
-> ReadPrec [UpdateAnomalyDetector]
-> Read UpdateAnomalyDetector
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAnomalyDetector]
$creadListPrec :: ReadPrec [UpdateAnomalyDetector]
readPrec :: ReadPrec UpdateAnomalyDetector
$creadPrec :: ReadPrec UpdateAnomalyDetector
readList :: ReadS [UpdateAnomalyDetector]
$creadList :: ReadS [UpdateAnomalyDetector]
readsPrec :: Int -> ReadS UpdateAnomalyDetector
$creadsPrec :: Int -> ReadS UpdateAnomalyDetector
Prelude.Read, Int -> UpdateAnomalyDetector -> ShowS
[UpdateAnomalyDetector] -> ShowS
UpdateAnomalyDetector -> String
(Int -> UpdateAnomalyDetector -> ShowS)
-> (UpdateAnomalyDetector -> String)
-> ([UpdateAnomalyDetector] -> ShowS)
-> Show UpdateAnomalyDetector
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAnomalyDetector] -> ShowS
$cshowList :: [UpdateAnomalyDetector] -> ShowS
show :: UpdateAnomalyDetector -> String
$cshow :: UpdateAnomalyDetector -> String
showsPrec :: Int -> UpdateAnomalyDetector -> ShowS
$cshowsPrec :: Int -> UpdateAnomalyDetector -> ShowS
Prelude.Show, (forall x. UpdateAnomalyDetector -> Rep UpdateAnomalyDetector x)
-> (forall x. Rep UpdateAnomalyDetector x -> UpdateAnomalyDetector)
-> Generic UpdateAnomalyDetector
forall x. Rep UpdateAnomalyDetector x -> UpdateAnomalyDetector
forall x. UpdateAnomalyDetector -> Rep UpdateAnomalyDetector x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAnomalyDetector x -> UpdateAnomalyDetector
$cfrom :: forall x. UpdateAnomalyDetector -> Rep UpdateAnomalyDetector x
Prelude.Generic)
newUpdateAnomalyDetector ::
Prelude.Text ->
UpdateAnomalyDetector
newUpdateAnomalyDetector :: Text -> UpdateAnomalyDetector
newUpdateAnomalyDetector Text
pAnomalyDetectorArn_ =
UpdateAnomalyDetector' :: Maybe Text
-> Maybe AnomalyDetectorConfig
-> Maybe Text
-> Text
-> UpdateAnomalyDetector
UpdateAnomalyDetector'
{ $sel:kmsKeyArn:UpdateAnomalyDetector' :: Maybe Text
kmsKeyArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:anomalyDetectorConfig:UpdateAnomalyDetector' :: Maybe AnomalyDetectorConfig
anomalyDetectorConfig = Maybe AnomalyDetectorConfig
forall a. Maybe a
Prelude.Nothing,
$sel:anomalyDetectorDescription:UpdateAnomalyDetector' :: Maybe Text
anomalyDetectorDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:anomalyDetectorArn:UpdateAnomalyDetector' :: Text
anomalyDetectorArn = Text
pAnomalyDetectorArn_
}
updateAnomalyDetector_kmsKeyArn :: Lens.Lens' UpdateAnomalyDetector (Prelude.Maybe Prelude.Text)
updateAnomalyDetector_kmsKeyArn :: (Maybe Text -> f (Maybe Text))
-> UpdateAnomalyDetector -> f UpdateAnomalyDetector
updateAnomalyDetector_kmsKeyArn = (UpdateAnomalyDetector -> Maybe Text)
-> (UpdateAnomalyDetector -> Maybe Text -> UpdateAnomalyDetector)
-> Lens
UpdateAnomalyDetector
UpdateAnomalyDetector
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAnomalyDetector' {Maybe Text
kmsKeyArn :: Maybe Text
$sel:kmsKeyArn:UpdateAnomalyDetector' :: UpdateAnomalyDetector -> Maybe Text
kmsKeyArn} -> Maybe Text
kmsKeyArn) (\s :: UpdateAnomalyDetector
s@UpdateAnomalyDetector' {} Maybe Text
a -> UpdateAnomalyDetector
s {$sel:kmsKeyArn:UpdateAnomalyDetector' :: Maybe Text
kmsKeyArn = Maybe Text
a} :: UpdateAnomalyDetector)
updateAnomalyDetector_anomalyDetectorConfig :: Lens.Lens' UpdateAnomalyDetector (Prelude.Maybe AnomalyDetectorConfig)
updateAnomalyDetector_anomalyDetectorConfig :: (Maybe AnomalyDetectorConfig -> f (Maybe AnomalyDetectorConfig))
-> UpdateAnomalyDetector -> f UpdateAnomalyDetector
updateAnomalyDetector_anomalyDetectorConfig = (UpdateAnomalyDetector -> Maybe AnomalyDetectorConfig)
-> (UpdateAnomalyDetector
-> Maybe AnomalyDetectorConfig -> UpdateAnomalyDetector)
-> Lens
UpdateAnomalyDetector
UpdateAnomalyDetector
(Maybe AnomalyDetectorConfig)
(Maybe AnomalyDetectorConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAnomalyDetector' {Maybe AnomalyDetectorConfig
anomalyDetectorConfig :: Maybe AnomalyDetectorConfig
$sel:anomalyDetectorConfig:UpdateAnomalyDetector' :: UpdateAnomalyDetector -> Maybe AnomalyDetectorConfig
anomalyDetectorConfig} -> Maybe AnomalyDetectorConfig
anomalyDetectorConfig) (\s :: UpdateAnomalyDetector
s@UpdateAnomalyDetector' {} Maybe AnomalyDetectorConfig
a -> UpdateAnomalyDetector
s {$sel:anomalyDetectorConfig:UpdateAnomalyDetector' :: Maybe AnomalyDetectorConfig
anomalyDetectorConfig = Maybe AnomalyDetectorConfig
a} :: UpdateAnomalyDetector)
updateAnomalyDetector_anomalyDetectorDescription :: Lens.Lens' UpdateAnomalyDetector (Prelude.Maybe Prelude.Text)
updateAnomalyDetector_anomalyDetectorDescription :: (Maybe Text -> f (Maybe Text))
-> UpdateAnomalyDetector -> f UpdateAnomalyDetector
updateAnomalyDetector_anomalyDetectorDescription = (UpdateAnomalyDetector -> Maybe Text)
-> (UpdateAnomalyDetector -> Maybe Text -> UpdateAnomalyDetector)
-> Lens
UpdateAnomalyDetector
UpdateAnomalyDetector
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAnomalyDetector' {Maybe Text
anomalyDetectorDescription :: Maybe Text
$sel:anomalyDetectorDescription:UpdateAnomalyDetector' :: UpdateAnomalyDetector -> Maybe Text
anomalyDetectorDescription} -> Maybe Text
anomalyDetectorDescription) (\s :: UpdateAnomalyDetector
s@UpdateAnomalyDetector' {} Maybe Text
a -> UpdateAnomalyDetector
s {$sel:anomalyDetectorDescription:UpdateAnomalyDetector' :: Maybe Text
anomalyDetectorDescription = Maybe Text
a} :: UpdateAnomalyDetector)
updateAnomalyDetector_anomalyDetectorArn :: Lens.Lens' UpdateAnomalyDetector Prelude.Text
updateAnomalyDetector_anomalyDetectorArn :: (Text -> f Text)
-> UpdateAnomalyDetector -> f UpdateAnomalyDetector
updateAnomalyDetector_anomalyDetectorArn = (UpdateAnomalyDetector -> Text)
-> (UpdateAnomalyDetector -> Text -> UpdateAnomalyDetector)
-> Lens UpdateAnomalyDetector UpdateAnomalyDetector Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAnomalyDetector' {Text
anomalyDetectorArn :: Text
$sel:anomalyDetectorArn:UpdateAnomalyDetector' :: UpdateAnomalyDetector -> Text
anomalyDetectorArn} -> Text
anomalyDetectorArn) (\s :: UpdateAnomalyDetector
s@UpdateAnomalyDetector' {} Text
a -> UpdateAnomalyDetector
s {$sel:anomalyDetectorArn:UpdateAnomalyDetector' :: Text
anomalyDetectorArn = Text
a} :: UpdateAnomalyDetector)
instance Core.AWSRequest UpdateAnomalyDetector where
type
AWSResponse UpdateAnomalyDetector =
UpdateAnomalyDetectorResponse
request :: UpdateAnomalyDetector -> Request UpdateAnomalyDetector
request = Service -> UpdateAnomalyDetector -> Request UpdateAnomalyDetector
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateAnomalyDetector
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateAnomalyDetector)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateAnomalyDetector))
-> Logger
-> Service
-> Proxy UpdateAnomalyDetector
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateAnomalyDetector)))
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 -> Int -> UpdateAnomalyDetectorResponse
UpdateAnomalyDetectorResponse'
(Maybe Text -> Int -> UpdateAnomalyDetectorResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UpdateAnomalyDetectorResponse)
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
"AnomalyDetectorArn")
Either String (Int -> UpdateAnomalyDetectorResponse)
-> Either String Int -> Either String UpdateAnomalyDetectorResponse
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 UpdateAnomalyDetector
instance Prelude.NFData UpdateAnomalyDetector
instance Core.ToHeaders UpdateAnomalyDetector where
toHeaders :: UpdateAnomalyDetector -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateAnomalyDetector -> 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 UpdateAnomalyDetector where
toJSON :: UpdateAnomalyDetector -> Value
toJSON UpdateAnomalyDetector' {Maybe Text
Maybe AnomalyDetectorConfig
Text
anomalyDetectorArn :: Text
anomalyDetectorDescription :: Maybe Text
anomalyDetectorConfig :: Maybe AnomalyDetectorConfig
kmsKeyArn :: Maybe Text
$sel:anomalyDetectorArn:UpdateAnomalyDetector' :: UpdateAnomalyDetector -> Text
$sel:anomalyDetectorDescription:UpdateAnomalyDetector' :: UpdateAnomalyDetector -> Maybe Text
$sel:anomalyDetectorConfig:UpdateAnomalyDetector' :: UpdateAnomalyDetector -> Maybe AnomalyDetectorConfig
$sel:kmsKeyArn:UpdateAnomalyDetector' :: UpdateAnomalyDetector -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"KmsKeyArn" 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
kmsKeyArn,
(Text
"AnomalyDetectorConfig" Text -> AnomalyDetectorConfig -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(AnomalyDetectorConfig -> Pair)
-> Maybe AnomalyDetectorConfig -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AnomalyDetectorConfig
anomalyDetectorConfig,
(Text
"AnomalyDetectorDescription" 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
anomalyDetectorDescription,
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 UpdateAnomalyDetector where
toPath :: UpdateAnomalyDetector -> ByteString
toPath = ByteString -> UpdateAnomalyDetector -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/UpdateAnomalyDetector"
instance Core.ToQuery UpdateAnomalyDetector where
toQuery :: UpdateAnomalyDetector -> QueryString
toQuery = QueryString -> UpdateAnomalyDetector -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateAnomalyDetectorResponse = UpdateAnomalyDetectorResponse'
{
UpdateAnomalyDetectorResponse -> Maybe Text
anomalyDetectorArn :: Prelude.Maybe Prelude.Text,
UpdateAnomalyDetectorResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateAnomalyDetectorResponse
-> UpdateAnomalyDetectorResponse -> Bool
(UpdateAnomalyDetectorResponse
-> UpdateAnomalyDetectorResponse -> Bool)
-> (UpdateAnomalyDetectorResponse
-> UpdateAnomalyDetectorResponse -> Bool)
-> Eq UpdateAnomalyDetectorResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAnomalyDetectorResponse
-> UpdateAnomalyDetectorResponse -> Bool
$c/= :: UpdateAnomalyDetectorResponse
-> UpdateAnomalyDetectorResponse -> Bool
== :: UpdateAnomalyDetectorResponse
-> UpdateAnomalyDetectorResponse -> Bool
$c== :: UpdateAnomalyDetectorResponse
-> UpdateAnomalyDetectorResponse -> Bool
Prelude.Eq, ReadPrec [UpdateAnomalyDetectorResponse]
ReadPrec UpdateAnomalyDetectorResponse
Int -> ReadS UpdateAnomalyDetectorResponse
ReadS [UpdateAnomalyDetectorResponse]
(Int -> ReadS UpdateAnomalyDetectorResponse)
-> ReadS [UpdateAnomalyDetectorResponse]
-> ReadPrec UpdateAnomalyDetectorResponse
-> ReadPrec [UpdateAnomalyDetectorResponse]
-> Read UpdateAnomalyDetectorResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAnomalyDetectorResponse]
$creadListPrec :: ReadPrec [UpdateAnomalyDetectorResponse]
readPrec :: ReadPrec UpdateAnomalyDetectorResponse
$creadPrec :: ReadPrec UpdateAnomalyDetectorResponse
readList :: ReadS [UpdateAnomalyDetectorResponse]
$creadList :: ReadS [UpdateAnomalyDetectorResponse]
readsPrec :: Int -> ReadS UpdateAnomalyDetectorResponse
$creadsPrec :: Int -> ReadS UpdateAnomalyDetectorResponse
Prelude.Read, Int -> UpdateAnomalyDetectorResponse -> ShowS
[UpdateAnomalyDetectorResponse] -> ShowS
UpdateAnomalyDetectorResponse -> String
(Int -> UpdateAnomalyDetectorResponse -> ShowS)
-> (UpdateAnomalyDetectorResponse -> String)
-> ([UpdateAnomalyDetectorResponse] -> ShowS)
-> Show UpdateAnomalyDetectorResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAnomalyDetectorResponse] -> ShowS
$cshowList :: [UpdateAnomalyDetectorResponse] -> ShowS
show :: UpdateAnomalyDetectorResponse -> String
$cshow :: UpdateAnomalyDetectorResponse -> String
showsPrec :: Int -> UpdateAnomalyDetectorResponse -> ShowS
$cshowsPrec :: Int -> UpdateAnomalyDetectorResponse -> ShowS
Prelude.Show, (forall x.
UpdateAnomalyDetectorResponse
-> Rep UpdateAnomalyDetectorResponse x)
-> (forall x.
Rep UpdateAnomalyDetectorResponse x
-> UpdateAnomalyDetectorResponse)
-> Generic UpdateAnomalyDetectorResponse
forall x.
Rep UpdateAnomalyDetectorResponse x
-> UpdateAnomalyDetectorResponse
forall x.
UpdateAnomalyDetectorResponse
-> Rep UpdateAnomalyDetectorResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateAnomalyDetectorResponse x
-> UpdateAnomalyDetectorResponse
$cfrom :: forall x.
UpdateAnomalyDetectorResponse
-> Rep UpdateAnomalyDetectorResponse x
Prelude.Generic)
newUpdateAnomalyDetectorResponse ::
Prelude.Int ->
UpdateAnomalyDetectorResponse
newUpdateAnomalyDetectorResponse :: Int -> UpdateAnomalyDetectorResponse
newUpdateAnomalyDetectorResponse Int
pHttpStatus_ =
UpdateAnomalyDetectorResponse' :: Maybe Text -> Int -> UpdateAnomalyDetectorResponse
UpdateAnomalyDetectorResponse'
{ $sel:anomalyDetectorArn:UpdateAnomalyDetectorResponse' :: Maybe Text
anomalyDetectorArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateAnomalyDetectorResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateAnomalyDetectorResponse_anomalyDetectorArn :: Lens.Lens' UpdateAnomalyDetectorResponse (Prelude.Maybe Prelude.Text)
updateAnomalyDetectorResponse_anomalyDetectorArn :: (Maybe Text -> f (Maybe Text))
-> UpdateAnomalyDetectorResponse -> f UpdateAnomalyDetectorResponse
updateAnomalyDetectorResponse_anomalyDetectorArn = (UpdateAnomalyDetectorResponse -> Maybe Text)
-> (UpdateAnomalyDetectorResponse
-> Maybe Text -> UpdateAnomalyDetectorResponse)
-> Lens
UpdateAnomalyDetectorResponse
UpdateAnomalyDetectorResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAnomalyDetectorResponse' {Maybe Text
anomalyDetectorArn :: Maybe Text
$sel:anomalyDetectorArn:UpdateAnomalyDetectorResponse' :: UpdateAnomalyDetectorResponse -> Maybe Text
anomalyDetectorArn} -> Maybe Text
anomalyDetectorArn) (\s :: UpdateAnomalyDetectorResponse
s@UpdateAnomalyDetectorResponse' {} Maybe Text
a -> UpdateAnomalyDetectorResponse
s {$sel:anomalyDetectorArn:UpdateAnomalyDetectorResponse' :: Maybe Text
anomalyDetectorArn = Maybe Text
a} :: UpdateAnomalyDetectorResponse)
updateAnomalyDetectorResponse_httpStatus :: Lens.Lens' UpdateAnomalyDetectorResponse Prelude.Int
updateAnomalyDetectorResponse_httpStatus :: (Int -> f Int)
-> UpdateAnomalyDetectorResponse -> f UpdateAnomalyDetectorResponse
updateAnomalyDetectorResponse_httpStatus = (UpdateAnomalyDetectorResponse -> Int)
-> (UpdateAnomalyDetectorResponse
-> Int -> UpdateAnomalyDetectorResponse)
-> Lens
UpdateAnomalyDetectorResponse UpdateAnomalyDetectorResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAnomalyDetectorResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateAnomalyDetectorResponse' :: UpdateAnomalyDetectorResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateAnomalyDetectorResponse
s@UpdateAnomalyDetectorResponse' {} Int
a -> UpdateAnomalyDetectorResponse
s {$sel:httpStatus:UpdateAnomalyDetectorResponse' :: Int
httpStatus = Int
a} :: UpdateAnomalyDetectorResponse)
instance Prelude.NFData UpdateAnomalyDetectorResponse