opentelekomcloud.DmsSmartConnectV2
Explore with Pulumi AI
Up-to-date reference of API arguments for DMS instance you can get at documentation portal
Manage DMS smart connect v2 resource within OpenTelekomCloud.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as opentelekomcloud from "@pulumi/opentelekomcloud";
const config = new pulumi.Config();
const instanceId = config.requireObject("instanceId");
const test = new opentelekomcloud.DmsSmartConnectV2("test", {
instanceId: instanceId,
storageSpecCode: "dms.physical.storage.ultra.v2",
bandwidth: "100MB",
nodeCount: 2,
});
import pulumi
import pulumi_opentelekomcloud as opentelekomcloud
config = pulumi.Config()
instance_id = config.require_object("instanceId")
test = opentelekomcloud.DmsSmartConnectV2("test",
instance_id=instance_id,
storage_spec_code="dms.physical.storage.ultra.v2",
bandwidth="100MB",
node_count=2)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
instanceId := cfg.RequireObject("instanceId")
_, err := opentelekomcloud.NewDmsSmartConnectV2(ctx, "test", &opentelekomcloud.DmsSmartConnectV2Args{
InstanceId: pulumi.Any(instanceId),
StorageSpecCode: pulumi.String("dms.physical.storage.ultra.v2"),
Bandwidth: pulumi.String("100MB"),
NodeCount: pulumi.Float64(2),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Opentelekomcloud = Pulumi.Opentelekomcloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var instanceId = config.RequireObject<dynamic>("instanceId");
var test = new Opentelekomcloud.DmsSmartConnectV2("test", new()
{
InstanceId = instanceId,
StorageSpecCode = "dms.physical.storage.ultra.v2",
Bandwidth = "100MB",
NodeCount = 2,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.opentelekomcloud.DmsSmartConnectV2;
import com.pulumi.opentelekomcloud.DmsSmartConnectV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var instanceId = config.get("instanceId");
var test = new DmsSmartConnectV2("test", DmsSmartConnectV2Args.builder()
.instanceId(instanceId)
.storageSpecCode("dms.physical.storage.ultra.v2")
.bandwidth("100MB")
.nodeCount(2)
.build());
}
}
configuration:
instanceId:
type: dynamic
resources:
test:
type: opentelekomcloud:DmsSmartConnectV2
properties:
instanceId: ${instanceId}
storageSpecCode: dms.physical.storage.ultra.v2
bandwidth: 100MB
nodeCount: 2
Create DmsSmartConnectV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DmsSmartConnectV2(name: string, args: DmsSmartConnectV2Args, opts?: CustomResourceOptions);
@overload
def DmsSmartConnectV2(resource_name: str,
args: DmsSmartConnectV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DmsSmartConnectV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
bandwidth: Optional[str] = None,
dms_smart_connect_v2_id: Optional[str] = None,
node_count: Optional[float] = None,
storage_spec_code: Optional[str] = None,
timeouts: Optional[DmsSmartConnectV2TimeoutsArgs] = None)
func NewDmsSmartConnectV2(ctx *Context, name string, args DmsSmartConnectV2Args, opts ...ResourceOption) (*DmsSmartConnectV2, error)
public DmsSmartConnectV2(string name, DmsSmartConnectV2Args args, CustomResourceOptions? opts = null)
public DmsSmartConnectV2(String name, DmsSmartConnectV2Args args)
public DmsSmartConnectV2(String name, DmsSmartConnectV2Args args, CustomResourceOptions options)
type: opentelekomcloud:DmsSmartConnectV2
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 DmsSmartConnectV2Args
- 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 DmsSmartConnectV2Args
- 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 DmsSmartConnectV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DmsSmartConnectV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DmsSmartConnectV2Args
- 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 dmsSmartConnectV2Resource = new Opentelekomcloud.DmsSmartConnectV2("dmsSmartConnectV2Resource", new()
{
InstanceId = "string",
Bandwidth = "string",
DmsSmartConnectV2Id = "string",
NodeCount = 0,
StorageSpecCode = "string",
Timeouts = new Opentelekomcloud.Inputs.DmsSmartConnectV2TimeoutsArgs
{
Create = "string",
Delete = "string",
},
});
example, err := opentelekomcloud.NewDmsSmartConnectV2(ctx, "dmsSmartConnectV2Resource", &opentelekomcloud.DmsSmartConnectV2Args{
InstanceId: pulumi.String("string"),
Bandwidth: pulumi.String("string"),
DmsSmartConnectV2Id: pulumi.String("string"),
NodeCount: pulumi.Float64(0),
StorageSpecCode: pulumi.String("string"),
Timeouts: &opentelekomcloud.DmsSmartConnectV2TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
})
var dmsSmartConnectV2Resource = new DmsSmartConnectV2("dmsSmartConnectV2Resource", DmsSmartConnectV2Args.builder()
.instanceId("string")
.bandwidth("string")
.dmsSmartConnectV2Id("string")
.nodeCount(0)
.storageSpecCode("string")
.timeouts(DmsSmartConnectV2TimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.build());
dms_smart_connect_v2_resource = opentelekomcloud.DmsSmartConnectV2("dmsSmartConnectV2Resource",
instance_id="string",
bandwidth="string",
dms_smart_connect_v2_id="string",
node_count=0,
storage_spec_code="string",
timeouts={
"create": "string",
"delete": "string",
})
const dmsSmartConnectV2Resource = new opentelekomcloud.DmsSmartConnectV2("dmsSmartConnectV2Resource", {
instanceId: "string",
bandwidth: "string",
dmsSmartConnectV2Id: "string",
nodeCount: 0,
storageSpecCode: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: opentelekomcloud:DmsSmartConnectV2
properties:
bandwidth: string
dmsSmartConnectV2Id: string
instanceId: string
nodeCount: 0
storageSpecCode: string
timeouts:
create: string
delete: string
DmsSmartConnectV2 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 DmsSmartConnectV2 resource accepts the following input properties:
- Instance
Id string Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- Bandwidth string
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- Dms
Smart stringConnect V2Id - The resource ID.
- Node
Count double Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- Storage
Spec stringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- Timeouts
Dms
Smart Connect V2Timeouts
- Instance
Id string Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- Bandwidth string
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- Dms
Smart stringConnect V2Id - The resource ID.
- Node
Count float64 Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- Storage
Spec stringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- Timeouts
Dms
Smart Connect V2Timeouts Args
- instance
Id String Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- bandwidth String
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- dms
Smart StringConnect V2Id - The resource ID.
- node
Count Double Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- storage
Spec StringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- timeouts
Dms
Smart Connect V2Timeouts
- instance
Id string Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- bandwidth string
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- dms
Smart stringConnect V2Id - The resource ID.
- node
Count number Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- storage
Spec stringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- timeouts
Dms
Smart Connect V2Timeouts
- instance_
id str Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- bandwidth str
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- dms_
smart_ strconnect_ v2_ id - The resource ID.
- node_
count float Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- storage_
spec_ strcode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- timeouts
Dms
Smart Connect V2Timeouts Args
- instance
Id String Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- bandwidth String
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- dms
Smart StringConnect V2Id - The resource ID.
- node
Count Number Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- storage
Spec StringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the DmsSmartConnectV2 resource produces the following output properties:
Look up Existing DmsSmartConnectV2 Resource
Get an existing DmsSmartConnectV2 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?: DmsSmartConnectV2State, opts?: CustomResourceOptions): DmsSmartConnectV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bandwidth: Optional[str] = None,
dms_smart_connect_v2_id: Optional[str] = None,
instance_id: Optional[str] = None,
node_count: Optional[float] = None,
region: Optional[str] = None,
storage_spec_code: Optional[str] = None,
timeouts: Optional[DmsSmartConnectV2TimeoutsArgs] = None) -> DmsSmartConnectV2
func GetDmsSmartConnectV2(ctx *Context, name string, id IDInput, state *DmsSmartConnectV2State, opts ...ResourceOption) (*DmsSmartConnectV2, error)
public static DmsSmartConnectV2 Get(string name, Input<string> id, DmsSmartConnectV2State? state, CustomResourceOptions? opts = null)
public static DmsSmartConnectV2 get(String name, Output<String> id, DmsSmartConnectV2State state, CustomResourceOptions options)
resources: _: type: opentelekomcloud:DmsSmartConnectV2 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.
- Bandwidth string
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- Dms
Smart stringConnect V2Id - The resource ID.
- Instance
Id string Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- Node
Count double Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- Region string
- The DMS instance region
- Storage
Spec stringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- Timeouts
Dms
Smart Connect V2Timeouts
- Bandwidth string
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- Dms
Smart stringConnect V2Id - The resource ID.
- Instance
Id string Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- Node
Count float64 Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- Region string
- The DMS instance region
- Storage
Spec stringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- Timeouts
Dms
Smart Connect V2Timeouts Args
- bandwidth String
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- dms
Smart StringConnect V2Id - The resource ID.
- instance
Id String Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- node
Count Double Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- region String
- The DMS instance region
- storage
Spec StringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- timeouts
Dms
Smart Connect V2Timeouts
- bandwidth string
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- dms
Smart stringConnect V2Id - The resource ID.
- instance
Id string Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- node
Count number Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- region string
- The DMS instance region
- storage
Spec stringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- timeouts
Dms
Smart Connect V2Timeouts
- bandwidth str
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- dms_
smart_ strconnect_ v2_ id - The resource ID.
- instance_
id str Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- node_
count float Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- region str
- The DMS instance region
- storage_
spec_ strcode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- timeouts
Dms
Smart Connect V2Timeouts Args
- bandwidth String
Specifies the bandwidth of the connector.
Changing this parameter will create a new resource.
- dms
Smart StringConnect V2Id - The resource ID.
- instance
Id String Specifies the ID of the DMS instance.
Changing this parameter will create a new resource.
- node
Count Number Specifies the node count of the connector. Defaults to 2 and minimum is 2.
Changing this parameter will create a new resource.
- region String
- The DMS instance region
- storage
Spec StringCode Specifies the storage specification code of the connector.
Changing this parameter will create a new resource.
- timeouts Property Map
Supporting Types
DmsSmartConnectV2Timeouts, DmsSmartConnectV2TimeoutsArgs
Package Details
- Repository
- opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
- License
- Notes
- This Pulumi package is based on the
opentelekomcloud
Terraform Provider.