{-# 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.IoT.UpdateAuditSuppression
-- 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)
--
-- Updates a Device Defender audit suppression.
module Amazonka.IoT.UpdateAuditSuppression
  ( -- * Creating a Request
    UpdateAuditSuppression (..),
    newUpdateAuditSuppression,

    -- * Request Lenses
    updateAuditSuppression_expirationDate,
    updateAuditSuppression_suppressIndefinitely,
    updateAuditSuppression_description,
    updateAuditSuppression_checkName,
    updateAuditSuppression_resourceIdentifier,

    -- * Destructuring the Response
    UpdateAuditSuppressionResponse (..),
    newUpdateAuditSuppressionResponse,

    -- * Response Lenses
    updateAuditSuppressionResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoT.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:/ 'newUpdateAuditSuppression' smart constructor.
data UpdateAuditSuppression = UpdateAuditSuppression'
  { -- | The expiration date (epoch timestamp in seconds) that you want the
    -- suppression to adhere to.
    UpdateAuditSuppression -> Maybe POSIX
expirationDate :: Prelude.Maybe Core.POSIX,
    -- | Indicates whether a suppression should exist indefinitely or not.
    UpdateAuditSuppression -> Maybe Bool
suppressIndefinitely :: Prelude.Maybe Prelude.Bool,
    -- | The description of the audit suppression.
    UpdateAuditSuppression -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    UpdateAuditSuppression -> Text
checkName :: Prelude.Text,
    UpdateAuditSuppression -> ResourceIdentifier
resourceIdentifier :: ResourceIdentifier
  }
  deriving (UpdateAuditSuppression -> UpdateAuditSuppression -> Bool
(UpdateAuditSuppression -> UpdateAuditSuppression -> Bool)
-> (UpdateAuditSuppression -> UpdateAuditSuppression -> Bool)
-> Eq UpdateAuditSuppression
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateAuditSuppression -> UpdateAuditSuppression -> Bool
$c/= :: UpdateAuditSuppression -> UpdateAuditSuppression -> Bool
== :: UpdateAuditSuppression -> UpdateAuditSuppression -> Bool
$c== :: UpdateAuditSuppression -> UpdateAuditSuppression -> Bool
Prelude.Eq, ReadPrec [UpdateAuditSuppression]
ReadPrec UpdateAuditSuppression
Int -> ReadS UpdateAuditSuppression
ReadS [UpdateAuditSuppression]
(Int -> ReadS UpdateAuditSuppression)
-> ReadS [UpdateAuditSuppression]
-> ReadPrec UpdateAuditSuppression
-> ReadPrec [UpdateAuditSuppression]
-> Read UpdateAuditSuppression
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateAuditSuppression]
$creadListPrec :: ReadPrec [UpdateAuditSuppression]
readPrec :: ReadPrec UpdateAuditSuppression
$creadPrec :: ReadPrec UpdateAuditSuppression
readList :: ReadS [UpdateAuditSuppression]
$creadList :: ReadS [UpdateAuditSuppression]
readsPrec :: Int -> ReadS UpdateAuditSuppression
$creadsPrec :: Int -> ReadS UpdateAuditSuppression
Prelude.Read, Int -> UpdateAuditSuppression -> ShowS
[UpdateAuditSuppression] -> ShowS
UpdateAuditSuppression -> String
(Int -> UpdateAuditSuppression -> ShowS)
-> (UpdateAuditSuppression -> String)
-> ([UpdateAuditSuppression] -> ShowS)
-> Show UpdateAuditSuppression
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateAuditSuppression] -> ShowS
$cshowList :: [UpdateAuditSuppression] -> ShowS
show :: UpdateAuditSuppression -> String
$cshow :: UpdateAuditSuppression -> String
showsPrec :: Int -> UpdateAuditSuppression -> ShowS
$cshowsPrec :: Int -> UpdateAuditSuppression -> ShowS
Prelude.Show, (forall x. UpdateAuditSuppression -> Rep UpdateAuditSuppression x)
-> (forall x.
    Rep UpdateAuditSuppression x -> UpdateAuditSuppression)
-> Generic UpdateAuditSuppression
forall x. Rep UpdateAuditSuppression x -> UpdateAuditSuppression
forall x. UpdateAuditSuppression -> Rep UpdateAuditSuppression x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateAuditSuppression x -> UpdateAuditSuppression
$cfrom :: forall x. UpdateAuditSuppression -> Rep UpdateAuditSuppression x
Prelude.Generic)

-- |
-- Create a value of 'UpdateAuditSuppression' 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:
--
-- 'expirationDate', 'updateAuditSuppression_expirationDate' - The expiration date (epoch timestamp in seconds) that you want the
-- suppression to adhere to.
--
-- 'suppressIndefinitely', 'updateAuditSuppression_suppressIndefinitely' - Indicates whether a suppression should exist indefinitely or not.
--
-- 'description', 'updateAuditSuppression_description' - The description of the audit suppression.
--
-- 'checkName', 'updateAuditSuppression_checkName' - Undocumented member.
--
-- 'resourceIdentifier', 'updateAuditSuppression_resourceIdentifier' - Undocumented member.
newUpdateAuditSuppression ::
  -- | 'checkName'
  Prelude.Text ->
  -- | 'resourceIdentifier'
  ResourceIdentifier ->
  UpdateAuditSuppression
newUpdateAuditSuppression :: Text -> ResourceIdentifier -> UpdateAuditSuppression
newUpdateAuditSuppression
  Text
pCheckName_
  ResourceIdentifier
pResourceIdentifier_ =
    UpdateAuditSuppression' :: Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Text
-> ResourceIdentifier
-> UpdateAuditSuppression
UpdateAuditSuppression'
      { $sel:expirationDate:UpdateAuditSuppression' :: Maybe POSIX
expirationDate =
          Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
        $sel:suppressIndefinitely:UpdateAuditSuppression' :: Maybe Bool
suppressIndefinitely = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
        $sel:description:UpdateAuditSuppression' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:checkName:UpdateAuditSuppression' :: Text
checkName = Text
pCheckName_,
        $sel:resourceIdentifier:UpdateAuditSuppression' :: ResourceIdentifier
resourceIdentifier = ResourceIdentifier
pResourceIdentifier_
      }

-- | The expiration date (epoch timestamp in seconds) that you want the
-- suppression to adhere to.
updateAuditSuppression_expirationDate :: Lens.Lens' UpdateAuditSuppression (Prelude.Maybe Prelude.UTCTime)
updateAuditSuppression_expirationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateAuditSuppression -> f UpdateAuditSuppression
updateAuditSuppression_expirationDate = (UpdateAuditSuppression -> Maybe POSIX)
-> (UpdateAuditSuppression
    -> Maybe POSIX -> UpdateAuditSuppression)
-> Lens
     UpdateAuditSuppression
     UpdateAuditSuppression
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuditSuppression' {Maybe POSIX
expirationDate :: Maybe POSIX
$sel:expirationDate:UpdateAuditSuppression' :: UpdateAuditSuppression -> Maybe POSIX
expirationDate} -> Maybe POSIX
expirationDate) (\s :: UpdateAuditSuppression
s@UpdateAuditSuppression' {} Maybe POSIX
a -> UpdateAuditSuppression
s {$sel:expirationDate:UpdateAuditSuppression' :: Maybe POSIX
expirationDate = Maybe POSIX
a} :: UpdateAuditSuppression) ((Maybe POSIX -> f (Maybe POSIX))
 -> UpdateAuditSuppression -> f UpdateAuditSuppression)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> UpdateAuditSuppression
-> f UpdateAuditSuppression
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | Indicates whether a suppression should exist indefinitely or not.
updateAuditSuppression_suppressIndefinitely :: Lens.Lens' UpdateAuditSuppression (Prelude.Maybe Prelude.Bool)
updateAuditSuppression_suppressIndefinitely :: (Maybe Bool -> f (Maybe Bool))
-> UpdateAuditSuppression -> f UpdateAuditSuppression
updateAuditSuppression_suppressIndefinitely = (UpdateAuditSuppression -> Maybe Bool)
-> (UpdateAuditSuppression -> Maybe Bool -> UpdateAuditSuppression)
-> Lens
     UpdateAuditSuppression
     UpdateAuditSuppression
     (Maybe Bool)
     (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuditSuppression' {Maybe Bool
suppressIndefinitely :: Maybe Bool
$sel:suppressIndefinitely:UpdateAuditSuppression' :: UpdateAuditSuppression -> Maybe Bool
suppressIndefinitely} -> Maybe Bool
suppressIndefinitely) (\s :: UpdateAuditSuppression
s@UpdateAuditSuppression' {} Maybe Bool
a -> UpdateAuditSuppression
s {$sel:suppressIndefinitely:UpdateAuditSuppression' :: Maybe Bool
suppressIndefinitely = Maybe Bool
a} :: UpdateAuditSuppression)

-- | The description of the audit suppression.
updateAuditSuppression_description :: Lens.Lens' UpdateAuditSuppression (Prelude.Maybe Prelude.Text)
updateAuditSuppression_description :: (Maybe Text -> f (Maybe Text))
-> UpdateAuditSuppression -> f UpdateAuditSuppression
updateAuditSuppression_description = (UpdateAuditSuppression -> Maybe Text)
-> (UpdateAuditSuppression -> Maybe Text -> UpdateAuditSuppression)
-> Lens
     UpdateAuditSuppression
     UpdateAuditSuppression
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuditSuppression' {Maybe Text
description :: Maybe Text
$sel:description:UpdateAuditSuppression' :: UpdateAuditSuppression -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateAuditSuppression
s@UpdateAuditSuppression' {} Maybe Text
a -> UpdateAuditSuppression
s {$sel:description:UpdateAuditSuppression' :: Maybe Text
description = Maybe Text
a} :: UpdateAuditSuppression)

-- | Undocumented member.
updateAuditSuppression_checkName :: Lens.Lens' UpdateAuditSuppression Prelude.Text
updateAuditSuppression_checkName :: (Text -> f Text)
-> UpdateAuditSuppression -> f UpdateAuditSuppression
updateAuditSuppression_checkName = (UpdateAuditSuppression -> Text)
-> (UpdateAuditSuppression -> Text -> UpdateAuditSuppression)
-> Lens UpdateAuditSuppression UpdateAuditSuppression Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuditSuppression' {Text
checkName :: Text
$sel:checkName:UpdateAuditSuppression' :: UpdateAuditSuppression -> Text
checkName} -> Text
checkName) (\s :: UpdateAuditSuppression
s@UpdateAuditSuppression' {} Text
a -> UpdateAuditSuppression
s {$sel:checkName:UpdateAuditSuppression' :: Text
checkName = Text
a} :: UpdateAuditSuppression)

-- | Undocumented member.
updateAuditSuppression_resourceIdentifier :: Lens.Lens' UpdateAuditSuppression ResourceIdentifier
updateAuditSuppression_resourceIdentifier :: (ResourceIdentifier -> f ResourceIdentifier)
-> UpdateAuditSuppression -> f UpdateAuditSuppression
updateAuditSuppression_resourceIdentifier = (UpdateAuditSuppression -> ResourceIdentifier)
-> (UpdateAuditSuppression
    -> ResourceIdentifier -> UpdateAuditSuppression)
-> Lens
     UpdateAuditSuppression
     UpdateAuditSuppression
     ResourceIdentifier
     ResourceIdentifier
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateAuditSuppression' {ResourceIdentifier
resourceIdentifier :: ResourceIdentifier
$sel:resourceIdentifier:UpdateAuditSuppression' :: UpdateAuditSuppression -> ResourceIdentifier
resourceIdentifier} -> ResourceIdentifier
resourceIdentifier) (\s :: UpdateAuditSuppression
s@UpdateAuditSuppression' {} ResourceIdentifier
a -> UpdateAuditSuppression
s {$sel:resourceIdentifier:UpdateAuditSuppression' :: ResourceIdentifier
resourceIdentifier = ResourceIdentifier
a} :: UpdateAuditSuppression)

instance Core.AWSRequest UpdateAuditSuppression where
  type
    AWSResponse UpdateAuditSuppression =
      UpdateAuditSuppressionResponse
  request :: UpdateAuditSuppression -> Request UpdateAuditSuppression
request = Service -> UpdateAuditSuppression -> Request UpdateAuditSuppression
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.patchJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateAuditSuppression
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateAuditSuppression)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse UpdateAuditSuppression))
-> Logger
-> Service
-> Proxy UpdateAuditSuppression
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateAuditSuppression)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> UpdateAuditSuppressionResponse
UpdateAuditSuppressionResponse'
            (Int -> UpdateAuditSuppressionResponse)
-> Either String Int
-> Either String UpdateAuditSuppressionResponse
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 UpdateAuditSuppression

instance Prelude.NFData UpdateAuditSuppression

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

instance Core.ToJSON UpdateAuditSuppression where
  toJSON :: UpdateAuditSuppression -> Value
toJSON UpdateAuditSuppression' {Maybe Bool
Maybe Text
Maybe POSIX
Text
ResourceIdentifier
resourceIdentifier :: ResourceIdentifier
checkName :: Text
description :: Maybe Text
suppressIndefinitely :: Maybe Bool
expirationDate :: Maybe POSIX
$sel:resourceIdentifier:UpdateAuditSuppression' :: UpdateAuditSuppression -> ResourceIdentifier
$sel:checkName:UpdateAuditSuppression' :: UpdateAuditSuppression -> Text
$sel:description:UpdateAuditSuppression' :: UpdateAuditSuppression -> Maybe Text
$sel:suppressIndefinitely:UpdateAuditSuppression' :: UpdateAuditSuppression -> Maybe Bool
$sel:expirationDate:UpdateAuditSuppression' :: UpdateAuditSuppression -> Maybe POSIX
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"expirationDate" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
expirationDate,
            (Text
"suppressIndefinitely" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
suppressIndefinitely,
            (Text
"description" 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
description,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"checkName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
checkName),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"resourceIdentifier" Text -> ResourceIdentifier -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ResourceIdentifier
resourceIdentifier)
          ]
      )

instance Core.ToPath UpdateAuditSuppression where
  toPath :: UpdateAuditSuppression -> ByteString
toPath = ByteString -> UpdateAuditSuppression -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/audit/suppressions/update"

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

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

-- |
-- Create a value of 'UpdateAuditSuppressionResponse' 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', 'updateAuditSuppressionResponse_httpStatus' - The response's http status code.
newUpdateAuditSuppressionResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateAuditSuppressionResponse
newUpdateAuditSuppressionResponse :: Int -> UpdateAuditSuppressionResponse
newUpdateAuditSuppressionResponse Int
pHttpStatus_ =
  UpdateAuditSuppressionResponse' :: Int -> UpdateAuditSuppressionResponse
UpdateAuditSuppressionResponse'
    { $sel:httpStatus:UpdateAuditSuppressionResponse' :: Int
httpStatus =
        Int
pHttpStatus_
    }

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

instance
  Prelude.NFData
    UpdateAuditSuppressionResponse