Folder

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.organizations.Folder;
import com.pulumi.gcp.organizations.FolderArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var department1 = new Folder("department1", FolderArgs.builder()
.displayName("Department 1")
.parent("organizations/1234567")
.build());
var team_abc = new Folder("team-abc", FolderArgs.builder()
.displayName("Team ABC")
.parent(department1.name())
.build());
}
}

Import

Folders can be imported using the folder's id, e.g. Both syntaxes are valid

$ pulumi import gcp:organizations/folder:Folder department1 1234567
$ pulumi import gcp:organizations/folder:Folder department1 folders/1234567

Properties

Link copied to clipboard
val createTime: Output<String>

Timestamp when the Folder was created. Assigned by the server. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".

Link copied to clipboard
val displayName: Output<String>

The folder’s display name. A folder’s display name must be unique amongst its siblings, e.g. no two folders with the same parent can share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens and underscores and can be no longer than 30 characters.

Link copied to clipboard
val folderId: Output<String>

The folder id from the name "folders/{folder_id}"

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lifecycleState: Output<String>

The lifecycle state of the folder such as ACTIVE or DELETE_REQUESTED.

Link copied to clipboard
val name: Output<String>

The resource name of the Folder. Its format is folders/{folder_id}.

Link copied to clipboard
val parent: Output<String>

The resource name of the parent Folder or Organization. Must be of the form folders/{folder_id} or organizations/{org_id}.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>