Yandex

v0.10.0 published on Thursday, Nov 18, 2021 by Pulumi

ResourcemanagerFolder

Allows creation and management of Cloud Folders for an existing Yandex Cloud. See the official documentation for additional info. Note: deletion of folders may take up to 30 minutes as it requires a lot of communication between cloud services.

Example Usage

using Pulumi;
using Yandex = Pulumi.Yandex;

class MyStack : Stack
{
    public MyStack()
    {
        var folder1 = new Yandex.ResourcemanagerFolder("folder1", new Yandex.ResourcemanagerFolderArgs
        {
            CloudId = "my_cloud_id",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := yandex.NewResourcemanagerFolder(ctx, "folder1", &yandex.ResourcemanagerFolderArgs{
			CloudId: pulumi.String("my_cloud_id"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_yandex as yandex

folder1 = yandex.ResourcemanagerFolder("folder1", cloud_id="my_cloud_id")
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";

const folder1 = new yandex.ResourcemanagerFolder("folder1", {
    cloudId: "my_cloud_id",
});

Create a ResourcemanagerFolder Resource

new ResourcemanagerFolder(name: string, args?: ResourcemanagerFolderArgs, opts?: CustomResourceOptions);
@overload
def ResourcemanagerFolder(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          cloud_id: Optional[str] = None,
                          description: Optional[str] = None,
                          labels: Optional[Mapping[str, str]] = None,
                          name: Optional[str] = None)
@overload
def ResourcemanagerFolder(resource_name: str,
                          args: Optional[ResourcemanagerFolderArgs] = None,
                          opts: Optional[ResourceOptions] = None)
func NewResourcemanagerFolder(ctx *Context, name string, args *ResourcemanagerFolderArgs, opts ...ResourceOption) (*ResourcemanagerFolder, error)
public ResourcemanagerFolder(string name, ResourcemanagerFolderArgs? args = null, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ResourcemanagerFolderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ResourcemanagerFolderArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ResourcemanagerFolderArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ResourcemanagerFolderArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ResourcemanagerFolder Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ResourcemanagerFolder resource accepts the following input properties:

CloudId string
Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
Description string
A description of the Folder.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Folder.
Name string
The name of the Folder.
CloudId string
Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
Description string
A description of the Folder.
Labels map[string]string
A set of key/value label pairs to assign to the Folder.
Name string
The name of the Folder.
cloudId string
Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
description string
A description of the Folder.
labels {[key: string]: string}
A set of key/value label pairs to assign to the Folder.
name string
The name of the Folder.
cloud_id str
Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
description str
A description of the Folder.
labels Mapping[str, str]
A set of key/value label pairs to assign to the Folder.
name str
The name of the Folder.

Outputs

All input properties are implicitly available as output properties. Additionally, the ResourcemanagerFolder resource produces the following output properties:

CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
CreatedAt string
Id string
The provider-assigned unique ID for this managed resource.
createdAt string
id string
The provider-assigned unique ID for this managed resource.
created_at str
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing ResourcemanagerFolder Resource

Get an existing ResourcemanagerFolder 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?: ResourcemanagerFolderState, opts?: CustomResourceOptions): ResourcemanagerFolder
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_id: Optional[str] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        labels: Optional[Mapping[str, str]] = None,
        name: Optional[str] = None) -> ResourcemanagerFolder
func GetResourcemanagerFolder(ctx *Context, name string, id IDInput, state *ResourcemanagerFolderState, opts ...ResourceOption) (*ResourcemanagerFolder, error)
public static ResourcemanagerFolder Get(string name, Input<string> id, ResourcemanagerFolderState? 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:

CloudId string
Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
CreatedAt string
Description string
A description of the Folder.
Labels Dictionary<string, string>
A set of key/value label pairs to assign to the Folder.
Name string
The name of the Folder.
CloudId string
Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
CreatedAt string
Description string
A description of the Folder.
Labels map[string]string
A set of key/value label pairs to assign to the Folder.
Name string
The name of the Folder.
cloudId string
Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
createdAt string
description string
A description of the Folder.
labels {[key: string]: string}
A set of key/value label pairs to assign to the Folder.
name string
The name of the Folder.
cloud_id str
Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
created_at str
description str
A description of the Folder.
labels Mapping[str, str]
A set of key/value label pairs to assign to the Folder.
name str
The name of the Folder.

Package Details

Repository
https://github.com/pulumi/pulumi-yandex
License
Apache-2.0
Notes
This Pulumi package is based on the yandex Terraform Provider.