alicloud.dataworks.DwResourceGroup
Explore with Pulumi AI
Provides a Data Works Dw Resource Group resource.
For information about Data Works Dw Resource Group and how to use it, see What is Dw Resource Group.
NOTE: Available since v1.241.0.
Create DwResourceGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DwResourceGroup(name: string, args: DwResourceGroupArgs, opts?: CustomResourceOptions);
@overload
def DwResourceGroup(resource_name: str,
args: DwResourceGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DwResourceGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
default_vpc_id: Optional[str] = None,
default_vswitch_id: Optional[str] = None,
remark: Optional[str] = None,
auto_renew: Optional[bool] = None,
payment_duration: Optional[int] = None,
payment_duration_unit: Optional[str] = None,
payment_type: Optional[str] = None,
resource_group_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
specification: Optional[int] = None,
tags: Optional[Mapping[str, str]] = None)
func NewDwResourceGroup(ctx *Context, name string, args DwResourceGroupArgs, opts ...ResourceOption) (*DwResourceGroup, error)
public DwResourceGroup(string name, DwResourceGroupArgs args, CustomResourceOptions? opts = null)
public DwResourceGroup(String name, DwResourceGroupArgs args)
public DwResourceGroup(String name, DwResourceGroupArgs args, CustomResourceOptions options)
type: alicloud:dataworks:DwResourceGroup
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 DwResourceGroupArgs
- 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 DwResourceGroupArgs
- 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 DwResourceGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DwResourceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DwResourceGroupArgs
- 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 dwResourceGroupResource = new AliCloud.DataWorks.DwResourceGroup("dwResourceGroupResource", new()
{
DefaultVpcId = "string",
DefaultVswitchId = "string",
Remark = "string",
AutoRenew = false,
PaymentDuration = 0,
PaymentDurationUnit = "string",
PaymentType = "string",
ResourceGroupId = "string",
ResourceGroupName = "string",
Specification = 0,
Tags =
{
{ "string", "string" },
},
});
example, err := dataworks.NewDwResourceGroup(ctx, "dwResourceGroupResource", &dataworks.DwResourceGroupArgs{
DefaultVpcId: pulumi.String("string"),
DefaultVswitchId: pulumi.String("string"),
Remark: pulumi.String("string"),
AutoRenew: pulumi.Bool(false),
PaymentDuration: pulumi.Int(0),
PaymentDurationUnit: pulumi.String("string"),
PaymentType: pulumi.String("string"),
ResourceGroupId: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Specification: pulumi.Int(0),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var dwResourceGroupResource = new DwResourceGroup("dwResourceGroupResource", DwResourceGroupArgs.builder()
.defaultVpcId("string")
.defaultVswitchId("string")
.remark("string")
.autoRenew(false)
.paymentDuration(0)
.paymentDurationUnit("string")
.paymentType("string")
.resourceGroupId("string")
.resourceGroupName("string")
.specification(0)
.tags(Map.of("string", "string"))
.build());
dw_resource_group_resource = alicloud.dataworks.DwResourceGroup("dwResourceGroupResource",
default_vpc_id="string",
default_vswitch_id="string",
remark="string",
auto_renew=False,
payment_duration=0,
payment_duration_unit="string",
payment_type="string",
resource_group_id="string",
resource_group_name="string",
specification=0,
tags={
"string": "string",
})
const dwResourceGroupResource = new alicloud.dataworks.DwResourceGroup("dwResourceGroupResource", {
defaultVpcId: "string",
defaultVswitchId: "string",
remark: "string",
autoRenew: false,
paymentDuration: 0,
paymentDurationUnit: "string",
paymentType: "string",
resourceGroupId: "string",
resourceGroupName: "string",
specification: 0,
tags: {
string: "string",
},
});
type: alicloud:dataworks:DwResourceGroup
properties:
autoRenew: false
defaultVpcId: string
defaultVswitchId: string
paymentDuration: 0
paymentDurationUnit: string
paymentType: string
remark: string
resourceGroupId: string
resourceGroupName: string
specification: 0
tags:
string: string
DwResourceGroup 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 DwResourceGroup resource accepts the following input properties:
- Default
Vpc stringId - The VPC ID of the default network resource.
- Default
Vswitch stringId - The ID of the vswitch bound to the network resource by default.
- Remark string
- Resource Group Comments
- Auto
Renew bool - Whether to automatically renew. The default value is false.
- Payment
Duration int - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- Payment
Duration stringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- Payment
Type string - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- Resource
Group stringId - The ID of the resource group
- Resource
Group stringName - Resource group name
- Specification int
- Package year and package month resource group specifications, unit CU
- Dictionary<string, string>
- The tag of the resource
- Default
Vpc stringId - The VPC ID of the default network resource.
- Default
Vswitch stringId - The ID of the vswitch bound to the network resource by default.
- Remark string
- Resource Group Comments
- Auto
Renew bool - Whether to automatically renew. The default value is false.
- Payment
Duration int - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- Payment
Duration stringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- Payment
Type string - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- Resource
Group stringId - The ID of the resource group
- Resource
Group stringName - Resource group name
- Specification int
- Package year and package month resource group specifications, unit CU
- map[string]string
- The tag of the resource
- default
Vpc StringId - The VPC ID of the default network resource.
- default
Vswitch StringId - The ID of the vswitch bound to the network resource by default.
- remark String
- Resource Group Comments
- auto
Renew Boolean - Whether to automatically renew. The default value is false.
- payment
Duration Integer - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- payment
Duration StringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- payment
Type String - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- resource
Group StringId - The ID of the resource group
- resource
Group StringName - Resource group name
- specification Integer
- Package year and package month resource group specifications, unit CU
- Map<String,String>
- The tag of the resource
- default
Vpc stringId - The VPC ID of the default network resource.
- default
Vswitch stringId - The ID of the vswitch bound to the network resource by default.
- remark string
- Resource Group Comments
- auto
Renew boolean - Whether to automatically renew. The default value is false.
- payment
Duration number - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- payment
Duration stringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- payment
Type string - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- resource
Group stringId - The ID of the resource group
- resource
Group stringName - Resource group name
- specification number
- Package year and package month resource group specifications, unit CU
- {[key: string]: string}
- The tag of the resource
- default_
vpc_ strid - The VPC ID of the default network resource.
- default_
vswitch_ strid - The ID of the vswitch bound to the network resource by default.
- remark str
- Resource Group Comments
- auto_
renew bool - Whether to automatically renew. The default value is false.
- payment_
duration int - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- payment_
duration_ strunit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- payment_
type str - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- resource_
group_ strid - The ID of the resource group
- resource_
group_ strname - Resource group name
- specification int
- Package year and package month resource group specifications, unit CU
- Mapping[str, str]
- The tag of the resource
- default
Vpc StringId - The VPC ID of the default network resource.
- default
Vswitch StringId - The ID of the vswitch bound to the network resource by default.
- remark String
- Resource Group Comments
- auto
Renew Boolean - Whether to automatically renew. The default value is false.
- payment
Duration Number - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- payment
Duration StringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- payment
Type String - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- resource
Group StringId - The ID of the resource group
- resource
Group StringName - Resource group name
- specification Number
- Package year and package month resource group specifications, unit CU
- Map<String>
- The tag of the resource
Outputs
All input properties are implicitly available as output properties. Additionally, the DwResourceGroup resource produces the following output properties:
- Create
Time int - Resource group creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Resource group status:
- Create
Time int - Resource group creation time
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Resource group status:
- create
Time Integer - Resource group creation time
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Resource group status:
- create
Time number - Resource group creation time
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Resource group status:
- create_
time int - Resource group creation time
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Resource group status:
- create
Time Number - Resource group creation time
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Resource group status:
Look up Existing DwResourceGroup Resource
Get an existing DwResourceGroup 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?: DwResourceGroupState, opts?: CustomResourceOptions): DwResourceGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew: Optional[bool] = None,
create_time: Optional[int] = None,
default_vpc_id: Optional[str] = None,
default_vswitch_id: Optional[str] = None,
payment_duration: Optional[int] = None,
payment_duration_unit: Optional[str] = None,
payment_type: Optional[str] = None,
remark: Optional[str] = None,
resource_group_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
specification: Optional[int] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None) -> DwResourceGroup
func GetDwResourceGroup(ctx *Context, name string, id IDInput, state *DwResourceGroupState, opts ...ResourceOption) (*DwResourceGroup, error)
public static DwResourceGroup Get(string name, Input<string> id, DwResourceGroupState? state, CustomResourceOptions? opts = null)
public static DwResourceGroup get(String name, Output<String> id, DwResourceGroupState state, CustomResourceOptions options)
resources: _: type: alicloud:dataworks:DwResourceGroup get: id: ${id}
- 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.
- Auto
Renew bool - Whether to automatically renew. The default value is false.
- Create
Time int - Resource group creation time
- Default
Vpc stringId - The VPC ID of the default network resource.
- Default
Vswitch stringId - The ID of the vswitch bound to the network resource by default.
- Payment
Duration int - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- Payment
Duration stringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- Payment
Type string - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- Remark string
- Resource Group Comments
- Resource
Group stringId - The ID of the resource group
- Resource
Group stringName - Resource group name
- Specification int
- Package year and package month resource group specifications, unit CU
- Status string
- Resource group status:
- Dictionary<string, string>
- The tag of the resource
- Auto
Renew bool - Whether to automatically renew. The default value is false.
- Create
Time int - Resource group creation time
- Default
Vpc stringId - The VPC ID of the default network resource.
- Default
Vswitch stringId - The ID of the vswitch bound to the network resource by default.
- Payment
Duration int - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- Payment
Duration stringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- Payment
Type string - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- Remark string
- Resource Group Comments
- Resource
Group stringId - The ID of the resource group
- Resource
Group stringName - Resource group name
- Specification int
- Package year and package month resource group specifications, unit CU
- Status string
- Resource group status:
- map[string]string
- The tag of the resource
- auto
Renew Boolean - Whether to automatically renew. The default value is false.
- create
Time Integer - Resource group creation time
- default
Vpc StringId - The VPC ID of the default network resource.
- default
Vswitch StringId - The ID of the vswitch bound to the network resource by default.
- payment
Duration Integer - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- payment
Duration StringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- payment
Type String - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- remark String
- Resource Group Comments
- resource
Group StringId - The ID of the resource group
- resource
Group StringName - Resource group name
- specification Integer
- Package year and package month resource group specifications, unit CU
- status String
- Resource group status:
- Map<String,String>
- The tag of the resource
- auto
Renew boolean - Whether to automatically renew. The default value is false.
- create
Time number - Resource group creation time
- default
Vpc stringId - The VPC ID of the default network resource.
- default
Vswitch stringId - The ID of the vswitch bound to the network resource by default.
- payment
Duration number - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- payment
Duration stringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- payment
Type string - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- remark string
- Resource Group Comments
- resource
Group stringId - The ID of the resource group
- resource
Group stringName - Resource group name
- specification number
- Package year and package month resource group specifications, unit CU
- status string
- Resource group status:
- {[key: string]: string}
- The tag of the resource
- auto_
renew bool - Whether to automatically renew. The default value is false.
- create_
time int - Resource group creation time
- default_
vpc_ strid - The VPC ID of the default network resource.
- default_
vswitch_ strid - The ID of the vswitch bound to the network resource by default.
- payment_
duration int - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- payment_
duration_ strunit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- payment_
type str - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- remark str
- Resource Group Comments
- resource_
group_ strid - The ID of the resource group
- resource_
group_ strname - Resource group name
- specification int
- Package year and package month resource group specifications, unit CU
- status str
- Resource group status:
- Mapping[str, str]
- The tag of the resource
- auto
Renew Boolean - Whether to automatically renew. The default value is false.
- create
Time Number - Resource group creation time
- default
Vpc StringId - The VPC ID of the default network resource.
- default
Vswitch StringId - The ID of the vswitch bound to the network resource by default.
- payment
Duration Number - When the payment method is Prepaid, the unit is PaymentDurationUnit.
- payment
Duration StringUnit - When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
- payment
Type String - The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
- remark String
- Resource Group Comments
- resource
Group StringId - The ID of the resource group
- resource
Group StringName - Resource group name
- specification Number
- Package year and package month resource group specifications, unit CU
- status String
- Resource group status:
- Map<String>
- The tag of the resource
Import
Data Works Dw Resource Group can be imported using the id, e.g.
$ pulumi import alicloud:dataworks/dwResourceGroup:DwResourceGroup example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.