Show / Hide Table of Contents

Class Folder

Provides a Resource Manager Folder resource. A folder is an organizational unit in a resource directory. You can use folders to build an organizational structure for resources. For information about Resource Manager Foler and how to use it, see What is Resource Manager Folder.

NOTE: Available in v1.82.0+.

NOTE: A maximum of five levels of folders can be created under the root folder.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
public MyStack()
{
    var example = new AliCloud.ResourceManager.Folder("example", new AliCloud.ResourceManager.FolderArgs
    {
        FolderName = "test",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
Folder
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.ResourceManager
Assembly: Pulumi.AliCloud.dll
Syntax
public class Folder : CustomResource

Constructors

View Source

Folder(String, FolderArgs, CustomResourceOptions)

Create a Folder resource with the given unique name, arguments, and options.

Declaration
public Folder(string name, FolderArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

FolderArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

FolderName

The name of the folder. The name must be 1 to 24 characters in length and can contain letters, digits, underscores (_), periods (.), and hyphens (-).

Declaration
public Output<string> FolderName { get; }
Property Value
Type Description
Output<System.String>
View Source

ParentFolderId

The ID of the parent folder. If not set, the system default value will be used.

Declaration
public Output<string> ParentFolderId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, FolderState, CustomResourceOptions)

Get an existing Folder resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Folder Get(string name, Input<string> id, FolderState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

FolderState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Folder
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.