Skip to main content

items

Creates, updates, deletes, gets or lists an items resource.

Overview

Nameitems
TypeResource
Idaws.mediastore_data.items

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
content_lengthinteger (int64)The length of the item in bytes.
content_typestringThe content type of the item. (pattern: <code>^[\w-/.+]{1,255}$</code>)
e_tagstringThe ETag that represents a unique instance of the item. (pattern: <code>[0-9A-Fa-f]+</code>)
last_modifiedstring (date-time)The date and time that the item was last modified.
namestringThe name of the item. (pattern: <code>[A-Za-z0-9_.-~]+</code>)
typestringThe item type (folder or object). (OBJECT, FOLDER)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_itemsselectregionPath, MaxResults, NextTokenProvides 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
MaxResultsintegerThe 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.
NextTokenstringThe 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.
PathstringThe path in the container from which to retrieve items. Format: <folder name>/<folder name>/<file name>

SELECT examples

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 }}'
;