amazonka-cloudtrail-2.0: Amazon CloudTrail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudTrail.UpdateEventDataStore

Description

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

Creating a Request

data UpdateEventDataStore Source #

See: newUpdateEventDataStore smart constructor.

Constructors

UpdateEventDataStore' 

Fields

  • advancedEventSelectors :: Maybe [AdvancedEventSelector]

    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.

  • kmsKeyId :: Maybe Text

    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
  • multiRegionEnabled :: Maybe Bool

    Specifies whether an event data store collects events from all regions, or only from the region in which it was created.

  • name :: Maybe Text

    The event data store name.

  • organizationEnabled :: Maybe Bool

    Specifies whether an event data store collects events logged for an organization in Organizations.

  • retentionPeriod :: Maybe Natural

    The retention period, in days.

  • terminationProtectionEnabled :: Maybe Bool

    Indicates that termination protection is enabled and the event data store cannot be automatically deleted.

  • eventDataStore :: Text

    The ARN (or the ID suffix of the ARN) of the event data store that you want to update.

Instances

Instances details
ToJSON UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

ToHeaders UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

ToPath UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

ToQuery UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

AWSRequest UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

Associated Types

type AWSResponse UpdateEventDataStore #

Generic UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

Associated Types

type Rep UpdateEventDataStore :: Type -> Type #

Read UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

Show UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

NFData UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

Methods

rnf :: UpdateEventDataStore -> () #

Eq UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

Hashable UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

type AWSResponse UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

type Rep UpdateEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

type Rep UpdateEventDataStore = D1 ('MetaData "UpdateEventDataStore" "Amazonka.CloudTrail.UpdateEventDataStore" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "UpdateEventDataStore'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "advancedEventSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AdvancedEventSelector])) :*: S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "multiRegionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "organizationEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "retentionPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "terminationProtectionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "eventDataStore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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_organizationEnabled :: Lens' UpdateEventDataStore (Maybe Bool) Source #

Specifies whether an event data store collects events logged for an organization in Organizations.

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.

Constructors

UpdateEventDataStoreResponse' 

Fields

Instances

Instances details
Generic UpdateEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

Associated Types

type Rep UpdateEventDataStoreResponse :: Type -> Type #

Read UpdateEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

Show UpdateEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

NFData UpdateEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

Eq UpdateEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

type Rep UpdateEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.UpdateEventDataStore

type Rep UpdateEventDataStoreResponse = D1 ('MetaData "UpdateEventDataStoreResponse" "Amazonka.CloudTrail.UpdateEventDataStore" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "UpdateEventDataStoreResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "advancedEventSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AdvancedEventSelector])) :*: (S1 ('MetaSel ('Just "createdTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "eventDataStoreArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "kmsKeyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "multiRegionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "organizationEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "retentionPeriod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe EventDataStoreStatus)))) :*: (S1 ('MetaSel ('Just "terminationProtectionEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "updatedTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

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_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_organizationEnabled :: Lens' UpdateEventDataStoreResponse (Maybe Bool) Source #

Indicates whether an event data store is collecting logged events for an organization in Organizations.

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.