{-# 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.Inspector.RemoveAttributesFromFindings
-- 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)
--
-- Removes entire attributes (key and value pairs) from the findings that
-- are specified by the ARNs of the findings where an attribute with the
-- specified key exists.
module Amazonka.Inspector.RemoveAttributesFromFindings
  ( -- * Creating a Request
    RemoveAttributesFromFindings (..),
    newRemoveAttributesFromFindings,

    -- * Request Lenses
    removeAttributesFromFindings_findingArns,
    removeAttributesFromFindings_attributeKeys,

    -- * Destructuring the Response
    RemoveAttributesFromFindingsResponse (..),
    newRemoveAttributesFromFindingsResponse,

    -- * Response Lenses
    removeAttributesFromFindingsResponse_httpStatus,
    removeAttributesFromFindingsResponse_failedItems,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Inspector.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:/ 'newRemoveAttributesFromFindings' smart constructor.
data RemoveAttributesFromFindings = RemoveAttributesFromFindings'
  { -- | The ARNs that specify the findings that you want to remove attributes
    -- from.
    RemoveAttributesFromFindings -> NonEmpty Text
findingArns :: Prelude.NonEmpty Prelude.Text,
    -- | The array of attribute keys that you want to remove from specified
    -- findings.
    RemoveAttributesFromFindings -> [Text]
attributeKeys :: [Prelude.Text]
  }
  deriving (RemoveAttributesFromFindings
-> RemoveAttributesFromFindings -> Bool
(RemoveAttributesFromFindings
 -> RemoveAttributesFromFindings -> Bool)
-> (RemoveAttributesFromFindings
    -> RemoveAttributesFromFindings -> Bool)
-> Eq RemoveAttributesFromFindings
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RemoveAttributesFromFindings
-> RemoveAttributesFromFindings -> Bool
$c/= :: RemoveAttributesFromFindings
-> RemoveAttributesFromFindings -> Bool
== :: RemoveAttributesFromFindings
-> RemoveAttributesFromFindings -> Bool
$c== :: RemoveAttributesFromFindings
-> RemoveAttributesFromFindings -> Bool
Prelude.Eq, ReadPrec [RemoveAttributesFromFindings]
ReadPrec RemoveAttributesFromFindings
Int -> ReadS RemoveAttributesFromFindings
ReadS [RemoveAttributesFromFindings]
(Int -> ReadS RemoveAttributesFromFindings)
-> ReadS [RemoveAttributesFromFindings]
-> ReadPrec RemoveAttributesFromFindings
-> ReadPrec [RemoveAttributesFromFindings]
-> Read RemoveAttributesFromFindings
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RemoveAttributesFromFindings]
$creadListPrec :: ReadPrec [RemoveAttributesFromFindings]
readPrec :: ReadPrec RemoveAttributesFromFindings
$creadPrec :: ReadPrec RemoveAttributesFromFindings
readList :: ReadS [RemoveAttributesFromFindings]
$creadList :: ReadS [RemoveAttributesFromFindings]
readsPrec :: Int -> ReadS RemoveAttributesFromFindings
$creadsPrec :: Int -> ReadS RemoveAttributesFromFindings
Prelude.Read, Int -> RemoveAttributesFromFindings -> ShowS
[RemoveAttributesFromFindings] -> ShowS
RemoveAttributesFromFindings -> String
(Int -> RemoveAttributesFromFindings -> ShowS)
-> (RemoveAttributesFromFindings -> String)
-> ([RemoveAttributesFromFindings] -> ShowS)
-> Show RemoveAttributesFromFindings
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RemoveAttributesFromFindings] -> ShowS
$cshowList :: [RemoveAttributesFromFindings] -> ShowS
show :: RemoveAttributesFromFindings -> String
$cshow :: RemoveAttributesFromFindings -> String
showsPrec :: Int -> RemoveAttributesFromFindings -> ShowS
$cshowsPrec :: Int -> RemoveAttributesFromFindings -> ShowS
Prelude.Show, (forall x.
 RemoveAttributesFromFindings -> Rep RemoveAttributesFromFindings x)
-> (forall x.
    Rep RemoveAttributesFromFindings x -> RemoveAttributesFromFindings)
-> Generic RemoveAttributesFromFindings
forall x.
Rep RemoveAttributesFromFindings x -> RemoveAttributesFromFindings
forall x.
RemoveAttributesFromFindings -> Rep RemoveAttributesFromFindings x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RemoveAttributesFromFindings x -> RemoveAttributesFromFindings
$cfrom :: forall x.
RemoveAttributesFromFindings -> Rep RemoveAttributesFromFindings x
Prelude.Generic)

-- |
-- Create a value of 'RemoveAttributesFromFindings' 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:
--
-- 'findingArns', 'removeAttributesFromFindings_findingArns' - The ARNs that specify the findings that you want to remove attributes
-- from.
--
-- 'attributeKeys', 'removeAttributesFromFindings_attributeKeys' - The array of attribute keys that you want to remove from specified
-- findings.
newRemoveAttributesFromFindings ::
  -- | 'findingArns'
  Prelude.NonEmpty Prelude.Text ->
  RemoveAttributesFromFindings
newRemoveAttributesFromFindings :: NonEmpty Text -> RemoveAttributesFromFindings
newRemoveAttributesFromFindings NonEmpty Text
pFindingArns_ =
  RemoveAttributesFromFindings' :: NonEmpty Text -> [Text] -> RemoveAttributesFromFindings
RemoveAttributesFromFindings'
    { $sel:findingArns:RemoveAttributesFromFindings' :: NonEmpty Text
findingArns =
        Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
 -> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pFindingArns_,
      $sel:attributeKeys:RemoveAttributesFromFindings' :: [Text]
attributeKeys = [Text]
forall a. Monoid a => a
Prelude.mempty
    }

-- | The ARNs that specify the findings that you want to remove attributes
-- from.
removeAttributesFromFindings_findingArns :: Lens.Lens' RemoveAttributesFromFindings (Prelude.NonEmpty Prelude.Text)
removeAttributesFromFindings_findingArns :: (NonEmpty Text -> f (NonEmpty Text))
-> RemoveAttributesFromFindings -> f RemoveAttributesFromFindings
removeAttributesFromFindings_findingArns = (RemoveAttributesFromFindings -> NonEmpty Text)
-> (RemoveAttributesFromFindings
    -> NonEmpty Text -> RemoveAttributesFromFindings)
-> Lens
     RemoveAttributesFromFindings
     RemoveAttributesFromFindings
     (NonEmpty Text)
     (NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveAttributesFromFindings' {NonEmpty Text
findingArns :: NonEmpty Text
$sel:findingArns:RemoveAttributesFromFindings' :: RemoveAttributesFromFindings -> NonEmpty Text
findingArns} -> NonEmpty Text
findingArns) (\s :: RemoveAttributesFromFindings
s@RemoveAttributesFromFindings' {} NonEmpty Text
a -> RemoveAttributesFromFindings
s {$sel:findingArns:RemoveAttributesFromFindings' :: NonEmpty Text
findingArns = NonEmpty Text
a} :: RemoveAttributesFromFindings) ((NonEmpty Text -> f (NonEmpty Text))
 -> RemoveAttributesFromFindings -> f RemoveAttributesFromFindings)
-> ((NonEmpty Text -> f (NonEmpty Text))
    -> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> RemoveAttributesFromFindings
-> f RemoveAttributesFromFindings
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The array of attribute keys that you want to remove from specified
-- findings.
removeAttributesFromFindings_attributeKeys :: Lens.Lens' RemoveAttributesFromFindings [Prelude.Text]
removeAttributesFromFindings_attributeKeys :: ([Text] -> f [Text])
-> RemoveAttributesFromFindings -> f RemoveAttributesFromFindings
removeAttributesFromFindings_attributeKeys = (RemoveAttributesFromFindings -> [Text])
-> (RemoveAttributesFromFindings
    -> [Text] -> RemoveAttributesFromFindings)
-> Lens
     RemoveAttributesFromFindings
     RemoveAttributesFromFindings
     [Text]
     [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveAttributesFromFindings' {[Text]
attributeKeys :: [Text]
$sel:attributeKeys:RemoveAttributesFromFindings' :: RemoveAttributesFromFindings -> [Text]
attributeKeys} -> [Text]
attributeKeys) (\s :: RemoveAttributesFromFindings
s@RemoveAttributesFromFindings' {} [Text]
a -> RemoveAttributesFromFindings
s {$sel:attributeKeys:RemoveAttributesFromFindings' :: [Text]
attributeKeys = [Text]
a} :: RemoveAttributesFromFindings) (([Text] -> f [Text])
 -> RemoveAttributesFromFindings -> f RemoveAttributesFromFindings)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> RemoveAttributesFromFindings
-> f RemoveAttributesFromFindings
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.AWSRequest RemoveAttributesFromFindings where
  type
    AWSResponse RemoveAttributesFromFindings =
      RemoveAttributesFromFindingsResponse
  request :: RemoveAttributesFromFindings
-> Request RemoveAttributesFromFindings
request = Service
-> RemoveAttributesFromFindings
-> Request RemoveAttributesFromFindings
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy RemoveAttributesFromFindings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RemoveAttributesFromFindings)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse RemoveAttributesFromFindings))
-> Logger
-> Service
-> Proxy RemoveAttributesFromFindings
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse RemoveAttributesFromFindings)))
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 ->
          Int
-> HashMap Text FailedItemDetails
-> RemoveAttributesFromFindingsResponse
RemoveAttributesFromFindingsResponse'
            (Int
 -> HashMap Text FailedItemDetails
 -> RemoveAttributesFromFindingsResponse)
-> Either String Int
-> Either
     String
     (HashMap Text FailedItemDetails
      -> RemoveAttributesFromFindingsResponse)
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))
            Either
  String
  (HashMap Text FailedItemDetails
   -> RemoveAttributesFromFindingsResponse)
-> Either String (HashMap Text FailedItemDetails)
-> Either String RemoveAttributesFromFindingsResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (HashMap Text FailedItemDetails))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"failedItems" Either String (Maybe (HashMap Text FailedItemDetails))
-> HashMap Text FailedItemDetails
-> Either String (HashMap Text FailedItemDetails)
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ HashMap Text FailedItemDetails
forall a. Monoid a => a
Prelude.mempty)
      )

instance
  Prelude.Hashable
    RemoveAttributesFromFindings

instance Prelude.NFData RemoveAttributesFromFindings

instance Core.ToHeaders RemoveAttributesFromFindings where
  toHeaders :: RemoveAttributesFromFindings -> ResponseHeaders
toHeaders =
    ResponseHeaders -> RemoveAttributesFromFindings -> 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
"InspectorService.RemoveAttributesFromFindings" ::
                          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 RemoveAttributesFromFindings where
  toJSON :: RemoveAttributesFromFindings -> Value
toJSON RemoveAttributesFromFindings' {[Text]
NonEmpty Text
attributeKeys :: [Text]
findingArns :: NonEmpty Text
$sel:attributeKeys:RemoveAttributesFromFindings' :: RemoveAttributesFromFindings -> [Text]
$sel:findingArns:RemoveAttributesFromFindings' :: RemoveAttributesFromFindings -> NonEmpty 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
"findingArns" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
findingArns),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              (Text
"attributeKeys" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
attributeKeys)
          ]
      )

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

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

-- | /See:/ 'newRemoveAttributesFromFindingsResponse' smart constructor.
data RemoveAttributesFromFindingsResponse = RemoveAttributesFromFindingsResponse'
  { -- | The response's http status code.
    RemoveAttributesFromFindingsResponse -> Int
httpStatus :: Prelude.Int,
    -- | Attributes details that cannot be described. An error code is provided
    -- for each failed item.
    RemoveAttributesFromFindingsResponse
-> HashMap Text FailedItemDetails
failedItems :: Prelude.HashMap Prelude.Text FailedItemDetails
  }
  deriving (RemoveAttributesFromFindingsResponse
-> RemoveAttributesFromFindingsResponse -> Bool
(RemoveAttributesFromFindingsResponse
 -> RemoveAttributesFromFindingsResponse -> Bool)
-> (RemoveAttributesFromFindingsResponse
    -> RemoveAttributesFromFindingsResponse -> Bool)
-> Eq RemoveAttributesFromFindingsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RemoveAttributesFromFindingsResponse
-> RemoveAttributesFromFindingsResponse -> Bool
$c/= :: RemoveAttributesFromFindingsResponse
-> RemoveAttributesFromFindingsResponse -> Bool
== :: RemoveAttributesFromFindingsResponse
-> RemoveAttributesFromFindingsResponse -> Bool
$c== :: RemoveAttributesFromFindingsResponse
-> RemoveAttributesFromFindingsResponse -> Bool
Prelude.Eq, ReadPrec [RemoveAttributesFromFindingsResponse]
ReadPrec RemoveAttributesFromFindingsResponse
Int -> ReadS RemoveAttributesFromFindingsResponse
ReadS [RemoveAttributesFromFindingsResponse]
(Int -> ReadS RemoveAttributesFromFindingsResponse)
-> ReadS [RemoveAttributesFromFindingsResponse]
-> ReadPrec RemoveAttributesFromFindingsResponse
-> ReadPrec [RemoveAttributesFromFindingsResponse]
-> Read RemoveAttributesFromFindingsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RemoveAttributesFromFindingsResponse]
$creadListPrec :: ReadPrec [RemoveAttributesFromFindingsResponse]
readPrec :: ReadPrec RemoveAttributesFromFindingsResponse
$creadPrec :: ReadPrec RemoveAttributesFromFindingsResponse
readList :: ReadS [RemoveAttributesFromFindingsResponse]
$creadList :: ReadS [RemoveAttributesFromFindingsResponse]
readsPrec :: Int -> ReadS RemoveAttributesFromFindingsResponse
$creadsPrec :: Int -> ReadS RemoveAttributesFromFindingsResponse
Prelude.Read, Int -> RemoveAttributesFromFindingsResponse -> ShowS
[RemoveAttributesFromFindingsResponse] -> ShowS
RemoveAttributesFromFindingsResponse -> String
(Int -> RemoveAttributesFromFindingsResponse -> ShowS)
-> (RemoveAttributesFromFindingsResponse -> String)
-> ([RemoveAttributesFromFindingsResponse] -> ShowS)
-> Show RemoveAttributesFromFindingsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RemoveAttributesFromFindingsResponse] -> ShowS
$cshowList :: [RemoveAttributesFromFindingsResponse] -> ShowS
show :: RemoveAttributesFromFindingsResponse -> String
$cshow :: RemoveAttributesFromFindingsResponse -> String
showsPrec :: Int -> RemoveAttributesFromFindingsResponse -> ShowS
$cshowsPrec :: Int -> RemoveAttributesFromFindingsResponse -> ShowS
Prelude.Show, (forall x.
 RemoveAttributesFromFindingsResponse
 -> Rep RemoveAttributesFromFindingsResponse x)
-> (forall x.
    Rep RemoveAttributesFromFindingsResponse x
    -> RemoveAttributesFromFindingsResponse)
-> Generic RemoveAttributesFromFindingsResponse
forall x.
Rep RemoveAttributesFromFindingsResponse x
-> RemoveAttributesFromFindingsResponse
forall x.
RemoveAttributesFromFindingsResponse
-> Rep RemoveAttributesFromFindingsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RemoveAttributesFromFindingsResponse x
-> RemoveAttributesFromFindingsResponse
$cfrom :: forall x.
RemoveAttributesFromFindingsResponse
-> Rep RemoveAttributesFromFindingsResponse x
Prelude.Generic)

-- |
-- Create a value of 'RemoveAttributesFromFindingsResponse' 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', 'removeAttributesFromFindingsResponse_httpStatus' - The response's http status code.
--
-- 'failedItems', 'removeAttributesFromFindingsResponse_failedItems' - Attributes details that cannot be described. An error code is provided
-- for each failed item.
newRemoveAttributesFromFindingsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  RemoveAttributesFromFindingsResponse
newRemoveAttributesFromFindingsResponse :: Int -> RemoveAttributesFromFindingsResponse
newRemoveAttributesFromFindingsResponse Int
pHttpStatus_ =
  RemoveAttributesFromFindingsResponse' :: Int
-> HashMap Text FailedItemDetails
-> RemoveAttributesFromFindingsResponse
RemoveAttributesFromFindingsResponse'
    { $sel:httpStatus:RemoveAttributesFromFindingsResponse' :: Int
httpStatus =
        Int
pHttpStatus_,
      $sel:failedItems:RemoveAttributesFromFindingsResponse' :: HashMap Text FailedItemDetails
failedItems = HashMap Text FailedItemDetails
forall a. Monoid a => a
Prelude.mempty
    }

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

-- | Attributes details that cannot be described. An error code is provided
-- for each failed item.
removeAttributesFromFindingsResponse_failedItems :: Lens.Lens' RemoveAttributesFromFindingsResponse (Prelude.HashMap Prelude.Text FailedItemDetails)
removeAttributesFromFindingsResponse_failedItems :: (HashMap Text FailedItemDetails
 -> f (HashMap Text FailedItemDetails))
-> RemoveAttributesFromFindingsResponse
-> f RemoveAttributesFromFindingsResponse
removeAttributesFromFindingsResponse_failedItems = (RemoveAttributesFromFindingsResponse
 -> HashMap Text FailedItemDetails)
-> (RemoveAttributesFromFindingsResponse
    -> HashMap Text FailedItemDetails
    -> RemoveAttributesFromFindingsResponse)
-> Lens
     RemoveAttributesFromFindingsResponse
     RemoveAttributesFromFindingsResponse
     (HashMap Text FailedItemDetails)
     (HashMap Text FailedItemDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RemoveAttributesFromFindingsResponse' {HashMap Text FailedItemDetails
failedItems :: HashMap Text FailedItemDetails
$sel:failedItems:RemoveAttributesFromFindingsResponse' :: RemoveAttributesFromFindingsResponse
-> HashMap Text FailedItemDetails
failedItems} -> HashMap Text FailedItemDetails
failedItems) (\s :: RemoveAttributesFromFindingsResponse
s@RemoveAttributesFromFindingsResponse' {} HashMap Text FailedItemDetails
a -> RemoveAttributesFromFindingsResponse
s {$sel:failedItems:RemoveAttributesFromFindingsResponse' :: HashMap Text FailedItemDetails
failedItems = HashMap Text FailedItemDetails
a} :: RemoveAttributesFromFindingsResponse) ((HashMap Text FailedItemDetails
  -> f (HashMap Text FailedItemDetails))
 -> RemoveAttributesFromFindingsResponse
 -> f RemoveAttributesFromFindingsResponse)
-> ((HashMap Text FailedItemDetails
     -> f (HashMap Text FailedItemDetails))
    -> HashMap Text FailedItemDetails
    -> f (HashMap Text FailedItemDetails))
-> (HashMap Text FailedItemDetails
    -> f (HashMap Text FailedItemDetails))
-> RemoveAttributesFromFindingsResponse
-> f RemoveAttributesFromFindingsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (HashMap Text FailedItemDetails
 -> f (HashMap Text FailedItemDetails))
-> HashMap Text FailedItemDetails
-> f (HashMap Text FailedItemDetails)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance
  Prelude.NFData
    RemoveAttributesFromFindingsResponse