flexibleengine.DdmInstance
Explore with Pulumi AI
Manages DDM instance resource within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const testVpcV1 = new flexibleengine.VpcV1("testVpcV1", {cidr: "192.168.0.0/24"});
const testVpcSubnetV1 = new flexibleengine.VpcSubnetV1("testVpcSubnetV1", {
cidr: "192.168.0.0/24",
gatewayIp: "192.168.0.1",
vpcId: testVpcV1.vpcV1Id,
});
const testNetworkingSecgroupV2 = new flexibleengine.NetworkingSecgroupV2("testNetworkingSecgroupV2", {});
const testAvailabilityZones = flexibleengine.getAvailabilityZones({});
const testDdmEngines = flexibleengine.getDdmEngines({
version: "3.0.8.5",
});
const testDdmFlavors = testDdmEngines.then(testDdmEngines => flexibleengine.getDdmFlavors({
engineId: testDdmEngines.engines?.[0]?.id,
cpuArch: "X86",
}));
const testDdmInstance = new flexibleengine.DdmInstance("testDdmInstance", {
flavorId: testDdmFlavors.then(testDdmFlavors => testDdmFlavors.flavors?.[0]?.id),
nodeNum: 2,
engineId: testDdmEngines.then(testDdmEngines => testDdmEngines.engines?.[0]?.id),
vpcId: testVpcV1.vpcV1Id,
subnetId: testVpcSubnetV1.vpcSubnetV1Id,
securityGroupId: testNetworkingSecgroupV2.networkingSecgroupV2Id,
availabilityZones: [testAvailabilityZones.then(testAvailabilityZones => testAvailabilityZones.names?.[0])],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
test_vpc_v1 = flexibleengine.VpcV1("testVpcV1", cidr="192.168.0.0/24")
test_vpc_subnet_v1 = flexibleengine.VpcSubnetV1("testVpcSubnetV1",
cidr="192.168.0.0/24",
gateway_ip="192.168.0.1",
vpc_id=test_vpc_v1.vpc_v1_id)
test_networking_secgroup_v2 = flexibleengine.NetworkingSecgroupV2("testNetworkingSecgroupV2")
test_availability_zones = flexibleengine.get_availability_zones()
test_ddm_engines = flexibleengine.get_ddm_engines(version="3.0.8.5")
test_ddm_flavors = flexibleengine.get_ddm_flavors(engine_id=test_ddm_engines.engines[0].id,
cpu_arch="X86")
test_ddm_instance = flexibleengine.DdmInstance("testDdmInstance",
flavor_id=test_ddm_flavors.flavors[0].id,
node_num=2,
engine_id=test_ddm_engines.engines[0].id,
vpc_id=test_vpc_v1.vpc_v1_id,
subnet_id=test_vpc_subnet_v1.vpc_subnet_v1_id,
security_group_id=test_networking_secgroup_v2.networking_secgroup_v2_id,
availability_zones=[test_availability_zones.names[0]])
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 {
testVpcV1, err := flexibleengine.NewVpcV1(ctx, "testVpcV1", &flexibleengine.VpcV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
})
if err != nil {
return err
}
testVpcSubnetV1, err := flexibleengine.NewVpcSubnetV1(ctx, "testVpcSubnetV1", &flexibleengine.VpcSubnetV1Args{
Cidr: pulumi.String("192.168.0.0/24"),
GatewayIp: pulumi.String("192.168.0.1"),
VpcId: testVpcV1.VpcV1Id,
})
if err != nil {
return err
}
testNetworkingSecgroupV2, err := flexibleengine.NewNetworkingSecgroupV2(ctx, "testNetworkingSecgroupV2", nil)
if err != nil {
return err
}
testAvailabilityZones, err := flexibleengine.GetAvailabilityZones(ctx, &flexibleengine.GetAvailabilityZonesArgs{}, nil)
if err != nil {
return err
}
testDdmEngines, err := flexibleengine.GetDdmEngines(ctx, &flexibleengine.GetDdmEnginesArgs{
Version: pulumi.StringRef("3.0.8.5"),
}, nil)
if err != nil {
return err
}
testDdmFlavors, err := flexibleengine.GetDdmFlavors(ctx, &flexibleengine.GetDdmFlavorsArgs{
EngineId: testDdmEngines.Engines[0].Id,
CpuArch: pulumi.StringRef("X86"),
}, nil)
if err != nil {
return err
}
_, err = flexibleengine.NewDdmInstance(ctx, "testDdmInstance", &flexibleengine.DdmInstanceArgs{
FlavorId: pulumi.String(testDdmFlavors.Flavors[0].Id),
NodeNum: pulumi.Float64(2),
EngineId: pulumi.String(testDdmEngines.Engines[0].Id),
VpcId: testVpcV1.VpcV1Id,
SubnetId: testVpcSubnetV1.VpcSubnetV1Id,
SecurityGroupId: testNetworkingSecgroupV2.NetworkingSecgroupV2Id,
AvailabilityZones: pulumi.StringArray{
pulumi.String(testAvailabilityZones.Names[0]),
},
})
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 testVpcV1 = new Flexibleengine.VpcV1("testVpcV1", new()
{
Cidr = "192.168.0.0/24",
});
var testVpcSubnetV1 = new Flexibleengine.VpcSubnetV1("testVpcSubnetV1", new()
{
Cidr = "192.168.0.0/24",
GatewayIp = "192.168.0.1",
VpcId = testVpcV1.VpcV1Id,
});
var testNetworkingSecgroupV2 = new Flexibleengine.NetworkingSecgroupV2("testNetworkingSecgroupV2");
var testAvailabilityZones = Flexibleengine.GetAvailabilityZones.Invoke();
var testDdmEngines = Flexibleengine.GetDdmEngines.Invoke(new()
{
Version = "3.0.8.5",
});
var testDdmFlavors = Flexibleengine.GetDdmFlavors.Invoke(new()
{
EngineId = testDdmEngines.Apply(getDdmEnginesResult => getDdmEnginesResult.Engines[0]?.Id),
CpuArch = "X86",
});
var testDdmInstance = new Flexibleengine.DdmInstance("testDdmInstance", new()
{
FlavorId = testDdmFlavors.Apply(getDdmFlavorsResult => getDdmFlavorsResult.Flavors[0]?.Id),
NodeNum = 2,
EngineId = testDdmEngines.Apply(getDdmEnginesResult => getDdmEnginesResult.Engines[0]?.Id),
VpcId = testVpcV1.VpcV1Id,
SubnetId = testVpcSubnetV1.VpcSubnetV1Id,
SecurityGroupId = testNetworkingSecgroupV2.NetworkingSecgroupV2Id,
AvailabilityZones = new[]
{
testAvailabilityZones.Apply(getAvailabilityZonesResult => getAvailabilityZonesResult.Names[0]),
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.VpcV1;
import com.pulumi.flexibleengine.VpcV1Args;
import com.pulumi.flexibleengine.VpcSubnetV1;
import com.pulumi.flexibleengine.VpcSubnetV1Args;
import com.pulumi.flexibleengine.NetworkingSecgroupV2;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetAvailabilityZonesArgs;
import com.pulumi.flexibleengine.inputs.GetDdmEnginesArgs;
import com.pulumi.flexibleengine.inputs.GetDdmFlavorsArgs;
import com.pulumi.flexibleengine.DdmInstance;
import com.pulumi.flexibleengine.DdmInstanceArgs;
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 testVpcV1 = new VpcV1("testVpcV1", VpcV1Args.builder()
.cidr("192.168.0.0/24")
.build());
var testVpcSubnetV1 = new VpcSubnetV1("testVpcSubnetV1", VpcSubnetV1Args.builder()
.cidr("192.168.0.0/24")
.gatewayIp("192.168.0.1")
.vpcId(testVpcV1.vpcV1Id())
.build());
var testNetworkingSecgroupV2 = new NetworkingSecgroupV2("testNetworkingSecgroupV2");
final var testAvailabilityZones = FlexibleengineFunctions.getAvailabilityZones();
final var testDdmEngines = FlexibleengineFunctions.getDdmEngines(GetDdmEnginesArgs.builder()
.version("3.0.8.5")
.build());
final var testDdmFlavors = FlexibleengineFunctions.getDdmFlavors(GetDdmFlavorsArgs.builder()
.engineId(testDdmEngines.applyValue(getDdmEnginesResult -> getDdmEnginesResult.engines()[0].id()))
.cpuArch("X86")
.build());
var testDdmInstance = new DdmInstance("testDdmInstance", DdmInstanceArgs.builder()
.flavorId(testDdmFlavors.applyValue(getDdmFlavorsResult -> getDdmFlavorsResult.flavors()[0].id()))
.nodeNum(2)
.engineId(testDdmEngines.applyValue(getDdmEnginesResult -> getDdmEnginesResult.engines()[0].id()))
.vpcId(testVpcV1.vpcV1Id())
.subnetId(testVpcSubnetV1.vpcSubnetV1Id())
.securityGroupId(testNetworkingSecgroupV2.networkingSecgroupV2Id())
.availabilityZones(testAvailabilityZones.applyValue(getAvailabilityZonesResult -> getAvailabilityZonesResult.names()[0]))
.build());
}
}
resources:
testVpcV1:
type: flexibleengine:VpcV1
properties:
cidr: 192.168.0.0/24
testVpcSubnetV1:
type: flexibleengine:VpcSubnetV1
properties:
cidr: 192.168.0.0/24
gatewayIp: 192.168.0.1
vpcId: ${testVpcV1.vpcV1Id}
testNetworkingSecgroupV2:
type: flexibleengine:NetworkingSecgroupV2
testDdmInstance:
type: flexibleengine:DdmInstance
properties:
flavorId: ${testDdmFlavors.flavors[0].id}
nodeNum: 2
engineId: ${testDdmEngines.engines[0].id}
vpcId: ${testVpcV1.vpcV1Id}
subnetId: ${testVpcSubnetV1.vpcSubnetV1Id}
securityGroupId: ${testNetworkingSecgroupV2.networkingSecgroupV2Id}
availabilityZones:
- ${testAvailabilityZones.names[0]}
variables:
testAvailabilityZones:
fn::invoke:
function: flexibleengine:getAvailabilityZones
arguments: {}
testDdmEngines:
fn::invoke:
function: flexibleengine:getDdmEngines
arguments:
version: 3.0.8.5
testDdmFlavors:
fn::invoke:
function: flexibleengine:getDdmFlavors
arguments:
engineId: ${testDdmEngines.engines[0].id}
cpuArch: X86
Create DdmInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DdmInstance(name: string, args: DdmInstanceArgs, opts?: CustomResourceOptions);
@overload
def DdmInstance(resource_name: str,
args: DdmInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DdmInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
engine_id: Optional[str] = None,
vpc_id: Optional[str] = None,
subnet_id: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
security_group_id: Optional[str] = None,
node_num: Optional[float] = None,
flavor_id: Optional[str] = None,
name: Optional[str] = None,
period_unit: Optional[str] = None,
delete_rds_data: Optional[str] = None,
admin_password: Optional[str] = None,
ddm_instance_id: Optional[str] = None,
param_group_id: Optional[str] = None,
period: Optional[float] = None,
enterprise_project_id: Optional[str] = None,
region: Optional[str] = None,
charging_mode: Optional[str] = None,
auto_renew: Optional[str] = None,
time_zone: Optional[str] = None,
timeouts: Optional[DdmInstanceTimeoutsArgs] = None,
admin_user: Optional[str] = None)
func NewDdmInstance(ctx *Context, name string, args DdmInstanceArgs, opts ...ResourceOption) (*DdmInstance, error)
public DdmInstance(string name, DdmInstanceArgs args, CustomResourceOptions? opts = null)
public DdmInstance(String name, DdmInstanceArgs args)
public DdmInstance(String name, DdmInstanceArgs args, CustomResourceOptions options)
type: flexibleengine:DdmInstance
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 DdmInstanceArgs
- 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 DdmInstanceArgs
- 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 DdmInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DdmInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DdmInstanceArgs
- 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 ddmInstanceResource = new Flexibleengine.DdmInstance("ddmInstanceResource", new()
{
EngineId = "string",
VpcId = "string",
SubnetId = "string",
AvailabilityZones = new[]
{
"string",
},
SecurityGroupId = "string",
NodeNum = 0,
FlavorId = "string",
Name = "string",
PeriodUnit = "string",
DeleteRdsData = "string",
AdminPassword = "string",
DdmInstanceId = "string",
ParamGroupId = "string",
Period = 0,
EnterpriseProjectId = "string",
Region = "string",
ChargingMode = "string",
AutoRenew = "string",
TimeZone = "string",
Timeouts = new Flexibleengine.Inputs.DdmInstanceTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
AdminUser = "string",
});
example, err := flexibleengine.NewDdmInstance(ctx, "ddmInstanceResource", &flexibleengine.DdmInstanceArgs{
EngineId: pulumi.String("string"),
VpcId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
AvailabilityZones: pulumi.StringArray{
pulumi.String("string"),
},
SecurityGroupId: pulumi.String("string"),
NodeNum: pulumi.Float64(0),
FlavorId: pulumi.String("string"),
Name: pulumi.String("string"),
PeriodUnit: pulumi.String("string"),
DeleteRdsData: pulumi.String("string"),
AdminPassword: pulumi.String("string"),
DdmInstanceId: pulumi.String("string"),
ParamGroupId: pulumi.String("string"),
Period: pulumi.Float64(0),
EnterpriseProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
ChargingMode: pulumi.String("string"),
AutoRenew: pulumi.String("string"),
TimeZone: pulumi.String("string"),
Timeouts: &flexibleengine.DdmInstanceTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
AdminUser: pulumi.String("string"),
})
var ddmInstanceResource = new DdmInstance("ddmInstanceResource", DdmInstanceArgs.builder()
.engineId("string")
.vpcId("string")
.subnetId("string")
.availabilityZones("string")
.securityGroupId("string")
.nodeNum(0)
.flavorId("string")
.name("string")
.periodUnit("string")
.deleteRdsData("string")
.adminPassword("string")
.ddmInstanceId("string")
.paramGroupId("string")
.period(0)
.enterpriseProjectId("string")
.region("string")
.chargingMode("string")
.autoRenew("string")
.timeZone("string")
.timeouts(DdmInstanceTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.adminUser("string")
.build());
ddm_instance_resource = flexibleengine.DdmInstance("ddmInstanceResource",
engine_id="string",
vpc_id="string",
subnet_id="string",
availability_zones=["string"],
security_group_id="string",
node_num=0,
flavor_id="string",
name="string",
period_unit="string",
delete_rds_data="string",
admin_password="string",
ddm_instance_id="string",
param_group_id="string",
period=0,
enterprise_project_id="string",
region="string",
charging_mode="string",
auto_renew="string",
time_zone="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
admin_user="string")
const ddmInstanceResource = new flexibleengine.DdmInstance("ddmInstanceResource", {
engineId: "string",
vpcId: "string",
subnetId: "string",
availabilityZones: ["string"],
securityGroupId: "string",
nodeNum: 0,
flavorId: "string",
name: "string",
periodUnit: "string",
deleteRdsData: "string",
adminPassword: "string",
ddmInstanceId: "string",
paramGroupId: "string",
period: 0,
enterpriseProjectId: "string",
region: "string",
chargingMode: "string",
autoRenew: "string",
timeZone: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
adminUser: "string",
});
type: flexibleengine:DdmInstance
properties:
adminPassword: string
adminUser: string
autoRenew: string
availabilityZones:
- string
chargingMode: string
ddmInstanceId: string
deleteRdsData: string
engineId: string
enterpriseProjectId: string
flavorId: string
name: string
nodeNum: 0
paramGroupId: string
period: 0
periodUnit: string
region: string
securityGroupId: string
subnetId: string
timeZone: string
timeouts:
create: string
delete: string
update: string
vpcId: string
DdmInstance 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 DdmInstance resource accepts the following input properties:
- Availability
Zones List<string> Specifies the list of availability zones.
Changing this parameter will create a new resource.
- Engine
Id string Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- Flavor
Id string Specifies the ID of a product.
Changing this parameter will create a new resource.
- Node
Num double - Specifies the number of nodes.
- Security
Group stringId - Specifies the ID of a security group.
- Subnet
Id string Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- Vpc
Id string Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- Admin
Password string Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- Admin
User string Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- Auto
Renew string - Charging
Mode string - Ddm
Instance stringId - The resource ID.
- Delete
Rds stringData - Specifies whether data stored on the associated DB instances is deleted.
- Enterprise
Project stringId - Specifies the enterprise project id.
- Name string
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- Param
Group stringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- Period double
- Period
Unit string - Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Time
Zone string Specifies the time zone.
Changing this parameter will create a new resource.
- Timeouts
Ddm
Instance Timeouts
- Availability
Zones []string Specifies the list of availability zones.
Changing this parameter will create a new resource.
- Engine
Id string Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- Flavor
Id string Specifies the ID of a product.
Changing this parameter will create a new resource.
- Node
Num float64 - Specifies the number of nodes.
- Security
Group stringId - Specifies the ID of a security group.
- Subnet
Id string Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- Vpc
Id string Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- Admin
Password string Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- Admin
User string Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- Auto
Renew string - Charging
Mode string - Ddm
Instance stringId - The resource ID.
- Delete
Rds stringData - Specifies whether data stored on the associated DB instances is deleted.
- Enterprise
Project stringId - Specifies the enterprise project id.
- Name string
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- Param
Group stringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- Period float64
- Period
Unit string - Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Time
Zone string Specifies the time zone.
Changing this parameter will create a new resource.
- Timeouts
Ddm
Instance Timeouts Args
- availability
Zones List<String> Specifies the list of availability zones.
Changing this parameter will create a new resource.
- engine
Id String Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- flavor
Id String Specifies the ID of a product.
Changing this parameter will create a new resource.
- node
Num Double - Specifies the number of nodes.
- security
Group StringId - Specifies the ID of a security group.
- subnet
Id String Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- vpc
Id String Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- admin
Password String Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- admin
User String Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- auto
Renew String - charging
Mode String - ddm
Instance StringId - The resource ID.
- delete
Rds StringData - Specifies whether data stored on the associated DB instances is deleted.
- enterprise
Project StringId - Specifies the enterprise project id.
- name String
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- param
Group StringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- period Double
- period
Unit String - region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- time
Zone String Specifies the time zone.
Changing this parameter will create a new resource.
- timeouts
Ddm
Instance Timeouts
- availability
Zones string[] Specifies the list of availability zones.
Changing this parameter will create a new resource.
- engine
Id string Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- flavor
Id string Specifies the ID of a product.
Changing this parameter will create a new resource.
- node
Num number - Specifies the number of nodes.
- security
Group stringId - Specifies the ID of a security group.
- subnet
Id string Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- vpc
Id string Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- admin
Password string Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- admin
User string Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- auto
Renew string - charging
Mode string - ddm
Instance stringId - The resource ID.
- delete
Rds stringData - Specifies whether data stored on the associated DB instances is deleted.
- enterprise
Project stringId - Specifies the enterprise project id.
- name string
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- param
Group stringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- period number
- period
Unit string - region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- time
Zone string Specifies the time zone.
Changing this parameter will create a new resource.
- timeouts
Ddm
Instance Timeouts
- availability_
zones Sequence[str] Specifies the list of availability zones.
Changing this parameter will create a new resource.
- engine_
id str Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- flavor_
id str Specifies the ID of a product.
Changing this parameter will create a new resource.
- node_
num float - Specifies the number of nodes.
- security_
group_ strid - Specifies the ID of a security group.
- subnet_
id str Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- vpc_
id str Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- admin_
password str Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- admin_
user str Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- auto_
renew str - charging_
mode str - ddm_
instance_ strid - The resource ID.
- delete_
rds_ strdata - Specifies whether data stored on the associated DB instances is deleted.
- enterprise_
project_ strid - Specifies the enterprise project id.
- name str
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- param_
group_ strid Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- period float
- period_
unit str - region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- time_
zone str Specifies the time zone.
Changing this parameter will create a new resource.
- timeouts
Ddm
Instance Timeouts Args
- availability
Zones List<String> Specifies the list of availability zones.
Changing this parameter will create a new resource.
- engine
Id String Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- flavor
Id String Specifies the ID of a product.
Changing this parameter will create a new resource.
- node
Num Number - Specifies the number of nodes.
- security
Group StringId - Specifies the ID of a security group.
- subnet
Id String Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- vpc
Id String Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- admin
Password String Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- admin
User String Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- auto
Renew String - charging
Mode String - ddm
Instance StringId - The resource ID.
- delete
Rds StringData - Specifies whether data stored on the associated DB instances is deleted.
- enterprise
Project StringId - Specifies the enterprise project id.
- name String
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- param
Group StringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- period Number
- period
Unit String - region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- time
Zone String Specifies the time zone.
Changing this parameter will create a new resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DdmInstance resource produces the following output properties:
- Access
Ip string - Indicates the address for accessing the DDM instance.
- Access
Port string - Indicates the port for accessing the DDM instance.
- Engine
Version string - Indicates the engine version.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
List<Ddm
Instance Node> - Indicates the node information. The NodeInfoRef structure is documented below.
- Status string
- Indicates the status of the DDM instance node.
- Access
Ip string - Indicates the address for accessing the DDM instance.
- Access
Port string - Indicates the port for accessing the DDM instance.
- Engine
Version string - Indicates the engine version.
- Id string
- The provider-assigned unique ID for this managed resource.
- Nodes
[]Ddm
Instance Node - Indicates the node information. The NodeInfoRef structure is documented below.
- Status string
- Indicates the status of the DDM instance node.
- access
Ip String - Indicates the address for accessing the DDM instance.
- access
Port String - Indicates the port for accessing the DDM instance.
- engine
Version String - Indicates the engine version.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes
List<Ddm
Instance Node> - Indicates the node information. The NodeInfoRef structure is documented below.
- status String
- Indicates the status of the DDM instance node.
- access
Ip string - Indicates the address for accessing the DDM instance.
- access
Port string - Indicates the port for accessing the DDM instance.
- engine
Version string - Indicates the engine version.
- id string
- The provider-assigned unique ID for this managed resource.
- nodes
Ddm
Instance Node[] - Indicates the node information. The NodeInfoRef structure is documented below.
- status string
- Indicates the status of the DDM instance node.
- access_
ip str - Indicates the address for accessing the DDM instance.
- access_
port str - Indicates the port for accessing the DDM instance.
- engine_
version str - Indicates the engine version.
- id str
- The provider-assigned unique ID for this managed resource.
- nodes
Sequence[Ddm
Instance Node] - Indicates the node information. The NodeInfoRef structure is documented below.
- status str
- Indicates the status of the DDM instance node.
- access
Ip String - Indicates the address for accessing the DDM instance.
- access
Port String - Indicates the port for accessing the DDM instance.
- engine
Version String - Indicates the engine version.
- id String
- The provider-assigned unique ID for this managed resource.
- nodes List<Property Map>
- Indicates the node information. The NodeInfoRef structure is documented below.
- status String
- Indicates the status of the DDM instance node.
Look up Existing DdmInstance Resource
Get an existing DdmInstance 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?: DdmInstanceState, opts?: CustomResourceOptions): DdmInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_ip: Optional[str] = None,
access_port: Optional[str] = None,
admin_password: Optional[str] = None,
admin_user: Optional[str] = None,
auto_renew: Optional[str] = None,
availability_zones: Optional[Sequence[str]] = None,
charging_mode: Optional[str] = None,
ddm_instance_id: Optional[str] = None,
delete_rds_data: Optional[str] = None,
engine_id: Optional[str] = None,
engine_version: Optional[str] = None,
enterprise_project_id: Optional[str] = None,
flavor_id: Optional[str] = None,
name: Optional[str] = None,
node_num: Optional[float] = None,
nodes: Optional[Sequence[DdmInstanceNodeArgs]] = None,
param_group_id: Optional[str] = None,
period: Optional[float] = None,
period_unit: Optional[str] = None,
region: Optional[str] = None,
security_group_id: Optional[str] = None,
status: Optional[str] = None,
subnet_id: Optional[str] = None,
time_zone: Optional[str] = None,
timeouts: Optional[DdmInstanceTimeoutsArgs] = None,
vpc_id: Optional[str] = None) -> DdmInstance
func GetDdmInstance(ctx *Context, name string, id IDInput, state *DdmInstanceState, opts ...ResourceOption) (*DdmInstance, error)
public static DdmInstance Get(string name, Input<string> id, DdmInstanceState? state, CustomResourceOptions? opts = null)
public static DdmInstance get(String name, Output<String> id, DdmInstanceState state, CustomResourceOptions options)
resources: _: type: flexibleengine:DdmInstance 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.
- Access
Ip string - Indicates the address for accessing the DDM instance.
- Access
Port string - Indicates the port for accessing the DDM instance.
- Admin
Password string Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- Admin
User string Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- Auto
Renew string - Availability
Zones List<string> Specifies the list of availability zones.
Changing this parameter will create a new resource.
- Charging
Mode string - Ddm
Instance stringId - The resource ID.
- Delete
Rds stringData - Specifies whether data stored on the associated DB instances is deleted.
- Engine
Id string Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- Engine
Version string - Indicates the engine version.
- Enterprise
Project stringId - Specifies the enterprise project id.
- Flavor
Id string Specifies the ID of a product.
Changing this parameter will create a new resource.
- Name string
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- Node
Num double - Specifies the number of nodes.
- Nodes
List<Ddm
Instance Node> - Indicates the node information. The NodeInfoRef structure is documented below.
- Param
Group stringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- Period double
- Period
Unit string - Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Security
Group stringId - Specifies the ID of a security group.
- Status string
- Indicates the status of the DDM instance node.
- Subnet
Id string Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- Time
Zone string Specifies the time zone.
Changing this parameter will create a new resource.
- Timeouts
Ddm
Instance Timeouts - Vpc
Id string Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- Access
Ip string - Indicates the address for accessing the DDM instance.
- Access
Port string - Indicates the port for accessing the DDM instance.
- Admin
Password string Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- Admin
User string Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- Auto
Renew string - Availability
Zones []string Specifies the list of availability zones.
Changing this parameter will create a new resource.
- Charging
Mode string - Ddm
Instance stringId - The resource ID.
- Delete
Rds stringData - Specifies whether data stored on the associated DB instances is deleted.
- Engine
Id string Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- Engine
Version string - Indicates the engine version.
- Enterprise
Project stringId - Specifies the enterprise project id.
- Flavor
Id string Specifies the ID of a product.
Changing this parameter will create a new resource.
- Name string
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- Node
Num float64 - Specifies the number of nodes.
- Nodes
[]Ddm
Instance Node Args - Indicates the node information. The NodeInfoRef structure is documented below.
- Param
Group stringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- Period float64
- Period
Unit string - Region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- Security
Group stringId - Specifies the ID of a security group.
- Status string
- Indicates the status of the DDM instance node.
- Subnet
Id string Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- Time
Zone string Specifies the time zone.
Changing this parameter will create a new resource.
- Timeouts
Ddm
Instance Timeouts Args - Vpc
Id string Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- access
Ip String - Indicates the address for accessing the DDM instance.
- access
Port String - Indicates the port for accessing the DDM instance.
- admin
Password String Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- admin
User String Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- auto
Renew String - availability
Zones List<String> Specifies the list of availability zones.
Changing this parameter will create a new resource.
- charging
Mode String - ddm
Instance StringId - The resource ID.
- delete
Rds StringData - Specifies whether data stored on the associated DB instances is deleted.
- engine
Id String Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- engine
Version String - Indicates the engine version.
- enterprise
Project StringId - Specifies the enterprise project id.
- flavor
Id String Specifies the ID of a product.
Changing this parameter will create a new resource.
- name String
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- node
Num Double - Specifies the number of nodes.
- nodes
List<Ddm
Instance Node> - Indicates the node information. The NodeInfoRef structure is documented below.
- param
Group StringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- period Double
- period
Unit String - region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- security
Group StringId - Specifies the ID of a security group.
- status String
- Indicates the status of the DDM instance node.
- subnet
Id String Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- time
Zone String Specifies the time zone.
Changing this parameter will create a new resource.
- timeouts
Ddm
Instance Timeouts - vpc
Id String Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- access
Ip string - Indicates the address for accessing the DDM instance.
- access
Port string - Indicates the port for accessing the DDM instance.
- admin
Password string Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- admin
User string Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- auto
Renew string - availability
Zones string[] Specifies the list of availability zones.
Changing this parameter will create a new resource.
- charging
Mode string - ddm
Instance stringId - The resource ID.
- delete
Rds stringData - Specifies whether data stored on the associated DB instances is deleted.
- engine
Id string Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- engine
Version string - Indicates the engine version.
- enterprise
Project stringId - Specifies the enterprise project id.
- flavor
Id string Specifies the ID of a product.
Changing this parameter will create a new resource.
- name string
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- node
Num number - Specifies the number of nodes.
- nodes
Ddm
Instance Node[] - Indicates the node information. The NodeInfoRef structure is documented below.
- param
Group stringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- period number
- period
Unit string - region string
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- security
Group stringId - Specifies the ID of a security group.
- status string
- Indicates the status of the DDM instance node.
- subnet
Id string Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- time
Zone string Specifies the time zone.
Changing this parameter will create a new resource.
- timeouts
Ddm
Instance Timeouts - vpc
Id string Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- access_
ip str - Indicates the address for accessing the DDM instance.
- access_
port str - Indicates the port for accessing the DDM instance.
- admin_
password str Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- admin_
user str Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- auto_
renew str - availability_
zones Sequence[str] Specifies the list of availability zones.
Changing this parameter will create a new resource.
- charging_
mode str - ddm_
instance_ strid - The resource ID.
- delete_
rds_ strdata - Specifies whether data stored on the associated DB instances is deleted.
- engine_
id str Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- engine_
version str - Indicates the engine version.
- enterprise_
project_ strid - Specifies the enterprise project id.
- flavor_
id str Specifies the ID of a product.
Changing this parameter will create a new resource.
- name str
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- node_
num float - Specifies the number of nodes.
- nodes
Sequence[Ddm
Instance Node Args] - Indicates the node information. The NodeInfoRef structure is documented below.
- param_
group_ strid Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- period float
- period_
unit str - region str
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- security_
group_ strid - Specifies the ID of a security group.
- status str
- Indicates the status of the DDM instance node.
- subnet_
id str Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- time_
zone str Specifies the time zone.
Changing this parameter will create a new resource.
- timeouts
Ddm
Instance Timeouts Args - vpc_
id str Specifies the ID of a VPC.
Changing this parameter will create a new resource.
- access
Ip String - Indicates the address for accessing the DDM instance.
- access
Port String - Indicates the port for accessing the DDM instance.
- admin
Password String Specifies the password of the administrator. The password consists of 8 to 32 characters, and must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?.
Changing this parameter will create a new resource.
- admin
User String Specifies the username of the administrator. The user name starts with a letter, consists of 1 to 32 characters, and can contain only letters, digits, and underscores (_).
Changing this parameter will create a new resource.
- auto
Renew String - availability
Zones List<String> Specifies the list of availability zones.
Changing this parameter will create a new resource.
- charging
Mode String - ddm
Instance StringId - The resource ID.
- delete
Rds StringData - Specifies whether data stored on the associated DB instances is deleted.
- engine
Id String Specifies the ID of an Engine.
Changing this parameter will create a new resource.
- engine
Version String - Indicates the engine version.
- enterprise
Project StringId - Specifies the enterprise project id.
- flavor
Id String Specifies the ID of a product.
Changing this parameter will create a new resource.
- name String
- Specifies the name of the DDM instance. An instance name starts with a letter, consists of 4 to 64 characters, and can contain only letters, digits, and hyphens (-).
- node
Num Number - Specifies the number of nodes.
- nodes List<Property Map>
- Indicates the node information. The NodeInfoRef structure is documented below.
- param
Group StringId Specifies the ID of parameter group.
Changing this parameter will create a new resource.
- period Number
- period
Unit String - region String
- Specifies the region in which to create the resource. If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
- security
Group StringId - Specifies the ID of a security group.
- status String
- Indicates the status of the DDM instance node.
- subnet
Id String Specifies the ID of a subnet.
Changing this parameter will create a new resource.
- time
Zone String Specifies the time zone.
Changing this parameter will create a new resource.
- timeouts Property Map
- vpc
Id String Specifies the ID of a VPC.
Changing this parameter will create a new resource.
Supporting Types
DdmInstanceNode, DdmInstanceNodeArgs
DdmInstanceTimeouts, DdmInstanceTimeoutsArgs
Import
The ddm instance can be imported using the id
, e.g.
bash
$ pulumi import flexibleengine:index/ddmInstance:DdmInstance test 4bc36477c36642479acf2d90751c8c29in09
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.