items
Creates, updates, deletes, gets or lists an items resource.
Overview
| Name | items |
| Type | Resource |
| Id | aws.mediastore_data.items |
Fields
The following fields are returned by SELECT queries:
- list_items
| Name | Datatype | Description |
|---|---|---|
content_length | integer (int64) | The length of the item in bytes. |
content_type | string | The content type of the item. (pattern: <code>^[\w-/.+]{1,255}$</code>) |
e_tag | string | The ETag that represents a unique instance of the item. (pattern: <code>[0-9A-Fa-f]+</code>) |
last_modified | string (date-time) | The date and time that the item was last modified. |
name | string | The name of the item. (pattern: <code>[A-Za-z0-9_.-~]+</code>) |
type | string | The item type (folder or object). (OBJECT, FOLDER) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_items | select | region | Path, MaxResults, NextToken | Provides a list of metadata entries about folders and objects in the specified folder. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
MaxResults | integer | The maximum number of results to return per API request. For example, you submit a ListItems request with MaxResults set at 500. Although 2,000 items match your request, the service returns no more than the first 500 items. (The service also returns a NextToken value that you can use to fetch the next batch of results.) The service might return fewer results than the MaxResults value. If MaxResults is not included in the request, the service defaults to pagination with a maximum of 1,000 results per page. |
NextToken | string | The token that identifies which batch of results that you want to see. For example, you submit a ListItems request with MaxResults set at 500. The service returns the first batch of results (up to 500) and a NextToken value. To see the next batch of results, you can submit the ListItems request a second time and specify the NextToken value. Tokens expire after 15 minutes. |
Path | string | The path in the container from which to retrieve items. Format: <folder name>/<folder name>/<file name> |
SELECT examples
- list_items
Provides a list of metadata entries about folders and objects in the specified folder.
SELECT
content_length,
content_type,
e_tag,
last_modified,
name,
type
FROM aws.mediastore_data.items
WHERE region = '{{ region }}' -- required
AND Path = '{{ Path }}'
AND MaxResults = '{{ MaxResults }}'
AND NextToken = '{{ NextToken }}'
;