Folder
Allows management of a Google Cloud Platform folder. For more information see the official documentation and API.
A folder can contain projects, other folders, or a combination of both. You can use folders to group projects under an organization in a hierarchy. For example, your organization might contain multiple departments, each with its own set of Cloud Platform resources. Folders allows you to group these resources on a per-department basis. Folders are used to group resources that share common IAM policies.
Folders created live inside an Organization. See the Organization documentation for more details.
The service account used to run the provider when creating a gcp.organizations.Folder
resource must have roles/resourcemanager.folderCreator. See the
Access Control for Folders Using IAM
doc for more information.
Create a Folder Resource
new Folder(name: string, args: FolderArgs, opts?: CustomResourceOptions);def Folder(resource_name, opts=None, display_name=None, parent=None, __props__=None);func NewFolder(ctx *Context, name string, args FolderArgs, opts ...ResourceOption) (*Folder, error)public Folder(string name, FolderArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args FolderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FolderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FolderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Folder Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Folder resource accepts the following input properties:
- Display
Name 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.
- Parent string
The resource name of the parent Folder or Organization. Must be of the form
folders/{folder_id}ororganizations/{org_id}.
- Display
Name 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.
- Parent string
The resource name of the parent Folder or Organization. Must be of the form
folders/{folder_id}ororganizations/{org_id}.
- display
Name 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.
- parent string
The resource name of the parent Folder or Organization. Must be of the form
folders/{folder_id}ororganizations/{org_id}.
- display_
name str 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.
- parent str
The resource name of the parent Folder or Organization. Must be of the form
folders/{folder_id}ororganizations/{org_id}.
Outputs
All input properties are implicitly available as output properties. Additionally, the Folder resource produces the following output properties:
- Create
Time 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”.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string The lifecycle state of the folder such as
ACTIVEorDELETE_REQUESTED.- Name string
The resource name of the Folder. Its format is folders/{folder_id}.
- Create
Time 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”.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
State string The lifecycle state of the folder such as
ACTIVEorDELETE_REQUESTED.- Name string
The resource name of the Folder. Its format is folders/{folder_id}.
- create
Time 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”.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
State string The lifecycle state of the folder such as
ACTIVEorDELETE_REQUESTED.- name string
The resource name of the Folder. Its format is folders/{folder_id}.
- create_
time str 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”.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
state str The lifecycle state of the folder such as
ACTIVEorDELETE_REQUESTED.- name str
The resource name of the Folder. Its format is folders/{folder_id}.
Look up an Existing Folder Resource
Get an existing Folder resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: FolderState, opts?: CustomResourceOptions): Folderstatic get(resource_name, id, opts=None, create_time=None, display_name=None, lifecycle_state=None, name=None, parent=None, __props__=None);func GetFolder(ctx *Context, name string, id IDInput, state *FolderState, opts ...ResourceOption) (*Folder, error)public static Folder Get(string name, Input<string> id, FolderState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Create
Time 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”.
- Display
Name 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.
- Lifecycle
State string The lifecycle state of the folder such as
ACTIVEorDELETE_REQUESTED.- Name string
The resource name of the Folder. Its format is folders/{folder_id}.
- Parent string
The resource name of the parent Folder or Organization. Must be of the form
folders/{folder_id}ororganizations/{org_id}.
- Create
Time 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”.
- Display
Name 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.
- Lifecycle
State string The lifecycle state of the folder such as
ACTIVEorDELETE_REQUESTED.- Name string
The resource name of the Folder. Its format is folders/{folder_id}.
- Parent string
The resource name of the parent Folder or Organization. Must be of the form
folders/{folder_id}ororganizations/{org_id}.
- create
Time 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”.
- display
Name 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.
- lifecycle
State string The lifecycle state of the folder such as
ACTIVEorDELETE_REQUESTED.- name string
The resource name of the Folder. Its format is folders/{folder_id}.
- parent string
The resource name of the parent Folder or Organization. Must be of the form
folders/{folder_id}ororganizations/{org_id}.
- create_
time str 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”.
- display_
name str 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.
- lifecycle_
state str The lifecycle state of the folder such as
ACTIVEorDELETE_REQUESTED.- name str
The resource name of the Folder. Its format is folders/{folder_id}.
- parent str
The resource name of the parent Folder or Organization. Must be of the form
folders/{folder_id}ororganizations/{org_id}.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.