US 11,995,467 B1
Validation, deletion, and recovery of resources in a service environment
Suresh Prakash Goacher, Hyderabad (IN); Arun Anilkumar, Thiruvananthapuram (IN); and Nishit Nihal Vas, Mysore (IN)
Assigned to Amazon Technologies, Inc., Seattle, WA (US)
Filed by Amazon Technologies, Inc., Seattle, WA (US)
Filed on Jul. 14, 2021, as Appl. No. 17/376,017.
Int. Cl. G06F 16/215 (2019.01); G06F 9/50 (2006.01); G06F 9/54 (2006.01)
CPC G06F 9/5005 (2013.01) [G06F 9/547 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A computer-implemented method, comprising:
receiving a first application programming interface (API) request from a client to identify resources associated with a service environment, the first API request encoding an identifier for a root entity of the service environment;
providing, as a first response, a list of resources associated with the service environment;
receiving a second API request from the client specifying at least a portion of the first list of resources to validate for deletion;
processing the second API request by:
obtaining a first resource of the at least a portion of the first list of resources;
determining, based on a first resource type of the first resource, a resource type-specific validation task;
executing the resource type-specific validation task to determine whether the first resource is unused;
recording a first result of the execution of the resource type-specific validation task indicating whether the first resource is unused; and
providing the first result to the client;
receiving a third API request from the client to delete at least the first resource;
processing the third API request by:
determining, based on a first resource type of the first resource, a resource type-specific deletion task;
executing the resource type-specific deletion task to disable or deactivate the first resource in a recoverable manner and schedule the first resource to be deleted in an unrecoverable manner after a predetermined period of time has elapsed;
recording a second result of the execution of the resource type-specific deletion task; and
providing the second result to the client.