{-# 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.OrganizationS3LogsConfigurationResult where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data OrganizationS3LogsConfigurationResult = OrganizationS3LogsConfigurationResult'
{
OrganizationS3LogsConfigurationResult -> Bool
autoEnable :: Prelude.Bool
}
deriving (OrganizationS3LogsConfigurationResult
-> OrganizationS3LogsConfigurationResult -> Bool
(OrganizationS3LogsConfigurationResult
-> OrganizationS3LogsConfigurationResult -> Bool)
-> (OrganizationS3LogsConfigurationResult
-> OrganizationS3LogsConfigurationResult -> Bool)
-> Eq OrganizationS3LogsConfigurationResult
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OrganizationS3LogsConfigurationResult
-> OrganizationS3LogsConfigurationResult -> Bool
$c/= :: OrganizationS3LogsConfigurationResult
-> OrganizationS3LogsConfigurationResult -> Bool
== :: OrganizationS3LogsConfigurationResult
-> OrganizationS3LogsConfigurationResult -> Bool
$c== :: OrganizationS3LogsConfigurationResult
-> OrganizationS3LogsConfigurationResult -> Bool
Prelude.Eq, ReadPrec [OrganizationS3LogsConfigurationResult]
ReadPrec OrganizationS3LogsConfigurationResult
Int -> ReadS OrganizationS3LogsConfigurationResult
ReadS [OrganizationS3LogsConfigurationResult]
(Int -> ReadS OrganizationS3LogsConfigurationResult)
-> ReadS [OrganizationS3LogsConfigurationResult]
-> ReadPrec OrganizationS3LogsConfigurationResult
-> ReadPrec [OrganizationS3LogsConfigurationResult]
-> Read OrganizationS3LogsConfigurationResult
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OrganizationS3LogsConfigurationResult]
$creadListPrec :: ReadPrec [OrganizationS3LogsConfigurationResult]
readPrec :: ReadPrec OrganizationS3LogsConfigurationResult
$creadPrec :: ReadPrec OrganizationS3LogsConfigurationResult
readList :: ReadS [OrganizationS3LogsConfigurationResult]
$creadList :: ReadS [OrganizationS3LogsConfigurationResult]
readsPrec :: Int -> ReadS OrganizationS3LogsConfigurationResult
$creadsPrec :: Int -> ReadS OrganizationS3LogsConfigurationResult
Prelude.Read, Int -> OrganizationS3LogsConfigurationResult -> ShowS
[OrganizationS3LogsConfigurationResult] -> ShowS
OrganizationS3LogsConfigurationResult -> String
(Int -> OrganizationS3LogsConfigurationResult -> ShowS)
-> (OrganizationS3LogsConfigurationResult -> String)
-> ([OrganizationS3LogsConfigurationResult] -> ShowS)
-> Show OrganizationS3LogsConfigurationResult
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OrganizationS3LogsConfigurationResult] -> ShowS
$cshowList :: [OrganizationS3LogsConfigurationResult] -> ShowS
show :: OrganizationS3LogsConfigurationResult -> String
$cshow :: OrganizationS3LogsConfigurationResult -> String
showsPrec :: Int -> OrganizationS3LogsConfigurationResult -> ShowS
$cshowsPrec :: Int -> OrganizationS3LogsConfigurationResult -> ShowS
Prelude.Show, (forall x.
OrganizationS3LogsConfigurationResult
-> Rep OrganizationS3LogsConfigurationResult x)
-> (forall x.
Rep OrganizationS3LogsConfigurationResult x
-> OrganizationS3LogsConfigurationResult)
-> Generic OrganizationS3LogsConfigurationResult
forall x.
Rep OrganizationS3LogsConfigurationResult x
-> OrganizationS3LogsConfigurationResult
forall x.
OrganizationS3LogsConfigurationResult
-> Rep OrganizationS3LogsConfigurationResult x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OrganizationS3LogsConfigurationResult x
-> OrganizationS3LogsConfigurationResult
$cfrom :: forall x.
OrganizationS3LogsConfigurationResult
-> Rep OrganizationS3LogsConfigurationResult x
Prelude.Generic)
newOrganizationS3LogsConfigurationResult ::
Prelude.Bool ->
OrganizationS3LogsConfigurationResult
newOrganizationS3LogsConfigurationResult :: Bool -> OrganizationS3LogsConfigurationResult
newOrganizationS3LogsConfigurationResult Bool
pAutoEnable_ =
OrganizationS3LogsConfigurationResult' :: Bool -> OrganizationS3LogsConfigurationResult
OrganizationS3LogsConfigurationResult'
{ $sel:autoEnable:OrganizationS3LogsConfigurationResult' :: Bool
autoEnable =
Bool
pAutoEnable_
}
organizationS3LogsConfigurationResult_autoEnable :: Lens.Lens' OrganizationS3LogsConfigurationResult Prelude.Bool
organizationS3LogsConfigurationResult_autoEnable :: (Bool -> f Bool)
-> OrganizationS3LogsConfigurationResult
-> f OrganizationS3LogsConfigurationResult
organizationS3LogsConfigurationResult_autoEnable = (OrganizationS3LogsConfigurationResult -> Bool)
-> (OrganizationS3LogsConfigurationResult
-> Bool -> OrganizationS3LogsConfigurationResult)
-> Lens
OrganizationS3LogsConfigurationResult
OrganizationS3LogsConfigurationResult
Bool
Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrganizationS3LogsConfigurationResult' {Bool
autoEnable :: Bool
$sel:autoEnable:OrganizationS3LogsConfigurationResult' :: OrganizationS3LogsConfigurationResult -> Bool
autoEnable} -> Bool
autoEnable) (\s :: OrganizationS3LogsConfigurationResult
s@OrganizationS3LogsConfigurationResult' {} Bool
a -> OrganizationS3LogsConfigurationResult
s {$sel:autoEnable:OrganizationS3LogsConfigurationResult' :: Bool
autoEnable = Bool
a} :: OrganizationS3LogsConfigurationResult)
instance
Core.FromJSON
OrganizationS3LogsConfigurationResult
where
parseJSON :: Value -> Parser OrganizationS3LogsConfigurationResult
parseJSON =
String
-> (Object -> Parser OrganizationS3LogsConfigurationResult)
-> Value
-> Parser OrganizationS3LogsConfigurationResult
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"OrganizationS3LogsConfigurationResult"
( \Object
x ->
Bool -> OrganizationS3LogsConfigurationResult
OrganizationS3LogsConfigurationResult'
(Bool -> OrganizationS3LogsConfigurationResult)
-> Parser Bool -> Parser OrganizationS3LogsConfigurationResult
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser Bool
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"autoEnable")
)
instance
Prelude.Hashable
OrganizationS3LogsConfigurationResult
instance
Prelude.NFData
OrganizationS3LogsConfigurationResult