1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. adb
  5. ResourceGroup
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

alicloud.adb.ResourceGroup

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi

    Provides a Adb Resource Group resource.

    For information about Adb Resource Group and how to use it, see What is Adb Resource Group.

    NOTE: Available since v1.195.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf_example";
    const default = alicloud.adb.getZones({});
    const defaultGetResourceGroups = alicloud.resourcemanager.getResourceGroups({
        status: "OK",
    });
    const defaultNetwork = new alicloud.vpc.Network("default", {
        vpcName: name,
        cidrBlock: "10.4.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("default", {
        vpcId: defaultNetwork.id,
        cidrBlock: "10.4.0.0/24",
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
        vswitchName: name,
    });
    const defaultDBCluster = new alicloud.adb.DBCluster("default", {
        computeResource: "48Core192GBNEW",
        dbClusterCategory: "MixedStorage",
        dbClusterVersion: "3.0",
        dbNodeClass: "E32",
        dbNodeCount: 1,
        dbNodeStorage: 100,
        description: name,
        elasticIoResource: 1,
        maintainTime: "04:00Z-05:00Z",
        mode: "flexible",
        paymentType: "PayAsYouGo",
        resourceGroupId: defaultGetResourceGroups.then(defaultGetResourceGroups => defaultGetResourceGroups.ids?.[0]),
        securityIps: [
            "10.168.1.12",
            "10.168.1.11",
        ],
        vpcId: defaultNetwork.id,
        vswitchId: defaultSwitch.id,
        zoneId: _default.then(_default => _default.zones?.[0]?.id),
        tags: {
            Created: "TF",
            For: "example",
        },
    });
    const defaultResourceGroup = new alicloud.adb.ResourceGroup("default", {
        groupName: "TF_EXAMPLE",
        groupType: "batch",
        nodeNum: 1,
        dbClusterId: defaultDBCluster.id,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    default = alicloud.adb.get_zones()
    default_get_resource_groups = alicloud.resourcemanager.get_resource_groups(status="OK")
    default_network = alicloud.vpc.Network("default",
        vpc_name=name,
        cidr_block="10.4.0.0/16")
    default_switch = alicloud.vpc.Switch("default",
        vpc_id=default_network.id,
        cidr_block="10.4.0.0/24",
        zone_id=default.zones[0].id,
        vswitch_name=name)
    default_db_cluster = alicloud.adb.DBCluster("default",
        compute_resource="48Core192GBNEW",
        db_cluster_category="MixedStorage",
        db_cluster_version="3.0",
        db_node_class="E32",
        db_node_count=1,
        db_node_storage=100,
        description=name,
        elastic_io_resource=1,
        maintain_time="04:00Z-05:00Z",
        mode="flexible",
        payment_type="PayAsYouGo",
        resource_group_id=default_get_resource_groups.ids[0],
        security_ips=[
            "10.168.1.12",
            "10.168.1.11",
        ],
        vpc_id=default_network.id,
        vswitch_id=default_switch.id,
        zone_id=default.zones[0].id,
        tags={
            "Created": "TF",
            "For": "example",
        })
    default_resource_group = alicloud.adb.ResourceGroup("default",
        group_name="TF_EXAMPLE",
        group_type="batch",
        node_num=1,
        db_cluster_id=default_db_cluster.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/adb"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/resourcemanager"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := adb.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetResourceGroups, err := resourcemanager.GetResourceGroups(ctx, &resourcemanager.GetResourceGroupsArgs{
    			Status: pulumi.StringRef("OK"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("10.4.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
    			VpcId:       defaultNetwork.ID(),
    			CidrBlock:   pulumi.String("10.4.0.0/24"),
    			ZoneId:      pulumi.String(_default.Zones[0].Id),
    			VswitchName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultDBCluster, err := adb.NewDBCluster(ctx, "default", &adb.DBClusterArgs{
    			ComputeResource:   pulumi.String("48Core192GBNEW"),
    			DbClusterCategory: pulumi.String("MixedStorage"),
    			DbClusterVersion:  pulumi.String("3.0"),
    			DbNodeClass:       pulumi.String("E32"),
    			DbNodeCount:       pulumi.Int(1),
    			DbNodeStorage:     pulumi.Int(100),
    			Description:       pulumi.String(name),
    			ElasticIoResource: pulumi.Int(1),
    			MaintainTime:      pulumi.String("04:00Z-05:00Z"),
    			Mode:              pulumi.String("flexible"),
    			PaymentType:       pulumi.String("PayAsYouGo"),
    			ResourceGroupId:   pulumi.String(defaultGetResourceGroups.Ids[0]),
    			SecurityIps: pulumi.StringArray{
    				pulumi.String("10.168.1.12"),
    				pulumi.String("10.168.1.11"),
    			},
    			VpcId:     defaultNetwork.ID(),
    			VswitchId: defaultSwitch.ID(),
    			ZoneId:    pulumi.String(_default.Zones[0].Id),
    			Tags: pulumi.Map{
    				"Created": pulumi.Any("TF"),
    				"For":     pulumi.Any("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = adb.NewResourceGroup(ctx, "default", &adb.ResourceGroupArgs{
    			GroupName:   pulumi.String("TF_EXAMPLE"),
    			GroupType:   pulumi.String("batch"),
    			NodeNum:     pulumi.Int(1),
    			DbClusterId: defaultDBCluster.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf_example";
        var @default = AliCloud.Adb.GetZones.Invoke();
    
        var defaultGetResourceGroups = AliCloud.ResourceManager.GetResourceGroups.Invoke(new()
        {
            Status = "OK",
        });
    
        var defaultNetwork = new AliCloud.Vpc.Network("default", new()
        {
            VpcName = name,
            CidrBlock = "10.4.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
        {
            VpcId = defaultNetwork.Id,
            CidrBlock = "10.4.0.0/24",
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
            VswitchName = name,
        });
    
        var defaultDBCluster = new AliCloud.Adb.DBCluster("default", new()
        {
            ComputeResource = "48Core192GBNEW",
            DbClusterCategory = "MixedStorage",
            DbClusterVersion = "3.0",
            DbNodeClass = "E32",
            DbNodeCount = 1,
            DbNodeStorage = 100,
            Description = name,
            ElasticIoResource = 1,
            MaintainTime = "04:00Z-05:00Z",
            Mode = "flexible",
            PaymentType = "PayAsYouGo",
            ResourceGroupId = defaultGetResourceGroups.Apply(getResourceGroupsResult => getResourceGroupsResult.Ids[0]),
            SecurityIps = new[]
            {
                "10.168.1.12",
                "10.168.1.11",
            },
            VpcId = defaultNetwork.Id,
            VswitchId = defaultSwitch.Id,
            ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
            Tags = 
            {
                { "Created", "TF" },
                { "For", "example" },
            },
        });
    
        var defaultResourceGroup = new AliCloud.Adb.ResourceGroup("default", new()
        {
            GroupName = "TF_EXAMPLE",
            GroupType = "batch",
            NodeNum = 1,
            DbClusterId = defaultDBCluster.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.adb.AdbFunctions;
    import com.pulumi.alicloud.adb.inputs.GetZonesArgs;
    import com.pulumi.alicloud.resourcemanager.ResourcemanagerFunctions;
    import com.pulumi.alicloud.resourcemanager.inputs.GetResourceGroupsArgs;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.adb.DBCluster;
    import com.pulumi.alicloud.adb.DBClusterArgs;
    import com.pulumi.alicloud.adb.ResourceGroup;
    import com.pulumi.alicloud.adb.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("tf_example");
            final var default = AdbFunctions.getZones();
    
            final var defaultGetResourceGroups = ResourcemanagerFunctions.getResourceGroups(GetResourceGroupsArgs.builder()
                .status("OK")
                .build());
    
            var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
                .vpcName(name)
                .cidrBlock("10.4.0.0/16")
                .build());
    
            var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
                .vpcId(defaultNetwork.id())
                .cidrBlock("10.4.0.0/24")
                .zoneId(default_.zones()[0].id())
                .vswitchName(name)
                .build());
    
            var defaultDBCluster = new DBCluster("defaultDBCluster", DBClusterArgs.builder()
                .computeResource("48Core192GBNEW")
                .dbClusterCategory("MixedStorage")
                .dbClusterVersion("3.0")
                .dbNodeClass("E32")
                .dbNodeCount(1)
                .dbNodeStorage(100)
                .description(name)
                .elasticIoResource(1)
                .maintainTime("04:00Z-05:00Z")
                .mode("flexible")
                .paymentType("PayAsYouGo")
                .resourceGroupId(defaultGetResourceGroups.applyValue(getResourceGroupsResult -> getResourceGroupsResult.ids()[0]))
                .securityIps(            
                    "10.168.1.12",
                    "10.168.1.11")
                .vpcId(defaultNetwork.id())
                .vswitchId(defaultSwitch.id())
                .zoneId(default_.zones()[0].id())
                .tags(Map.ofEntries(
                    Map.entry("Created", "TF"),
                    Map.entry("For", "example")
                ))
                .build());
    
            var defaultResourceGroup = new ResourceGroup("defaultResourceGroup", ResourceGroupArgs.builder()
                .groupName("TF_EXAMPLE")
                .groupType("batch")
                .nodeNum(1)
                .dbClusterId(defaultDBCluster.id())
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      defaultNetwork:
        type: alicloud:vpc:Network
        name: default
        properties:
          vpcName: ${name}
          cidrBlock: 10.4.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        name: default
        properties:
          vpcId: ${defaultNetwork.id}
          cidrBlock: 10.4.0.0/24
          zoneId: ${default.zones[0].id}
          vswitchName: ${name}
      defaultDBCluster:
        type: alicloud:adb:DBCluster
        name: default
        properties:
          computeResource: 48Core192GBNEW
          dbClusterCategory: MixedStorage
          dbClusterVersion: '3.0'
          dbNodeClass: E32
          dbNodeCount: 1
          dbNodeStorage: 100
          description: ${name}
          elasticIoResource: 1
          maintainTime: 04:00Z-05:00Z
          mode: flexible
          paymentType: PayAsYouGo
          resourceGroupId: ${defaultGetResourceGroups.ids[0]}
          securityIps:
            - 10.168.1.12
            - 10.168.1.11
          vpcId: ${defaultNetwork.id}
          vswitchId: ${defaultSwitch.id}
          zoneId: ${default.zones[0].id}
          tags:
            Created: TF
            For: example
      defaultResourceGroup:
        type: alicloud:adb:ResourceGroup
        name: default
        properties:
          groupName: TF_EXAMPLE
          groupType: batch
          nodeNum: 1
          dbClusterId: ${defaultDBCluster.id}
    variables:
      default:
        fn::invoke:
          Function: alicloud:adb:getZones
          Arguments: {}
      defaultGetResourceGroups:
        fn::invoke:
          Function: alicloud:resourcemanager:getResourceGroups
          Arguments:
            status: OK
    

    Create ResourceGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ResourceGroup(name: string, args: ResourceGroupArgs, opts?: CustomResourceOptions);
    @overload
    def ResourceGroup(resource_name: str,
                      args: ResourceGroupArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def ResourceGroup(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      db_cluster_id: Optional[str] = None,
                      group_name: Optional[str] = None,
                      group_type: Optional[str] = None,
                      node_num: Optional[int] = None)
    func NewResourceGroup(ctx *Context, name string, args ResourceGroupArgs, opts ...ResourceOption) (*ResourceGroup, error)
    public ResourceGroup(string name, ResourceGroupArgs args, CustomResourceOptions? opts = null)
    public ResourceGroup(String name, ResourceGroupArgs args)
    public ResourceGroup(String name, ResourceGroupArgs args, CustomResourceOptions options)
    
    type: alicloud:adb:ResourceGroup
    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 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.
    args ResourceGroupArgs
    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 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.
    name String
    The unique name of the resource.
    args ResourceGroupArgs
    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 resourceGroupResource = new AliCloud.Adb.ResourceGroup("resourceGroupResource", new()
    {
        DbClusterId = "string",
        GroupName = "string",
        GroupType = "string",
        NodeNum = 0,
    });
    
    example, err := adb.NewResourceGroup(ctx, "resourceGroupResource", &adb.ResourceGroupArgs{
    	DbClusterId: pulumi.String("string"),
    	GroupName:   pulumi.String("string"),
    	GroupType:   pulumi.String("string"),
    	NodeNum:     pulumi.Int(0),
    })
    
    var resourceGroupResource = new ResourceGroup("resourceGroupResource", ResourceGroupArgs.builder()
        .dbClusterId("string")
        .groupName("string")
        .groupType("string")
        .nodeNum(0)
        .build());
    
    resource_group_resource = alicloud.adb.ResourceGroup("resourceGroupResource",
        db_cluster_id="string",
        group_name="string",
        group_type="string",
        node_num=0)
    
    const resourceGroupResource = new alicloud.adb.ResourceGroup("resourceGroupResource", {
        dbClusterId: "string",
        groupName: "string",
        groupType: "string",
        nodeNum: 0,
    });
    
    type: alicloud:adb:ResourceGroup
    properties:
        dbClusterId: string
        groupName: string
        groupType: string
        nodeNum: 0
    

    ResourceGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ResourceGroup resource accepts the following input properties:

    DbClusterId string
    DB cluster id.
    GroupName string
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    GroupType string
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    NodeNum int
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    DbClusterId string
    DB cluster id.
    GroupName string
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    GroupType string
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    NodeNum int
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    dbClusterId String
    DB cluster id.
    groupName String
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    groupType String
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    nodeNum Integer
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    dbClusterId string
    DB cluster id.
    groupName string
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    groupType string
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    nodeNum number
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    db_cluster_id str
    DB cluster id.
    group_name str
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    group_type str
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    node_num int
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    dbClusterId String
    DB cluster id.
    groupName String
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    groupType String
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    nodeNum Number
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ResourceGroup resource produces the following output properties:

    CreateTime string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Update time.
    User string
    Binding User.
    CreateTime string
    Creation time.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdateTime string
    Update time.
    User string
    Binding User.
    createTime String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Update time.
    user String
    Binding User.
    createTime string
    Creation time.
    id string
    The provider-assigned unique ID for this managed resource.
    updateTime string
    Update time.
    user string
    Binding User.
    create_time str
    Creation time.
    id str
    The provider-assigned unique ID for this managed resource.
    update_time str
    Update time.
    user str
    Binding User.
    createTime String
    Creation time.
    id String
    The provider-assigned unique ID for this managed resource.
    updateTime String
    Update time.
    user String
    Binding User.

    Look up 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): ResourceGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            db_cluster_id: Optional[str] = None,
            group_name: Optional[str] = None,
            group_type: Optional[str] = None,
            node_num: Optional[int] = None,
            update_time: Optional[str] = None,
            user: Optional[str] = None) -> ResourceGroup
    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)
    public static ResourceGroup get(String name, Output<String> id, ResourceGroupState 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.
    The following state arguments are supported:
    CreateTime string
    Creation time.
    DbClusterId string
    DB cluster id.
    GroupName string
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    GroupType string
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    NodeNum int
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    UpdateTime string
    Update time.
    User string
    Binding User.
    CreateTime string
    Creation time.
    DbClusterId string
    DB cluster id.
    GroupName string
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    GroupType string
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    NodeNum int
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    UpdateTime string
    Update time.
    User string
    Binding User.
    createTime String
    Creation time.
    dbClusterId String
    DB cluster id.
    groupName String
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    groupType String
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    nodeNum Integer
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    updateTime String
    Update time.
    user String
    Binding User.
    createTime string
    Creation time.
    dbClusterId string
    DB cluster id.
    groupName string
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    groupType string
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    nodeNum number
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    updateTime string
    Update time.
    user string
    Binding User.
    create_time str
    Creation time.
    db_cluster_id str
    DB cluster id.
    group_name str
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    group_type str
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    node_num int
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    update_time str
    Update time.
    user str
    Binding User.
    createTime String
    Creation time.
    dbClusterId String
    DB cluster id.
    groupName String
    The name of the resource pool. The group name must be 2 to 30 characters in length, and can contain upper case letters, digits, and underscore(_).
    groupType String
    Query type, value description:

    • etl: Batch query mode.
    • interactive: interactive Query mode.
    • default_type: the default query mode.
    nodeNum Number
    The number of nodes. The default number of nodes is 0. The number of nodes must be less than or equal to the number of nodes whose resource name is USER_DEFAULT.
    updateTime String
    Update time.
    user String
    Binding User.

    Import

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

    $ pulumi import alicloud:adb/resourceGroup:ResourceGroup example <db_cluster_id>:<group_name>
    

    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.57.1 published on Wednesday, Jun 26, 2024 by Pulumi