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.

Removes the specified member accounts from the behavior graph. The removed accounts no longer contribute data to the behavior graph. This operation can only be called by the administrator account for the behavior graph.

For invited accounts, the removed accounts are deleted from the list of accounts in the behavior graph. To restore the account, the administrator account must send another invitation.

For organization accounts in the organization behavior graph, the Detective administrator account can always enable the organization account again. Organization accounts that are not enabled as member accounts are not included in the ListMembers results for the organization behavior graph.

An administrator account cannot use DeleteMembers to remove their own account from the behavior graph. To disable a behavior graph, the administrator account uses the DeleteGraph API method.

Note:

This is an asynchronous operation using the standard naming convention for .NET 4.5 or higher. For .NET 3.5 the operation is implemented as a pair of methods using the standard naming convention of BeginDeleteMembers and EndDeleteMembers.

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

Syntax

C#
public virtual Task<DeleteMembersResponse> DeleteMembersAsync(
         DeleteMembersRequest request,
         CancellationToken cancellationToken
)

Parameters

request
Type: Amazon.Detective.Model.DeleteMembersRequest

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

cancellationToken
Type: System.Threading.CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Return Value


The response from the DeleteMembers service method, as returned by Detective.

Exceptions

ExceptionCondition
AccessDeniedException The request issuer does not have permission to access this resource or perform this operation.
ConflictException The request attempted an invalid action.
InternalServerException The request was valid but failed because of a problem with the service.
ResourceNotFoundException The request refers to a nonexistent resource.
ValidationException The request parameters are invalid.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer

See Also