Skip to main content

folders

Creates, updates, deletes, gets or lists a folders resource.

Overview

Namefolders
TypeResource
Idaws.codecommit.folders

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
commit_idstringThe full commit ID used as a reference for the returned version of the folder content.
filesarrayThe list of files in the specified folder, if any.
folder_pathstringThe fully qualified path of the folder whose contents are returned.
sub_foldersarrayThe list of folders that exist under the specified folder, if any.
sub_modulesarrayThe list of submodules in the specified folder, if any.
symbolic_linksarrayThe list of symbolic links to other files and folders in the specified folder, if any.
tree_idstringThe full SHA-1 pointer of the tree information for the commit that contains the folder.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_folderselectregionReturns the contents of a specified folder in a repository.

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)

SELECT examples

Returns the contents of a specified folder in a repository.

SELECT
commit_id,
files,
folder_path,
sub_folders,
sub_modules,
symbolic_links,
tree_id
FROM aws.codecommit.folders
WHERE region = '{{ region }}' -- required
;