{-# 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.GuardDuty.Types.KubernetesConfigurationResult where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.GuardDuty.Types.KubernetesAuditLogsConfigurationResult
import qualified Amazonka.Prelude as Prelude
data KubernetesConfigurationResult = KubernetesConfigurationResult'
{
KubernetesConfigurationResult
-> KubernetesAuditLogsConfigurationResult
auditLogs :: KubernetesAuditLogsConfigurationResult
}
deriving (KubernetesConfigurationResult
-> KubernetesConfigurationResult -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KubernetesConfigurationResult
-> KubernetesConfigurationResult -> Bool
$c/= :: KubernetesConfigurationResult
-> KubernetesConfigurationResult -> Bool
== :: KubernetesConfigurationResult
-> KubernetesConfigurationResult -> Bool
$c== :: KubernetesConfigurationResult
-> KubernetesConfigurationResult -> Bool
Prelude.Eq, ReadPrec [KubernetesConfigurationResult]
ReadPrec KubernetesConfigurationResult
Int -> ReadS KubernetesConfigurationResult
ReadS [KubernetesConfigurationResult]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [KubernetesConfigurationResult]
$creadListPrec :: ReadPrec [KubernetesConfigurationResult]
readPrec :: ReadPrec KubernetesConfigurationResult
$creadPrec :: ReadPrec KubernetesConfigurationResult
readList :: ReadS [KubernetesConfigurationResult]
$creadList :: ReadS [KubernetesConfigurationResult]
readsPrec :: Int -> ReadS KubernetesConfigurationResult
$creadsPrec :: Int -> ReadS KubernetesConfigurationResult
Prelude.Read, Int -> KubernetesConfigurationResult -> ShowS
[KubernetesConfigurationResult] -> ShowS
KubernetesConfigurationResult -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KubernetesConfigurationResult] -> ShowS
$cshowList :: [KubernetesConfigurationResult] -> ShowS
show :: KubernetesConfigurationResult -> String
$cshow :: KubernetesConfigurationResult -> String
showsPrec :: Int -> KubernetesConfigurationResult -> ShowS
$cshowsPrec :: Int -> KubernetesConfigurationResult -> ShowS
Prelude.Show, forall x.
Rep KubernetesConfigurationResult x
-> KubernetesConfigurationResult
forall x.
KubernetesConfigurationResult
-> Rep KubernetesConfigurationResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep KubernetesConfigurationResult x
-> KubernetesConfigurationResult
$cfrom :: forall x.
KubernetesConfigurationResult
-> Rep KubernetesConfigurationResult x
Prelude.Generic)
newKubernetesConfigurationResult ::
KubernetesAuditLogsConfigurationResult ->
KubernetesConfigurationResult
newKubernetesConfigurationResult :: KubernetesAuditLogsConfigurationResult
-> KubernetesConfigurationResult
newKubernetesConfigurationResult KubernetesAuditLogsConfigurationResult
pAuditLogs_ =
KubernetesConfigurationResult'
{ $sel:auditLogs:KubernetesConfigurationResult' :: KubernetesAuditLogsConfigurationResult
auditLogs =
KubernetesAuditLogsConfigurationResult
pAuditLogs_
}
kubernetesConfigurationResult_auditLogs :: Lens.Lens' KubernetesConfigurationResult KubernetesAuditLogsConfigurationResult
kubernetesConfigurationResult_auditLogs :: Lens'
KubernetesConfigurationResult
KubernetesAuditLogsConfigurationResult
kubernetesConfigurationResult_auditLogs = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\KubernetesConfigurationResult' {KubernetesAuditLogsConfigurationResult
auditLogs :: KubernetesAuditLogsConfigurationResult
$sel:auditLogs:KubernetesConfigurationResult' :: KubernetesConfigurationResult
-> KubernetesAuditLogsConfigurationResult
auditLogs} -> KubernetesAuditLogsConfigurationResult
auditLogs) (\s :: KubernetesConfigurationResult
s@KubernetesConfigurationResult' {} KubernetesAuditLogsConfigurationResult
a -> KubernetesConfigurationResult
s {$sel:auditLogs:KubernetesConfigurationResult' :: KubernetesAuditLogsConfigurationResult
auditLogs = KubernetesAuditLogsConfigurationResult
a} :: KubernetesConfigurationResult)
instance Data.FromJSON KubernetesConfigurationResult where
parseJSON :: Value -> Parser KubernetesConfigurationResult
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"KubernetesConfigurationResult"
( \Object
x ->
KubernetesAuditLogsConfigurationResult
-> KubernetesConfigurationResult
KubernetesConfigurationResult'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"auditLogs")
)
instance
Prelude.Hashable
KubernetesConfigurationResult
where
hashWithSalt :: Int -> KubernetesConfigurationResult -> Int
hashWithSalt Int
_salt KubernetesConfigurationResult' {KubernetesAuditLogsConfigurationResult
auditLogs :: KubernetesAuditLogsConfigurationResult
$sel:auditLogs:KubernetesConfigurationResult' :: KubernetesConfigurationResult
-> KubernetesAuditLogsConfigurationResult
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` KubernetesAuditLogsConfigurationResult
auditLogs
instance Prelude.NFData KubernetesConfigurationResult where
rnf :: KubernetesConfigurationResult -> ()
rnf KubernetesConfigurationResult' {KubernetesAuditLogsConfigurationResult
auditLogs :: KubernetesAuditLogsConfigurationResult
$sel:auditLogs:KubernetesConfigurationResult' :: KubernetesConfigurationResult
-> KubernetesAuditLogsConfigurationResult
..} =
forall a. NFData a => a -> ()
Prelude.rnf KubernetesAuditLogsConfigurationResult
auditLogs