PERSONAL_DATA_DELETION_TASK_FAILED

📘

Buy with Prime API is now available for early access

Sign up for early access to the Buy with Prime API using the 'Sign Up' button below. The API may change as Amazon receives feedback and iterates on it.

The PERSONAL_DATA_DELETION_TASK_FAILED event is published when a data deletion request fails. A data deletion request is a request that you make to Buy with Prime to delete the customer's data on behalf of the customer. You create data deletion requests by using the startPersonalDataDeletionTask mutation of the Privacy interface.

Required permission

To subscribe to this event, your API credentials must have at least Manage Shopper Privacy Requests permission. You choose permissions when you generate your API credentials. For details, see Authenticate to the Buy with Prime API.

Schema

{
  "version": "0", 
  "id": "example-event-id", 
  "detail-type": "PERSONAL_DATA_DELETION_TASK_FAILED", 
  "source": "aws.partner/buywithprime/partner-event-source-name",
  "account": "example-aws-account-id", 
  "time": "2023-10-27T12:34:56Z", 
  "region": "us-east-1", 
  "resources": [
    "businessProduct/business-product-id/personalDataDeletionTask/example-data-deletion-task-id",
  ], 
  "detail": {}
}

Fields

KeyData TypeDescription
versionStringAmazon EventBridge event version.
idStringAmazon EventBridge-generated UUID for an event.
detail-typeStringType schema for the detail of the event, which in this case is PERSONAL_DATA_DELETION_TASK_FAILED.
sourceStringName of the partner event source in Amazon EventBridge.
accountStringAWS account ID that hosts the partner event source.
timeStringISO 8601 timestamp that indicates when the event was published.
regionStringAWS region from which the event is published.
resourcesArray of stringsArray of identifiers for the resources that triggered the event, in key-value pair format. Each resource identifier is a string that starts with businessProduct/{businessProductId}/, followed by resource types (keys) and resource IDs (values) separated by slashes. For details about how to interpret resources, see How to process events.
detailObjectJSON object that contains details about the event. For this event, this object is empty; you must call the Buy with Prime API to find further information about the resource(s) specified in the resources array.

Handling the event

When you receive this event, parse the resources array of the event for the task ID of the data deletion request. You can then use the personalDataDeletionTask query of the Privacy interface and examine the errors array of the response for details.

Related topics