# US 2022/0284027 A1 · On-demand execution of object transformation code in output path of object storage service

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284027 A1
- Document ID: US20220284027A1
- Status: Published application
- Kind: A1
- Application number: 17/652,365
- Filed: 2022-02-24
- Published: 2022-09-08
- Earliest claimed: 2019-09-27
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Timothy Lawrence Harris; Kevin C. Miller; Ramyanshu Datta
- Web page: https://patentgrep.com/patent/US20220284027A1

## CPC

- G06F 16/188: Virtual file systems
- G06F 16/24575: {using context}
- G06F 16/2329: {using versioning}
- G06F 16/24524: {Access plan code generation and invalidation; Reuse of access plans}
- G06F 16/24552: {Database cache management}
- G06F 16/838: Presentation of query results
- G06F 16/9035: Filtering based on additional data, e.g. user or group profiles
- G06F 16/9577: {Optimising the visualization of content, e.g. distillation of HTML documents}
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/6218: {to a system of files or objects, e.g. local or distributed file system or database}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods are described for modifying input and output (I/O) to an object storage service by implementing one or more owner-specified functions to I/O requests. A function can implement a data manipulation, such as filtering out sensitive data before reading or writing the data. The functions can be applied prior to implementing a request method (e.g., GET or PUT) specified within the I/O request, such that the data to which the method is applied may not match the object specified within the request. For example, a user may request to obtain (e.g., GET) a data set. The data set may be passed to a function that filters sensitive data to the data set, and the GET request method may then be applied to the output of the function. In this manner, owners of objects on an object storage service are provided with greater control of objects stored or retrieved from the service.

## Claims

### Claim 1

(canceled)

### Claim 2

A system comprising:
an object storage service comprising one or more computing devices, wherein the object storage service stores a plurality of data objects; and
a code execution service comprising one or more computing devices for on-demand execution of functions in an input/output (I/O) path of the object storage service;
wherein the object storage service is configured to at least:
receive a request for a requested data object of the plurality of data objects;
determine that a function associated with the requested data object is to be executed prior to responding to the request; and
send the request to the code execution service; and
wherein the code execution service is configured to at least:
obtain the requested data object;
determine that a first portion of the requested data object is to be excluded from a response, wherein a transformed second portion of the requested data object is to be included in the response;
apply a transformation to a second portion of the requested data object to generate the transformed second portion; and
generate the response comprising the transformed second portion, wherein the response does not include the first portion.

### Claim 3 (depends on 2)

The system of claim 2, wherein the requested data object comprises a collection of data records, wherein each data record comprises one or more data fields, and wherein the first portion to be excluded from the response comprises at least one of: a subset of the collection of data records, or a subset of the data fields.

### Claim 4 (depends on 2)

The system of claim 2, wherein the transformation comprises at least one of: addition of a watermark, alteration of a resolution, alteration of a bitrate, or application of encryption.

### Claim 5 (depends on 2)

The system of claim 2, wherein the request is associated with context data representing one of: a source of the request, a location associated with the request, or an access right associated with the request, and wherein the code execution service executes the function based on the context data.

### Claim 6

A computer-implemented method comprising:
under control of a computing system comprising one or more computer processors configured to execute specific instructions,
receiving a request for a data object stored in a data store;
determining, based at least partly on the request, to execute a first function and a second function using the data object prior to providing a response to the request;
executing the first function using a code execution system prior to providing the response, wherein the code execution system provides on-demand execution of functions in an input/output (I/O) path of the data store, and wherein executing the first function comprises:
determining to exclude a first portion of the data object from a first function output; and
generating first function output comprising a second portion of the data object, wherein the first function output does not include the first portion;
executing the second function using the code execution system prior to providing the response, wherein executing the second function comprises generating second function output; and
providing the response to a computing device based at least partly on the first function output and the second function output.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising obtaining context data associated with the request, wherein determining to exclude the first portion is based at least partly on the context data satisfying one or more criteria.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein executing the first function further comprises determining that the context data satisfies one or more criteria, wherein the context data represents one of: a source of the request, a location associated with the request, or an access right associated with the request, and wherein the one or more criteria relates to at least one of: a permitted source of the request, a prohibited source of the request, a permitted location of the request, a prohibited location of the request, a permitted access right associated with the request, or a prohibited access right associated with the request.

### Claim 9 (depends on 6)

The computer-implemented method of claim 6, wherein executing the first function further comprises obtaining the data object, wherein the data object comprises a collection of data records, wherein each data record comprises one or more data fields, and wherein the first portion comprises at least one of: a subset of the collection of data records, or a subset of the data fields.

### Claim 10 (depends on 6)

The computer-implemented method of claim 6, wherein executing the first function further comprises applying a transformation to the second portion of the data object, wherein the transformation comprises at least one of: addition of a watermark, alteration of a resolution, alteration of a bitrate, or application of encryption.

### Claim 11 (depends on 6)

The computer-implemented method of claim 6, further comprising determining to exclude a second data object from the first function output, wherein the request comprises a request for both the first data object and the second data object.

### Claim 12 (depends on 6)

The computer-implemented method of claim 6, further comprising:
receiving a second request for the data object, wherein the request is associated with first context data and wherein the second request is associated with second context data different than the first context data; and
executing the first function using the code execution system to generate a third function output based at least partly on the second context data, wherein the third function output is different than the first function output.

### Claim 13 (depends on 6)

The computer-implemented method of claim 6, further comprising:
storing the first function output in a cache;
receiving a second request for the data object; and
providing a second response to the second request based at least partly on the first function output stored in the cache.

### Claim 14

A system comprising:
a data store storing plurality of data objects grouped into a plurality of different data object groups; and
a code execution system comprising one or more computing devices in communication with the data store and configured to at least:
receive a request for information regarding a data object group of the plurality of data object groups;
determine, based at least partly on the request, to execute a function prior to providing a response to the request;
configure a code execution service to execute the function, wherein the code execution service is thereby configured to:
obtain the information regarding the data object group;
determine to exclude at least a first portion of the information regarding the data object group from a function output;
generate the function output comprising a second portion of the information regarding the data object group, wherein the function output does not include the first portion; and
provide the response to a computing device based at least partly on the function output.

### Claim 15 (depends on 14)

The system of claim 14, wherein the data object group comprises a group of data objects regarding users.

### Claim 16 (depends on 14)

The system of claim 14, wherein the request comprises a hypertext transfer protocol request corresponding to a LIST request.

### Claim 17 (depends on 14)

The system of claim 14, wherein the code execution system is further configured to obtain context data associated with the request, wherein determining to exclude the first portion from the response is based at least partly on the context data satisfying one or more criteria.

### Claim 18 (depends on 17)

The system of claim 17, wherein the code execution system is further configured to determine that the context data satisfies one or more criteria, wherein the context data represents one of: a source of the request, a location associated with the request, or an access right associated with the request, and wherein the one or more criteria relate to at least one of: a permitted source of the request, a prohibited source of the request, a permitted location of the request, a prohibited location of the request, a permitted access right associated with the request, or a prohibited access right associated with the request.

### Claim 19 (depends on 14)

The system of claim 14, wherein the code execution system is further configured to determine that a first subset of objects satisfy a first criterion, and a second subset of objects satisfy a second criterion different from the first criterion, wherein the first portion of the information comprises information regarding the first subset of data objects, and wherein the second portion of the information comprises information regarding the second subset of data objects.

### Claim 20 (depends on 14)

The system of claim 14, wherein the information regarding the data object group comprises one or more of: identifiers of data objects in the data object group; summaries of data objects in the data object group; directory information for data objects in the data object group; or metadata of data objects in the data object group.

### Claim 21 (depends on 14)

The system of claim 14, wherein the code execution system is further configured to:
store the function output in a cache;
receive a second request for the information regarding the data object group; and
provide a second response to the second request based at least partly on the function output stored in the cache.
