{-# 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.FraudDetector.GetDeleteEventsByEventTypeStatus
-- 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)
--
-- Retrieves the status of a @DeleteEventsByEventType@ action.
module Amazonka.FraudDetector.GetDeleteEventsByEventTypeStatus
  ( -- * Creating a Request
    GetDeleteEventsByEventTypeStatus (..),
    newGetDeleteEventsByEventTypeStatus,

    -- * Request Lenses
    getDeleteEventsByEventTypeStatus_eventTypeName,

    -- * Destructuring the Response
    GetDeleteEventsByEventTypeStatusResponse (..),
    newGetDeleteEventsByEventTypeStatusResponse,

    -- * Response Lenses
    getDeleteEventsByEventTypeStatusResponse_eventTypeName,
    getDeleteEventsByEventTypeStatusResponse_eventsDeletionStatus,
    getDeleteEventsByEventTypeStatusResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.FraudDetector.Types
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:/ 'newGetDeleteEventsByEventTypeStatus' smart constructor.
data GetDeleteEventsByEventTypeStatus = GetDeleteEventsByEventTypeStatus'
  { -- | Name of event type for which to get the deletion status.
    GetDeleteEventsByEventTypeStatus -> Text
eventTypeName :: Prelude.Text
  }
  deriving (GetDeleteEventsByEventTypeStatus
-> GetDeleteEventsByEventTypeStatus -> Bool
(GetDeleteEventsByEventTypeStatus
 -> GetDeleteEventsByEventTypeStatus -> Bool)
-> (GetDeleteEventsByEventTypeStatus
    -> GetDeleteEventsByEventTypeStatus -> Bool)
-> Eq GetDeleteEventsByEventTypeStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDeleteEventsByEventTypeStatus
-> GetDeleteEventsByEventTypeStatus -> Bool
$c/= :: GetDeleteEventsByEventTypeStatus
-> GetDeleteEventsByEventTypeStatus -> Bool
== :: GetDeleteEventsByEventTypeStatus
-> GetDeleteEventsByEventTypeStatus -> Bool
$c== :: GetDeleteEventsByEventTypeStatus
-> GetDeleteEventsByEventTypeStatus -> Bool
Prelude.Eq, ReadPrec [GetDeleteEventsByEventTypeStatus]
ReadPrec GetDeleteEventsByEventTypeStatus
Int -> ReadS GetDeleteEventsByEventTypeStatus
ReadS [GetDeleteEventsByEventTypeStatus]
(Int -> ReadS GetDeleteEventsByEventTypeStatus)
-> ReadS [GetDeleteEventsByEventTypeStatus]
-> ReadPrec GetDeleteEventsByEventTypeStatus
-> ReadPrec [GetDeleteEventsByEventTypeStatus]
-> Read GetDeleteEventsByEventTypeStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDeleteEventsByEventTypeStatus]
$creadListPrec :: ReadPrec [GetDeleteEventsByEventTypeStatus]
readPrec :: ReadPrec GetDeleteEventsByEventTypeStatus
$creadPrec :: ReadPrec GetDeleteEventsByEventTypeStatus
readList :: ReadS [GetDeleteEventsByEventTypeStatus]
$creadList :: ReadS [GetDeleteEventsByEventTypeStatus]
readsPrec :: Int -> ReadS GetDeleteEventsByEventTypeStatus
$creadsPrec :: Int -> ReadS GetDeleteEventsByEventTypeStatus
Prelude.Read, Int -> GetDeleteEventsByEventTypeStatus -> ShowS
[GetDeleteEventsByEventTypeStatus] -> ShowS
GetDeleteEventsByEventTypeStatus -> String
(Int -> GetDeleteEventsByEventTypeStatus -> ShowS)
-> (GetDeleteEventsByEventTypeStatus -> String)
-> ([GetDeleteEventsByEventTypeStatus] -> ShowS)
-> Show GetDeleteEventsByEventTypeStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDeleteEventsByEventTypeStatus] -> ShowS
$cshowList :: [GetDeleteEventsByEventTypeStatus] -> ShowS
show :: GetDeleteEventsByEventTypeStatus -> String
$cshow :: GetDeleteEventsByEventTypeStatus -> String
showsPrec :: Int -> GetDeleteEventsByEventTypeStatus -> ShowS
$cshowsPrec :: Int -> GetDeleteEventsByEventTypeStatus -> ShowS
Prelude.Show, (forall x.
 GetDeleteEventsByEventTypeStatus
 -> Rep GetDeleteEventsByEventTypeStatus x)
-> (forall x.
    Rep GetDeleteEventsByEventTypeStatus x
    -> GetDeleteEventsByEventTypeStatus)
-> Generic GetDeleteEventsByEventTypeStatus
forall x.
Rep GetDeleteEventsByEventTypeStatus x
-> GetDeleteEventsByEventTypeStatus
forall x.
GetDeleteEventsByEventTypeStatus
-> Rep GetDeleteEventsByEventTypeStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDeleteEventsByEventTypeStatus x
-> GetDeleteEventsByEventTypeStatus
$cfrom :: forall x.
GetDeleteEventsByEventTypeStatus
-> Rep GetDeleteEventsByEventTypeStatus x
Prelude.Generic)

-- |
-- Create a value of 'GetDeleteEventsByEventTypeStatus' 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:
--
-- 'eventTypeName', 'getDeleteEventsByEventTypeStatus_eventTypeName' - Name of event type for which to get the deletion status.
newGetDeleteEventsByEventTypeStatus ::
  -- | 'eventTypeName'
  Prelude.Text ->
  GetDeleteEventsByEventTypeStatus
newGetDeleteEventsByEventTypeStatus :: Text -> GetDeleteEventsByEventTypeStatus
newGetDeleteEventsByEventTypeStatus Text
pEventTypeName_ =
  GetDeleteEventsByEventTypeStatus' :: Text -> GetDeleteEventsByEventTypeStatus
GetDeleteEventsByEventTypeStatus'
    { $sel:eventTypeName:GetDeleteEventsByEventTypeStatus' :: Text
eventTypeName =
        Text
pEventTypeName_
    }

-- | Name of event type for which to get the deletion status.
getDeleteEventsByEventTypeStatus_eventTypeName :: Lens.Lens' GetDeleteEventsByEventTypeStatus Prelude.Text
getDeleteEventsByEventTypeStatus_eventTypeName :: (Text -> f Text)
-> GetDeleteEventsByEventTypeStatus
-> f GetDeleteEventsByEventTypeStatus
getDeleteEventsByEventTypeStatus_eventTypeName = (GetDeleteEventsByEventTypeStatus -> Text)
-> (GetDeleteEventsByEventTypeStatus
    -> Text -> GetDeleteEventsByEventTypeStatus)
-> Lens
     GetDeleteEventsByEventTypeStatus
     GetDeleteEventsByEventTypeStatus
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeleteEventsByEventTypeStatus' {Text
eventTypeName :: Text
$sel:eventTypeName:GetDeleteEventsByEventTypeStatus' :: GetDeleteEventsByEventTypeStatus -> Text
eventTypeName} -> Text
eventTypeName) (\s :: GetDeleteEventsByEventTypeStatus
s@GetDeleteEventsByEventTypeStatus' {} Text
a -> GetDeleteEventsByEventTypeStatus
s {$sel:eventTypeName:GetDeleteEventsByEventTypeStatus' :: Text
eventTypeName = Text
a} :: GetDeleteEventsByEventTypeStatus)

instance
  Core.AWSRequest
    GetDeleteEventsByEventTypeStatus
  where
  type
    AWSResponse GetDeleteEventsByEventTypeStatus =
      GetDeleteEventsByEventTypeStatusResponse
  request :: GetDeleteEventsByEventTypeStatus
-> Request GetDeleteEventsByEventTypeStatus
request = Service
-> GetDeleteEventsByEventTypeStatus
-> Request GetDeleteEventsByEventTypeStatus
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetDeleteEventsByEventTypeStatus
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetDeleteEventsByEventTypeStatus)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetDeleteEventsByEventTypeStatus))
-> Logger
-> Service
-> Proxy GetDeleteEventsByEventTypeStatus
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse GetDeleteEventsByEventTypeStatus)))
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 AsyncJobStatus
-> Int
-> GetDeleteEventsByEventTypeStatusResponse
GetDeleteEventsByEventTypeStatusResponse'
            (Maybe Text
 -> Maybe AsyncJobStatus
 -> Int
 -> GetDeleteEventsByEventTypeStatusResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe AsyncJobStatus
      -> Int -> GetDeleteEventsByEventTypeStatusResponse)
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
"eventTypeName")
            Either
  String
  (Maybe AsyncJobStatus
   -> Int -> GetDeleteEventsByEventTypeStatusResponse)
-> Either String (Maybe AsyncJobStatus)
-> Either String (Int -> GetDeleteEventsByEventTypeStatusResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe AsyncJobStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"eventsDeletionStatus")
            Either String (Int -> GetDeleteEventsByEventTypeStatusResponse)
-> Either String Int
-> Either String GetDeleteEventsByEventTypeStatusResponse
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
    GetDeleteEventsByEventTypeStatus

instance
  Prelude.NFData
    GetDeleteEventsByEventTypeStatus

instance
  Core.ToHeaders
    GetDeleteEventsByEventTypeStatus
  where
  toHeaders :: GetDeleteEventsByEventTypeStatus -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> GetDeleteEventsByEventTypeStatus -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSHawksNestServiceFacade.GetDeleteEventsByEventTypeStatus" ::
                          Prelude.ByteString
                      ),
            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 GetDeleteEventsByEventTypeStatus where
  toJSON :: GetDeleteEventsByEventTypeStatus -> Value
toJSON GetDeleteEventsByEventTypeStatus' {Text
eventTypeName :: Text
$sel:eventTypeName:GetDeleteEventsByEventTypeStatus' :: GetDeleteEventsByEventTypeStatus -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"eventTypeName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
eventTypeName)
          ]
      )

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

instance
  Core.ToQuery
    GetDeleteEventsByEventTypeStatus
  where
  toQuery :: GetDeleteEventsByEventTypeStatus -> QueryString
toQuery = QueryString -> GetDeleteEventsByEventTypeStatus -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

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

-- |
-- Create a value of 'GetDeleteEventsByEventTypeStatusResponse' 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:
--
-- 'eventTypeName', 'getDeleteEventsByEventTypeStatusResponse_eventTypeName' - The event type name.
--
-- 'eventsDeletionStatus', 'getDeleteEventsByEventTypeStatusResponse_eventsDeletionStatus' - The deletion status.
--
-- 'httpStatus', 'getDeleteEventsByEventTypeStatusResponse_httpStatus' - The response's http status code.
newGetDeleteEventsByEventTypeStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetDeleteEventsByEventTypeStatusResponse
newGetDeleteEventsByEventTypeStatusResponse :: Int -> GetDeleteEventsByEventTypeStatusResponse
newGetDeleteEventsByEventTypeStatusResponse
  Int
pHttpStatus_ =
    GetDeleteEventsByEventTypeStatusResponse' :: Maybe Text
-> Maybe AsyncJobStatus
-> Int
-> GetDeleteEventsByEventTypeStatusResponse
GetDeleteEventsByEventTypeStatusResponse'
      { $sel:eventTypeName:GetDeleteEventsByEventTypeStatusResponse' :: Maybe Text
eventTypeName =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:eventsDeletionStatus:GetDeleteEventsByEventTypeStatusResponse' :: Maybe AsyncJobStatus
eventsDeletionStatus =
          Maybe AsyncJobStatus
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:GetDeleteEventsByEventTypeStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The event type name.
getDeleteEventsByEventTypeStatusResponse_eventTypeName :: Lens.Lens' GetDeleteEventsByEventTypeStatusResponse (Prelude.Maybe Prelude.Text)
getDeleteEventsByEventTypeStatusResponse_eventTypeName :: (Maybe Text -> f (Maybe Text))
-> GetDeleteEventsByEventTypeStatusResponse
-> f GetDeleteEventsByEventTypeStatusResponse
getDeleteEventsByEventTypeStatusResponse_eventTypeName = (GetDeleteEventsByEventTypeStatusResponse -> Maybe Text)
-> (GetDeleteEventsByEventTypeStatusResponse
    -> Maybe Text -> GetDeleteEventsByEventTypeStatusResponse)
-> Lens
     GetDeleteEventsByEventTypeStatusResponse
     GetDeleteEventsByEventTypeStatusResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeleteEventsByEventTypeStatusResponse' {Maybe Text
eventTypeName :: Maybe Text
$sel:eventTypeName:GetDeleteEventsByEventTypeStatusResponse' :: GetDeleteEventsByEventTypeStatusResponse -> Maybe Text
eventTypeName} -> Maybe Text
eventTypeName) (\s :: GetDeleteEventsByEventTypeStatusResponse
s@GetDeleteEventsByEventTypeStatusResponse' {} Maybe Text
a -> GetDeleteEventsByEventTypeStatusResponse
s {$sel:eventTypeName:GetDeleteEventsByEventTypeStatusResponse' :: Maybe Text
eventTypeName = Maybe Text
a} :: GetDeleteEventsByEventTypeStatusResponse)

-- | The deletion status.
getDeleteEventsByEventTypeStatusResponse_eventsDeletionStatus :: Lens.Lens' GetDeleteEventsByEventTypeStatusResponse (Prelude.Maybe AsyncJobStatus)
getDeleteEventsByEventTypeStatusResponse_eventsDeletionStatus :: (Maybe AsyncJobStatus -> f (Maybe AsyncJobStatus))
-> GetDeleteEventsByEventTypeStatusResponse
-> f GetDeleteEventsByEventTypeStatusResponse
getDeleteEventsByEventTypeStatusResponse_eventsDeletionStatus = (GetDeleteEventsByEventTypeStatusResponse -> Maybe AsyncJobStatus)
-> (GetDeleteEventsByEventTypeStatusResponse
    -> Maybe AsyncJobStatus
    -> GetDeleteEventsByEventTypeStatusResponse)
-> Lens
     GetDeleteEventsByEventTypeStatusResponse
     GetDeleteEventsByEventTypeStatusResponse
     (Maybe AsyncJobStatus)
     (Maybe AsyncJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDeleteEventsByEventTypeStatusResponse' {Maybe AsyncJobStatus
eventsDeletionStatus :: Maybe AsyncJobStatus
$sel:eventsDeletionStatus:GetDeleteEventsByEventTypeStatusResponse' :: GetDeleteEventsByEventTypeStatusResponse -> Maybe AsyncJobStatus
eventsDeletionStatus} -> Maybe AsyncJobStatus
eventsDeletionStatus) (\s :: GetDeleteEventsByEventTypeStatusResponse
s@GetDeleteEventsByEventTypeStatusResponse' {} Maybe AsyncJobStatus
a -> GetDeleteEventsByEventTypeStatusResponse
s {$sel:eventsDeletionStatus:GetDeleteEventsByEventTypeStatusResponse' :: Maybe AsyncJobStatus
eventsDeletionStatus = Maybe AsyncJobStatus
a} :: GetDeleteEventsByEventTypeStatusResponse)

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

instance
  Prelude.NFData
    GetDeleteEventsByEventTypeStatusResponse