yandex.ResourcemanagerFolder
Explore with Pulumi AI
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
})
}
Coming soon!
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",
});
Coming soon!
Create ResourcemanagerFolder Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourcemanagerFolder(name: string, args?: ResourcemanagerFolderArgs, opts?: CustomResourceOptions);
@overload
def ResourcemanagerFolder(resource_name: str,
args: Optional[ResourcemanagerFolderArgs] = None,
opts: Optional[ResourceOptions] = None)
@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)
func NewResourcemanagerFolder(ctx *Context, name string, args *ResourcemanagerFolderArgs, opts ...ResourceOption) (*ResourcemanagerFolder, error)
public ResourcemanagerFolder(string name, ResourcemanagerFolderArgs? args = null, CustomResourceOptions? opts = null)
public ResourcemanagerFolder(String name, ResourcemanagerFolderArgs args)
public ResourcemanagerFolder(String name, ResourcemanagerFolderArgs args, CustomResourceOptions options)
type: yandex:ResourcemanagerFolder
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- name String
- The unique name of the resource.
- args ResourcemanagerFolderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var resourcemanagerFolderResource = new Yandex.ResourcemanagerFolder("resourcemanagerFolderResource", new()
{
CloudId = "string",
Description = "string",
Labels =
{
{ "string", "string" },
},
Name = "string",
});
example, err := yandex.NewResourcemanagerFolder(ctx, "resourcemanagerFolderResource", &yandex.ResourcemanagerFolderArgs{
CloudId: pulumi.String("string"),
Description: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var resourcemanagerFolderResource = new ResourcemanagerFolder("resourcemanagerFolderResource", ResourcemanagerFolderArgs.builder()
.cloudId("string")
.description("string")
.labels(Map.of("string", "string"))
.name("string")
.build());
resourcemanager_folder_resource = yandex.ResourcemanagerFolder("resourcemanagerFolderResource",
cloud_id="string",
description="string",
labels={
"string": "string",
},
name="string")
const resourcemanagerFolderResource = new yandex.ResourcemanagerFolder("resourcemanagerFolderResource", {
cloudId: "string",
description: "string",
labels: {
string: "string",
},
name: "string",
});
type: yandex:ResourcemanagerFolder
properties:
cloudId: string
description: string
labels:
string: string
name: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourcemanagerFolder resource accepts the following input properties:
- Cloud
Id 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.
- Cloud
Id 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.
- cloud
Id 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.
- cloud
Id 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.
- cloud
Id 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>
- A set of key/value label pairs to assign to the Folder.
- name String
- The name of the Folder.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourcemanagerFolder resource produces the following output properties:
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
Look up 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)
public static ResourcemanagerFolder get(String name, Output<String> id, ResourcemanagerFolderState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Cloud
Id string - Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
- Created
At 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.
- Cloud
Id string - Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
- Created
At 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.
- cloud
Id String - Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
- created
At 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.
- cloud
Id string - Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
- created
At 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.
- cloud
Id String - Cloud that the resource belongs to. If value is omitted, the default provider Cloud ID is used.
- created
At String - description String
- A description of the Folder.
- labels Map<String>
- A set of key/value label pairs to assign to the Folder.
- name String
- The name of the Folder.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.