AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Disables the event data store specified by EventDataStore, which accepts an event data store ARN. After you run DeleteEventDataStore, the event data store enters a PENDING_DELETION state, and is automatically deleted after a wait period of seven days. TerminationProtectionEnabled must be set to False on the event data store and the FederationStatus must be DISABLED. You cannot delete an event data store if TerminationProtectionEnabled is True or the FederationStatus is ENABLED.

After you run DeleteEventDataStore on an event data store, you cannot run ListQueries, DescribeQuery, or GetQueryResults on queries that are using an event data store in a PENDING_DELETION state. An event data store in the PENDING_DELETION state does not incur costs.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to DeleteEventDataStoreAsync.

Namespace: Amazon.CloudTrail
Assembly: AWSSDK.CloudTrail.dll
Version: 3.x.y.z

Syntax

C#
public virtual DeleteEventDataStoreResponse DeleteEventDataStore(
         DeleteEventDataStoreRequest request
)

Parameters

request
Type: Amazon.CloudTrail.Model.DeleteEventDataStoreRequest

Container for the necessary parameters to execute the DeleteEventDataStore service method.

Return Value


The response from the DeleteEventDataStore service method, as returned by CloudTrail.

Exceptions

ExceptionCondition
ChannelExistsForEDSException This exception is thrown when the specified event data store cannot yet be deleted because it is in use by a channel.
ConflictException This exception is thrown when the specified resource is not ready for an operation. This can occur when you try to run an operation on a resource before CloudTrail has time to fully load the resource, or because another operation is modifying the resource. If this exception occurs, wait a few minutes, and then try the operation again.
EventDataStoreARNInvalidException The specified event data store ARN is not valid or does not map to an event data store in your account.
EventDataStoreFederationEnabledException You cannot delete the event data store because Lake query federation is enabled. To delete the event data store, run the DisableFederation operation to disable Lake query federation on the event data store.
EventDataStoreHasOngoingImportException This exception is thrown when you try to update or delete an event data store that currently has an import in progress.
EventDataStoreNotFoundException The specified event data store was not found.
EventDataStoreTerminationProtectedException The event data store cannot be deleted because termination protection is enabled for it.
InactiveEventDataStoreException The event data store is inactive.
InsufficientDependencyServiceAccessPermissionException This exception is thrown when the IAM identity that is used to create the organization resource lacks one or more required permissions for creating an organization resource in a required service.
InvalidParameterException The request includes a parameter that is not valid.
NoManagementAccountSLRExistsException This exception is thrown when the management account does not have a service-linked role.
NotOrganizationMasterAccountException This exception is thrown when the Amazon Web Services account making the request to create or update an organization trail or event data store is not the management account for an organization in Organizations. For more information, see Prepare For Creating a Trail For Your Organization or Create an event data store.
OperationNotPermittedException This exception is thrown when the requested operation is not permitted.
UnsupportedOperationException This exception is thrown when the requested operation is not supported.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also