Invitation Deletion - Amazon Macie

Invitation Deletion

In Amazon Macie, an invitation, also referred to as a membership invitation, is a request to become a member of an organization in Macie. An organization is a set of Macie accounts that are centrally managed as a group of related accounts. For more information, see Managing multiple Amazon Macie accounts in the Amazon Macie User Guide.

You can use the Invitation Deletion resource to access membership invitations that you've received and declined, and to delete one or more of those invitations. To delete an invitation, you have to specify the account ID for the AWS account that sent the invitation. To find this ID, you can use the Invitation List resource.

URI

/invitations/delete

HTTP methods

POST

Operation ID: DeleteInvitations

Deletes Amazon Macie membership invitations that were received from specific accounts.

Responses
Status codeResponse modelDescription
200DeleteInvitationsResponse

The request succeeded. Processing might not be complete.

400ValidationException

The request failed because it contains a syntax error.

402ServiceQuotaExceededException

The request failed because fulfilling the request would exceed one or more service quotas for your account.

403AccessDeniedException

The request was denied because you don't have sufficient access to the specified resource.

404ResourceNotFoundException

The request failed because the specified resource wasn't found.

409ConflictException

The request failed because it conflicts with the current state of the specified resource.

429ThrottlingException

The request failed because you sent too many requests during a certain amount of time.

500InternalServerException

The request failed due to an unknown internal server error, exception, or failure.

Schemas

Request bodies

{ "accountIds": [ "string" ] }

Response bodies

{ "unprocessedAccounts": [ { "accountId": "string", "errorMessage": "string", "errorCode": enum } ] }
{ "message": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string" }
{ "message": "string" }

Properties

AccessDeniedException

Provides information about an error that occurred due to insufficient access to a specified resource.

PropertyTypeRequiredDescription
message

string

False

The explanation of the error that occurred.

ConflictException

Provides information about an error that occurred due to a versioning conflict for a specified resource.

PropertyTypeRequiredDescription
message

string

False

The explanation of the error that occurred.

DeleteInvitationsRequest

Specifies one or more accounts that sent Amazon Macie membership invitations to delete.

PropertyTypeRequiredDescription
accountIds

Array of type string

True

An array that lists AWS account IDs, one for each account that sent an invitation to delete.

DeleteInvitationsResponse

Provides information about unprocessed requests to delete Amazon Macie membership invitations that were received from specific accounts.

PropertyTypeRequiredDescription
unprocessedAccounts

Array of type UnprocessedAccount

False

An array of objects, one for each account whose invitation hasn't been deleted. Each object identifies the account and explains why the request hasn't been processed for that account.

ErrorCode

The source of an issue or delay. Possible values are:

  • ClientError

  • InternalError

InternalServerException

Provides information about an error that occurred due to an unknown internal server error, exception, or failure.

PropertyTypeRequiredDescription
message

string

False

The explanation of the error that occurred.

ResourceNotFoundException

Provides information about an error that occurred because a specified resource wasn't found.

PropertyTypeRequiredDescription
message

string

False

The explanation of the error that occurred.

ServiceQuotaExceededException

Provides information about an error that occurred due to one or more service quotas for an account.

PropertyTypeRequiredDescription
message

string

False

The explanation of the error that occurred.

ThrottlingException

Provides information about an error that occurred because too many requests were sent during a certain amount of time.

PropertyTypeRequiredDescription
message

string

False

The explanation of the error that occurred.

UnprocessedAccount

Provides information about an account-related request that hasn't been processed.

PropertyTypeRequiredDescription
accountId

string

False

The AWS account ID for the account that the request applies to.

errorCode

ErrorCode

False

The source of the issue or delay in processing the request.

errorMessage

string

False

The reason why the request hasn't been processed.

ValidationException

Provides information about an error that occurred due to a syntax error in a request.

PropertyTypeRequiredDescription
message

string

False

The explanation of the error that occurred.

See also

For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

DeleteInvitations