{-# 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.CloudTrail.UpdateTrail
(
UpdateTrail (..),
newUpdateTrail,
updateTrail_s3KeyPrefix,
updateTrail_snsTopicName,
updateTrail_enableLogFileValidation,
updateTrail_cloudWatchLogsLogGroupArn,
updateTrail_kmsKeyId,
updateTrail_includeGlobalServiceEvents,
updateTrail_isOrganizationTrail,
updateTrail_cloudWatchLogsRoleArn,
updateTrail_s3BucketName,
updateTrail_isMultiRegionTrail,
updateTrail_name,
UpdateTrailResponse (..),
newUpdateTrailResponse,
updateTrailResponse_logFileValidationEnabled,
updateTrailResponse_trailARN,
updateTrailResponse_s3KeyPrefix,
updateTrailResponse_snsTopicARN,
updateTrailResponse_snsTopicName,
updateTrailResponse_cloudWatchLogsLogGroupArn,
updateTrailResponse_kmsKeyId,
updateTrailResponse_name,
updateTrailResponse_includeGlobalServiceEvents,
updateTrailResponse_isOrganizationTrail,
updateTrailResponse_cloudWatchLogsRoleArn,
updateTrailResponse_s3BucketName,
updateTrailResponse_isMultiRegionTrail,
updateTrailResponse_httpStatus,
)
where
import Amazonka.CloudTrail.Types
import qualified Amazonka.Core as Core
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 UpdateTrail = UpdateTrail'
{
UpdateTrail -> Maybe Text
s3KeyPrefix :: Prelude.Maybe Prelude.Text,
UpdateTrail -> Maybe Text
snsTopicName :: Prelude.Maybe Prelude.Text,
UpdateTrail -> Maybe Bool
enableLogFileValidation :: Prelude.Maybe Prelude.Bool,
UpdateTrail -> Maybe Text
cloudWatchLogsLogGroupArn :: Prelude.Maybe Prelude.Text,
UpdateTrail -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
UpdateTrail -> Maybe Bool
includeGlobalServiceEvents :: Prelude.Maybe Prelude.Bool,
UpdateTrail -> Maybe Bool
isOrganizationTrail :: Prelude.Maybe Prelude.Bool,
UpdateTrail -> Maybe Text
cloudWatchLogsRoleArn :: Prelude.Maybe Prelude.Text,
UpdateTrail -> Maybe Text
s3BucketName :: Prelude.Maybe Prelude.Text,
UpdateTrail -> Maybe Bool
isMultiRegionTrail :: Prelude.Maybe Prelude.Bool,
UpdateTrail -> Text
name :: Prelude.Text
}
deriving (UpdateTrail -> UpdateTrail -> Bool
(UpdateTrail -> UpdateTrail -> Bool)
-> (UpdateTrail -> UpdateTrail -> Bool) -> Eq UpdateTrail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTrail -> UpdateTrail -> Bool
$c/= :: UpdateTrail -> UpdateTrail -> Bool
== :: UpdateTrail -> UpdateTrail -> Bool
$c== :: UpdateTrail -> UpdateTrail -> Bool
Prelude.Eq, ReadPrec [UpdateTrail]
ReadPrec UpdateTrail
Int -> ReadS UpdateTrail
ReadS [UpdateTrail]
(Int -> ReadS UpdateTrail)
-> ReadS [UpdateTrail]
-> ReadPrec UpdateTrail
-> ReadPrec [UpdateTrail]
-> Read UpdateTrail
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTrail]
$creadListPrec :: ReadPrec [UpdateTrail]
readPrec :: ReadPrec UpdateTrail
$creadPrec :: ReadPrec UpdateTrail
readList :: ReadS [UpdateTrail]
$creadList :: ReadS [UpdateTrail]
readsPrec :: Int -> ReadS UpdateTrail
$creadsPrec :: Int -> ReadS UpdateTrail
Prelude.Read, Int -> UpdateTrail -> ShowS
[UpdateTrail] -> ShowS
UpdateTrail -> String
(Int -> UpdateTrail -> ShowS)
-> (UpdateTrail -> String)
-> ([UpdateTrail] -> ShowS)
-> Show UpdateTrail
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTrail] -> ShowS
$cshowList :: [UpdateTrail] -> ShowS
show :: UpdateTrail -> String
$cshow :: UpdateTrail -> String
showsPrec :: Int -> UpdateTrail -> ShowS
$cshowsPrec :: Int -> UpdateTrail -> ShowS
Prelude.Show, (forall x. UpdateTrail -> Rep UpdateTrail x)
-> (forall x. Rep UpdateTrail x -> UpdateTrail)
-> Generic UpdateTrail
forall x. Rep UpdateTrail x -> UpdateTrail
forall x. UpdateTrail -> Rep UpdateTrail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateTrail x -> UpdateTrail
$cfrom :: forall x. UpdateTrail -> Rep UpdateTrail x
Prelude.Generic)
newUpdateTrail ::
Prelude.Text ->
UpdateTrail
newUpdateTrail :: Text -> UpdateTrail
newUpdateTrail Text
pName_ =
UpdateTrail' :: Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Text
-> UpdateTrail
UpdateTrail'
{ $sel:s3KeyPrefix:UpdateTrail' :: Maybe Text
s3KeyPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:snsTopicName:UpdateTrail' :: Maybe Text
snsTopicName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:enableLogFileValidation:UpdateTrail' :: Maybe Bool
enableLogFileValidation = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLogsLogGroupArn:UpdateTrail' :: Maybe Text
cloudWatchLogsLogGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:UpdateTrail' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:includeGlobalServiceEvents:UpdateTrail' :: Maybe Bool
includeGlobalServiceEvents = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:isOrganizationTrail:UpdateTrail' :: Maybe Bool
isOrganizationTrail = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLogsRoleArn:UpdateTrail' :: Maybe Text
cloudWatchLogsRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:s3BucketName:UpdateTrail' :: Maybe Text
s3BucketName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isMultiRegionTrail:UpdateTrail' :: Maybe Bool
isMultiRegionTrail = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateTrail' :: Text
name = Text
pName_
}
updateTrail_s3KeyPrefix :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)
updateTrail_s3KeyPrefix :: (Maybe Text -> f (Maybe Text)) -> UpdateTrail -> f UpdateTrail
updateTrail_s3KeyPrefix = (UpdateTrail -> Maybe Text)
-> (UpdateTrail -> Maybe Text -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Text
s3KeyPrefix :: Maybe Text
$sel:s3KeyPrefix:UpdateTrail' :: UpdateTrail -> Maybe Text
s3KeyPrefix} -> Maybe Text
s3KeyPrefix) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Text
a -> UpdateTrail
s {$sel:s3KeyPrefix:UpdateTrail' :: Maybe Text
s3KeyPrefix = Maybe Text
a} :: UpdateTrail)
updateTrail_snsTopicName :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)
updateTrail_snsTopicName :: (Maybe Text -> f (Maybe Text)) -> UpdateTrail -> f UpdateTrail
updateTrail_snsTopicName = (UpdateTrail -> Maybe Text)
-> (UpdateTrail -> Maybe Text -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Text
snsTopicName :: Maybe Text
$sel:snsTopicName:UpdateTrail' :: UpdateTrail -> Maybe Text
snsTopicName} -> Maybe Text
snsTopicName) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Text
a -> UpdateTrail
s {$sel:snsTopicName:UpdateTrail' :: Maybe Text
snsTopicName = Maybe Text
a} :: UpdateTrail)
updateTrail_enableLogFileValidation :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Bool)
updateTrail_enableLogFileValidation :: (Maybe Bool -> f (Maybe Bool)) -> UpdateTrail -> f UpdateTrail
updateTrail_enableLogFileValidation = (UpdateTrail -> Maybe Bool)
-> (UpdateTrail -> Maybe Bool -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Bool
enableLogFileValidation :: Maybe Bool
$sel:enableLogFileValidation:UpdateTrail' :: UpdateTrail -> Maybe Bool
enableLogFileValidation} -> Maybe Bool
enableLogFileValidation) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Bool
a -> UpdateTrail
s {$sel:enableLogFileValidation:UpdateTrail' :: Maybe Bool
enableLogFileValidation = Maybe Bool
a} :: UpdateTrail)
updateTrail_cloudWatchLogsLogGroupArn :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)
updateTrail_cloudWatchLogsLogGroupArn :: (Maybe Text -> f (Maybe Text)) -> UpdateTrail -> f UpdateTrail
updateTrail_cloudWatchLogsLogGroupArn = (UpdateTrail -> Maybe Text)
-> (UpdateTrail -> Maybe Text -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Text
cloudWatchLogsLogGroupArn :: Maybe Text
$sel:cloudWatchLogsLogGroupArn:UpdateTrail' :: UpdateTrail -> Maybe Text
cloudWatchLogsLogGroupArn} -> Maybe Text
cloudWatchLogsLogGroupArn) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Text
a -> UpdateTrail
s {$sel:cloudWatchLogsLogGroupArn:UpdateTrail' :: Maybe Text
cloudWatchLogsLogGroupArn = Maybe Text
a} :: UpdateTrail)
updateTrail_kmsKeyId :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)
updateTrail_kmsKeyId :: (Maybe Text -> f (Maybe Text)) -> UpdateTrail -> f UpdateTrail
updateTrail_kmsKeyId = (UpdateTrail -> Maybe Text)
-> (UpdateTrail -> Maybe Text -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:UpdateTrail' :: UpdateTrail -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Text
a -> UpdateTrail
s {$sel:kmsKeyId:UpdateTrail' :: Maybe Text
kmsKeyId = Maybe Text
a} :: UpdateTrail)
updateTrail_includeGlobalServiceEvents :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Bool)
updateTrail_includeGlobalServiceEvents :: (Maybe Bool -> f (Maybe Bool)) -> UpdateTrail -> f UpdateTrail
updateTrail_includeGlobalServiceEvents = (UpdateTrail -> Maybe Bool)
-> (UpdateTrail -> Maybe Bool -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Bool
includeGlobalServiceEvents :: Maybe Bool
$sel:includeGlobalServiceEvents:UpdateTrail' :: UpdateTrail -> Maybe Bool
includeGlobalServiceEvents} -> Maybe Bool
includeGlobalServiceEvents) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Bool
a -> UpdateTrail
s {$sel:includeGlobalServiceEvents:UpdateTrail' :: Maybe Bool
includeGlobalServiceEvents = Maybe Bool
a} :: UpdateTrail)
updateTrail_isOrganizationTrail :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Bool)
updateTrail_isOrganizationTrail :: (Maybe Bool -> f (Maybe Bool)) -> UpdateTrail -> f UpdateTrail
updateTrail_isOrganizationTrail = (UpdateTrail -> Maybe Bool)
-> (UpdateTrail -> Maybe Bool -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Bool
isOrganizationTrail :: Maybe Bool
$sel:isOrganizationTrail:UpdateTrail' :: UpdateTrail -> Maybe Bool
isOrganizationTrail} -> Maybe Bool
isOrganizationTrail) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Bool
a -> UpdateTrail
s {$sel:isOrganizationTrail:UpdateTrail' :: Maybe Bool
isOrganizationTrail = Maybe Bool
a} :: UpdateTrail)
updateTrail_cloudWatchLogsRoleArn :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)
updateTrail_cloudWatchLogsRoleArn :: (Maybe Text -> f (Maybe Text)) -> UpdateTrail -> f UpdateTrail
updateTrail_cloudWatchLogsRoleArn = (UpdateTrail -> Maybe Text)
-> (UpdateTrail -> Maybe Text -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Text
cloudWatchLogsRoleArn :: Maybe Text
$sel:cloudWatchLogsRoleArn:UpdateTrail' :: UpdateTrail -> Maybe Text
cloudWatchLogsRoleArn} -> Maybe Text
cloudWatchLogsRoleArn) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Text
a -> UpdateTrail
s {$sel:cloudWatchLogsRoleArn:UpdateTrail' :: Maybe Text
cloudWatchLogsRoleArn = Maybe Text
a} :: UpdateTrail)
updateTrail_s3BucketName :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Text)
updateTrail_s3BucketName :: (Maybe Text -> f (Maybe Text)) -> UpdateTrail -> f UpdateTrail
updateTrail_s3BucketName = (UpdateTrail -> Maybe Text)
-> (UpdateTrail -> Maybe Text -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Text
s3BucketName :: Maybe Text
$sel:s3BucketName:UpdateTrail' :: UpdateTrail -> Maybe Text
s3BucketName} -> Maybe Text
s3BucketName) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Text
a -> UpdateTrail
s {$sel:s3BucketName:UpdateTrail' :: Maybe Text
s3BucketName = Maybe Text
a} :: UpdateTrail)
updateTrail_isMultiRegionTrail :: Lens.Lens' UpdateTrail (Prelude.Maybe Prelude.Bool)
updateTrail_isMultiRegionTrail :: (Maybe Bool -> f (Maybe Bool)) -> UpdateTrail -> f UpdateTrail
updateTrail_isMultiRegionTrail = (UpdateTrail -> Maybe Bool)
-> (UpdateTrail -> Maybe Bool -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Maybe Bool
isMultiRegionTrail :: Maybe Bool
$sel:isMultiRegionTrail:UpdateTrail' :: UpdateTrail -> Maybe Bool
isMultiRegionTrail} -> Maybe Bool
isMultiRegionTrail) (\s :: UpdateTrail
s@UpdateTrail' {} Maybe Bool
a -> UpdateTrail
s {$sel:isMultiRegionTrail:UpdateTrail' :: Maybe Bool
isMultiRegionTrail = Maybe Bool
a} :: UpdateTrail)
updateTrail_name :: Lens.Lens' UpdateTrail Prelude.Text
updateTrail_name :: (Text -> f Text) -> UpdateTrail -> f UpdateTrail
updateTrail_name = (UpdateTrail -> Text)
-> (UpdateTrail -> Text -> UpdateTrail)
-> Lens UpdateTrail UpdateTrail Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrail' {Text
name :: Text
$sel:name:UpdateTrail' :: UpdateTrail -> Text
name} -> Text
name) (\s :: UpdateTrail
s@UpdateTrail' {} Text
a -> UpdateTrail
s {$sel:name:UpdateTrail' :: Text
name = Text
a} :: UpdateTrail)
instance Core.AWSRequest UpdateTrail where
type AWSResponse UpdateTrail = UpdateTrailResponse
request :: UpdateTrail -> Request UpdateTrail
request = Service -> UpdateTrail -> Request UpdateTrail
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateTrail
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateTrail)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateTrail))
-> Logger
-> Service
-> Proxy UpdateTrail
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateTrail)))
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 Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse
UpdateTrailResponse'
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
forall (f :: * -> *) a b. Functor 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
"LogFileValidationEnabled")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
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
"TrailARN")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
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
"S3KeyPrefix")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
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
"SnsTopicARN")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
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
"SnsTopicName")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
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
"CloudWatchLogsLogGroupArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
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
"KmsKeyId")
Either
String
(Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
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
"Name")
Either
String
(Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
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
"IncludeGlobalServiceEvents")
Either
String
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Bool -> Int -> UpdateTrailResponse)
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
"IsOrganizationTrail")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Bool -> Int -> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe Text -> Maybe Bool -> Int -> UpdateTrailResponse)
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
"CloudWatchLogsRoleArn")
Either
String (Maybe Text -> Maybe Bool -> Int -> UpdateTrailResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Bool -> Int -> UpdateTrailResponse)
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
"S3BucketName")
Either String (Maybe Bool -> Int -> UpdateTrailResponse)
-> Either String (Maybe Bool)
-> Either String (Int -> UpdateTrailResponse)
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
"IsMultiRegionTrail")
Either String (Int -> UpdateTrailResponse)
-> Either String Int -> Either String UpdateTrailResponse
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 UpdateTrail
instance Prelude.NFData UpdateTrail
instance Core.ToHeaders UpdateTrail where
toHeaders :: UpdateTrail -> ResponseHeaders
toHeaders =
ResponseHeaders -> UpdateTrail -> 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
"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.UpdateTrail" ::
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 UpdateTrail where
toJSON :: UpdateTrail -> Value
toJSON UpdateTrail' {Maybe Bool
Maybe Text
Text
name :: Text
isMultiRegionTrail :: Maybe Bool
s3BucketName :: Maybe Text
cloudWatchLogsRoleArn :: Maybe Text
isOrganizationTrail :: Maybe Bool
includeGlobalServiceEvents :: Maybe Bool
kmsKeyId :: Maybe Text
cloudWatchLogsLogGroupArn :: Maybe Text
enableLogFileValidation :: Maybe Bool
snsTopicName :: Maybe Text
s3KeyPrefix :: Maybe Text
$sel:name:UpdateTrail' :: UpdateTrail -> Text
$sel:isMultiRegionTrail:UpdateTrail' :: UpdateTrail -> Maybe Bool
$sel:s3BucketName:UpdateTrail' :: UpdateTrail -> Maybe Text
$sel:cloudWatchLogsRoleArn:UpdateTrail' :: UpdateTrail -> Maybe Text
$sel:isOrganizationTrail:UpdateTrail' :: UpdateTrail -> Maybe Bool
$sel:includeGlobalServiceEvents:UpdateTrail' :: UpdateTrail -> Maybe Bool
$sel:kmsKeyId:UpdateTrail' :: UpdateTrail -> Maybe Text
$sel:cloudWatchLogsLogGroupArn:UpdateTrail' :: UpdateTrail -> Maybe Text
$sel:enableLogFileValidation:UpdateTrail' :: UpdateTrail -> Maybe Bool
$sel:snsTopicName:UpdateTrail' :: UpdateTrail -> Maybe Text
$sel:s3KeyPrefix:UpdateTrail' :: UpdateTrail -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"S3KeyPrefix" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
s3KeyPrefix,
(Text
"SnsTopicName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
snsTopicName,
(Text
"EnableLogFileValidation" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableLogFileValidation,
(Text
"CloudWatchLogsLogGroupArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
cloudWatchLogsLogGroupArn,
(Text
"KmsKeyId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kmsKeyId,
(Text
"IncludeGlobalServiceEvents" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
includeGlobalServiceEvents,
(Text
"IsOrganizationTrail" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
isOrganizationTrail,
(Text
"CloudWatchLogsRoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
cloudWatchLogsRoleArn,
(Text
"S3BucketName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
s3BucketName,
(Text
"IsMultiRegionTrail" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
isMultiRegionTrail,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
]
)
instance Core.ToPath UpdateTrail where
toPath :: UpdateTrail -> ByteString
toPath = ByteString -> UpdateTrail -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UpdateTrail where
toQuery :: UpdateTrail -> QueryString
toQuery = QueryString -> UpdateTrail -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateTrailResponse = UpdateTrailResponse'
{
UpdateTrailResponse -> Maybe Bool
logFileValidationEnabled :: Prelude.Maybe Prelude.Bool,
UpdateTrailResponse -> Maybe Text
trailARN :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Text
s3KeyPrefix :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Text
snsTopicARN :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Text
snsTopicName :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Text
cloudWatchLogsLogGroupArn :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Bool
includeGlobalServiceEvents :: Prelude.Maybe Prelude.Bool,
UpdateTrailResponse -> Maybe Bool
isOrganizationTrail :: Prelude.Maybe Prelude.Bool,
UpdateTrailResponse -> Maybe Text
cloudWatchLogsRoleArn :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Text
s3BucketName :: Prelude.Maybe Prelude.Text,
UpdateTrailResponse -> Maybe Bool
isMultiRegionTrail :: Prelude.Maybe Prelude.Bool,
UpdateTrailResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateTrailResponse -> UpdateTrailResponse -> Bool
(UpdateTrailResponse -> UpdateTrailResponse -> Bool)
-> (UpdateTrailResponse -> UpdateTrailResponse -> Bool)
-> Eq UpdateTrailResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateTrailResponse -> UpdateTrailResponse -> Bool
$c/= :: UpdateTrailResponse -> UpdateTrailResponse -> Bool
== :: UpdateTrailResponse -> UpdateTrailResponse -> Bool
$c== :: UpdateTrailResponse -> UpdateTrailResponse -> Bool
Prelude.Eq, ReadPrec [UpdateTrailResponse]
ReadPrec UpdateTrailResponse
Int -> ReadS UpdateTrailResponse
ReadS [UpdateTrailResponse]
(Int -> ReadS UpdateTrailResponse)
-> ReadS [UpdateTrailResponse]
-> ReadPrec UpdateTrailResponse
-> ReadPrec [UpdateTrailResponse]
-> Read UpdateTrailResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateTrailResponse]
$creadListPrec :: ReadPrec [UpdateTrailResponse]
readPrec :: ReadPrec UpdateTrailResponse
$creadPrec :: ReadPrec UpdateTrailResponse
readList :: ReadS [UpdateTrailResponse]
$creadList :: ReadS [UpdateTrailResponse]
readsPrec :: Int -> ReadS UpdateTrailResponse
$creadsPrec :: Int -> ReadS UpdateTrailResponse
Prelude.Read, Int -> UpdateTrailResponse -> ShowS
[UpdateTrailResponse] -> ShowS
UpdateTrailResponse -> String
(Int -> UpdateTrailResponse -> ShowS)
-> (UpdateTrailResponse -> String)
-> ([UpdateTrailResponse] -> ShowS)
-> Show UpdateTrailResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateTrailResponse] -> ShowS
$cshowList :: [UpdateTrailResponse] -> ShowS
show :: UpdateTrailResponse -> String
$cshow :: UpdateTrailResponse -> String
showsPrec :: Int -> UpdateTrailResponse -> ShowS
$cshowsPrec :: Int -> UpdateTrailResponse -> ShowS
Prelude.Show, (forall x. UpdateTrailResponse -> Rep UpdateTrailResponse x)
-> (forall x. Rep UpdateTrailResponse x -> UpdateTrailResponse)
-> Generic UpdateTrailResponse
forall x. Rep UpdateTrailResponse x -> UpdateTrailResponse
forall x. UpdateTrailResponse -> Rep UpdateTrailResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateTrailResponse x -> UpdateTrailResponse
$cfrom :: forall x. UpdateTrailResponse -> Rep UpdateTrailResponse x
Prelude.Generic)
newUpdateTrailResponse ::
Prelude.Int ->
UpdateTrailResponse
newUpdateTrailResponse :: Int -> UpdateTrailResponse
newUpdateTrailResponse Int
pHttpStatus_ =
UpdateTrailResponse' :: Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Int
-> UpdateTrailResponse
UpdateTrailResponse'
{ $sel:logFileValidationEnabled:UpdateTrailResponse' :: Maybe Bool
logFileValidationEnabled =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:trailARN:UpdateTrailResponse' :: Maybe Text
trailARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:s3KeyPrefix:UpdateTrailResponse' :: Maybe Text
s3KeyPrefix = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:snsTopicARN:UpdateTrailResponse' :: Maybe Text
snsTopicARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:snsTopicName:UpdateTrailResponse' :: Maybe Text
snsTopicName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLogsLogGroupArn:UpdateTrailResponse' :: Maybe Text
cloudWatchLogsLogGroupArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:UpdateTrailResponse' :: Maybe Text
kmsKeyId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateTrailResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:includeGlobalServiceEvents:UpdateTrailResponse' :: Maybe Bool
includeGlobalServiceEvents = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:isOrganizationTrail:UpdateTrailResponse' :: Maybe Bool
isOrganizationTrail = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:cloudWatchLogsRoleArn:UpdateTrailResponse' :: Maybe Text
cloudWatchLogsRoleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:s3BucketName:UpdateTrailResponse' :: Maybe Text
s3BucketName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:isMultiRegionTrail:UpdateTrailResponse' :: Maybe Bool
isMultiRegionTrail = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateTrailResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateTrailResponse_logFileValidationEnabled :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Bool)
updateTrailResponse_logFileValidationEnabled :: (Maybe Bool -> f (Maybe Bool))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_logFileValidationEnabled = (UpdateTrailResponse -> Maybe Bool)
-> (UpdateTrailResponse -> Maybe Bool -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Bool
logFileValidationEnabled :: Maybe Bool
$sel:logFileValidationEnabled:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Bool
logFileValidationEnabled} -> Maybe Bool
logFileValidationEnabled) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Bool
a -> UpdateTrailResponse
s {$sel:logFileValidationEnabled:UpdateTrailResponse' :: Maybe Bool
logFileValidationEnabled = Maybe Bool
a} :: UpdateTrailResponse)
updateTrailResponse_trailARN :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_trailARN :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_trailARN = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
trailARN :: Maybe Text
$sel:trailARN:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
trailARN} -> Maybe Text
trailARN) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:trailARN:UpdateTrailResponse' :: Maybe Text
trailARN = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_s3KeyPrefix :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_s3KeyPrefix :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_s3KeyPrefix = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
s3KeyPrefix :: Maybe Text
$sel:s3KeyPrefix:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
s3KeyPrefix} -> Maybe Text
s3KeyPrefix) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:s3KeyPrefix:UpdateTrailResponse' :: Maybe Text
s3KeyPrefix = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_snsTopicARN :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_snsTopicARN :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_snsTopicARN = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
snsTopicARN :: Maybe Text
$sel:snsTopicARN:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
snsTopicARN} -> Maybe Text
snsTopicARN) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:snsTopicARN:UpdateTrailResponse' :: Maybe Text
snsTopicARN = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_snsTopicName :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_snsTopicName :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_snsTopicName = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
snsTopicName :: Maybe Text
$sel:snsTopicName:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
snsTopicName} -> Maybe Text
snsTopicName) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:snsTopicName:UpdateTrailResponse' :: Maybe Text
snsTopicName = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_cloudWatchLogsLogGroupArn :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_cloudWatchLogsLogGroupArn :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_cloudWatchLogsLogGroupArn = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
cloudWatchLogsLogGroupArn :: Maybe Text
$sel:cloudWatchLogsLogGroupArn:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
cloudWatchLogsLogGroupArn} -> Maybe Text
cloudWatchLogsLogGroupArn) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:cloudWatchLogsLogGroupArn:UpdateTrailResponse' :: Maybe Text
cloudWatchLogsLogGroupArn = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_kmsKeyId :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_kmsKeyId :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_kmsKeyId = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:kmsKeyId:UpdateTrailResponse' :: Maybe Text
kmsKeyId = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_name :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_name :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_name = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:name:UpdateTrailResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_includeGlobalServiceEvents :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Bool)
updateTrailResponse_includeGlobalServiceEvents :: (Maybe Bool -> f (Maybe Bool))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_includeGlobalServiceEvents = (UpdateTrailResponse -> Maybe Bool)
-> (UpdateTrailResponse -> Maybe Bool -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Bool
includeGlobalServiceEvents :: Maybe Bool
$sel:includeGlobalServiceEvents:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Bool
includeGlobalServiceEvents} -> Maybe Bool
includeGlobalServiceEvents) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Bool
a -> UpdateTrailResponse
s {$sel:includeGlobalServiceEvents:UpdateTrailResponse' :: Maybe Bool
includeGlobalServiceEvents = Maybe Bool
a} :: UpdateTrailResponse)
updateTrailResponse_isOrganizationTrail :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Bool)
updateTrailResponse_isOrganizationTrail :: (Maybe Bool -> f (Maybe Bool))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_isOrganizationTrail = (UpdateTrailResponse -> Maybe Bool)
-> (UpdateTrailResponse -> Maybe Bool -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Bool
isOrganizationTrail :: Maybe Bool
$sel:isOrganizationTrail:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Bool
isOrganizationTrail} -> Maybe Bool
isOrganizationTrail) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Bool
a -> UpdateTrailResponse
s {$sel:isOrganizationTrail:UpdateTrailResponse' :: Maybe Bool
isOrganizationTrail = Maybe Bool
a} :: UpdateTrailResponse)
updateTrailResponse_cloudWatchLogsRoleArn :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_cloudWatchLogsRoleArn :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_cloudWatchLogsRoleArn = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
cloudWatchLogsRoleArn :: Maybe Text
$sel:cloudWatchLogsRoleArn:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
cloudWatchLogsRoleArn} -> Maybe Text
cloudWatchLogsRoleArn) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:cloudWatchLogsRoleArn:UpdateTrailResponse' :: Maybe Text
cloudWatchLogsRoleArn = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_s3BucketName :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Text)
updateTrailResponse_s3BucketName :: (Maybe Text -> f (Maybe Text))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_s3BucketName = (UpdateTrailResponse -> Maybe Text)
-> (UpdateTrailResponse -> Maybe Text -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Text
s3BucketName :: Maybe Text
$sel:s3BucketName:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Text
s3BucketName} -> Maybe Text
s3BucketName) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Text
a -> UpdateTrailResponse
s {$sel:s3BucketName:UpdateTrailResponse' :: Maybe Text
s3BucketName = Maybe Text
a} :: UpdateTrailResponse)
updateTrailResponse_isMultiRegionTrail :: Lens.Lens' UpdateTrailResponse (Prelude.Maybe Prelude.Bool)
updateTrailResponse_isMultiRegionTrail :: (Maybe Bool -> f (Maybe Bool))
-> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_isMultiRegionTrail = (UpdateTrailResponse -> Maybe Bool)
-> (UpdateTrailResponse -> Maybe Bool -> UpdateTrailResponse)
-> Lens
UpdateTrailResponse UpdateTrailResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Maybe Bool
isMultiRegionTrail :: Maybe Bool
$sel:isMultiRegionTrail:UpdateTrailResponse' :: UpdateTrailResponse -> Maybe Bool
isMultiRegionTrail} -> Maybe Bool
isMultiRegionTrail) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Maybe Bool
a -> UpdateTrailResponse
s {$sel:isMultiRegionTrail:UpdateTrailResponse' :: Maybe Bool
isMultiRegionTrail = Maybe Bool
a} :: UpdateTrailResponse)
updateTrailResponse_httpStatus :: Lens.Lens' UpdateTrailResponse Prelude.Int
updateTrailResponse_httpStatus :: (Int -> f Int) -> UpdateTrailResponse -> f UpdateTrailResponse
updateTrailResponse_httpStatus = (UpdateTrailResponse -> Int)
-> (UpdateTrailResponse -> Int -> UpdateTrailResponse)
-> Lens UpdateTrailResponse UpdateTrailResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateTrailResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateTrailResponse' :: UpdateTrailResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateTrailResponse
s@UpdateTrailResponse' {} Int
a -> UpdateTrailResponse
s {$sel:httpStatus:UpdateTrailResponse' :: Int
httpStatus = Int
a} :: UpdateTrailResponse)
instance Prelude.NFData UpdateTrailResponse