{-# 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.UpdateEventDataStore
(
UpdateEventDataStore (..),
newUpdateEventDataStore,
updateEventDataStore_advancedEventSelectors,
updateEventDataStore_kmsKeyId,
updateEventDataStore_multiRegionEnabled,
updateEventDataStore_name,
updateEventDataStore_organizationEnabled,
updateEventDataStore_retentionPeriod,
updateEventDataStore_terminationProtectionEnabled,
updateEventDataStore_eventDataStore,
UpdateEventDataStoreResponse (..),
newUpdateEventDataStoreResponse,
updateEventDataStoreResponse_advancedEventSelectors,
updateEventDataStoreResponse_createdTimestamp,
updateEventDataStoreResponse_eventDataStoreArn,
updateEventDataStoreResponse_kmsKeyId,
updateEventDataStoreResponse_multiRegionEnabled,
updateEventDataStoreResponse_name,
updateEventDataStoreResponse_organizationEnabled,
updateEventDataStoreResponse_retentionPeriod,
updateEventDataStoreResponse_status,
updateEventDataStoreResponse_terminationProtectionEnabled,
updateEventDataStoreResponse_updatedTimestamp,
updateEventDataStoreResponse_httpStatus,
)
where
import Amazonka.CloudTrail.Types
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
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data UpdateEventDataStore = UpdateEventDataStore'
{
UpdateEventDataStore -> Maybe [AdvancedEventSelector]
advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],
UpdateEventDataStore -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
UpdateEventDataStore -> Maybe Bool
multiRegionEnabled :: Prelude.Maybe Prelude.Bool,
UpdateEventDataStore -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateEventDataStore -> Maybe Bool
organizationEnabled :: Prelude.Maybe Prelude.Bool,
UpdateEventDataStore -> Maybe Natural
retentionPeriod :: Prelude.Maybe Prelude.Natural,
UpdateEventDataStore -> Maybe Bool
terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,
UpdateEventDataStore -> Text
eventDataStore :: Prelude.Text
}
deriving (UpdateEventDataStore -> UpdateEventDataStore -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateEventDataStore -> UpdateEventDataStore -> Bool
$c/= :: UpdateEventDataStore -> UpdateEventDataStore -> Bool
== :: UpdateEventDataStore -> UpdateEventDataStore -> Bool
$c== :: UpdateEventDataStore -> UpdateEventDataStore -> Bool
Prelude.Eq, ReadPrec [UpdateEventDataStore]
ReadPrec UpdateEventDataStore
Int -> ReadS UpdateEventDataStore
ReadS [UpdateEventDataStore]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateEventDataStore]
$creadListPrec :: ReadPrec [UpdateEventDataStore]
readPrec :: ReadPrec UpdateEventDataStore
$creadPrec :: ReadPrec UpdateEventDataStore
readList :: ReadS [UpdateEventDataStore]
$creadList :: ReadS [UpdateEventDataStore]
readsPrec :: Int -> ReadS UpdateEventDataStore
$creadsPrec :: Int -> ReadS UpdateEventDataStore
Prelude.Read, Int -> UpdateEventDataStore -> ShowS
[UpdateEventDataStore] -> ShowS
UpdateEventDataStore -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateEventDataStore] -> ShowS
$cshowList :: [UpdateEventDataStore] -> ShowS
show :: UpdateEventDataStore -> String
$cshow :: UpdateEventDataStore -> String
showsPrec :: Int -> UpdateEventDataStore -> ShowS
$cshowsPrec :: Int -> UpdateEventDataStore -> ShowS
Prelude.Show, forall x. Rep UpdateEventDataStore x -> UpdateEventDataStore
forall x. UpdateEventDataStore -> Rep UpdateEventDataStore x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateEventDataStore x -> UpdateEventDataStore
$cfrom :: forall x. UpdateEventDataStore -> Rep UpdateEventDataStore x
Prelude.Generic)
newUpdateEventDataStore ::
Prelude.Text ->
UpdateEventDataStore
newUpdateEventDataStore :: Text -> UpdateEventDataStore
newUpdateEventDataStore Text
pEventDataStore_ =
UpdateEventDataStore'
{ $sel:advancedEventSelectors:UpdateEventDataStore' :: Maybe [AdvancedEventSelector]
advancedEventSelectors =
forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:UpdateEventDataStore' :: Maybe Text
kmsKeyId = forall a. Maybe a
Prelude.Nothing,
$sel:multiRegionEnabled:UpdateEventDataStore' :: Maybe Bool
multiRegionEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateEventDataStore' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:organizationEnabled:UpdateEventDataStore' :: Maybe Bool
organizationEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:retentionPeriod:UpdateEventDataStore' :: Maybe Natural
retentionPeriod = forall a. Maybe a
Prelude.Nothing,
$sel:terminationProtectionEnabled:UpdateEventDataStore' :: Maybe Bool
terminationProtectionEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:eventDataStore:UpdateEventDataStore' :: Text
eventDataStore = Text
pEventDataStore_
}
updateEventDataStore_advancedEventSelectors :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe [AdvancedEventSelector])
updateEventDataStore_advancedEventSelectors :: Lens' UpdateEventDataStore (Maybe [AdvancedEventSelector])
updateEventDataStore_advancedEventSelectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStore' {Maybe [AdvancedEventSelector]
advancedEventSelectors :: Maybe [AdvancedEventSelector]
$sel:advancedEventSelectors:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe [AdvancedEventSelector]
advancedEventSelectors} -> Maybe [AdvancedEventSelector]
advancedEventSelectors) (\s :: UpdateEventDataStore
s@UpdateEventDataStore' {} Maybe [AdvancedEventSelector]
a -> UpdateEventDataStore
s {$sel:advancedEventSelectors:UpdateEventDataStore' :: Maybe [AdvancedEventSelector]
advancedEventSelectors = Maybe [AdvancedEventSelector]
a} :: UpdateEventDataStore) 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
updateEventDataStore_kmsKeyId :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Text)
updateEventDataStore_kmsKeyId :: Lens' UpdateEventDataStore (Maybe Text)
updateEventDataStore_kmsKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStore' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: UpdateEventDataStore
s@UpdateEventDataStore' {} Maybe Text
a -> UpdateEventDataStore
s {$sel:kmsKeyId:UpdateEventDataStore' :: Maybe Text
kmsKeyId = Maybe Text
a} :: UpdateEventDataStore)
updateEventDataStore_multiRegionEnabled :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Bool)
updateEventDataStore_multiRegionEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
updateEventDataStore_multiRegionEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStore' {Maybe Bool
multiRegionEnabled :: Maybe Bool
$sel:multiRegionEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
multiRegionEnabled} -> Maybe Bool
multiRegionEnabled) (\s :: UpdateEventDataStore
s@UpdateEventDataStore' {} Maybe Bool
a -> UpdateEventDataStore
s {$sel:multiRegionEnabled:UpdateEventDataStore' :: Maybe Bool
multiRegionEnabled = Maybe Bool
a} :: UpdateEventDataStore)
updateEventDataStore_name :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Text)
updateEventDataStore_name :: Lens' UpdateEventDataStore (Maybe Text)
updateEventDataStore_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStore' {Maybe Text
name :: Maybe Text
$sel:name:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateEventDataStore
s@UpdateEventDataStore' {} Maybe Text
a -> UpdateEventDataStore
s {$sel:name:UpdateEventDataStore' :: Maybe Text
name = Maybe Text
a} :: UpdateEventDataStore)
updateEventDataStore_organizationEnabled :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Bool)
updateEventDataStore_organizationEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
updateEventDataStore_organizationEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStore' {Maybe Bool
organizationEnabled :: Maybe Bool
$sel:organizationEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
organizationEnabled} -> Maybe Bool
organizationEnabled) (\s :: UpdateEventDataStore
s@UpdateEventDataStore' {} Maybe Bool
a -> UpdateEventDataStore
s {$sel:organizationEnabled:UpdateEventDataStore' :: Maybe Bool
organizationEnabled = Maybe Bool
a} :: UpdateEventDataStore)
updateEventDataStore_retentionPeriod :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Natural)
updateEventDataStore_retentionPeriod :: Lens' UpdateEventDataStore (Maybe Natural)
updateEventDataStore_retentionPeriod = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStore' {Maybe Natural
retentionPeriod :: Maybe Natural
$sel:retentionPeriod:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Natural
retentionPeriod} -> Maybe Natural
retentionPeriod) (\s :: UpdateEventDataStore
s@UpdateEventDataStore' {} Maybe Natural
a -> UpdateEventDataStore
s {$sel:retentionPeriod:UpdateEventDataStore' :: Maybe Natural
retentionPeriod = Maybe Natural
a} :: UpdateEventDataStore)
updateEventDataStore_terminationProtectionEnabled :: Lens.Lens' UpdateEventDataStore (Prelude.Maybe Prelude.Bool)
updateEventDataStore_terminationProtectionEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
updateEventDataStore_terminationProtectionEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStore' {Maybe Bool
terminationProtectionEnabled :: Maybe Bool
$sel:terminationProtectionEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
terminationProtectionEnabled} -> Maybe Bool
terminationProtectionEnabled) (\s :: UpdateEventDataStore
s@UpdateEventDataStore' {} Maybe Bool
a -> UpdateEventDataStore
s {$sel:terminationProtectionEnabled:UpdateEventDataStore' :: Maybe Bool
terminationProtectionEnabled = Maybe Bool
a} :: UpdateEventDataStore)
updateEventDataStore_eventDataStore :: Lens.Lens' UpdateEventDataStore Prelude.Text
updateEventDataStore_eventDataStore :: Lens' UpdateEventDataStore Text
updateEventDataStore_eventDataStore = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStore' {Text
eventDataStore :: Text
$sel:eventDataStore:UpdateEventDataStore' :: UpdateEventDataStore -> Text
eventDataStore} -> Text
eventDataStore) (\s :: UpdateEventDataStore
s@UpdateEventDataStore' {} Text
a -> UpdateEventDataStore
s {$sel:eventDataStore:UpdateEventDataStore' :: Text
eventDataStore = Text
a} :: UpdateEventDataStore)
instance Core.AWSRequest UpdateEventDataStore where
type
AWSResponse UpdateEventDataStore =
UpdateEventDataStoreResponse
request :: (Service -> Service)
-> UpdateEventDataStore -> Request UpdateEventDataStore
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateEventDataStore
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateEventDataStore)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [AdvancedEventSelector]
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Bool
-> Maybe Natural
-> Maybe EventDataStoreStatus
-> Maybe Bool
-> Maybe POSIX
-> Int
-> UpdateEventDataStoreResponse
UpdateEventDataStoreResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"AdvancedEventSelectors"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"CreatedTimestamp")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"EventDataStoreArn")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"KmsKeyId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"MultiRegionEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Name")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"OrganizationEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"RetentionPeriod")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"Status")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"TerminationProtectionEnabled")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"UpdatedTimestamp")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateEventDataStore where
hashWithSalt :: Int -> UpdateEventDataStore -> Int
hashWithSalt Int
_salt UpdateEventDataStore' {Maybe Bool
Maybe Natural
Maybe [AdvancedEventSelector]
Maybe Text
Text
eventDataStore :: Text
terminationProtectionEnabled :: Maybe Bool
retentionPeriod :: Maybe Natural
organizationEnabled :: Maybe Bool
name :: Maybe Text
multiRegionEnabled :: Maybe Bool
kmsKeyId :: Maybe Text
advancedEventSelectors :: Maybe [AdvancedEventSelector]
$sel:eventDataStore:UpdateEventDataStore' :: UpdateEventDataStore -> Text
$sel:terminationProtectionEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:retentionPeriod:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Natural
$sel:organizationEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:name:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Text
$sel:multiRegionEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:kmsKeyId:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Text
$sel:advancedEventSelectors:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe [AdvancedEventSelector]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [AdvancedEventSelector]
advancedEventSelectors
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
kmsKeyId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
multiRegionEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
organizationEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
retentionPeriod
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Bool
terminationProtectionEnabled
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
eventDataStore
instance Prelude.NFData UpdateEventDataStore where
rnf :: UpdateEventDataStore -> ()
rnf UpdateEventDataStore' {Maybe Bool
Maybe Natural
Maybe [AdvancedEventSelector]
Maybe Text
Text
eventDataStore :: Text
terminationProtectionEnabled :: Maybe Bool
retentionPeriod :: Maybe Natural
organizationEnabled :: Maybe Bool
name :: Maybe Text
multiRegionEnabled :: Maybe Bool
kmsKeyId :: Maybe Text
advancedEventSelectors :: Maybe [AdvancedEventSelector]
$sel:eventDataStore:UpdateEventDataStore' :: UpdateEventDataStore -> Text
$sel:terminationProtectionEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:retentionPeriod:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Natural
$sel:organizationEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:name:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Text
$sel:multiRegionEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:kmsKeyId:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Text
$sel:advancedEventSelectors:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe [AdvancedEventSelector]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AdvancedEventSelector]
advancedEventSelectors
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKeyId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
multiRegionEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
organizationEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
retentionPeriod
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
terminationProtectionEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
eventDataStore
instance Data.ToHeaders UpdateEventDataStore where
toHeaders :: UpdateEventDataStore -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"com.amazonaws.cloudtrail.v20131101.CloudTrail_20131101.UpdateEventDataStore" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateEventDataStore where
toJSON :: UpdateEventDataStore -> Value
toJSON UpdateEventDataStore' {Maybe Bool
Maybe Natural
Maybe [AdvancedEventSelector]
Maybe Text
Text
eventDataStore :: Text
terminationProtectionEnabled :: Maybe Bool
retentionPeriod :: Maybe Natural
organizationEnabled :: Maybe Bool
name :: Maybe Text
multiRegionEnabled :: Maybe Bool
kmsKeyId :: Maybe Text
advancedEventSelectors :: Maybe [AdvancedEventSelector]
$sel:eventDataStore:UpdateEventDataStore' :: UpdateEventDataStore -> Text
$sel:terminationProtectionEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:retentionPeriod:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Natural
$sel:organizationEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:name:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Text
$sel:multiRegionEnabled:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Bool
$sel:kmsKeyId:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe Text
$sel:advancedEventSelectors:UpdateEventDataStore' :: UpdateEventDataStore -> Maybe [AdvancedEventSelector]
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AdvancedEventSelectors" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AdvancedEventSelector]
advancedEventSelectors,
(Key
"KmsKeyId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
kmsKeyId,
(Key
"MultiRegionEnabled" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
multiRegionEnabled,
(Key
"Name" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
name,
(Key
"OrganizationEnabled" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
organizationEnabled,
(Key
"RetentionPeriod" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
retentionPeriod,
(Key
"TerminationProtectionEnabled" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
terminationProtectionEnabled,
forall a. a -> Maybe a
Prelude.Just
(Key
"EventDataStore" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
eventDataStore)
]
)
instance Data.ToPath UpdateEventDataStore where
toPath :: UpdateEventDataStore -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery UpdateEventDataStore where
toQuery :: UpdateEventDataStore -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateEventDataStoreResponse = UpdateEventDataStoreResponse'
{
UpdateEventDataStoreResponse -> Maybe [AdvancedEventSelector]
advancedEventSelectors :: Prelude.Maybe [AdvancedEventSelector],
UpdateEventDataStoreResponse -> Maybe POSIX
createdTimestamp :: Prelude.Maybe Data.POSIX,
UpdateEventDataStoreResponse -> Maybe Text
eventDataStoreArn :: Prelude.Maybe Prelude.Text,
UpdateEventDataStoreResponse -> Maybe Text
kmsKeyId :: Prelude.Maybe Prelude.Text,
UpdateEventDataStoreResponse -> Maybe Bool
multiRegionEnabled :: Prelude.Maybe Prelude.Bool,
UpdateEventDataStoreResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
UpdateEventDataStoreResponse -> Maybe Bool
organizationEnabled :: Prelude.Maybe Prelude.Bool,
UpdateEventDataStoreResponse -> Maybe Natural
retentionPeriod :: Prelude.Maybe Prelude.Natural,
UpdateEventDataStoreResponse -> Maybe EventDataStoreStatus
status :: Prelude.Maybe EventDataStoreStatus,
UpdateEventDataStoreResponse -> Maybe Bool
terminationProtectionEnabled :: Prelude.Maybe Prelude.Bool,
UpdateEventDataStoreResponse -> Maybe POSIX
updatedTimestamp :: Prelude.Maybe Data.POSIX,
UpdateEventDataStoreResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateEventDataStoreResponse
-> UpdateEventDataStoreResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateEventDataStoreResponse
-> UpdateEventDataStoreResponse -> Bool
$c/= :: UpdateEventDataStoreResponse
-> UpdateEventDataStoreResponse -> Bool
== :: UpdateEventDataStoreResponse
-> UpdateEventDataStoreResponse -> Bool
$c== :: UpdateEventDataStoreResponse
-> UpdateEventDataStoreResponse -> Bool
Prelude.Eq, ReadPrec [UpdateEventDataStoreResponse]
ReadPrec UpdateEventDataStoreResponse
Int -> ReadS UpdateEventDataStoreResponse
ReadS [UpdateEventDataStoreResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateEventDataStoreResponse]
$creadListPrec :: ReadPrec [UpdateEventDataStoreResponse]
readPrec :: ReadPrec UpdateEventDataStoreResponse
$creadPrec :: ReadPrec UpdateEventDataStoreResponse
readList :: ReadS [UpdateEventDataStoreResponse]
$creadList :: ReadS [UpdateEventDataStoreResponse]
readsPrec :: Int -> ReadS UpdateEventDataStoreResponse
$creadsPrec :: Int -> ReadS UpdateEventDataStoreResponse
Prelude.Read, Int -> UpdateEventDataStoreResponse -> ShowS
[UpdateEventDataStoreResponse] -> ShowS
UpdateEventDataStoreResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateEventDataStoreResponse] -> ShowS
$cshowList :: [UpdateEventDataStoreResponse] -> ShowS
show :: UpdateEventDataStoreResponse -> String
$cshow :: UpdateEventDataStoreResponse -> String
showsPrec :: Int -> UpdateEventDataStoreResponse -> ShowS
$cshowsPrec :: Int -> UpdateEventDataStoreResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateEventDataStoreResponse x -> UpdateEventDataStoreResponse
forall x.
UpdateEventDataStoreResponse -> Rep UpdateEventDataStoreResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateEventDataStoreResponse x -> UpdateEventDataStoreResponse
$cfrom :: forall x.
UpdateEventDataStoreResponse -> Rep UpdateEventDataStoreResponse x
Prelude.Generic)
newUpdateEventDataStoreResponse ::
Prelude.Int ->
UpdateEventDataStoreResponse
newUpdateEventDataStoreResponse :: Int -> UpdateEventDataStoreResponse
newUpdateEventDataStoreResponse Int
pHttpStatus_ =
UpdateEventDataStoreResponse'
{ $sel:advancedEventSelectors:UpdateEventDataStoreResponse' :: Maybe [AdvancedEventSelector]
advancedEventSelectors =
forall a. Maybe a
Prelude.Nothing,
$sel:createdTimestamp:UpdateEventDataStoreResponse' :: Maybe POSIX
createdTimestamp = forall a. Maybe a
Prelude.Nothing,
$sel:eventDataStoreArn:UpdateEventDataStoreResponse' :: Maybe Text
eventDataStoreArn = forall a. Maybe a
Prelude.Nothing,
$sel:kmsKeyId:UpdateEventDataStoreResponse' :: Maybe Text
kmsKeyId = forall a. Maybe a
Prelude.Nothing,
$sel:multiRegionEnabled:UpdateEventDataStoreResponse' :: Maybe Bool
multiRegionEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateEventDataStoreResponse' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
$sel:organizationEnabled:UpdateEventDataStoreResponse' :: Maybe Bool
organizationEnabled = forall a. Maybe a
Prelude.Nothing,
$sel:retentionPeriod:UpdateEventDataStoreResponse' :: Maybe Natural
retentionPeriod = forall a. Maybe a
Prelude.Nothing,
$sel:status:UpdateEventDataStoreResponse' :: Maybe EventDataStoreStatus
status = forall a. Maybe a
Prelude.Nothing,
$sel:terminationProtectionEnabled:UpdateEventDataStoreResponse' :: Maybe Bool
terminationProtectionEnabled =
forall a. Maybe a
Prelude.Nothing,
$sel:updatedTimestamp:UpdateEventDataStoreResponse' :: Maybe POSIX
updatedTimestamp = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateEventDataStoreResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateEventDataStoreResponse_advancedEventSelectors :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe [AdvancedEventSelector])
updateEventDataStoreResponse_advancedEventSelectors :: Lens' UpdateEventDataStoreResponse (Maybe [AdvancedEventSelector])
updateEventDataStoreResponse_advancedEventSelectors = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe [AdvancedEventSelector]
advancedEventSelectors :: Maybe [AdvancedEventSelector]
$sel:advancedEventSelectors:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe [AdvancedEventSelector]
advancedEventSelectors} -> Maybe [AdvancedEventSelector]
advancedEventSelectors) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe [AdvancedEventSelector]
a -> UpdateEventDataStoreResponse
s {$sel:advancedEventSelectors:UpdateEventDataStoreResponse' :: Maybe [AdvancedEventSelector]
advancedEventSelectors = Maybe [AdvancedEventSelector]
a} :: UpdateEventDataStoreResponse) 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
updateEventDataStoreResponse_createdTimestamp :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)
updateEventDataStoreResponse_createdTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime)
updateEventDataStoreResponse_createdTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe POSIX
createdTimestamp :: Maybe POSIX
$sel:createdTimestamp:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe POSIX
createdTimestamp} -> Maybe POSIX
createdTimestamp) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe POSIX
a -> UpdateEventDataStoreResponse
s {$sel:createdTimestamp:UpdateEventDataStoreResponse' :: Maybe POSIX
createdTimestamp = Maybe POSIX
a} :: UpdateEventDataStoreResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateEventDataStoreResponse_eventDataStoreArn :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Text)
updateEventDataStoreResponse_eventDataStoreArn :: Lens' UpdateEventDataStoreResponse (Maybe Text)
updateEventDataStoreResponse_eventDataStoreArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe Text
eventDataStoreArn :: Maybe Text
$sel:eventDataStoreArn:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Text
eventDataStoreArn} -> Maybe Text
eventDataStoreArn) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe Text
a -> UpdateEventDataStoreResponse
s {$sel:eventDataStoreArn:UpdateEventDataStoreResponse' :: Maybe Text
eventDataStoreArn = Maybe Text
a} :: UpdateEventDataStoreResponse)
updateEventDataStoreResponse_kmsKeyId :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Text)
updateEventDataStoreResponse_kmsKeyId :: Lens' UpdateEventDataStoreResponse (Maybe Text)
updateEventDataStoreResponse_kmsKeyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe Text
kmsKeyId :: Maybe Text
$sel:kmsKeyId:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Text
kmsKeyId} -> Maybe Text
kmsKeyId) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe Text
a -> UpdateEventDataStoreResponse
s {$sel:kmsKeyId:UpdateEventDataStoreResponse' :: Maybe Text
kmsKeyId = Maybe Text
a} :: UpdateEventDataStoreResponse)
updateEventDataStoreResponse_multiRegionEnabled :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)
updateEventDataStoreResponse_multiRegionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
updateEventDataStoreResponse_multiRegionEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe Bool
multiRegionEnabled :: Maybe Bool
$sel:multiRegionEnabled:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Bool
multiRegionEnabled} -> Maybe Bool
multiRegionEnabled) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe Bool
a -> UpdateEventDataStoreResponse
s {$sel:multiRegionEnabled:UpdateEventDataStoreResponse' :: Maybe Bool
multiRegionEnabled = Maybe Bool
a} :: UpdateEventDataStoreResponse)
updateEventDataStoreResponse_name :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Text)
updateEventDataStoreResponse_name :: Lens' UpdateEventDataStoreResponse (Maybe Text)
updateEventDataStoreResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe Text
name :: Maybe Text
$sel:name:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe Text
a -> UpdateEventDataStoreResponse
s {$sel:name:UpdateEventDataStoreResponse' :: Maybe Text
name = Maybe Text
a} :: UpdateEventDataStoreResponse)
updateEventDataStoreResponse_organizationEnabled :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)
updateEventDataStoreResponse_organizationEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
updateEventDataStoreResponse_organizationEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe Bool
organizationEnabled :: Maybe Bool
$sel:organizationEnabled:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Bool
organizationEnabled} -> Maybe Bool
organizationEnabled) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe Bool
a -> UpdateEventDataStoreResponse
s {$sel:organizationEnabled:UpdateEventDataStoreResponse' :: Maybe Bool
organizationEnabled = Maybe Bool
a} :: UpdateEventDataStoreResponse)
updateEventDataStoreResponse_retentionPeriod :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Natural)
updateEventDataStoreResponse_retentionPeriod :: Lens' UpdateEventDataStoreResponse (Maybe Natural)
updateEventDataStoreResponse_retentionPeriod = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe Natural
retentionPeriod :: Maybe Natural
$sel:retentionPeriod:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Natural
retentionPeriod} -> Maybe Natural
retentionPeriod) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe Natural
a -> UpdateEventDataStoreResponse
s {$sel:retentionPeriod:UpdateEventDataStoreResponse' :: Maybe Natural
retentionPeriod = Maybe Natural
a} :: UpdateEventDataStoreResponse)
updateEventDataStoreResponse_status :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe EventDataStoreStatus)
updateEventDataStoreResponse_status :: Lens' UpdateEventDataStoreResponse (Maybe EventDataStoreStatus)
updateEventDataStoreResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe EventDataStoreStatus
status :: Maybe EventDataStoreStatus
$sel:status:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe EventDataStoreStatus
status} -> Maybe EventDataStoreStatus
status) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe EventDataStoreStatus
a -> UpdateEventDataStoreResponse
s {$sel:status:UpdateEventDataStoreResponse' :: Maybe EventDataStoreStatus
status = Maybe EventDataStoreStatus
a} :: UpdateEventDataStoreResponse)
updateEventDataStoreResponse_terminationProtectionEnabled :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.Bool)
updateEventDataStoreResponse_terminationProtectionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
updateEventDataStoreResponse_terminationProtectionEnabled = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe Bool
terminationProtectionEnabled :: Maybe Bool
$sel:terminationProtectionEnabled:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Bool
terminationProtectionEnabled} -> Maybe Bool
terminationProtectionEnabled) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe Bool
a -> UpdateEventDataStoreResponse
s {$sel:terminationProtectionEnabled:UpdateEventDataStoreResponse' :: Maybe Bool
terminationProtectionEnabled = Maybe Bool
a} :: UpdateEventDataStoreResponse)
updateEventDataStoreResponse_updatedTimestamp :: Lens.Lens' UpdateEventDataStoreResponse (Prelude.Maybe Prelude.UTCTime)
updateEventDataStoreResponse_updatedTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime)
updateEventDataStoreResponse_updatedTimestamp = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Maybe POSIX
updatedTimestamp :: Maybe POSIX
$sel:updatedTimestamp:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe POSIX
updatedTimestamp} -> Maybe POSIX
updatedTimestamp) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Maybe POSIX
a -> UpdateEventDataStoreResponse
s {$sel:updatedTimestamp:UpdateEventDataStoreResponse' :: Maybe POSIX
updatedTimestamp = Maybe POSIX
a} :: UpdateEventDataStoreResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
updateEventDataStoreResponse_httpStatus :: Lens.Lens' UpdateEventDataStoreResponse Prelude.Int
updateEventDataStoreResponse_httpStatus :: Lens' UpdateEventDataStoreResponse Int
updateEventDataStoreResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEventDataStoreResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateEventDataStoreResponse
s@UpdateEventDataStoreResponse' {} Int
a -> UpdateEventDataStoreResponse
s {$sel:httpStatus:UpdateEventDataStoreResponse' :: Int
httpStatus = Int
a} :: UpdateEventDataStoreResponse)
instance Prelude.NFData UpdateEventDataStoreResponse where
rnf :: UpdateEventDataStoreResponse -> ()
rnf UpdateEventDataStoreResponse' {Int
Maybe Bool
Maybe Natural
Maybe [AdvancedEventSelector]
Maybe Text
Maybe POSIX
Maybe EventDataStoreStatus
httpStatus :: Int
updatedTimestamp :: Maybe POSIX
terminationProtectionEnabled :: Maybe Bool
status :: Maybe EventDataStoreStatus
retentionPeriod :: Maybe Natural
organizationEnabled :: Maybe Bool
name :: Maybe Text
multiRegionEnabled :: Maybe Bool
kmsKeyId :: Maybe Text
eventDataStoreArn :: Maybe Text
createdTimestamp :: Maybe POSIX
advancedEventSelectors :: Maybe [AdvancedEventSelector]
$sel:httpStatus:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Int
$sel:updatedTimestamp:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe POSIX
$sel:terminationProtectionEnabled:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Bool
$sel:status:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe EventDataStoreStatus
$sel:retentionPeriod:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Natural
$sel:organizationEnabled:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Bool
$sel:name:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Text
$sel:multiRegionEnabled:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Bool
$sel:kmsKeyId:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Text
$sel:eventDataStoreArn:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe Text
$sel:createdTimestamp:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe POSIX
$sel:advancedEventSelectors:UpdateEventDataStoreResponse' :: UpdateEventDataStoreResponse -> Maybe [AdvancedEventSelector]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AdvancedEventSelector]
advancedEventSelectors
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
createdTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
eventDataStoreArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
kmsKeyId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
multiRegionEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
organizationEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
retentionPeriod
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EventDataStoreStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Bool
terminationProtectionEnabled
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
updatedTimestamp
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus