list_items
¶
list_items(
*,
config_overrides: Optional[MediaStoreDataClientConfig] = None,
path: Optional[ListPathNaming] = None,
max_results: Optional[ListLimit] = None,
next_token: Optional[PaginationToken] = None,
) -> ListItemsResponse
Provides a list of metadata entries about folders and objects in the specified folder.
Parameters:
-
path(Optional[ListPathNaming], default:None) –The path in the container from which to retrieve items. Format:
/ / -
max_results(Optional[ListLimit], default:None) –The maximum number of results to return per API request. For example, you submit a
ListItemsrequest withMaxResultsset at 500. Although 2,000 items match your request, the service returns no more than the first 500 items. (The service also returns aNextTokenvalue that you can use to fetch the next batch of results.) The service might return fewer results than theMaxResultsvalue.If
MaxResultsis not included in the request, the service defaults to pagination with a maximum of 1,000 results per page. -
next_token(Optional[PaginationToken], default:None) –The token that identifies which batch of results that you want to see. For example, you submit a
ListItemsrequest withMaxResultsset at 500. The service returns the first batch of results (up to 500) and aNextTokenvalue. To see the next batch of results, you can submit theListItemsrequest a second time and specify theNextTokenvalue.Tokens expire after 15 minutes.
Raises:
-
ContainerNotFoundException–The specified container was not found for the specified account.
-
InternalServerError–The service is temporarily unavailable.
-
UnknownServiceError–The service returned an error code this client does not model.