ResourceGroup
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 in v1.82.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = new AliCloud.ResourceManager.ResourceGroup("example", new AliCloud.ResourceManager.ResourceGroupArgs
{
DisplayName = "testrd",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.resourcemanager.ResourceGroup("example", display_name="testrd")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.resourcemanager.ResourceGroup("example", {
displayName: "testrd",
});Create a ResourceGroup Resource
new ResourceGroup(name: string, args: ResourceGroupArgs, opts?: CustomResourceOptions);def ResourceGroup(resource_name, opts=None, display_name=None, name=None, __props__=None);func NewResourceGroup(ctx *Context, name string, args ResourceGroupArgs, opts ...ResourceOption) (*ResourceGroup, error)public ResourceGroup(string name, ResourceGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ResourceGroupArgs
- 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 ResourceGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ResourceGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ResourceGroup resource accepts the following input properties:
- Display
Name 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 (-).
- Name string
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.
- Display
Name 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 (-).
- Name string
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.
- display
Name 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 (-).
- name string
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.
- display_
name str 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 (-).
- name str
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.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceGroup resource produces the following output properties:
- Account
Id string The ID of the Alibaba Cloud account to which the resource group belongs.
- Create
Date string The time when the resource group was created. *
region_statuses-The status of the resource group in all regions. -region_id- The region ID. -status- The status of the regional resource group.- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Statuses List<Pulumi.Ali Cloud. Resource Manager. Outputs. Resource Group Region Status> - Status string
The status of the resource group.
- Account
Id string The ID of the Alibaba Cloud account to which the resource group belongs.
- Create
Date string The time when the resource group was created. *
region_statuses-The status of the resource group in all regions. -region_id- The region ID. -status- The status of the regional resource group.- Id string
- The provider-assigned unique ID for this managed resource.
- Region
Statuses []ResourceGroup Region Status - Status string
The status of the resource group.
- account
Id string The ID of the Alibaba Cloud account to which the resource group belongs.
- create
Date string The time when the resource group was created. *
region_statuses-The status of the resource group in all regions. -region_id- The region ID. -status- The status of the regional resource group.- id string
- The provider-assigned unique ID for this managed resource.
- region
Statuses ResourceGroup Region Status[] - status string
The status of the resource group.
- account_
id str The ID of the Alibaba Cloud account to which the resource group belongs.
- create_
date str The time when the resource group was created. *
region_statuses-The status of the resource group in all regions. -region_id- The region ID. -status- The status of the regional resource group.- id str
- The provider-assigned unique ID for this managed resource.
- region_
statuses List[ResourceGroup Region Status] - status str
The status of the resource group.
Look up an Existing ResourceGroup Resource
Get an existing ResourceGroup 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?: ResourceGroupState, opts?: CustomResourceOptions): ResourceGroupstatic get(resource_name, id, opts=None, account_id=None, create_date=None, display_name=None, name=None, region_statuses=None, status=None, __props__=None);func GetResourceGroup(ctx *Context, name string, id IDInput, state *ResourceGroupState, opts ...ResourceOption) (*ResourceGroup, error)public static ResourceGroup Get(string name, Input<string> id, ResourceGroupState? 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:
- Account
Id string The ID of the Alibaba Cloud account to which the resource group belongs.
- Create
Date string The time when the resource group was created. *
region_statuses-The status of the resource group in all regions. -region_id- The region ID. -status- The status of the regional resource group.- Display
Name 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 (-).
- Name string
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.
- Region
Statuses List<Pulumi.Ali Cloud. Resource Manager. Inputs. Resource Group Region Status Args> - Status string
The status of the resource group.
- Account
Id string The ID of the Alibaba Cloud account to which the resource group belongs.
- Create
Date string The time when the resource group was created. *
region_statuses-The status of the resource group in all regions. -region_id- The region ID. -status- The status of the regional resource group.- Display
Name 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 (-).
- Name string
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.
- Region
Statuses []ResourceGroup Region Status - Status string
The status of the resource group.
- account
Id string The ID of the Alibaba Cloud account to which the resource group belongs.
- create
Date string The time when the resource group was created. *
region_statuses-The status of the resource group in all regions. -region_id- The region ID. -status- The status of the regional resource group.- display
Name 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 (-).
- name string
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.
- region
Statuses ResourceGroup Region Status[] - status string
The status of the resource group.
- account_
id str The ID of the Alibaba Cloud account to which the resource group belongs.
- create_
date str The time when the resource group was created. *
region_statuses-The status of the resource group in all regions. -region_id- The region ID. -status- The status of the regional resource group.- display_
name str 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 (-).
- name str
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.
- region_
statuses List[ResourceGroup Region Status] - status str
The status of the resource group.
Supporting Types
ResourceGroupRegionStatus
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.