1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dataworks
  5. DwResourceGroup
Alibaba Cloud v3.74.0 published on Monday, Jan 27, 2025 by Pulumi

alicloud.dataworks.DwResourceGroup

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.74.0 published on Monday, Jan 27, 2025 by Pulumi

    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:

    DefaultVpcId string
    The VPC ID of the default network resource.
    DefaultVswitchId string
    The ID of the vswitch bound to the network resource by default.
    Remark string
    Resource Group Comments
    AutoRenew bool
    Whether to automatically renew. The default value is false.
    PaymentDuration int
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    PaymentDurationUnit string
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    PaymentType string
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    ResourceGroupId string
    The ID of the resource group
    ResourceGroupName string
    Resource group name
    Specification int
    Package year and package month resource group specifications, unit CU
    Tags Dictionary<string, string>
    The tag of the resource
    DefaultVpcId string
    The VPC ID of the default network resource.
    DefaultVswitchId string
    The ID of the vswitch bound to the network resource by default.
    Remark string
    Resource Group Comments
    AutoRenew bool
    Whether to automatically renew. The default value is false.
    PaymentDuration int
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    PaymentDurationUnit string
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    PaymentType string
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    ResourceGroupId string
    The ID of the resource group
    ResourceGroupName string
    Resource group name
    Specification int
    Package year and package month resource group specifications, unit CU
    Tags map[string]string
    The tag of the resource
    defaultVpcId String
    The VPC ID of the default network resource.
    defaultVswitchId String
    The ID of the vswitch bound to the network resource by default.
    remark String
    Resource Group Comments
    autoRenew Boolean
    Whether to automatically renew. The default value is false.
    paymentDuration Integer
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    paymentDurationUnit String
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    paymentType String
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    resourceGroupId String
    The ID of the resource group
    resourceGroupName String
    Resource group name
    specification Integer
    Package year and package month resource group specifications, unit CU
    tags Map<String,String>
    The tag of the resource
    defaultVpcId string
    The VPC ID of the default network resource.
    defaultVswitchId string
    The ID of the vswitch bound to the network resource by default.
    remark string
    Resource Group Comments
    autoRenew boolean
    Whether to automatically renew. The default value is false.
    paymentDuration number
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    paymentDurationUnit string
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    paymentType string
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    resourceGroupId string
    The ID of the resource group
    resourceGroupName string
    Resource group name
    specification number
    Package year and package month resource group specifications, unit CU
    tags {[key: string]: string}
    The tag of the resource
    default_vpc_id str
    The VPC ID of the default network resource.
    default_vswitch_id str
    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_unit str
    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_id str
    The ID of the resource group
    resource_group_name str
    Resource group name
    specification int
    Package year and package month resource group specifications, unit CU
    tags Mapping[str, str]
    The tag of the resource
    defaultVpcId String
    The VPC ID of the default network resource.
    defaultVswitchId String
    The ID of the vswitch bound to the network resource by default.
    remark String
    Resource Group Comments
    autoRenew Boolean
    Whether to automatically renew. The default value is false.
    paymentDuration Number
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    paymentDurationUnit String
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    paymentType String
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    resourceGroupId String
    The ID of the resource group
    resourceGroupName String
    Resource group name
    specification Number
    Package year and package month resource group specifications, unit CU
    tags 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:

    CreateTime int
    Resource group creation time
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Resource group status:
    CreateTime int
    Resource group creation time
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Resource group status:
    createTime Integer
    Resource group creation time
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Resource group status:
    createTime 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:
    createTime 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.
    The following state arguments are supported:
    AutoRenew bool
    Whether to automatically renew. The default value is false.
    CreateTime int
    Resource group creation time
    DefaultVpcId string
    The VPC ID of the default network resource.
    DefaultVswitchId string
    The ID of the vswitch bound to the network resource by default.
    PaymentDuration int
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    PaymentDurationUnit string
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    PaymentType string
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    Remark string
    Resource Group Comments
    ResourceGroupId string
    The ID of the resource group
    ResourceGroupName string
    Resource group name
    Specification int
    Package year and package month resource group specifications, unit CU
    Status string
    Resource group status:
    Tags Dictionary<string, string>
    The tag of the resource
    AutoRenew bool
    Whether to automatically renew. The default value is false.
    CreateTime int
    Resource group creation time
    DefaultVpcId string
    The VPC ID of the default network resource.
    DefaultVswitchId string
    The ID of the vswitch bound to the network resource by default.
    PaymentDuration int
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    PaymentDurationUnit string
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    PaymentType string
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    Remark string
    Resource Group Comments
    ResourceGroupId string
    The ID of the resource group
    ResourceGroupName string
    Resource group name
    Specification int
    Package year and package month resource group specifications, unit CU
    Status string
    Resource group status:
    Tags map[string]string
    The tag of the resource
    autoRenew Boolean
    Whether to automatically renew. The default value is false.
    createTime Integer
    Resource group creation time
    defaultVpcId String
    The VPC ID of the default network resource.
    defaultVswitchId String
    The ID of the vswitch bound to the network resource by default.
    paymentDuration Integer
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    paymentDurationUnit String
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    paymentType String
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    remark String
    Resource Group Comments
    resourceGroupId String
    The ID of the resource group
    resourceGroupName String
    Resource group name
    specification Integer
    Package year and package month resource group specifications, unit CU
    status String
    Resource group status:
    tags Map<String,String>
    The tag of the resource
    autoRenew boolean
    Whether to automatically renew. The default value is false.
    createTime number
    Resource group creation time
    defaultVpcId string
    The VPC ID of the default network resource.
    defaultVswitchId string
    The ID of the vswitch bound to the network resource by default.
    paymentDuration number
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    paymentDurationUnit string
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    paymentType string
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    remark string
    Resource Group Comments
    resourceGroupId string
    The ID of the resource group
    resourceGroupName string
    Resource group name
    specification number
    Package year and package month resource group specifications, unit CU
    status string
    Resource group status:
    tags {[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_id str
    The VPC ID of the default network resource.
    default_vswitch_id str
    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_unit str
    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_id str
    The ID of the resource group
    resource_group_name str
    Resource group name
    specification int
    Package year and package month resource group specifications, unit CU
    status str
    Resource group status:
    tags Mapping[str, str]
    The tag of the resource
    autoRenew Boolean
    Whether to automatically renew. The default value is false.
    createTime Number
    Resource group creation time
    defaultVpcId String
    The VPC ID of the default network resource.
    defaultVswitchId String
    The ID of the vswitch bound to the network resource by default.
    paymentDuration Number
    When the payment method is Prepaid, the unit is PaymentDurationUnit.
    paymentDurationUnit String
    When the payment method is Prepaid, the payment duration unit, Month is Month, Year is Year, and there is no other optional value.
    paymentType String
    The billing type of the resource group. PrePaid is Subscription, and PostPaid is Pay-As-You-Go.
    remark String
    Resource Group Comments
    resourceGroupId String
    The ID of the resource group
    resourceGroupName String
    Resource group name
    specification Number
    Package year and package month resource group specifications, unit CU
    status String
    Resource group status:
    tags 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.
    alicloud logo
    Alibaba Cloud v3.74.0 published on Monday, Jan 27, 2025 by Pulumi