flexibleengine.GaussdbCassandraInstance
Explore with Pulumi AI
GaussDB for Cassandra instance management within FlexibleEngine.
Example Usage
create a gaussdb for cassandra instance with tags
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const instance1 = new flexibleengine.GaussdbCassandraInstance("instance1", {
password: _var.password,
flavor: "geminidb.cassandra.xlarge.4",
volumeSize: 100,
vpcId: _var.vpc_id,
subnetId: _var.subnet_id,
securityGroupId: _var.secgroup_id,
availabilityZone: _var.availability_zone,
tags: {
foo: "bar",
key: "value",
},
});
import pulumi
import pulumi_flexibleengine as flexibleengine
instance1 = flexibleengine.GaussdbCassandraInstance("instance1",
password=var["password"],
flavor="geminidb.cassandra.xlarge.4",
volume_size=100,
vpc_id=var["vpc_id"],
subnet_id=var["subnet_id"],
security_group_id=var["secgroup_id"],
availability_zone=var["availability_zone"],
tags={
"foo": "bar",
"key": "value",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewGaussdbCassandraInstance(ctx, "instance1", &flexibleengine.GaussdbCassandraInstanceArgs{
Password: pulumi.Any(_var.Password),
Flavor: pulumi.String("geminidb.cassandra.xlarge.4"),
VolumeSize: pulumi.Float64(100),
VpcId: pulumi.Any(_var.Vpc_id),
SubnetId: pulumi.Any(_var.Subnet_id),
SecurityGroupId: pulumi.Any(_var.Secgroup_id),
AvailabilityZone: pulumi.Any(_var.Availability_zone),
Tags: pulumi.StringMap{
"foo": pulumi.String("bar"),
"key": pulumi.String("value"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var instance1 = new Flexibleengine.GaussdbCassandraInstance("instance1", new()
{
Password = @var.Password,
Flavor = "geminidb.cassandra.xlarge.4",
VolumeSize = 100,
VpcId = @var.Vpc_id,
SubnetId = @var.Subnet_id,
SecurityGroupId = @var.Secgroup_id,
AvailabilityZone = @var.Availability_zone,
Tags =
{
{ "foo", "bar" },
{ "key", "value" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.GaussdbCassandraInstance;
import com.pulumi.flexibleengine.GaussdbCassandraInstanceArgs;
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) {
var instance1 = new GaussdbCassandraInstance("instance1", GaussdbCassandraInstanceArgs.builder()
.password(var_.password())
.flavor("geminidb.cassandra.xlarge.4")
.volumeSize(100)
.vpcId(var_.vpc_id())
.subnetId(var_.subnet_id())
.securityGroupId(var_.secgroup_id())
.availabilityZone(var_.availability_zone())
.tags(Map.ofEntries(
Map.entry("foo", "bar"),
Map.entry("key", "value")
))
.build());
}
}
resources:
instance1:
type: flexibleengine:GaussdbCassandraInstance
properties:
password: ${var.password}
flavor: geminidb.cassandra.xlarge.4
volumeSize: 100
vpcId: ${var.vpc_id}
subnetId: ${var.subnet_id}
securityGroupId: ${var.secgroup_id}
availabilityZone: ${var.availability_zone}
tags:
foo: bar
key: value
create a gaussdb cassandra instance with backup strategy
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const instance1 = new flexibleengine.GaussdbCassandraInstance("instance1", {
password: _var.password,
flavor: "geminidb.cassandra.xlarge.4",
volumeSize: 100,
vpcId: _var.vpc_id,
subnetId: _var.subnet_id,
securityGroupId: _var.secgroup_id,
availabilityZone: _var.availability_zone,
backupStrategy: {
startTime: "03:00-04:00",
keepDays: 14,
},
});
import pulumi
import pulumi_flexibleengine as flexibleengine
instance1 = flexibleengine.GaussdbCassandraInstance("instance1",
password=var["password"],
flavor="geminidb.cassandra.xlarge.4",
volume_size=100,
vpc_id=var["vpc_id"],
subnet_id=var["subnet_id"],
security_group_id=var["secgroup_id"],
availability_zone=var["availability_zone"],
backup_strategy={
"start_time": "03:00-04:00",
"keep_days": 14,
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewGaussdbCassandraInstance(ctx, "instance1", &flexibleengine.GaussdbCassandraInstanceArgs{
Password: pulumi.Any(_var.Password),
Flavor: pulumi.String("geminidb.cassandra.xlarge.4"),
VolumeSize: pulumi.Float64(100),
VpcId: pulumi.Any(_var.Vpc_id),
SubnetId: pulumi.Any(_var.Subnet_id),
SecurityGroupId: pulumi.Any(_var.Secgroup_id),
AvailabilityZone: pulumi.Any(_var.Availability_zone),
BackupStrategy: &flexibleengine.GaussdbCassandraInstanceBackupStrategyArgs{
StartTime: pulumi.String("03:00-04:00"),
KeepDays: pulumi.Float64(14),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var instance1 = new Flexibleengine.GaussdbCassandraInstance("instance1", new()
{
Password = @var.Password,
Flavor = "geminidb.cassandra.xlarge.4",
VolumeSize = 100,
VpcId = @var.Vpc_id,
SubnetId = @var.Subnet_id,
SecurityGroupId = @var.Secgroup_id,
AvailabilityZone = @var.Availability_zone,
BackupStrategy = new Flexibleengine.Inputs.GaussdbCassandraInstanceBackupStrategyArgs
{
StartTime = "03:00-04:00",
KeepDays = 14,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.GaussdbCassandraInstance;
import com.pulumi.flexibleengine.GaussdbCassandraInstanceArgs;
import com.pulumi.flexibleengine.inputs.GaussdbCassandraInstanceBackupStrategyArgs;
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) {
var instance1 = new GaussdbCassandraInstance("instance1", GaussdbCassandraInstanceArgs.builder()
.password(var_.password())
.flavor("geminidb.cassandra.xlarge.4")
.volumeSize(100)
.vpcId(var_.vpc_id())
.subnetId(var_.subnet_id())
.securityGroupId(var_.secgroup_id())
.availabilityZone(var_.availability_zone())
.backupStrategy(GaussdbCassandraInstanceBackupStrategyArgs.builder()
.startTime("03:00-04:00")
.keepDays(14)
.build())
.build());
}
}
resources:
instance1:
type: flexibleengine:GaussdbCassandraInstance
properties:
password: ${var.password}
flavor: geminidb.cassandra.xlarge.4
volumeSize: 100
vpcId: ${var.vpc_id}
subnetId: ${var.subnet_id}
securityGroupId: ${var.secgroup_id}
availabilityZone: ${var.availability_zone}
backupStrategy:
startTime: 03:00-04:00
keepDays: 14
Create GaussdbCassandraInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new GaussdbCassandraInstance(name: string, args: GaussdbCassandraInstanceArgs, opts?: CustomResourceOptions);
@overload
def GaussdbCassandraInstance(resource_name: str,
args: GaussdbCassandraInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def GaussdbCassandraInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
flavor: Optional[str] = None,
availability_zone: Optional[str] = None,
vpc_id: Optional[str] = None,
volume_size: Optional[float] = None,
subnet_id: Optional[str] = None,
password: Optional[str] = None,
name: Optional[str] = None,
period: Optional[float] = None,
enterprise_project_id: Optional[str] = None,
dedicated_resource_id: Optional[str] = None,
force_import: Optional[bool] = None,
gaussdb_cassandra_instance_id: Optional[str] = None,
auto_renew: Optional[str] = None,
node_num: Optional[float] = None,
datastore: Optional[GaussdbCassandraInstanceDatastoreArgs] = None,
dedicated_resource_name: Optional[str] = None,
period_unit: Optional[str] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
ssl: Optional[bool] = None,
configuration_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[GaussdbCassandraInstanceTimeoutsArgs] = None,
charging_mode: Optional[str] = None,
backup_strategy: Optional[GaussdbCassandraInstanceBackupStrategyArgs] = None)
func NewGaussdbCassandraInstance(ctx *Context, name string, args GaussdbCassandraInstanceArgs, opts ...ResourceOption) (*GaussdbCassandraInstance, error)
public GaussdbCassandraInstance(string name, GaussdbCassandraInstanceArgs args, CustomResourceOptions? opts = null)
public GaussdbCassandraInstance(String name, GaussdbCassandraInstanceArgs args)
public GaussdbCassandraInstance(String name, GaussdbCassandraInstanceArgs args, CustomResourceOptions options)
type: flexibleengine:GaussdbCassandraInstance
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 GaussdbCassandraInstanceArgs
- 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 GaussdbCassandraInstanceArgs
- 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 GaussdbCassandraInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GaussdbCassandraInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args GaussdbCassandraInstanceArgs
- 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 gaussdbCassandraInstanceResource = new Flexibleengine.GaussdbCassandraInstance("gaussdbCassandraInstanceResource", new()
{
Flavor = "string",
AvailabilityZone = "string",
VpcId = "string",
VolumeSize = 0,
SubnetId = "string",
Password = "string",
Name = "string",
Period = 0,
EnterpriseProjectId = "string",
DedicatedResourceId = "string",
ForceImport = false,
GaussdbCassandraInstanceId = "string",
AutoRenew = "string",
NodeNum = 0,
Datastore = new Flexibleengine.Inputs.GaussdbCassandraInstanceDatastoreArgs
{
Engine = "string",
StorageEngine = "string",
Version = "string",
},
DedicatedResourceName = "string",
PeriodUnit = "string",
Region = "string",
SecurityGroupId = "string",
Ssl = false,
ConfigurationId = "string",
Tags =
{
{ "string", "string" },
},
Timeouts = new Flexibleengine.Inputs.GaussdbCassandraInstanceTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
ChargingMode = "string",
BackupStrategy = new Flexibleengine.Inputs.GaussdbCassandraInstanceBackupStrategyArgs
{
StartTime = "string",
KeepDays = 0,
},
});
example, err := flexibleengine.NewGaussdbCassandraInstance(ctx, "gaussdbCassandraInstanceResource", &flexibleengine.GaussdbCassandraInstanceArgs{
Flavor: pulumi.String("string"),
AvailabilityZone: pulumi.String("string"),
VpcId: pulumi.String("string"),
VolumeSize: pulumi.Float64(0),
SubnetId: pulumi.String("string"),
Password: pulumi.String("string"),
Name: pulumi.String("string"),
Period: pulumi.Float64(0),
EnterpriseProjectId: pulumi.String("string"),
DedicatedResourceId: pulumi.String("string"),
ForceImport: pulumi.Bool(false),
GaussdbCassandraInstanceId: pulumi.String("string"),
AutoRenew: pulumi.String("string"),
NodeNum: pulumi.Float64(0),
Datastore: &flexibleengine.GaussdbCassandraInstanceDatastoreArgs{
Engine: pulumi.String("string"),
StorageEngine: pulumi.String("string"),
Version: pulumi.String("string"),
},
DedicatedResourceName: pulumi.String("string"),
PeriodUnit: pulumi.String("string"),
Region: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
Ssl: pulumi.Bool(false),
ConfigurationId: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Timeouts: &flexibleengine.GaussdbCassandraInstanceTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
ChargingMode: pulumi.String("string"),
BackupStrategy: &flexibleengine.GaussdbCassandraInstanceBackupStrategyArgs{
StartTime: pulumi.String("string"),
KeepDays: pulumi.Float64(0),
},
})
var gaussdbCassandraInstanceResource = new GaussdbCassandraInstance("gaussdbCassandraInstanceResource", GaussdbCassandraInstanceArgs.builder()
.flavor("string")
.availabilityZone("string")
.vpcId("string")
.volumeSize(0)
.subnetId("string")
.password("string")
.name("string")
.period(0)
.enterpriseProjectId("string")
.dedicatedResourceId("string")
.forceImport(false)
.gaussdbCassandraInstanceId("string")
.autoRenew("string")
.nodeNum(0)
.datastore(GaussdbCassandraInstanceDatastoreArgs.builder()
.engine("string")
.storageEngine("string")
.version("string")
.build())
.dedicatedResourceName("string")
.periodUnit("string")
.region("string")
.securityGroupId("string")
.ssl(false)
.configurationId("string")
.tags(Map.of("string", "string"))
.timeouts(GaussdbCassandraInstanceTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.chargingMode("string")
.backupStrategy(GaussdbCassandraInstanceBackupStrategyArgs.builder()
.startTime("string")
.keepDays(0)
.build())
.build());
gaussdb_cassandra_instance_resource = flexibleengine.GaussdbCassandraInstance("gaussdbCassandraInstanceResource",
flavor="string",
availability_zone="string",
vpc_id="string",
volume_size=0,
subnet_id="string",
password="string",
name="string",
period=0,
enterprise_project_id="string",
dedicated_resource_id="string",
force_import=False,
gaussdb_cassandra_instance_id="string",
auto_renew="string",
node_num=0,
datastore={
"engine": "string",
"storage_engine": "string",
"version": "string",
},
dedicated_resource_name="string",
period_unit="string",
region="string",
security_group_id="string",
ssl=False,
configuration_id="string",
tags={
"string": "string",
},
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
charging_mode="string",
backup_strategy={
"start_time": "string",
"keep_days": 0,
})
const gaussdbCassandraInstanceResource = new flexibleengine.GaussdbCassandraInstance("gaussdbCassandraInstanceResource", {
flavor: "string",
availabilityZone: "string",
vpcId: "string",
volumeSize: 0,
subnetId: "string",
password: "string",
name: "string",
period: 0,
enterpriseProjectId: "string",
dedicatedResourceId: "string",
forceImport: false,
gaussdbCassandraInstanceId: "string",
autoRenew: "string",
nodeNum: 0,
datastore: {
engine: "string",
storageEngine: "string",
version: "string",
},
dedicatedResourceName: "string",
periodUnit: "string",
region: "string",
securityGroupId: "string",
ssl: false,
configurationId: "string",
tags: {
string: "string",
},
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
chargingMode: "string",
backupStrategy: {
startTime: "string",
keepDays: 0,
},
});
type: flexibleengine:GaussdbCassandraInstance
properties:
autoRenew: string
availabilityZone: string
backupStrategy:
keepDays: 0
startTime: string
chargingMode: string
configurationId: string
datastore:
engine: string
storageEngine: string
version: string
dedicatedResourceId: string
dedicatedResourceName: string
enterpriseProjectId: string
flavor: string
forceImport: false
gaussdbCassandraInstanceId: string
name: string
nodeNum: 0
password: string
period: 0
periodUnit: string
region: string
securityGroupId: string
ssl: false
subnetId: string
tags:
string: string
timeouts:
create: string
delete: string
update: string
volumeSize: 0
vpcId: string
GaussdbCassandraInstance 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 GaussdbCassandraInstance resource accepts the following input properties:
- Availability
Zone string - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - Flavor string
- Specifies the instance specifications. For details, see DB Instance Specifications
- Password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- Subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Volume
Size double - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Auto
Renew string - Backup
Strategy GaussdbCassandra Instance Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- Charging
Mode string - Configuration
Id string - Specifies the Parameter Template ID.
- Datastore
Gaussdb
Cassandra Instance Datastore - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- Dedicated
Resource stringId - Dedicated
Resource stringName - Enterprise
Project stringId - Force
Import bool - If specified, try to import the instance instead of creating if the name already existed.
- Gaussdb
Cassandra stringInstance Id - Indicates the node ID.
- Name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Node
Num double - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- Period double
- Period
Unit string - Region string
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Ssl bool
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- Dictionary<string, string>
The key/value pairs to associate with the instance.
The
datastore
block supports:- Timeouts
Gaussdb
Cassandra Instance Timeouts
- Availability
Zone string - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - Flavor string
- Specifies the instance specifications. For details, see DB Instance Specifications
- Password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- Subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Volume
Size float64 - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Auto
Renew string - Backup
Strategy GaussdbCassandra Instance Backup Strategy Args - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- Charging
Mode string - Configuration
Id string - Specifies the Parameter Template ID.
- Datastore
Gaussdb
Cassandra Instance Datastore Args - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- Dedicated
Resource stringId - Dedicated
Resource stringName - Enterprise
Project stringId - Force
Import bool - If specified, try to import the instance instead of creating if the name already existed.
- Gaussdb
Cassandra stringInstance Id - Indicates the node ID.
- Name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Node
Num float64 - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- Period float64
- Period
Unit string - Region string
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Ssl bool
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- map[string]string
The key/value pairs to associate with the instance.
The
datastore
block supports:- Timeouts
Gaussdb
Cassandra Instance Timeouts Args
- availability
Zone String - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - flavor String
- Specifies the instance specifications. For details, see DB Instance Specifications
- password String
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- subnet
Id String - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- volume
Size Double - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Renew String - backup
Strategy GaussdbCassandra Instance Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode String - configuration
Id String - Specifies the Parameter Template ID.
- datastore
Gaussdb
Cassandra Instance Datastore - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- dedicated
Resource StringId - dedicated
Resource StringName - enterprise
Project StringId - force
Import Boolean - If specified, try to import the instance instead of creating if the name already existed.
- gaussdb
Cassandra StringInstance Id - Indicates the node ID.
- name String
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Num Double - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- period Double
- period
Unit String - region String
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- ssl Boolean
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- Map<String,String>
The key/value pairs to associate with the instance.
The
datastore
block supports:- timeouts
Gaussdb
Cassandra Instance Timeouts
- availability
Zone string - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - flavor string
- Specifies the instance specifications. For details, see DB Instance Specifications
- password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- volume
Size number - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Renew string - backup
Strategy GaussdbCassandra Instance Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode string - configuration
Id string - Specifies the Parameter Template ID.
- datastore
Gaussdb
Cassandra Instance Datastore - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- dedicated
Resource stringId - dedicated
Resource stringName - enterprise
Project stringId - force
Import boolean - If specified, try to import the instance instead of creating if the name already existed.
- gaussdb
Cassandra stringInstance Id - Indicates the node ID.
- name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Num number - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- period number
- period
Unit string - region string
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- ssl boolean
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- {[key: string]: string}
The key/value pairs to associate with the instance.
The
datastore
block supports:- timeouts
Gaussdb
Cassandra Instance Timeouts
- availability_
zone str - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - flavor str
- Specifies the instance specifications. For details, see DB Instance Specifications
- password str
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- subnet_
id str - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- volume_
size float - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- vpc_
id str - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto_
renew str - backup_
strategy GaussdbCassandra Instance Backup Strategy Args - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging_
mode str - configuration_
id str - Specifies the Parameter Template ID.
- datastore
Gaussdb
Cassandra Instance Datastore Args - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- dedicated_
resource_ strid - dedicated_
resource_ strname - enterprise_
project_ strid - force_
import bool - If specified, try to import the instance instead of creating if the name already existed.
- gaussdb_
cassandra_ strinstance_ id - Indicates the node ID.
- name str
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node_
num float - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- period float
- period_
unit str - region str
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- security_
group_ strid - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- ssl bool
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- Mapping[str, str]
The key/value pairs to associate with the instance.
The
datastore
block supports:- timeouts
Gaussdb
Cassandra Instance Timeouts Args
- availability
Zone String - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - flavor String
- Specifies the instance specifications. For details, see DB Instance Specifications
- password String
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- subnet
Id String - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- volume
Size Number - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Renew String - backup
Strategy Property Map - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode String - configuration
Id String - Specifies the Parameter Template ID.
- datastore Property Map
- Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- dedicated
Resource StringId - dedicated
Resource StringName - enterprise
Project StringId - force
Import Boolean - If specified, try to import the instance instead of creating if the name already existed.
- gaussdb
Cassandra StringInstance Id - Indicates the node ID.
- name String
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Num Number - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- period Number
- period
Unit String - region String
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- ssl Boolean
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- Map<String>
The key/value pairs to associate with the instance.
The
datastore
block supports:- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the GaussdbCassandraInstance resource produces the following output properties:
- Db
User stringName - Indicates the default username.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lb
Ip stringAddress - Indicates the LB IP address of the db.
- Lb
Port string - Indicates the LB port of the db.
- Mode string
- Indicates the instance type.
- Nodes
List<Gaussdb
Cassandra Instance Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- Port double
- Indicates the database port.
- Private
Ips List<string> - Indicates the IP address list of the db.
- Status string
- Indicates the node status.
- Db
User stringName - Indicates the default username.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lb
Ip stringAddress - Indicates the LB IP address of the db.
- Lb
Port string - Indicates the LB port of the db.
- Mode string
- Indicates the instance type.
- Nodes
[]Gaussdb
Cassandra Instance Node - Indicates the instance nodes information. The nodes object structure is documented below.
- Port float64
- Indicates the database port.
- Private
Ips []string - Indicates the IP address list of the db.
- Status string
- Indicates the node status.
- db
User StringName - Indicates the default username.
- id String
- The provider-assigned unique ID for this managed resource.
- lb
Ip StringAddress - Indicates the LB IP address of the db.
- lb
Port String - Indicates the LB port of the db.
- mode String
- Indicates the instance type.
- nodes
List<Gaussdb
Cassandra Instance Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- port Double
- Indicates the database port.
- private
Ips List<String> - Indicates the IP address list of the db.
- status String
- Indicates the node status.
- db
User stringName - Indicates the default username.
- id string
- The provider-assigned unique ID for this managed resource.
- lb
Ip stringAddress - Indicates the LB IP address of the db.
- lb
Port string - Indicates the LB port of the db.
- mode string
- Indicates the instance type.
- nodes
Gaussdb
Cassandra Instance Node[] - Indicates the instance nodes information. The nodes object structure is documented below.
- port number
- Indicates the database port.
- private
Ips string[] - Indicates the IP address list of the db.
- status string
- Indicates the node status.
- db_
user_ strname - Indicates the default username.
- id str
- The provider-assigned unique ID for this managed resource.
- lb_
ip_ straddress - Indicates the LB IP address of the db.
- lb_
port str - Indicates the LB port of the db.
- mode str
- Indicates the instance type.
- nodes
Sequence[Gaussdb
Cassandra Instance Node] - Indicates the instance nodes information. The nodes object structure is documented below.
- port float
- Indicates the database port.
- private_
ips Sequence[str] - Indicates the IP address list of the db.
- status str
- Indicates the node status.
- db
User StringName - Indicates the default username.
- id String
- The provider-assigned unique ID for this managed resource.
- lb
Ip StringAddress - Indicates the LB IP address of the db.
- lb
Port String - Indicates the LB port of the db.
- mode String
- Indicates the instance type.
- nodes List<Property Map>
- Indicates the instance nodes information. The nodes object structure is documented below.
- port Number
- Indicates the database port.
- private
Ips List<String> - Indicates the IP address list of the db.
- status String
- Indicates the node status.
Look up Existing GaussdbCassandraInstance Resource
Get an existing GaussdbCassandraInstance 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?: GaussdbCassandraInstanceState, opts?: CustomResourceOptions): GaussdbCassandraInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auto_renew: Optional[str] = None,
availability_zone: Optional[str] = None,
backup_strategy: Optional[GaussdbCassandraInstanceBackupStrategyArgs] = None,
charging_mode: Optional[str] = None,
configuration_id: Optional[str] = None,
datastore: Optional[GaussdbCassandraInstanceDatastoreArgs] = None,
db_user_name: Optional[str] = None,
dedicated_resource_id: Optional[str] = None,
dedicated_resource_name: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
flavor: Optional[str] = None,
force_import: Optional[bool] = None,
gaussdb_cassandra_instance_id: Optional[str] = None,
lb_ip_address: Optional[str] = None,
lb_port: Optional[str] = None,
mode: Optional[str] = None,
name: Optional[str] = None,
node_num: Optional[float] = None,
nodes: Optional[Sequence[GaussdbCassandraInstanceNodeArgs]] = None,
password: Optional[str] = None,
period: Optional[float] = None,
period_unit: Optional[str] = None,
port: Optional[float] = None,
private_ips: Optional[Sequence[str]] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
ssl: Optional[bool] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
timeouts: Optional[GaussdbCassandraInstanceTimeoutsArgs] = None,
volume_size: Optional[float] = None,
vpc_id: Optional[str] = None) -> GaussdbCassandraInstance
func GetGaussdbCassandraInstance(ctx *Context, name string, id IDInput, state *GaussdbCassandraInstanceState, opts ...ResourceOption) (*GaussdbCassandraInstance, error)
public static GaussdbCassandraInstance Get(string name, Input<string> id, GaussdbCassandraInstanceState? state, CustomResourceOptions? opts = null)
public static GaussdbCassandraInstance get(String name, Output<String> id, GaussdbCassandraInstanceState state, CustomResourceOptions options)
resources: _: type: flexibleengine:GaussdbCassandraInstance get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Auto
Renew string - Availability
Zone string - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - Backup
Strategy GaussdbCassandra Instance Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- Charging
Mode string - Configuration
Id string - Specifies the Parameter Template ID.
- Datastore
Gaussdb
Cassandra Instance Datastore - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- Db
User stringName - Indicates the default username.
- Dedicated
Resource stringId - Dedicated
Resource stringName - Enterprise
Project stringId - Flavor string
- Specifies the instance specifications. For details, see DB Instance Specifications
- Force
Import bool - If specified, try to import the instance instead of creating if the name already existed.
- Gaussdb
Cassandra stringInstance Id - Indicates the node ID.
- Lb
Ip stringAddress - Indicates the LB IP address of the db.
- Lb
Port string - Indicates the LB port of the db.
- Mode string
- Indicates the instance type.
- Name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Node
Num double - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- Nodes
List<Gaussdb
Cassandra Instance Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- Password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- Period double
- Period
Unit string - Port double
- Indicates the database port.
- Private
Ips List<string> - Indicates the IP address list of the db.
- Region string
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Ssl bool
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- Status string
- Indicates the node status.
- Subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Dictionary<string, string>
The key/value pairs to associate with the instance.
The
datastore
block supports:- Timeouts
Gaussdb
Cassandra Instance Timeouts - Volume
Size double - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- Auto
Renew string - Availability
Zone string - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - Backup
Strategy GaussdbCassandra Instance Backup Strategy Args - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- Charging
Mode string - Configuration
Id string - Specifies the Parameter Template ID.
- Datastore
Gaussdb
Cassandra Instance Datastore Args - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- Db
User stringName - Indicates the default username.
- Dedicated
Resource stringId - Dedicated
Resource stringName - Enterprise
Project stringId - Flavor string
- Specifies the instance specifications. For details, see DB Instance Specifications
- Force
Import bool - If specified, try to import the instance instead of creating if the name already existed.
- Gaussdb
Cassandra stringInstance Id - Indicates the node ID.
- Lb
Ip stringAddress - Indicates the LB IP address of the db.
- Lb
Port string - Indicates the LB port of the db.
- Mode string
- Indicates the instance type.
- Name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Node
Num float64 - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- Nodes
[]Gaussdb
Cassandra Instance Node Args - Indicates the instance nodes information. The nodes object structure is documented below.
- Password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- Period float64
- Period
Unit string - Port float64
- Indicates the database port.
- Private
Ips []string - Indicates the IP address list of the db.
- Region string
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- Security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- Ssl bool
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- Status string
- Indicates the node status.
- Subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- map[string]string
The key/value pairs to associate with the instance.
The
datastore
block supports:- Timeouts
Gaussdb
Cassandra Instance Timeouts Args - Volume
Size float64 - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- Vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Renew String - availability
Zone String - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - backup
Strategy GaussdbCassandra Instance Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode String - configuration
Id String - Specifies the Parameter Template ID.
- datastore
Gaussdb
Cassandra Instance Datastore - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- db
User StringName - Indicates the default username.
- dedicated
Resource StringId - dedicated
Resource StringName - enterprise
Project StringId - flavor String
- Specifies the instance specifications. For details, see DB Instance Specifications
- force
Import Boolean - If specified, try to import the instance instead of creating if the name already existed.
- gaussdb
Cassandra StringInstance Id - Indicates the node ID.
- lb
Ip StringAddress - Indicates the LB IP address of the db.
- lb
Port String - Indicates the LB port of the db.
- mode String
- Indicates the instance type.
- name String
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Num Double - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- nodes
List<Gaussdb
Cassandra Instance Node> - Indicates the instance nodes information. The nodes object structure is documented below.
- password String
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- period Double
- period
Unit String - port Double
- Indicates the database port.
- private
Ips List<String> - Indicates the IP address list of the db.
- region String
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- ssl Boolean
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- status String
- Indicates the node status.
- subnet
Id String - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Map<String,String>
The key/value pairs to associate with the instance.
The
datastore
block supports:- timeouts
Gaussdb
Cassandra Instance Timeouts - volume
Size Double - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Renew string - availability
Zone string - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - backup
Strategy GaussdbCassandra Instance Backup Strategy - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode string - configuration
Id string - Specifies the Parameter Template ID.
- datastore
Gaussdb
Cassandra Instance Datastore - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- db
User stringName - Indicates the default username.
- dedicated
Resource stringId - dedicated
Resource stringName - enterprise
Project stringId - flavor string
- Specifies the instance specifications. For details, see DB Instance Specifications
- force
Import boolean - If specified, try to import the instance instead of creating if the name already existed.
- gaussdb
Cassandra stringInstance Id - Indicates the node ID.
- lb
Ip stringAddress - Indicates the LB IP address of the db.
- lb
Port string - Indicates the LB port of the db.
- mode string
- Indicates the instance type.
- name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Num number - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- nodes
Gaussdb
Cassandra Instance Node[] - Indicates the instance nodes information. The nodes object structure is documented below.
- password string
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- period number
- period
Unit string - port number
- Indicates the database port.
- private
Ips string[] - Indicates the IP address list of the db.
- region string
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- security
Group stringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- ssl boolean
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- status string
- Indicates the node status.
- subnet
Id string - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- {[key: string]: string}
The key/value pairs to associate with the instance.
The
datastore
block supports:- timeouts
Gaussdb
Cassandra Instance Timeouts - volume
Size number - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- vpc
Id string - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto_
renew str - availability_
zone str - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - backup_
strategy GaussdbCassandra Instance Backup Strategy Args - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging_
mode str - configuration_
id str - Specifies the Parameter Template ID.
- datastore
Gaussdb
Cassandra Instance Datastore Args - Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- db_
user_ strname - Indicates the default username.
- dedicated_
resource_ strid - dedicated_
resource_ strname - enterprise_
project_ strid - flavor str
- Specifies the instance specifications. For details, see DB Instance Specifications
- force_
import bool - If specified, try to import the instance instead of creating if the name already existed.
- gaussdb_
cassandra_ strinstance_ id - Indicates the node ID.
- lb_
ip_ straddress - Indicates the LB IP address of the db.
- lb_
port str - Indicates the LB port of the db.
- mode str
- Indicates the instance type.
- name str
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node_
num float - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- nodes
Sequence[Gaussdb
Cassandra Instance Node Args] - Indicates the instance nodes information. The nodes object structure is documented below.
- password str
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- period float
- period_
unit str - port float
- Indicates the database port.
- private_
ips Sequence[str] - Indicates the IP address list of the db.
- region str
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- security_
group_ strid - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- ssl bool
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- status str
- Indicates the node status.
- subnet_
id str - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Mapping[str, str]
The key/value pairs to associate with the instance.
The
datastore
block supports:- timeouts
Gaussdb
Cassandra Instance Timeouts Args - volume_
size float - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- vpc_
id str - Specifies the VPC ID. Changing this parameter will create a new resource.
- auto
Renew String - availability
Zone String - Specifies the AZ name. For a three-AZ deployment instance,
use commas (,) to separate the AZs, for example,
cn-north-4a,cn-north-4b,cn-north-4c
. Changing this parameter will create a new resource. - backup
Strategy Property Map - Specifies the advanced backup policy. The backup_strategy object structure is documented below.
- charging
Mode String - configuration
Id String - Specifies the Parameter Template ID.
- datastore Property Map
- Specifies the database information. The datastore object structure is documented below. Changing this parameter will create a new resource.
- db
User StringName - Indicates the default username.
- dedicated
Resource StringId - dedicated
Resource StringName - enterprise
Project StringId - flavor String
- Specifies the instance specifications. For details, see DB Instance Specifications
- force
Import Boolean - If specified, try to import the instance instead of creating if the name already existed.
- gaussdb
Cassandra StringInstance Id - Indicates the node ID.
- lb
Ip StringAddress - Indicates the LB IP address of the db.
- lb
Port String - Indicates the LB port of the db.
- mode String
- Indicates the instance type.
- name String
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- node
Num Number - Specifies the number of nodes, ranges from 3 to 12. Defaults to 3.
- nodes List<Property Map>
- Indicates the instance nodes information. The nodes object structure is documented below.
- password String
- Specifies the database password. The value must be 8 to 32 characters in length, including uppercase and lowercase letters, digits, and special characters, such as ~!@#%^*-_=+? You are advised to enter a strong password to improve security, preventing security risks such as brute force cracking.
- period Number
- period
Unit String - port Number
- Indicates the database port.
- private
Ips List<String> - Indicates the IP address list of the db.
- region String
- The region in which to create the Cassandra instance resource. If omitted, the provider-level region will be used. Changing this creates a new Cassandra instance resource.
- security
Group StringId - Specifies the security group ID. Required if the selected subnet doesn't enable network ACL.
- ssl Boolean
- Specifies whether to enable or disable SSL. Defaults to false. Changing this parameter will create a new resource.
- status String
- Indicates the node status.
- subnet
Id String - Specifies the network ID of a subnet. Changing this parameter will create a new resource.
- Map<String>
The key/value pairs to associate with the instance.
The
datastore
block supports:- timeouts Property Map
- volume
Size Number - Specifies the storage space in GB. The value must be a multiple of 10. For a GaussDB Cassandra DB instance, the minimum storage space is 100 GB, and the maximum storage space is related to the instance performance specifications. For details, see DB Instance Specifications
- vpc
Id String - Specifies the VPC ID. Changing this parameter will create a new resource.
Supporting Types
GaussdbCassandraInstanceBackupStrategy, GaussdbCassandraInstanceBackupStrategyArgs
- Start
Time string - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- Keep
Days double - Specifies the number of days to retain the generated backup files. The value ranges from 0 to 35. If this parameter is set to 0, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- Start
Time string - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- Keep
Days float64 - Specifies the number of days to retain the generated backup files. The value ranges from 0 to 35. If this parameter is set to 0, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- start
Time String - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- keep
Days Double - Specifies the number of days to retain the generated backup files. The value ranges from 0 to 35. If this parameter is set to 0, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- start
Time string - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- keep
Days number - Specifies the number of days to retain the generated backup files. The value ranges from 0 to 35. If this parameter is set to 0, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- start_
time str - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- keep_
days float - Specifies the number of days to retain the generated backup files. The value ranges from 0 to 35. If this parameter is set to 0, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
- start
Time String - Specifies the backup time window. Automated backups will be triggered during the backup time window. It must be a valid value in the "hh:mm-HH:MM" format. The current time is in the UTC format. The HH value must be 1 greater than the hh value. The values of mm and MM must be the same and must be set to 00. Example value: 08:00-09:00, 03:00-04:00.
- keep
Days Number - Specifies the number of days to retain the generated backup files. The value ranges from 0 to 35. If this parameter is set to 0, the automated backup policy is not set. If this parameter is not transferred, the automated backup policy is enabled by default. Backup files are stored for seven days by default.
GaussdbCassandraInstanceDatastore, GaussdbCassandraInstanceDatastoreArgs
- Engine string
- Specifies the database engine. Only "GeminiDB-Cassandra" is supported now. Changing this parameter will create a new resource.
- Storage
Engine string Specifies the storage engine. Only "rocksDB" is supported now. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- Version string
- Specifies the database version. Changing this parameter will create a new resource.
- Engine string
- Specifies the database engine. Only "GeminiDB-Cassandra" is supported now. Changing this parameter will create a new resource.
- Storage
Engine string Specifies the storage engine. Only "rocksDB" is supported now. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- Version string
- Specifies the database version. Changing this parameter will create a new resource.
- engine String
- Specifies the database engine. Only "GeminiDB-Cassandra" is supported now. Changing this parameter will create a new resource.
- storage
Engine String Specifies the storage engine. Only "rocksDB" is supported now. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- version String
- Specifies the database version. Changing this parameter will create a new resource.
- engine string
- Specifies the database engine. Only "GeminiDB-Cassandra" is supported now. Changing this parameter will create a new resource.
- storage
Engine string Specifies the storage engine. Only "rocksDB" is supported now. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- version string
- Specifies the database version. Changing this parameter will create a new resource.
- engine str
- Specifies the database engine. Only "GeminiDB-Cassandra" is supported now. Changing this parameter will create a new resource.
- storage_
engine str Specifies the storage engine. Only "rocksDB" is supported now. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- version str
- Specifies the database version. Changing this parameter will create a new resource.
- engine String
- Specifies the database engine. Only "GeminiDB-Cassandra" is supported now. Changing this parameter will create a new resource.
- storage
Engine String Specifies the storage engine. Only "rocksDB" is supported now. Changing this parameter will create a new resource.
The
backup_strategy
block supports:- version String
- Specifies the database version. Changing this parameter will create a new resource.
GaussdbCassandraInstanceNode, GaussdbCassandraInstanceNodeArgs
- Id string
- Indicates the node ID.
- Name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Private
Ip string - Indicates the private IP address of a node.
- Status string
- Indicates the node status.
- Support
Reduce bool - Indicates whether the node support reduce or not.
- Id string
- Indicates the node ID.
- Name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- Private
Ip string - Indicates the private IP address of a node.
- Status string
- Indicates the node status.
- Support
Reduce bool - Indicates whether the node support reduce or not.
- id String
- Indicates the node ID.
- name String
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- private
Ip String - Indicates the private IP address of a node.
- status String
- Indicates the node status.
- support
Reduce Boolean - Indicates whether the node support reduce or not.
- id string
- Indicates the node ID.
- name string
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- private
Ip string - Indicates the private IP address of a node.
- status string
- Indicates the node status.
- support
Reduce boolean - Indicates whether the node support reduce or not.
- id str
- Indicates the node ID.
- name str
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- private_
ip str - Indicates the private IP address of a node.
- status str
- Indicates the node status.
- support_
reduce bool - Indicates whether the node support reduce or not.
- id String
- Indicates the node ID.
- name String
- Specifies the instance name, which can be the same as an existing instance name. The value must be 4 to 64 characters in length and start with a letter. It is case-sensitive and can contain only letters, digits, hyphens (-), and underscores (_).
- private
Ip String - Indicates the private IP address of a node.
- status String
- Indicates the node status.
- support
Reduce Boolean - Indicates whether the node support reduce or not.
GaussdbCassandraInstanceTimeouts, GaussdbCassandraInstanceTimeoutsArgs
Import
GaussDB Cassandra instance can be imported using the id
, e.g.
bash
$ pulumi import flexibleengine:index/gaussdbCassandraInstance:GaussdbCassandraInstance instance_1 2e045d8b-b226-4aa2-91b9-7e76357655c06
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.