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.RestoreEventDataStore

Description

Restores a deleted event data store specified by EventDataStore, which accepts an event data store ARN. You can only restore a deleted event data store within the seven-day wait period after deletion. Restoring an event data store can take several minutes, depending on the size of the event data store.

Synopsis

Creating a Request

data RestoreEventDataStore Source #

See: newRestoreEventDataStore smart constructor.

Constructors

RestoreEventDataStore' 

Fields

  • eventDataStore :: Text

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

Instances

Instances details
ToJSON RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

ToHeaders RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

ToPath RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

ToQuery RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

AWSRequest RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

Associated Types

type AWSResponse RestoreEventDataStore #

Generic RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

Associated Types

type Rep RestoreEventDataStore :: Type -> Type #

Read RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

Show RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

NFData RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

Methods

rnf :: RestoreEventDataStore -> () #

Eq RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

Hashable RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

type AWSResponse RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

type Rep RestoreEventDataStore Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

type Rep RestoreEventDataStore = D1 ('MetaData "RestoreEventDataStore" "Amazonka.CloudTrail.RestoreEventDataStore" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "RestoreEventDataStore'" 'PrefixI 'True) (S1 ('MetaSel ('Just "eventDataStore") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newRestoreEventDataStore Source #

Create a value of RestoreEventDataStore 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:

$sel:eventDataStore:RestoreEventDataStore', restoreEventDataStore_eventDataStore - The ARN (or the ID suffix of the ARN) of the event data store that you want to restore.

Request Lenses

restoreEventDataStore_eventDataStore :: Lens' RestoreEventDataStore Text Source #

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

Destructuring the Response

data RestoreEventDataStoreResponse Source #

See: newRestoreEventDataStoreResponse smart constructor.

Constructors

RestoreEventDataStoreResponse' 

Fields

Instances

Instances details
Generic RestoreEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

Associated Types

type Rep RestoreEventDataStoreResponse :: Type -> Type #

Read RestoreEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

Show RestoreEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

NFData RestoreEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

Eq RestoreEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

type Rep RestoreEventDataStoreResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.RestoreEventDataStore

type Rep RestoreEventDataStoreResponse = D1 ('MetaData "RestoreEventDataStoreResponse" "Amazonka.CloudTrail.RestoreEventDataStore" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "RestoreEventDataStoreResponse'" '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))))))

newRestoreEventDataStoreResponse Source #

Create a value of RestoreEventDataStoreResponse 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:

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_advancedEventSelectors - The advanced event selectors that were used to select events.

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_createdTimestamp - The timestamp of an event data store's creation.

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_eventDataStoreArn - The event data store ARN.

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_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

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_multiRegionEnabled - Indicates whether the event data store is collecting events from all regions, or only from the region in which the event data store was created.

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_name - The name of the event data store.

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_organizationEnabled - Indicates whether an event data store is collecting logged events for an organization in Organizations.

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_retentionPeriod - The retention period, in days.

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_status - The status of the event data store.

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

RestoreEventDataStoreResponse, restoreEventDataStoreResponse_updatedTimestamp - The timestamp that shows when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.

$sel:httpStatus:RestoreEventDataStoreResponse', restoreEventDataStoreResponse_httpStatus - The response's http status code.

Response Lenses

restoreEventDataStoreResponse_kmsKeyId :: Lens' RestoreEventDataStoreResponse (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

restoreEventDataStoreResponse_multiRegionEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool) Source #

Indicates whether the event data store is collecting events from all regions, or only from the region in which the event data store was created.

restoreEventDataStoreResponse_organizationEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool) Source #

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

restoreEventDataStoreResponse_terminationProtectionEnabled :: Lens' RestoreEventDataStoreResponse (Maybe Bool) Source #

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

restoreEventDataStoreResponse_updatedTimestamp :: Lens' RestoreEventDataStoreResponse (Maybe UTCTime) Source #

The timestamp that shows when an event data store was updated, if applicable. UpdatedTimestamp is always either the same or newer than the time shown in CreatedTimestamp.