{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.CloudWatch.DeleteAnomalyDetector
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Deletes the specified anomaly detection model from your account.
module Amazonka.CloudWatch.DeleteAnomalyDetector
  ( -- * Creating a Request
    DeleteAnomalyDetector (..),
    newDeleteAnomalyDetector,

    -- * Request Lenses
    deleteAnomalyDetector_dimensions,
    deleteAnomalyDetector_namespace,
    deleteAnomalyDetector_metricName,
    deleteAnomalyDetector_stat,

    -- * Destructuring the Response
    DeleteAnomalyDetectorResponse (..),
    newDeleteAnomalyDetectorResponse,

    -- * Response Lenses
    deleteAnomalyDetectorResponse_httpStatus,
  )
where

import Amazonka.CloudWatch.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDeleteAnomalyDetector' smart constructor.
data DeleteAnomalyDetector = DeleteAnomalyDetector'
  { -- | The metric dimensions associated with the anomaly detection model to
    -- delete.
    DeleteAnomalyDetector -> Maybe [Dimension]
dimensions :: Prelude.Maybe [Dimension],
    -- | The namespace associated with the anomaly detection model to delete.
    DeleteAnomalyDetector -> Text
namespace :: Prelude.Text,
    -- | The metric name associated with the anomaly detection model to delete.
    DeleteAnomalyDetector -> Text
metricName :: Prelude.Text,
    -- | The statistic associated with the anomaly detection model to delete.
    DeleteAnomalyDetector -> Text
stat :: Prelude.Text
  }
  deriving (DeleteAnomalyDetector -> DeleteAnomalyDetector -> Bool
(DeleteAnomalyDetector -> DeleteAnomalyDetector -> Bool)
-> (DeleteAnomalyDetector -> DeleteAnomalyDetector -> Bool)
-> Eq DeleteAnomalyDetector
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteAnomalyDetector -> DeleteAnomalyDetector -> Bool
$c/= :: DeleteAnomalyDetector -> DeleteAnomalyDetector -> Bool
== :: DeleteAnomalyDetector -> DeleteAnomalyDetector -> Bool
$c== :: DeleteAnomalyDetector -> DeleteAnomalyDetector -> Bool
Prelude.Eq, ReadPrec [DeleteAnomalyDetector]
ReadPrec DeleteAnomalyDetector
Int -> ReadS DeleteAnomalyDetector
ReadS [DeleteAnomalyDetector]
(Int -> ReadS DeleteAnomalyDetector)
-> ReadS [DeleteAnomalyDetector]
-> ReadPrec DeleteAnomalyDetector
-> ReadPrec [DeleteAnomalyDetector]
-> Read DeleteAnomalyDetector
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteAnomalyDetector]
$creadListPrec :: ReadPrec [DeleteAnomalyDetector]
readPrec :: ReadPrec DeleteAnomalyDetector
$creadPrec :: ReadPrec DeleteAnomalyDetector
readList :: ReadS [DeleteAnomalyDetector]
$creadList :: ReadS [DeleteAnomalyDetector]
readsPrec :: Int -> ReadS DeleteAnomalyDetector
$creadsPrec :: Int -> ReadS DeleteAnomalyDetector
Prelude.Read, Int -> DeleteAnomalyDetector -> ShowS
[DeleteAnomalyDetector] -> ShowS
DeleteAnomalyDetector -> String
(Int -> DeleteAnomalyDetector -> ShowS)
-> (DeleteAnomalyDetector -> String)
-> ([DeleteAnomalyDetector] -> ShowS)
-> Show DeleteAnomalyDetector
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteAnomalyDetector] -> ShowS
$cshowList :: [DeleteAnomalyDetector] -> ShowS
show :: DeleteAnomalyDetector -> String
$cshow :: DeleteAnomalyDetector -> String
showsPrec :: Int -> DeleteAnomalyDetector -> ShowS
$cshowsPrec :: Int -> DeleteAnomalyDetector -> ShowS
Prelude.Show, (forall x. DeleteAnomalyDetector -> Rep DeleteAnomalyDetector x)
-> (forall x. Rep DeleteAnomalyDetector x -> DeleteAnomalyDetector)
-> Generic DeleteAnomalyDetector
forall x. Rep DeleteAnomalyDetector x -> DeleteAnomalyDetector
forall x. DeleteAnomalyDetector -> Rep DeleteAnomalyDetector x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DeleteAnomalyDetector x -> DeleteAnomalyDetector
$cfrom :: forall x. DeleteAnomalyDetector -> Rep DeleteAnomalyDetector x
Prelude.Generic)

-- |
-- Create a value of 'DeleteAnomalyDetector' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'dimensions', 'deleteAnomalyDetector_dimensions' - The metric dimensions associated with the anomaly detection model to
-- delete.
--
-- 'namespace', 'deleteAnomalyDetector_namespace' - The namespace associated with the anomaly detection model to delete.
--
-- 'metricName', 'deleteAnomalyDetector_metricName' - The metric name associated with the anomaly detection model to delete.
--
-- 'stat', 'deleteAnomalyDetector_stat' - The statistic associated with the anomaly detection model to delete.
newDeleteAnomalyDetector ::
  -- | 'namespace'
  Prelude.Text ->
  -- | 'metricName'
  Prelude.Text ->
  -- | 'stat'
  Prelude.Text ->
  DeleteAnomalyDetector
newDeleteAnomalyDetector :: Text -> Text -> Text -> DeleteAnomalyDetector
newDeleteAnomalyDetector
  Text
pNamespace_
  Text
pMetricName_
  Text
pStat_ =
    DeleteAnomalyDetector' :: Maybe [Dimension] -> Text -> Text -> Text -> DeleteAnomalyDetector
DeleteAnomalyDetector'
      { $sel:dimensions:DeleteAnomalyDetector' :: Maybe [Dimension]
dimensions =
          Maybe [Dimension]
forall a. Maybe a
Prelude.Nothing,
        $sel:namespace:DeleteAnomalyDetector' :: Text
namespace = Text
pNamespace_,
        $sel:metricName:DeleteAnomalyDetector' :: Text
metricName = Text
pMetricName_,
        $sel:stat:DeleteAnomalyDetector' :: Text
stat = Text
pStat_
      }

-- | The metric dimensions associated with the anomaly detection model to
-- delete.
deleteAnomalyDetector_dimensions :: Lens.Lens' DeleteAnomalyDetector (Prelude.Maybe [Dimension])
deleteAnomalyDetector_dimensions :: (Maybe [Dimension] -> f (Maybe [Dimension]))
-> DeleteAnomalyDetector -> f DeleteAnomalyDetector
deleteAnomalyDetector_dimensions = (DeleteAnomalyDetector -> Maybe [Dimension])
-> (DeleteAnomalyDetector
    -> Maybe [Dimension] -> DeleteAnomalyDetector)
-> Lens
     DeleteAnomalyDetector
     DeleteAnomalyDetector
     (Maybe [Dimension])
     (Maybe [Dimension])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteAnomalyDetector' {Maybe [Dimension]
dimensions :: Maybe [Dimension]
$sel:dimensions:DeleteAnomalyDetector' :: DeleteAnomalyDetector -> Maybe [Dimension]
dimensions} -> Maybe [Dimension]
dimensions) (\s :: DeleteAnomalyDetector
s@DeleteAnomalyDetector' {} Maybe [Dimension]
a -> DeleteAnomalyDetector
s {$sel:dimensions:DeleteAnomalyDetector' :: Maybe [Dimension]
dimensions = Maybe [Dimension]
a} :: DeleteAnomalyDetector) ((Maybe [Dimension] -> f (Maybe [Dimension]))
 -> DeleteAnomalyDetector -> f DeleteAnomalyDetector)
-> ((Maybe [Dimension] -> f (Maybe [Dimension]))
    -> Maybe [Dimension] -> f (Maybe [Dimension]))
-> (Maybe [Dimension] -> f (Maybe [Dimension]))
-> DeleteAnomalyDetector
-> f DeleteAnomalyDetector
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Dimension] [Dimension] [Dimension] [Dimension]
-> Iso
     (Maybe [Dimension])
     (Maybe [Dimension])
     (Maybe [Dimension])
     (Maybe [Dimension])
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 [Dimension] [Dimension] [Dimension] [Dimension]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The namespace associated with the anomaly detection model to delete.
deleteAnomalyDetector_namespace :: Lens.Lens' DeleteAnomalyDetector Prelude.Text
deleteAnomalyDetector_namespace :: (Text -> f Text)
-> DeleteAnomalyDetector -> f DeleteAnomalyDetector
deleteAnomalyDetector_namespace = (DeleteAnomalyDetector -> Text)
-> (DeleteAnomalyDetector -> Text -> DeleteAnomalyDetector)
-> Lens DeleteAnomalyDetector DeleteAnomalyDetector Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteAnomalyDetector' {Text
namespace :: Text
$sel:namespace:DeleteAnomalyDetector' :: DeleteAnomalyDetector -> Text
namespace} -> Text
namespace) (\s :: DeleteAnomalyDetector
s@DeleteAnomalyDetector' {} Text
a -> DeleteAnomalyDetector
s {$sel:namespace:DeleteAnomalyDetector' :: Text
namespace = Text
a} :: DeleteAnomalyDetector)

-- | The metric name associated with the anomaly detection model to delete.
deleteAnomalyDetector_metricName :: Lens.Lens' DeleteAnomalyDetector Prelude.Text
deleteAnomalyDetector_metricName :: (Text -> f Text)
-> DeleteAnomalyDetector -> f DeleteAnomalyDetector
deleteAnomalyDetector_metricName = (DeleteAnomalyDetector -> Text)
-> (DeleteAnomalyDetector -> Text -> DeleteAnomalyDetector)
-> Lens DeleteAnomalyDetector DeleteAnomalyDetector Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteAnomalyDetector' {Text
metricName :: Text
$sel:metricName:DeleteAnomalyDetector' :: DeleteAnomalyDetector -> Text
metricName} -> Text
metricName) (\s :: DeleteAnomalyDetector
s@DeleteAnomalyDetector' {} Text
a -> DeleteAnomalyDetector
s {$sel:metricName:DeleteAnomalyDetector' :: Text
metricName = Text
a} :: DeleteAnomalyDetector)

-- | The statistic associated with the anomaly detection model to delete.
deleteAnomalyDetector_stat :: Lens.Lens' DeleteAnomalyDetector Prelude.Text
deleteAnomalyDetector_stat :: (Text -> f Text)
-> DeleteAnomalyDetector -> f DeleteAnomalyDetector
deleteAnomalyDetector_stat = (DeleteAnomalyDetector -> Text)
-> (DeleteAnomalyDetector -> Text -> DeleteAnomalyDetector)
-> Lens DeleteAnomalyDetector DeleteAnomalyDetector Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteAnomalyDetector' {Text
stat :: Text
$sel:stat:DeleteAnomalyDetector' :: DeleteAnomalyDetector -> Text
stat} -> Text
stat) (\s :: DeleteAnomalyDetector
s@DeleteAnomalyDetector' {} Text
a -> DeleteAnomalyDetector
s {$sel:stat:DeleteAnomalyDetector' :: Text
stat = Text
a} :: DeleteAnomalyDetector)

instance Core.AWSRequest DeleteAnomalyDetector where
  type
    AWSResponse DeleteAnomalyDetector =
      DeleteAnomalyDetectorResponse
  request :: DeleteAnomalyDetector -> Request DeleteAnomalyDetector
request = Service -> DeleteAnomalyDetector -> Request DeleteAnomalyDetector
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DeleteAnomalyDetector
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteAnomalyDetector)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DeleteAnomalyDetector))
-> Logger
-> Service
-> Proxy DeleteAnomalyDetector
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DeleteAnomalyDetector)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DeleteAnomalyDetectorResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Int -> DeleteAnomalyDetectorResponse
DeleteAnomalyDetectorResponse'
            (Int -> DeleteAnomalyDetectorResponse)
-> Either String Int -> Either String DeleteAnomalyDetectorResponse
forall (f :: * -> *) a b. Functor 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 DeleteAnomalyDetector

instance Prelude.NFData DeleteAnomalyDetector

instance Core.ToHeaders DeleteAnomalyDetector where
  toHeaders :: DeleteAnomalyDetector -> ResponseHeaders
toHeaders = ResponseHeaders -> DeleteAnomalyDetector -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath DeleteAnomalyDetector where
  toPath :: DeleteAnomalyDetector -> ByteString
toPath = ByteString -> DeleteAnomalyDetector -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery DeleteAnomalyDetector where
  toQuery :: DeleteAnomalyDetector -> QueryString
toQuery DeleteAnomalyDetector' {Maybe [Dimension]
Text
stat :: Text
metricName :: Text
namespace :: Text
dimensions :: Maybe [Dimension]
$sel:stat:DeleteAnomalyDetector' :: DeleteAnomalyDetector -> Text
$sel:metricName:DeleteAnomalyDetector' :: DeleteAnomalyDetector -> Text
$sel:namespace:DeleteAnomalyDetector' :: DeleteAnomalyDetector -> Text
$sel:dimensions:DeleteAnomalyDetector' :: DeleteAnomalyDetector -> Maybe [Dimension]
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DeleteAnomalyDetector" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-08-01" :: Prelude.ByteString),
        ByteString
"Dimensions"
          ByteString -> QueryString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe QueryString -> QueryString
forall a. ToQuery a => a -> QueryString
Core.toQuery
            (ByteString -> [Dimension] -> QueryString
forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Core.toQueryList ByteString
"member" ([Dimension] -> QueryString)
-> Maybe [Dimension] -> Maybe QueryString
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Dimension]
dimensions),
        ByteString
"Namespace" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
namespace,
        ByteString
"MetricName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
metricName,
        ByteString
"Stat" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
stat
      ]

-- | /See:/ 'newDeleteAnomalyDetectorResponse' smart constructor.
data DeleteAnomalyDetectorResponse = DeleteAnomalyDetectorResponse'
  { -- | The response's http status code.
    DeleteAnomalyDetectorResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DeleteAnomalyDetectorResponse
-> DeleteAnomalyDetectorResponse -> Bool
(DeleteAnomalyDetectorResponse
 -> DeleteAnomalyDetectorResponse -> Bool)
-> (DeleteAnomalyDetectorResponse
    -> DeleteAnomalyDetectorResponse -> Bool)
-> Eq DeleteAnomalyDetectorResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteAnomalyDetectorResponse
-> DeleteAnomalyDetectorResponse -> Bool
$c/= :: DeleteAnomalyDetectorResponse
-> DeleteAnomalyDetectorResponse -> Bool
== :: DeleteAnomalyDetectorResponse
-> DeleteAnomalyDetectorResponse -> Bool
$c== :: DeleteAnomalyDetectorResponse
-> DeleteAnomalyDetectorResponse -> Bool
Prelude.Eq, ReadPrec [DeleteAnomalyDetectorResponse]
ReadPrec DeleteAnomalyDetectorResponse
Int -> ReadS DeleteAnomalyDetectorResponse
ReadS [DeleteAnomalyDetectorResponse]
(Int -> ReadS DeleteAnomalyDetectorResponse)
-> ReadS [DeleteAnomalyDetectorResponse]
-> ReadPrec DeleteAnomalyDetectorResponse
-> ReadPrec [DeleteAnomalyDetectorResponse]
-> Read DeleteAnomalyDetectorResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteAnomalyDetectorResponse]
$creadListPrec :: ReadPrec [DeleteAnomalyDetectorResponse]
readPrec :: ReadPrec DeleteAnomalyDetectorResponse
$creadPrec :: ReadPrec DeleteAnomalyDetectorResponse
readList :: ReadS [DeleteAnomalyDetectorResponse]
$creadList :: ReadS [DeleteAnomalyDetectorResponse]
readsPrec :: Int -> ReadS DeleteAnomalyDetectorResponse
$creadsPrec :: Int -> ReadS DeleteAnomalyDetectorResponse
Prelude.Read, Int -> DeleteAnomalyDetectorResponse -> ShowS
[DeleteAnomalyDetectorResponse] -> ShowS
DeleteAnomalyDetectorResponse -> String
(Int -> DeleteAnomalyDetectorResponse -> ShowS)
-> (DeleteAnomalyDetectorResponse -> String)
-> ([DeleteAnomalyDetectorResponse] -> ShowS)
-> Show DeleteAnomalyDetectorResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteAnomalyDetectorResponse] -> ShowS
$cshowList :: [DeleteAnomalyDetectorResponse] -> ShowS
show :: DeleteAnomalyDetectorResponse -> String
$cshow :: DeleteAnomalyDetectorResponse -> String
showsPrec :: Int -> DeleteAnomalyDetectorResponse -> ShowS
$cshowsPrec :: Int -> DeleteAnomalyDetectorResponse -> ShowS
Prelude.Show, (forall x.
 DeleteAnomalyDetectorResponse
 -> Rep DeleteAnomalyDetectorResponse x)
-> (forall x.
    Rep DeleteAnomalyDetectorResponse x
    -> DeleteAnomalyDetectorResponse)
-> Generic DeleteAnomalyDetectorResponse
forall x.
Rep DeleteAnomalyDetectorResponse x
-> DeleteAnomalyDetectorResponse
forall x.
DeleteAnomalyDetectorResponse
-> Rep DeleteAnomalyDetectorResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteAnomalyDetectorResponse x
-> DeleteAnomalyDetectorResponse
$cfrom :: forall x.
DeleteAnomalyDetectorResponse
-> Rep DeleteAnomalyDetectorResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteAnomalyDetectorResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'httpStatus', 'deleteAnomalyDetectorResponse_httpStatus' - The response's http status code.
newDeleteAnomalyDetectorResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DeleteAnomalyDetectorResponse
newDeleteAnomalyDetectorResponse :: Int -> DeleteAnomalyDetectorResponse
newDeleteAnomalyDetectorResponse Int
pHttpStatus_ =
  DeleteAnomalyDetectorResponse' :: Int -> DeleteAnomalyDetectorResponse
DeleteAnomalyDetectorResponse'
    { $sel:httpStatus:DeleteAnomalyDetectorResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

-- | The response's http status code.
deleteAnomalyDetectorResponse_httpStatus :: Lens.Lens' DeleteAnomalyDetectorResponse Prelude.Int
deleteAnomalyDetectorResponse_httpStatus :: (Int -> f Int)
-> DeleteAnomalyDetectorResponse -> f DeleteAnomalyDetectorResponse
deleteAnomalyDetectorResponse_httpStatus = (DeleteAnomalyDetectorResponse -> Int)
-> (DeleteAnomalyDetectorResponse
    -> Int -> DeleteAnomalyDetectorResponse)
-> Lens
     DeleteAnomalyDetectorResponse DeleteAnomalyDetectorResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteAnomalyDetectorResponse' {Int
httpStatus :: Int
$sel:httpStatus:DeleteAnomalyDetectorResponse' :: DeleteAnomalyDetectorResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DeleteAnomalyDetectorResponse
s@DeleteAnomalyDetectorResponse' {} Int
a -> DeleteAnomalyDetectorResponse
s {$sel:httpStatus:DeleteAnomalyDetectorResponse' :: Int
httpStatus = Int
a} :: DeleteAnomalyDetectorResponse)

instance Prelude.NFData DeleteAnomalyDetectorResponse