googleFolders
Retrieve information about a set of folders based on a parent ID. See the REST API for more details.
Example Usage - searching for folders at the root of an org
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as google from "./.gen/providers/google";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: google.
For a more precise conversion please use the --provider flag in convert.*/
const dataGoogleFoldersMyOrgFolders =
new google.dataGoogleFolders.DataGoogleFolders(this, "my-org-folders", {
parent_id: "organizations/${var.organization_id}",
});
new google.dataGoogleFolder.DataGoogleFolder(this, "first-folder", {
folder: `\${${dataGoogleFoldersMyOrgFolders.folders.fqn}[0].name}`,
});
Argument Reference
The following arguments are supported:
parentId
- (Required) A string parent as defined in the REST API.
Attributes Reference
The following attributes are exported:
folders
- A list of projects matching the provided filter. Structure is defined below.
The folders
block supports:
name
- The id of the folderparent
- The parent id of the folderdisplayName
- The display name of the folderstate
- The lifecycle state of the foldercreateTime
- The timestamp of when the folder was createdupdateTime
- The timestamp of when the folder was last modifieddeleteTime
- The timestamp of when the folder was requested to be deleted (if applicable)etag
- Entity tag identifier of the folder