ResourceGroup

class ResourceGroup : KotlinCustomResource

Provides a Resource Manager Resource Group resource. If you need to group cloud resources according to business departments, projects, and other dimensions, you can create resource groups. For information about Resource Manager Resoource Group and how to use it, see What is Resource Manager Resource Group

NOTE: Available since v1.82.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.resourcemanager.ResourceGroup;
import com.pulumi.alicloud.resourcemanager.ResourceGroupArgs;
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) {
final var config = ctx.config();
final var name = config.get("name").orElse("tfexample");
var example = new ResourceGroup("example", ResourceGroupArgs.builder()
.resourceGroupName(name)
.displayName(name)
.build());
}
}

Import

Resource Manager Resource Group can be imported using the id, e.g.

$ pulumi import alicloud:resourcemanager/resourceGroup:ResourceGroup example abc123456

Properties

Link copied to clipboard
val accountId: Output<String>

The ID of the Alibaba Cloud account to which the resource group belongs.

Link copied to clipboard
val displayName: Output<String>

The display name of the resource group. The name must be 1 to 30 characters in length and can contain letters, digits, periods (.), at signs (@), and hyphens (-).

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

Field name has been deprecated from version 1.114.0. Use resource_group_name instead.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The status of the resource group in all regions. See region_statuses below.

Link copied to clipboard

The unique identifier of the resource group.The identifier must be 3 to 12 characters in length and can contain letters, digits, periods (.), hyphens (-), and underscores (_). The identifier must start with a letter.

Link copied to clipboard
val status: Output<String>

The status of the regional resource group.

Link copied to clipboard
val urn: Output<String>