Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Updates an event data store. The required EventDataStore
value is an
ARN or the ID portion of the ARN. Other parameters are optional, but at
least one optional parameter must be specified, or CloudTrail throws an
error. RetentionPeriod
is in days, and valid values are integers
between 90 and 2557. By default, TerminationProtection
is enabled.
AdvancedEventSelectors
includes or excludes management and data events
in your event data store; for more information about
AdvancedEventSelectors
, see
PutEventSelectorsRequest$AdvancedEventSelectors.
Synopsis
- data UpdateEventDataStore = UpdateEventDataStore' {}
- newUpdateEventDataStore :: Text -> UpdateEventDataStore
- updateEventDataStore_advancedEventSelectors :: Lens' UpdateEventDataStore (Maybe [AdvancedEventSelector])
- updateEventDataStore_kmsKeyId :: Lens' UpdateEventDataStore (Maybe Text)
- updateEventDataStore_multiRegionEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
- updateEventDataStore_name :: Lens' UpdateEventDataStore (Maybe Text)
- updateEventDataStore_organizationEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
- updateEventDataStore_retentionPeriod :: Lens' UpdateEventDataStore (Maybe Natural)
- updateEventDataStore_terminationProtectionEnabled :: Lens' UpdateEventDataStore (Maybe Bool)
- updateEventDataStore_eventDataStore :: Lens' UpdateEventDataStore Text
- data UpdateEventDataStoreResponse = UpdateEventDataStoreResponse' {
- advancedEventSelectors :: Maybe [AdvancedEventSelector]
- createdTimestamp :: Maybe POSIX
- eventDataStoreArn :: Maybe Text
- kmsKeyId :: Maybe Text
- multiRegionEnabled :: Maybe Bool
- name :: Maybe Text
- organizationEnabled :: Maybe Bool
- retentionPeriod :: Maybe Natural
- status :: Maybe EventDataStoreStatus
- terminationProtectionEnabled :: Maybe Bool
- updatedTimestamp :: Maybe POSIX
- httpStatus :: Int
- newUpdateEventDataStoreResponse :: Int -> UpdateEventDataStoreResponse
- updateEventDataStoreResponse_advancedEventSelectors :: Lens' UpdateEventDataStoreResponse (Maybe [AdvancedEventSelector])
- updateEventDataStoreResponse_createdTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime)
- updateEventDataStoreResponse_eventDataStoreArn :: Lens' UpdateEventDataStoreResponse (Maybe Text)
- updateEventDataStoreResponse_kmsKeyId :: Lens' UpdateEventDataStoreResponse (Maybe Text)
- updateEventDataStoreResponse_multiRegionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
- updateEventDataStoreResponse_name :: Lens' UpdateEventDataStoreResponse (Maybe Text)
- updateEventDataStoreResponse_organizationEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
- updateEventDataStoreResponse_retentionPeriod :: Lens' UpdateEventDataStoreResponse (Maybe Natural)
- updateEventDataStoreResponse_status :: Lens' UpdateEventDataStoreResponse (Maybe EventDataStoreStatus)
- updateEventDataStoreResponse_terminationProtectionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool)
- updateEventDataStoreResponse_updatedTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime)
- updateEventDataStoreResponse_httpStatus :: Lens' UpdateEventDataStoreResponse Int
Creating a Request
data UpdateEventDataStore Source #
See: newUpdateEventDataStore
smart constructor.
UpdateEventDataStore' | |
|
Instances
newUpdateEventDataStore Source #
Create a value of UpdateEventDataStore
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateEventDataStore
, updateEventDataStore_advancedEventSelectors
- The advanced event selectors used to select events for the event data
store. You can configure up to five advanced event selectors for each
event data store.
UpdateEventDataStore
, updateEventDataStore_kmsKeyId
- Specifies the KMS key ID to use to encrypt the events delivered by
CloudTrail. The value can be an alias name prefixed by alias/
, a
fully specified ARN to an alias, a fully specified ARN to a key, or a
globally unique identifier.
Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users from querying the data in the event data store that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up your event data store.
CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.
Examples:
alias/MyAliasName
arn:aws:kms:us-east-2:123456789012:alias/MyAliasName
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
12345678-1234-1234-1234-123456789012
UpdateEventDataStore
, updateEventDataStore_multiRegionEnabled
- Specifies whether an event data store collects events from all regions,
or only from the region in which it was created.
UpdateEventDataStore
, updateEventDataStore_name
- The event data store name.
UpdateEventDataStore
, updateEventDataStore_organizationEnabled
- Specifies whether an event data store collects events logged for an
organization in Organizations.
UpdateEventDataStore
, updateEventDataStore_retentionPeriod
- The retention period, in days.
UpdateEventDataStore
, updateEventDataStore_terminationProtectionEnabled
- Indicates that termination protection is enabled and the event data
store cannot be automatically deleted.
$sel:eventDataStore:UpdateEventDataStore'
, updateEventDataStore_eventDataStore
- The ARN (or the ID suffix of the ARN) of the event data store that you
want to update.
Request Lenses
updateEventDataStore_advancedEventSelectors :: Lens' UpdateEventDataStore (Maybe [AdvancedEventSelector]) Source #
The advanced event selectors used to select events for the event data store. You can configure up to five advanced event selectors for each event data store.
updateEventDataStore_kmsKeyId :: Lens' UpdateEventDataStore (Maybe Text) Source #
Specifies the KMS key ID to use to encrypt the events delivered by
CloudTrail. The value can be an alias name prefixed by alias/
, a
fully specified ARN to an alias, a fully specified ARN to a key, or a
globally unique identifier.
Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users from querying the data in the event data store that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up your event data store.
CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the Key Management Service Developer Guide.
Examples:
alias/MyAliasName
arn:aws:kms:us-east-2:123456789012:alias/MyAliasName
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
12345678-1234-1234-1234-123456789012
updateEventDataStore_multiRegionEnabled :: Lens' UpdateEventDataStore (Maybe Bool) Source #
Specifies whether an event data store collects events from all regions, or only from the region in which it was created.
updateEventDataStore_name :: Lens' UpdateEventDataStore (Maybe Text) Source #
The event data store name.
updateEventDataStore_organizationEnabled :: Lens' UpdateEventDataStore (Maybe Bool) Source #
Specifies whether an event data store collects events logged for an organization in Organizations.
updateEventDataStore_retentionPeriod :: Lens' UpdateEventDataStore (Maybe Natural) Source #
The retention period, in days.
updateEventDataStore_terminationProtectionEnabled :: Lens' UpdateEventDataStore (Maybe Bool) Source #
Indicates that termination protection is enabled and the event data store cannot be automatically deleted.
updateEventDataStore_eventDataStore :: Lens' UpdateEventDataStore Text Source #
The ARN (or the ID suffix of the ARN) of the event data store that you want to update.
Destructuring the Response
data UpdateEventDataStoreResponse Source #
See: newUpdateEventDataStoreResponse
smart constructor.
UpdateEventDataStoreResponse' | |
|
Instances
newUpdateEventDataStoreResponse Source #
Create a value of UpdateEventDataStoreResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
UpdateEventDataStore
, updateEventDataStoreResponse_advancedEventSelectors
- The advanced event selectors that are applied to the event data store.
UpdateEventDataStoreResponse
, updateEventDataStoreResponse_createdTimestamp
- The timestamp that shows when an event data store was first created.
UpdateEventDataStoreResponse
, updateEventDataStoreResponse_eventDataStoreArn
- The ARN of the event data store.
UpdateEventDataStore
, updateEventDataStoreResponse_kmsKeyId
- Specifies the KMS key ID that encrypts the events delivered by
CloudTrail. The value is a fully specified ARN to a KMS key in the
following format.
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
UpdateEventDataStore
, updateEventDataStoreResponse_multiRegionEnabled
- Indicates whether the event data store includes events from all regions,
or only from the region in which it was created.
UpdateEventDataStore
, updateEventDataStoreResponse_name
- The name of the event data store.
UpdateEventDataStore
, updateEventDataStoreResponse_organizationEnabled
- Indicates whether an event data store is collecting logged events for an
organization in Organizations.
UpdateEventDataStore
, updateEventDataStoreResponse_retentionPeriod
- The retention period, in days.
UpdateEventDataStoreResponse
, updateEventDataStoreResponse_status
- The status of an event data store. Values can be ENABLED
and
PENDING_DELETION
.
UpdateEventDataStore
, updateEventDataStoreResponse_terminationProtectionEnabled
- Indicates whether termination protection is enabled for the event data
store.
UpdateEventDataStoreResponse
, updateEventDataStoreResponse_updatedTimestamp
- The timestamp that shows when the event data store was last updated.
UpdatedTimestamp
is always either the same or newer than the time
shown in CreatedTimestamp
.
$sel:httpStatus:UpdateEventDataStoreResponse'
, updateEventDataStoreResponse_httpStatus
- The response's http status code.
Response Lenses
updateEventDataStoreResponse_advancedEventSelectors :: Lens' UpdateEventDataStoreResponse (Maybe [AdvancedEventSelector]) Source #
The advanced event selectors that are applied to the event data store.
updateEventDataStoreResponse_createdTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime) Source #
The timestamp that shows when an event data store was first created.
updateEventDataStoreResponse_eventDataStoreArn :: Lens' UpdateEventDataStoreResponse (Maybe Text) Source #
The ARN of the event data store.
updateEventDataStoreResponse_kmsKeyId :: Lens' UpdateEventDataStoreResponse (Maybe Text) Source #
Specifies the KMS key ID that encrypts the events delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the following format.
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
updateEventDataStoreResponse_multiRegionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool) Source #
Indicates whether the event data store includes events from all regions, or only from the region in which it was created.
updateEventDataStoreResponse_name :: Lens' UpdateEventDataStoreResponse (Maybe Text) Source #
The name of the event data store.
updateEventDataStoreResponse_organizationEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool) Source #
Indicates whether an event data store is collecting logged events for an organization in Organizations.
updateEventDataStoreResponse_retentionPeriod :: Lens' UpdateEventDataStoreResponse (Maybe Natural) Source #
The retention period, in days.
updateEventDataStoreResponse_status :: Lens' UpdateEventDataStoreResponse (Maybe EventDataStoreStatus) Source #
The status of an event data store. Values can be ENABLED
and
PENDING_DELETION
.
updateEventDataStoreResponse_terminationProtectionEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool) Source #
Indicates whether termination protection is enabled for the event data store.
updateEventDataStoreResponse_updatedTimestamp :: Lens' UpdateEventDataStoreResponse (Maybe UTCTime) Source #
The timestamp that shows when the event data store was last updated.
UpdatedTimestamp
is always either the same or newer than the time
shown in CreatedTimestamp
.
updateEventDataStoreResponse_httpStatus :: Lens' UpdateEventDataStoreResponse Int Source #
The response's http status code.