folders
Creates, updates, deletes, gets or lists a folders resource.
Overview
| Name | folders |
| Type | Resource |
| Id | aws.codecommit.folders |
Fields
The following fields are returned by SELECT queries:
- get_folder
| Name | Datatype | Description |
|---|---|---|
commit_id | string | The full commit ID used as a reference for the returned version of the folder content. |
files | array | The list of files in the specified folder, if any. |
folder_path | string | The fully qualified path of the folder whose contents are returned. |
sub_folders | array | The list of folders that exist under the specified folder, if any. |
sub_modules | array | The list of submodules in the specified folder, if any. |
symbolic_links | array | The list of symbolic links to other files and folders in the specified folder, if any. |
tree_id | string | The full SHA-1 pointer of the tree information for the commit that contains the folder. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_folder | select | region | Returns 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_folder
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
;