alicloud.adb.ResourceGroup
Provides a AnalyticDB for MySQL (ADB) Resource Group resource.
For information about AnalyticDB for MySQL (ADB) Resource Group and how to use it, see What is 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") || "terraform-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: "48Core192GB",
dbClusterCategory: "MixedStorage",
dbClusterVersion: "3.0",
dbNodeClass: "E32",
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: 0,
dbClusterId: defaultDBCluster.id,
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-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="48Core192GB",
db_cluster_category="MixedStorage",
db_cluster_version="3.0",
db_node_class="E32",
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=0,
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 := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := adb.GetZones(ctx, &adb.GetZonesArgs{}, 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("48Core192GB"),
DbClusterCategory: pulumi.String("MixedStorage"),
DbClusterVersion: pulumi.String("3.0"),
DbNodeClass: pulumi.String("E32"),
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.StringMap{
"Created": pulumi.String("TF"),
"For": pulumi.String("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(0),
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") ?? "terraform-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 = "48Core192GB",
DbClusterCategory = "MixedStorage",
DbClusterVersion = "3.0",
DbNodeClass = "E32",
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 = 0,
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("terraform-example");
final var default = AdbFunctions.getZones(GetZonesArgs.builder()
.build());
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("48Core192GB")
.dbClusterCategory("MixedStorage")
.dbClusterVersion("3.0")
.dbNodeClass("E32")
.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(Map.ofEntries(
Map.entry("Created", "TF"),
Map.entry("For", "example")
))
.build());
var defaultResourceGroup = new ResourceGroup("defaultResourceGroup", ResourceGroupArgs.builder()
.groupName("TF_EXAMPLE")
.groupType("batch")
.nodeNum(0)
.dbClusterId(defaultDBCluster.id())
.build());
}
}
configuration:
name:
type: string
default: terraform-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: 48Core192GB
dbClusterCategory: MixedStorage
dbClusterVersion: '3.0'
dbNodeClass: E32
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: 0
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,
engine: Optional[str] = None,
engine_params: Optional[Mapping[str, str]] = None,
cluster_size_resource: Optional[str] = None,
cluster_mode: Optional[str] = None,
max_cluster_count: Optional[int] = None,
max_compute_resource: Optional[str] = None,
min_cluster_count: Optional[int] = None,
min_compute_resource: Optional[str] = None,
node_num: Optional[int] = None,
users: Optional[Sequence[str]] = 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",
Engine = "string",
EngineParams =
{
{ "string", "string" },
},
ClusterSizeResource = "string",
ClusterMode = "string",
MaxClusterCount = 0,
MaxComputeResource = "string",
MinClusterCount = 0,
MinComputeResource = "string",
NodeNum = 0,
Users = new[]
{
"string",
},
});
example, err := adb.NewResourceGroup(ctx, "resourceGroupResource", &adb.ResourceGroupArgs{
DbClusterId: pulumi.String("string"),
GroupName: pulumi.String("string"),
GroupType: pulumi.String("string"),
Engine: pulumi.String("string"),
EngineParams: pulumi.StringMap{
"string": pulumi.String("string"),
},
ClusterSizeResource: pulumi.String("string"),
ClusterMode: pulumi.String("string"),
MaxClusterCount: pulumi.Int(0),
MaxComputeResource: pulumi.String("string"),
MinClusterCount: pulumi.Int(0),
MinComputeResource: pulumi.String("string"),
NodeNum: pulumi.Int(0),
Users: pulumi.StringArray{
pulumi.String("string"),
},
})
var resourceGroupResource = new com.pulumi.alicloud.adb.ResourceGroup("resourceGroupResource", com.pulumi.alicloud.adb.ResourceGroupArgs.builder()
.dbClusterId("string")
.groupName("string")
.groupType("string")
.engine("string")
.engineParams(Map.of("string", "string"))
.clusterSizeResource("string")
.clusterMode("string")
.maxClusterCount(0)
.maxComputeResource("string")
.minClusterCount(0)
.minComputeResource("string")
.nodeNum(0)
.users("string")
.build());
resource_group_resource = alicloud.adb.ResourceGroup("resourceGroupResource",
db_cluster_id="string",
group_name="string",
group_type="string",
engine="string",
engine_params={
"string": "string",
},
cluster_size_resource="string",
cluster_mode="string",
max_cluster_count=0,
max_compute_resource="string",
min_cluster_count=0,
min_compute_resource="string",
node_num=0,
users=["string"])
const resourceGroupResource = new alicloud.adb.ResourceGroup("resourceGroupResource", {
dbClusterId: "string",
groupName: "string",
groupType: "string",
engine: "string",
engineParams: {
string: "string",
},
clusterSizeResource: "string",
clusterMode: "string",
maxClusterCount: 0,
maxComputeResource: "string",
minClusterCount: 0,
minComputeResource: "string",
nodeNum: 0,
users: ["string"],
});
type: alicloud:adb:ResourceGroup
properties:
clusterMode: string
clusterSizeResource: string
dbClusterId: string
engine: string
engineParams:
string: string
groupName: string
groupType: string
maxClusterCount: 0
maxComputeResource: string
minClusterCount: 0
minComputeResource: string
nodeNum: 0
users:
- string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourceGroup resource accepts the following input properties:
- Db
Cluster stringId - The ID of the DBCluster.
- Group
Name string - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - Cluster
Mode string - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - Cluster
Size stringResource - The resource specifications of a single compute cluster. Unit: ACU.
- Engine string
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - Engine
Params Dictionary<string, string> - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- Group
Type string - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - Max
Cluster intCount - The maximum number of compute clusters that are allowed in the resource group.
- Max
Compute stringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- Min
Cluster intCount - The minimum number of compute clusters that are required in the resource group.
- Min
Compute stringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- Node
Num int - The number of nodes.
- Users List<string>
- The database accounts with which to associate the resource group.
- Db
Cluster stringId - The ID of the DBCluster.
- Group
Name string - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - Cluster
Mode string - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - Cluster
Size stringResource - The resource specifications of a single compute cluster. Unit: ACU.
- Engine string
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - Engine
Params map[string]string - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- Group
Type string - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - Max
Cluster intCount - The maximum number of compute clusters that are allowed in the resource group.
- Max
Compute stringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- Min
Cluster intCount - The minimum number of compute clusters that are required in the resource group.
- Min
Compute stringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- Node
Num int - The number of nodes.
- Users []string
- The database accounts with which to associate the resource group.
- db
Cluster StringId - The ID of the DBCluster.
- group
Name String - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - cluster
Mode String - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - cluster
Size StringResource - The resource specifications of a single compute cluster. Unit: ACU.
- engine String
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - engine
Params Map<String,String> - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- group
Type String - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - max
Cluster IntegerCount - The maximum number of compute clusters that are allowed in the resource group.
- max
Compute StringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- min
Cluster IntegerCount - The minimum number of compute clusters that are required in the resource group.
- min
Compute StringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- node
Num Integer - The number of nodes.
- users List<String>
- The database accounts with which to associate the resource group.
- db
Cluster stringId - The ID of the DBCluster.
- group
Name string - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - cluster
Mode string - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - cluster
Size stringResource - The resource specifications of a single compute cluster. Unit: ACU.
- engine string
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - engine
Params {[key: string]: string} - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- group
Type string - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - max
Cluster numberCount - The maximum number of compute clusters that are allowed in the resource group.
- max
Compute stringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- min
Cluster numberCount - The minimum number of compute clusters that are required in the resource group.
- min
Compute stringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- node
Num number - The number of nodes.
- users string[]
- The database accounts with which to associate the resource group.
- db_
cluster_ strid - The ID of the DBCluster.
- group_
name str - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - cluster_
mode str - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - cluster_
size_ strresource - The resource specifications of a single compute cluster. Unit: ACU.
- engine str
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - engine_
params Mapping[str, str] - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- group_
type str - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - max_
cluster_ intcount - The maximum number of compute clusters that are allowed in the resource group.
- max_
compute_ strresource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- min_
cluster_ intcount - The minimum number of compute clusters that are required in the resource group.
- min_
compute_ strresource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- node_
num int - The number of nodes.
- users Sequence[str]
- The database accounts with which to associate the resource group.
- db
Cluster StringId - The ID of the DBCluster.
- group
Name String - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - cluster
Mode String - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - cluster
Size StringResource - The resource specifications of a single compute cluster. Unit: ACU.
- engine String
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - engine
Params Map<String> - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- group
Type String - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - max
Cluster NumberCount - The maximum number of compute clusters that are allowed in the resource group.
- max
Compute StringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- min
Cluster NumberCount - The minimum number of compute clusters that are required in the resource group.
- min
Compute StringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- node
Num Number - The number of nodes.
- users List<String>
- The database accounts with which to associate the resource group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceGroup resource produces the following output properties:
- Connection
String string - (Available since v1.261.0) The endpoint of the resource group.
- Create
Time string - The time when the resource group was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port string
- (Available since v1.261.0) The port number of the resource group.
- Status string
- (Available since v1.261.0) The status of the resource group.
- Update
Time string - The time when the resource group was updated.
- User string
- The database accounts that are associated with the resource group.
- Connection
String string - (Available since v1.261.0) The endpoint of the resource group.
- Create
Time string - The time when the resource group was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Port string
- (Available since v1.261.0) The port number of the resource group.
- Status string
- (Available since v1.261.0) The status of the resource group.
- Update
Time string - The time when the resource group was updated.
- User string
- The database accounts that are associated with the resource group.
- connection
String String - (Available since v1.261.0) The endpoint of the resource group.
- create
Time String - The time when the resource group was created.
- id String
- The provider-assigned unique ID for this managed resource.
- port String
- (Available since v1.261.0) The port number of the resource group.
- status String
- (Available since v1.261.0) The status of the resource group.
- update
Time String - The time when the resource group was updated.
- user String
- The database accounts that are associated with the resource group.
- connection
String string - (Available since v1.261.0) The endpoint of the resource group.
- create
Time string - The time when the resource group was created.
- id string
- The provider-assigned unique ID for this managed resource.
- port string
- (Available since v1.261.0) The port number of the resource group.
- status string
- (Available since v1.261.0) The status of the resource group.
- update
Time string - The time when the resource group was updated.
- user string
- The database accounts that are associated with the resource group.
- connection_
string str - (Available since v1.261.0) The endpoint of the resource group.
- create_
time str - The time when the resource group was created.
- id str
- The provider-assigned unique ID for this managed resource.
- port str
- (Available since v1.261.0) The port number of the resource group.
- status str
- (Available since v1.261.0) The status of the resource group.
- update_
time str - The time when the resource group was updated.
- user str
- The database accounts that are associated with the resource group.
- connection
String String - (Available since v1.261.0) The endpoint of the resource group.
- create
Time String - The time when the resource group was created.
- id String
- The provider-assigned unique ID for this managed resource.
- port String
- (Available since v1.261.0) The port number of the resource group.
- status String
- (Available since v1.261.0) The status of the resource group.
- update
Time String - The time when the resource group was updated.
- user String
- The database accounts that are associated with the resource group.
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,
cluster_mode: Optional[str] = None,
cluster_size_resource: Optional[str] = None,
connection_string: Optional[str] = None,
create_time: Optional[str] = None,
db_cluster_id: Optional[str] = None,
engine: Optional[str] = None,
engine_params: Optional[Mapping[str, str]] = None,
group_name: Optional[str] = None,
group_type: Optional[str] = None,
max_cluster_count: Optional[int] = None,
max_compute_resource: Optional[str] = None,
min_cluster_count: Optional[int] = None,
min_compute_resource: Optional[str] = None,
node_num: Optional[int] = None,
port: Optional[str] = None,
status: Optional[str] = None,
update_time: Optional[str] = None,
user: Optional[str] = None,
users: Optional[Sequence[str]] = None) -> ResourceGroupfunc 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)resources: _: type: alicloud:adb:ResourceGroup 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.
- Cluster
Mode string - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - Cluster
Size stringResource - The resource specifications of a single compute cluster. Unit: ACU.
- Connection
String string - (Available since v1.261.0) The endpoint of the resource group.
- Create
Time string - The time when the resource group was created.
- Db
Cluster stringId - The ID of the DBCluster.
- Engine string
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - Engine
Params Dictionary<string, string> - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- Group
Name string - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - Group
Type string - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - Max
Cluster intCount - The maximum number of compute clusters that are allowed in the resource group.
- Max
Compute stringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- Min
Cluster intCount - The minimum number of compute clusters that are required in the resource group.
- Min
Compute stringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- Node
Num int - The number of nodes.
- Port string
- (Available since v1.261.0) The port number of the resource group.
- Status string
- (Available since v1.261.0) The status of the resource group.
- Update
Time string - The time when the resource group was updated.
- User string
- The database accounts that are associated with the resource group.
- Users List<string>
- The database accounts with which to associate the resource group.
- Cluster
Mode string - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - Cluster
Size stringResource - The resource specifications of a single compute cluster. Unit: ACU.
- Connection
String string - (Available since v1.261.0) The endpoint of the resource group.
- Create
Time string - The time when the resource group was created.
- Db
Cluster stringId - The ID of the DBCluster.
- Engine string
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - Engine
Params map[string]string - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- Group
Name string - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - Group
Type string - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - Max
Cluster intCount - The maximum number of compute clusters that are allowed in the resource group.
- Max
Compute stringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- Min
Cluster intCount - The minimum number of compute clusters that are required in the resource group.
- Min
Compute stringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- Node
Num int - The number of nodes.
- Port string
- (Available since v1.261.0) The port number of the resource group.
- Status string
- (Available since v1.261.0) The status of the resource group.
- Update
Time string - The time when the resource group was updated.
- User string
- The database accounts that are associated with the resource group.
- Users []string
- The database accounts with which to associate the resource group.
- cluster
Mode String - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - cluster
Size StringResource - The resource specifications of a single compute cluster. Unit: ACU.
- connection
String String - (Available since v1.261.0) The endpoint of the resource group.
- create
Time String - The time when the resource group was created.
- db
Cluster StringId - The ID of the DBCluster.
- engine String
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - engine
Params Map<String,String> - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- group
Name String - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - group
Type String - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - max
Cluster IntegerCount - The maximum number of compute clusters that are allowed in the resource group.
- max
Compute StringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- min
Cluster IntegerCount - The minimum number of compute clusters that are required in the resource group.
- min
Compute StringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- node
Num Integer - The number of nodes.
- port String
- (Available since v1.261.0) The port number of the resource group.
- status String
- (Available since v1.261.0) The status of the resource group.
- update
Time String - The time when the resource group was updated.
- user String
- The database accounts that are associated with the resource group.
- users List<String>
- The database accounts with which to associate the resource group.
- cluster
Mode string - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - cluster
Size stringResource - The resource specifications of a single compute cluster. Unit: ACU.
- connection
String string - (Available since v1.261.0) The endpoint of the resource group.
- create
Time string - The time when the resource group was created.
- db
Cluster stringId - The ID of the DBCluster.
- engine string
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - engine
Params {[key: string]: string} - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- group
Name string - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - group
Type string - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - max
Cluster numberCount - The maximum number of compute clusters that are allowed in the resource group.
- max
Compute stringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- min
Cluster numberCount - The minimum number of compute clusters that are required in the resource group.
- min
Compute stringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- node
Num number - The number of nodes.
- port string
- (Available since v1.261.0) The port number of the resource group.
- status string
- (Available since v1.261.0) The status of the resource group.
- update
Time string - The time when the resource group was updated.
- user string
- The database accounts that are associated with the resource group.
- users string[]
- The database accounts with which to associate the resource group.
- cluster_
mode str - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - cluster_
size_ strresource - The resource specifications of a single compute cluster. Unit: ACU.
- connection_
string str - (Available since v1.261.0) The endpoint of the resource group.
- create_
time str - The time when the resource group was created.
- db_
cluster_ strid - The ID of the DBCluster.
- engine str
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - engine_
params Mapping[str, str] - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- group_
name str - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - group_
type str - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - max_
cluster_ intcount - The maximum number of compute clusters that are allowed in the resource group.
- max_
compute_ strresource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- min_
cluster_ intcount - The minimum number of compute clusters that are required in the resource group.
- min_
compute_ strresource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- node_
num int - The number of nodes.
- port str
- (Available since v1.261.0) The port number of the resource group.
- status str
- (Available since v1.261.0) The status of the resource group.
- update_
time str - The time when the resource group was updated.
- user str
- The database accounts that are associated with the resource group.
- users Sequence[str]
- The database accounts with which to associate the resource group.
- cluster
Mode String - The working mode of the resource group. Default value:
Disable. Valid values:Disable,AutoScale. - cluster
Size StringResource - The resource specifications of a single compute cluster. Unit: ACU.
- connection
String String - (Available since v1.261.0) The endpoint of the resource group.
- create
Time String - The time when the resource group was created.
- db
Cluster StringId - The ID of the DBCluster.
- engine String
- The engine of the resource group. Default value:
AnalyticDB. Valid values:AnalyticDB,SparkWarehouse. - engine
Params Map<String> - The Spark application configuration parameters that can be applied to all Spark jobs executed in the resource group.
- group
Name String - The name of the resource group. The
group_namecan be up to 255 characters in length and can contain digits, uppercase letters, hyphens (-), and underscores (_). It must start with a digit or uppercase letter. - group
Type String - The query execution mode. Default value:
interactive. Valid values:interactive,batch. - max
Cluster NumberCount - The maximum number of compute clusters that are allowed in the resource group.
- max
Compute StringResource - The maximum amount of reserved computing resources, which refers to the amount of resources that are not allocated in the cluster.
- min
Cluster NumberCount - The minimum number of compute clusters that are required in the resource group.
- min
Compute StringResource - The minimum amount of reserved computing resources. Unit: AnalyticDB compute unit (ACU).
- node
Num Number - The number of nodes.
- port String
- (Available since v1.261.0) The port number of the resource group.
- status String
- (Available since v1.261.0) The status of the resource group.
- update
Time String - The time when the resource group was updated.
- user String
- The database accounts that are associated with the resource group.
- users List<String>
- The database accounts with which to associate the resource group.
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
alicloudTerraform Provider.
