{-# 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 #-}
module Amazonka.IoT.DescribeAuditSuppression
(
DescribeAuditSuppression (..),
newDescribeAuditSuppression,
describeAuditSuppression_checkName,
describeAuditSuppression_resourceIdentifier,
DescribeAuditSuppressionResponse (..),
newDescribeAuditSuppressionResponse,
describeAuditSuppressionResponse_checkName,
describeAuditSuppressionResponse_expirationDate,
describeAuditSuppressionResponse_suppressIndefinitely,
describeAuditSuppressionResponse_description,
describeAuditSuppressionResponse_resourceIdentifier,
describeAuditSuppressionResponse_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
data DescribeAuditSuppression = DescribeAuditSuppression'
{ DescribeAuditSuppression -> Text
checkName :: Prelude.Text,
DescribeAuditSuppression -> ResourceIdentifier
resourceIdentifier :: ResourceIdentifier
}
deriving (DescribeAuditSuppression -> DescribeAuditSuppression -> Bool
(DescribeAuditSuppression -> DescribeAuditSuppression -> Bool)
-> (DescribeAuditSuppression -> DescribeAuditSuppression -> Bool)
-> Eq DescribeAuditSuppression
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAuditSuppression -> DescribeAuditSuppression -> Bool
$c/= :: DescribeAuditSuppression -> DescribeAuditSuppression -> Bool
== :: DescribeAuditSuppression -> DescribeAuditSuppression -> Bool
$c== :: DescribeAuditSuppression -> DescribeAuditSuppression -> Bool
Prelude.Eq, ReadPrec [DescribeAuditSuppression]
ReadPrec DescribeAuditSuppression
Int -> ReadS DescribeAuditSuppression
ReadS [DescribeAuditSuppression]
(Int -> ReadS DescribeAuditSuppression)
-> ReadS [DescribeAuditSuppression]
-> ReadPrec DescribeAuditSuppression
-> ReadPrec [DescribeAuditSuppression]
-> Read DescribeAuditSuppression
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAuditSuppression]
$creadListPrec :: ReadPrec [DescribeAuditSuppression]
readPrec :: ReadPrec DescribeAuditSuppression
$creadPrec :: ReadPrec DescribeAuditSuppression
readList :: ReadS [DescribeAuditSuppression]
$creadList :: ReadS [DescribeAuditSuppression]
readsPrec :: Int -> ReadS DescribeAuditSuppression
$creadsPrec :: Int -> ReadS DescribeAuditSuppression
Prelude.Read, Int -> DescribeAuditSuppression -> ShowS
[DescribeAuditSuppression] -> ShowS
DescribeAuditSuppression -> String
(Int -> DescribeAuditSuppression -> ShowS)
-> (DescribeAuditSuppression -> String)
-> ([DescribeAuditSuppression] -> ShowS)
-> Show DescribeAuditSuppression
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAuditSuppression] -> ShowS
$cshowList :: [DescribeAuditSuppression] -> ShowS
show :: DescribeAuditSuppression -> String
$cshow :: DescribeAuditSuppression -> String
showsPrec :: Int -> DescribeAuditSuppression -> ShowS
$cshowsPrec :: Int -> DescribeAuditSuppression -> ShowS
Prelude.Show, (forall x.
DescribeAuditSuppression -> Rep DescribeAuditSuppression x)
-> (forall x.
Rep DescribeAuditSuppression x -> DescribeAuditSuppression)
-> Generic DescribeAuditSuppression
forall x.
Rep DescribeAuditSuppression x -> DescribeAuditSuppression
forall x.
DescribeAuditSuppression -> Rep DescribeAuditSuppression x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAuditSuppression x -> DescribeAuditSuppression
$cfrom :: forall x.
DescribeAuditSuppression -> Rep DescribeAuditSuppression x
Prelude.Generic)
newDescribeAuditSuppression ::
Prelude.Text ->
ResourceIdentifier ->
DescribeAuditSuppression
newDescribeAuditSuppression :: Text -> ResourceIdentifier -> DescribeAuditSuppression
newDescribeAuditSuppression
Text
pCheckName_
ResourceIdentifier
pResourceIdentifier_ =
DescribeAuditSuppression' :: Text -> ResourceIdentifier -> DescribeAuditSuppression
DescribeAuditSuppression'
{ $sel:checkName:DescribeAuditSuppression' :: Text
checkName = Text
pCheckName_,
$sel:resourceIdentifier:DescribeAuditSuppression' :: ResourceIdentifier
resourceIdentifier = ResourceIdentifier
pResourceIdentifier_
}
describeAuditSuppression_checkName :: Lens.Lens' DescribeAuditSuppression Prelude.Text
describeAuditSuppression_checkName :: (Text -> f Text)
-> DescribeAuditSuppression -> f DescribeAuditSuppression
describeAuditSuppression_checkName = (DescribeAuditSuppression -> Text)
-> (DescribeAuditSuppression -> Text -> DescribeAuditSuppression)
-> Lens DescribeAuditSuppression DescribeAuditSuppression Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditSuppression' {Text
checkName :: Text
$sel:checkName:DescribeAuditSuppression' :: DescribeAuditSuppression -> Text
checkName} -> Text
checkName) (\s :: DescribeAuditSuppression
s@DescribeAuditSuppression' {} Text
a -> DescribeAuditSuppression
s {$sel:checkName:DescribeAuditSuppression' :: Text
checkName = Text
a} :: DescribeAuditSuppression)
describeAuditSuppression_resourceIdentifier :: Lens.Lens' DescribeAuditSuppression ResourceIdentifier
describeAuditSuppression_resourceIdentifier :: (ResourceIdentifier -> f ResourceIdentifier)
-> DescribeAuditSuppression -> f DescribeAuditSuppression
describeAuditSuppression_resourceIdentifier = (DescribeAuditSuppression -> ResourceIdentifier)
-> (DescribeAuditSuppression
-> ResourceIdentifier -> DescribeAuditSuppression)
-> Lens
DescribeAuditSuppression
DescribeAuditSuppression
ResourceIdentifier
ResourceIdentifier
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditSuppression' {ResourceIdentifier
resourceIdentifier :: ResourceIdentifier
$sel:resourceIdentifier:DescribeAuditSuppression' :: DescribeAuditSuppression -> ResourceIdentifier
resourceIdentifier} -> ResourceIdentifier
resourceIdentifier) (\s :: DescribeAuditSuppression
s@DescribeAuditSuppression' {} ResourceIdentifier
a -> DescribeAuditSuppression
s {$sel:resourceIdentifier:DescribeAuditSuppression' :: ResourceIdentifier
resourceIdentifier = ResourceIdentifier
a} :: DescribeAuditSuppression)
instance Core.AWSRequest DescribeAuditSuppression where
type
AWSResponse DescribeAuditSuppression =
DescribeAuditSuppressionResponse
request :: DescribeAuditSuppression -> Request DescribeAuditSuppression
request = Service
-> DescribeAuditSuppression -> Request DescribeAuditSuppression
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeAuditSuppression
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAuditSuppression)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeAuditSuppression))
-> Logger
-> Service
-> Proxy DescribeAuditSuppression
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeAuditSuppression)))
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 POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse
DescribeAuditSuppressionResponse'
(Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse)
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
"checkName")
Either
String
(Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"expirationDate")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"suppressIndefinitely")
Either
String
(Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ResourceIdentifier
-> Int -> DescribeAuditSuppressionResponse)
forall (f :: * -> *) a b. Applicative f => 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
"description")
Either
String
(Maybe ResourceIdentifier
-> Int -> DescribeAuditSuppressionResponse)
-> Either String (Maybe ResourceIdentifier)
-> Either String (Int -> DescribeAuditSuppressionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ResourceIdentifier)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resourceIdentifier")
Either String (Int -> DescribeAuditSuppressionResponse)
-> Either String Int
-> Either String DescribeAuditSuppressionResponse
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 DescribeAuditSuppression
instance Prelude.NFData DescribeAuditSuppression
instance Core.ToHeaders DescribeAuditSuppression where
toHeaders :: DescribeAuditSuppression -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeAuditSuppression -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON DescribeAuditSuppression where
toJSON :: DescribeAuditSuppression -> Value
toJSON DescribeAuditSuppression' {Text
ResourceIdentifier
resourceIdentifier :: ResourceIdentifier
checkName :: Text
$sel:resourceIdentifier:DescribeAuditSuppression' :: DescribeAuditSuppression -> ResourceIdentifier
$sel:checkName:DescribeAuditSuppression' :: DescribeAuditSuppression -> 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
"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 DescribeAuditSuppression where
toPath :: DescribeAuditSuppression -> ByteString
toPath = ByteString -> DescribeAuditSuppression -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/audit/suppressions/describe"
instance Core.ToQuery DescribeAuditSuppression where
toQuery :: DescribeAuditSuppression -> QueryString
toQuery = QueryString -> DescribeAuditSuppression -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeAuditSuppressionResponse = DescribeAuditSuppressionResponse'
{ DescribeAuditSuppressionResponse -> Maybe Text
checkName :: Prelude.Maybe Prelude.Text,
DescribeAuditSuppressionResponse -> Maybe POSIX
expirationDate :: Prelude.Maybe Core.POSIX,
DescribeAuditSuppressionResponse -> Maybe Bool
suppressIndefinitely :: Prelude.Maybe Prelude.Bool,
DescribeAuditSuppressionResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
DescribeAuditSuppressionResponse -> Maybe ResourceIdentifier
resourceIdentifier :: Prelude.Maybe ResourceIdentifier,
DescribeAuditSuppressionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeAuditSuppressionResponse
-> DescribeAuditSuppressionResponse -> Bool
(DescribeAuditSuppressionResponse
-> DescribeAuditSuppressionResponse -> Bool)
-> (DescribeAuditSuppressionResponse
-> DescribeAuditSuppressionResponse -> Bool)
-> Eq DescribeAuditSuppressionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAuditSuppressionResponse
-> DescribeAuditSuppressionResponse -> Bool
$c/= :: DescribeAuditSuppressionResponse
-> DescribeAuditSuppressionResponse -> Bool
== :: DescribeAuditSuppressionResponse
-> DescribeAuditSuppressionResponse -> Bool
$c== :: DescribeAuditSuppressionResponse
-> DescribeAuditSuppressionResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAuditSuppressionResponse]
ReadPrec DescribeAuditSuppressionResponse
Int -> ReadS DescribeAuditSuppressionResponse
ReadS [DescribeAuditSuppressionResponse]
(Int -> ReadS DescribeAuditSuppressionResponse)
-> ReadS [DescribeAuditSuppressionResponse]
-> ReadPrec DescribeAuditSuppressionResponse
-> ReadPrec [DescribeAuditSuppressionResponse]
-> Read DescribeAuditSuppressionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAuditSuppressionResponse]
$creadListPrec :: ReadPrec [DescribeAuditSuppressionResponse]
readPrec :: ReadPrec DescribeAuditSuppressionResponse
$creadPrec :: ReadPrec DescribeAuditSuppressionResponse
readList :: ReadS [DescribeAuditSuppressionResponse]
$creadList :: ReadS [DescribeAuditSuppressionResponse]
readsPrec :: Int -> ReadS DescribeAuditSuppressionResponse
$creadsPrec :: Int -> ReadS DescribeAuditSuppressionResponse
Prelude.Read, Int -> DescribeAuditSuppressionResponse -> ShowS
[DescribeAuditSuppressionResponse] -> ShowS
DescribeAuditSuppressionResponse -> String
(Int -> DescribeAuditSuppressionResponse -> ShowS)
-> (DescribeAuditSuppressionResponse -> String)
-> ([DescribeAuditSuppressionResponse] -> ShowS)
-> Show DescribeAuditSuppressionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAuditSuppressionResponse] -> ShowS
$cshowList :: [DescribeAuditSuppressionResponse] -> ShowS
show :: DescribeAuditSuppressionResponse -> String
$cshow :: DescribeAuditSuppressionResponse -> String
showsPrec :: Int -> DescribeAuditSuppressionResponse -> ShowS
$cshowsPrec :: Int -> DescribeAuditSuppressionResponse -> ShowS
Prelude.Show, (forall x.
DescribeAuditSuppressionResponse
-> Rep DescribeAuditSuppressionResponse x)
-> (forall x.
Rep DescribeAuditSuppressionResponse x
-> DescribeAuditSuppressionResponse)
-> Generic DescribeAuditSuppressionResponse
forall x.
Rep DescribeAuditSuppressionResponse x
-> DescribeAuditSuppressionResponse
forall x.
DescribeAuditSuppressionResponse
-> Rep DescribeAuditSuppressionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAuditSuppressionResponse x
-> DescribeAuditSuppressionResponse
$cfrom :: forall x.
DescribeAuditSuppressionResponse
-> Rep DescribeAuditSuppressionResponse x
Prelude.Generic)
newDescribeAuditSuppressionResponse ::
Prelude.Int ->
DescribeAuditSuppressionResponse
newDescribeAuditSuppressionResponse :: Int -> DescribeAuditSuppressionResponse
newDescribeAuditSuppressionResponse Int
pHttpStatus_ =
DescribeAuditSuppressionResponse' :: Maybe Text
-> Maybe POSIX
-> Maybe Bool
-> Maybe Text
-> Maybe ResourceIdentifier
-> Int
-> DescribeAuditSuppressionResponse
DescribeAuditSuppressionResponse'
{ $sel:checkName:DescribeAuditSuppressionResponse' :: Maybe Text
checkName =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:expirationDate:DescribeAuditSuppressionResponse' :: Maybe POSIX
expirationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:suppressIndefinitely:DescribeAuditSuppressionResponse' :: Maybe Bool
suppressIndefinitely = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:description:DescribeAuditSuppressionResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceIdentifier:DescribeAuditSuppressionResponse' :: Maybe ResourceIdentifier
resourceIdentifier = Maybe ResourceIdentifier
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeAuditSuppressionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeAuditSuppressionResponse_checkName :: Lens.Lens' DescribeAuditSuppressionResponse (Prelude.Maybe Prelude.Text)
describeAuditSuppressionResponse_checkName :: (Maybe Text -> f (Maybe Text))
-> DescribeAuditSuppressionResponse
-> f DescribeAuditSuppressionResponse
describeAuditSuppressionResponse_checkName = (DescribeAuditSuppressionResponse -> Maybe Text)
-> (DescribeAuditSuppressionResponse
-> Maybe Text -> DescribeAuditSuppressionResponse)
-> Lens
DescribeAuditSuppressionResponse
DescribeAuditSuppressionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditSuppressionResponse' {Maybe Text
checkName :: Maybe Text
$sel:checkName:DescribeAuditSuppressionResponse' :: DescribeAuditSuppressionResponse -> Maybe Text
checkName} -> Maybe Text
checkName) (\s :: DescribeAuditSuppressionResponse
s@DescribeAuditSuppressionResponse' {} Maybe Text
a -> DescribeAuditSuppressionResponse
s {$sel:checkName:DescribeAuditSuppressionResponse' :: Maybe Text
checkName = Maybe Text
a} :: DescribeAuditSuppressionResponse)
describeAuditSuppressionResponse_expirationDate :: Lens.Lens' DescribeAuditSuppressionResponse (Prelude.Maybe Prelude.UTCTime)
describeAuditSuppressionResponse_expirationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAuditSuppressionResponse
-> f DescribeAuditSuppressionResponse
describeAuditSuppressionResponse_expirationDate = (DescribeAuditSuppressionResponse -> Maybe POSIX)
-> (DescribeAuditSuppressionResponse
-> Maybe POSIX -> DescribeAuditSuppressionResponse)
-> Lens
DescribeAuditSuppressionResponse
DescribeAuditSuppressionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditSuppressionResponse' {Maybe POSIX
expirationDate :: Maybe POSIX
$sel:expirationDate:DescribeAuditSuppressionResponse' :: DescribeAuditSuppressionResponse -> Maybe POSIX
expirationDate} -> Maybe POSIX
expirationDate) (\s :: DescribeAuditSuppressionResponse
s@DescribeAuditSuppressionResponse' {} Maybe POSIX
a -> DescribeAuditSuppressionResponse
s {$sel:expirationDate:DescribeAuditSuppressionResponse' :: Maybe POSIX
expirationDate = Maybe POSIX
a} :: DescribeAuditSuppressionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeAuditSuppressionResponse
-> f DescribeAuditSuppressionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeAuditSuppressionResponse
-> f DescribeAuditSuppressionResponse
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
describeAuditSuppressionResponse_suppressIndefinitely :: Lens.Lens' DescribeAuditSuppressionResponse (Prelude.Maybe Prelude.Bool)
describeAuditSuppressionResponse_suppressIndefinitely :: (Maybe Bool -> f (Maybe Bool))
-> DescribeAuditSuppressionResponse
-> f DescribeAuditSuppressionResponse
describeAuditSuppressionResponse_suppressIndefinitely = (DescribeAuditSuppressionResponse -> Maybe Bool)
-> (DescribeAuditSuppressionResponse
-> Maybe Bool -> DescribeAuditSuppressionResponse)
-> Lens
DescribeAuditSuppressionResponse
DescribeAuditSuppressionResponse
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditSuppressionResponse' {Maybe Bool
suppressIndefinitely :: Maybe Bool
$sel:suppressIndefinitely:DescribeAuditSuppressionResponse' :: DescribeAuditSuppressionResponse -> Maybe Bool
suppressIndefinitely} -> Maybe Bool
suppressIndefinitely) (\s :: DescribeAuditSuppressionResponse
s@DescribeAuditSuppressionResponse' {} Maybe Bool
a -> DescribeAuditSuppressionResponse
s {$sel:suppressIndefinitely:DescribeAuditSuppressionResponse' :: Maybe Bool
suppressIndefinitely = Maybe Bool
a} :: DescribeAuditSuppressionResponse)
describeAuditSuppressionResponse_description :: Lens.Lens' DescribeAuditSuppressionResponse (Prelude.Maybe Prelude.Text)
describeAuditSuppressionResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeAuditSuppressionResponse
-> f DescribeAuditSuppressionResponse
describeAuditSuppressionResponse_description = (DescribeAuditSuppressionResponse -> Maybe Text)
-> (DescribeAuditSuppressionResponse
-> Maybe Text -> DescribeAuditSuppressionResponse)
-> Lens
DescribeAuditSuppressionResponse
DescribeAuditSuppressionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditSuppressionResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeAuditSuppressionResponse' :: DescribeAuditSuppressionResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeAuditSuppressionResponse
s@DescribeAuditSuppressionResponse' {} Maybe Text
a -> DescribeAuditSuppressionResponse
s {$sel:description:DescribeAuditSuppressionResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeAuditSuppressionResponse)
describeAuditSuppressionResponse_resourceIdentifier :: Lens.Lens' DescribeAuditSuppressionResponse (Prelude.Maybe ResourceIdentifier)
describeAuditSuppressionResponse_resourceIdentifier :: (Maybe ResourceIdentifier -> f (Maybe ResourceIdentifier))
-> DescribeAuditSuppressionResponse
-> f DescribeAuditSuppressionResponse
describeAuditSuppressionResponse_resourceIdentifier = (DescribeAuditSuppressionResponse -> Maybe ResourceIdentifier)
-> (DescribeAuditSuppressionResponse
-> Maybe ResourceIdentifier -> DescribeAuditSuppressionResponse)
-> Lens
DescribeAuditSuppressionResponse
DescribeAuditSuppressionResponse
(Maybe ResourceIdentifier)
(Maybe ResourceIdentifier)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditSuppressionResponse' {Maybe ResourceIdentifier
resourceIdentifier :: Maybe ResourceIdentifier
$sel:resourceIdentifier:DescribeAuditSuppressionResponse' :: DescribeAuditSuppressionResponse -> Maybe ResourceIdentifier
resourceIdentifier} -> Maybe ResourceIdentifier
resourceIdentifier) (\s :: DescribeAuditSuppressionResponse
s@DescribeAuditSuppressionResponse' {} Maybe ResourceIdentifier
a -> DescribeAuditSuppressionResponse
s {$sel:resourceIdentifier:DescribeAuditSuppressionResponse' :: Maybe ResourceIdentifier
resourceIdentifier = Maybe ResourceIdentifier
a} :: DescribeAuditSuppressionResponse)
describeAuditSuppressionResponse_httpStatus :: Lens.Lens' DescribeAuditSuppressionResponse Prelude.Int
describeAuditSuppressionResponse_httpStatus :: (Int -> f Int)
-> DescribeAuditSuppressionResponse
-> f DescribeAuditSuppressionResponse
describeAuditSuppressionResponse_httpStatus = (DescribeAuditSuppressionResponse -> Int)
-> (DescribeAuditSuppressionResponse
-> Int -> DescribeAuditSuppressionResponse)
-> Lens
DescribeAuditSuppressionResponse
DescribeAuditSuppressionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAuditSuppressionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeAuditSuppressionResponse' :: DescribeAuditSuppressionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeAuditSuppressionResponse
s@DescribeAuditSuppressionResponse' {} Int
a -> DescribeAuditSuppressionResponse
s {$sel:httpStatus:DescribeAuditSuppressionResponse' :: Int
httpStatus = Int
a} :: DescribeAuditSuppressionResponse)
instance
Prelude.NFData
DescribeAuditSuppressionResponse