{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Config.Types.FailedDeleteRemediationExceptionsBatch where
import Amazonka.Config.Types.RemediationExceptionResourceKey
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
data FailedDeleteRemediationExceptionsBatch = FailedDeleteRemediationExceptionsBatch'
{
FailedDeleteRemediationExceptionsBatch
-> Maybe (NonEmpty RemediationExceptionResourceKey)
failedItems :: Prelude.Maybe (Prelude.NonEmpty RemediationExceptionResourceKey),
FailedDeleteRemediationExceptionsBatch -> Maybe Text
failureMessage :: Prelude.Maybe Prelude.Text
}
deriving (FailedDeleteRemediationExceptionsBatch
-> FailedDeleteRemediationExceptionsBatch -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FailedDeleteRemediationExceptionsBatch
-> FailedDeleteRemediationExceptionsBatch -> Bool
$c/= :: FailedDeleteRemediationExceptionsBatch
-> FailedDeleteRemediationExceptionsBatch -> Bool
== :: FailedDeleteRemediationExceptionsBatch
-> FailedDeleteRemediationExceptionsBatch -> Bool
$c== :: FailedDeleteRemediationExceptionsBatch
-> FailedDeleteRemediationExceptionsBatch -> Bool
Prelude.Eq, ReadPrec [FailedDeleteRemediationExceptionsBatch]
ReadPrec FailedDeleteRemediationExceptionsBatch
Int -> ReadS FailedDeleteRemediationExceptionsBatch
ReadS [FailedDeleteRemediationExceptionsBatch]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FailedDeleteRemediationExceptionsBatch]
$creadListPrec :: ReadPrec [FailedDeleteRemediationExceptionsBatch]
readPrec :: ReadPrec FailedDeleteRemediationExceptionsBatch
$creadPrec :: ReadPrec FailedDeleteRemediationExceptionsBatch
readList :: ReadS [FailedDeleteRemediationExceptionsBatch]
$creadList :: ReadS [FailedDeleteRemediationExceptionsBatch]
readsPrec :: Int -> ReadS FailedDeleteRemediationExceptionsBatch
$creadsPrec :: Int -> ReadS FailedDeleteRemediationExceptionsBatch
Prelude.Read, Int -> FailedDeleteRemediationExceptionsBatch -> ShowS
[FailedDeleteRemediationExceptionsBatch] -> ShowS
FailedDeleteRemediationExceptionsBatch -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FailedDeleteRemediationExceptionsBatch] -> ShowS
$cshowList :: [FailedDeleteRemediationExceptionsBatch] -> ShowS
show :: FailedDeleteRemediationExceptionsBatch -> String
$cshow :: FailedDeleteRemediationExceptionsBatch -> String
showsPrec :: Int -> FailedDeleteRemediationExceptionsBatch -> ShowS
$cshowsPrec :: Int -> FailedDeleteRemediationExceptionsBatch -> ShowS
Prelude.Show, forall x.
Rep FailedDeleteRemediationExceptionsBatch x
-> FailedDeleteRemediationExceptionsBatch
forall x.
FailedDeleteRemediationExceptionsBatch
-> Rep FailedDeleteRemediationExceptionsBatch x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FailedDeleteRemediationExceptionsBatch x
-> FailedDeleteRemediationExceptionsBatch
$cfrom :: forall x.
FailedDeleteRemediationExceptionsBatch
-> Rep FailedDeleteRemediationExceptionsBatch x
Prelude.Generic)
newFailedDeleteRemediationExceptionsBatch ::
FailedDeleteRemediationExceptionsBatch
newFailedDeleteRemediationExceptionsBatch :: FailedDeleteRemediationExceptionsBatch
newFailedDeleteRemediationExceptionsBatch =
FailedDeleteRemediationExceptionsBatch'
{ $sel:failedItems:FailedDeleteRemediationExceptionsBatch' :: Maybe (NonEmpty RemediationExceptionResourceKey)
failedItems =
forall a. Maybe a
Prelude.Nothing,
$sel:failureMessage:FailedDeleteRemediationExceptionsBatch' :: Maybe Text
failureMessage = forall a. Maybe a
Prelude.Nothing
}
failedDeleteRemediationExceptionsBatch_failedItems :: Lens.Lens' FailedDeleteRemediationExceptionsBatch (Prelude.Maybe (Prelude.NonEmpty RemediationExceptionResourceKey))
failedDeleteRemediationExceptionsBatch_failedItems :: Lens'
FailedDeleteRemediationExceptionsBatch
(Maybe (NonEmpty RemediationExceptionResourceKey))
failedDeleteRemediationExceptionsBatch_failedItems = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FailedDeleteRemediationExceptionsBatch' {Maybe (NonEmpty RemediationExceptionResourceKey)
failedItems :: Maybe (NonEmpty RemediationExceptionResourceKey)
$sel:failedItems:FailedDeleteRemediationExceptionsBatch' :: FailedDeleteRemediationExceptionsBatch
-> Maybe (NonEmpty RemediationExceptionResourceKey)
failedItems} -> Maybe (NonEmpty RemediationExceptionResourceKey)
failedItems) (\s :: FailedDeleteRemediationExceptionsBatch
s@FailedDeleteRemediationExceptionsBatch' {} Maybe (NonEmpty RemediationExceptionResourceKey)
a -> FailedDeleteRemediationExceptionsBatch
s {$sel:failedItems:FailedDeleteRemediationExceptionsBatch' :: Maybe (NonEmpty RemediationExceptionResourceKey)
failedItems = Maybe (NonEmpty RemediationExceptionResourceKey)
a} :: FailedDeleteRemediationExceptionsBatch) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
failedDeleteRemediationExceptionsBatch_failureMessage :: Lens.Lens' FailedDeleteRemediationExceptionsBatch (Prelude.Maybe Prelude.Text)
failedDeleteRemediationExceptionsBatch_failureMessage :: Lens' FailedDeleteRemediationExceptionsBatch (Maybe Text)
failedDeleteRemediationExceptionsBatch_failureMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FailedDeleteRemediationExceptionsBatch' {Maybe Text
failureMessage :: Maybe Text
$sel:failureMessage:FailedDeleteRemediationExceptionsBatch' :: FailedDeleteRemediationExceptionsBatch -> Maybe Text
failureMessage} -> Maybe Text
failureMessage) (\s :: FailedDeleteRemediationExceptionsBatch
s@FailedDeleteRemediationExceptionsBatch' {} Maybe Text
a -> FailedDeleteRemediationExceptionsBatch
s {$sel:failureMessage:FailedDeleteRemediationExceptionsBatch' :: Maybe Text
failureMessage = Maybe Text
a} :: FailedDeleteRemediationExceptionsBatch)
instance
Data.FromJSON
FailedDeleteRemediationExceptionsBatch
where
parseJSON :: Value -> Parser FailedDeleteRemediationExceptionsBatch
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"FailedDeleteRemediationExceptionsBatch"
( \Object
x ->
Maybe (NonEmpty RemediationExceptionResourceKey)
-> Maybe Text -> FailedDeleteRemediationExceptionsBatch
FailedDeleteRemediationExceptionsBatch'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FailedItems")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FailureMessage")
)
instance
Prelude.Hashable
FailedDeleteRemediationExceptionsBatch
where
hashWithSalt :: Int -> FailedDeleteRemediationExceptionsBatch -> Int
hashWithSalt
Int
_salt
FailedDeleteRemediationExceptionsBatch' {Maybe (NonEmpty RemediationExceptionResourceKey)
Maybe Text
failureMessage :: Maybe Text
failedItems :: Maybe (NonEmpty RemediationExceptionResourceKey)
$sel:failureMessage:FailedDeleteRemediationExceptionsBatch' :: FailedDeleteRemediationExceptionsBatch -> Maybe Text
$sel:failedItems:FailedDeleteRemediationExceptionsBatch' :: FailedDeleteRemediationExceptionsBatch
-> Maybe (NonEmpty RemediationExceptionResourceKey)
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty RemediationExceptionResourceKey)
failedItems
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
failureMessage
instance
Prelude.NFData
FailedDeleteRemediationExceptionsBatch
where
rnf :: FailedDeleteRemediationExceptionsBatch -> ()
rnf FailedDeleteRemediationExceptionsBatch' {Maybe (NonEmpty RemediationExceptionResourceKey)
Maybe Text
failureMessage :: Maybe Text
failedItems :: Maybe (NonEmpty RemediationExceptionResourceKey)
$sel:failureMessage:FailedDeleteRemediationExceptionsBatch' :: FailedDeleteRemediationExceptionsBatch -> Maybe Text
$sel:failedItems:FailedDeleteRemediationExceptionsBatch' :: FailedDeleteRemediationExceptionsBatch
-> Maybe (NonEmpty RemediationExceptionResourceKey)
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty RemediationExceptionResourceKey)
failedItems
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
failureMessage