tencentcloud.CynosdbProxyEndPoint
Explore with Pulumi AI
Provides a resource to create a cynosdb proxy_end_point
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const proxyEndPoint = new tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", {
clusterId: "cynosdbmysql-bws8h88b",
instanceWeights: [{
instanceId: "cynosdbmysql-ins-afqx1hy0",
weight: 1,
}],
uniqueSubnetId: "subnet-dwj7ipnc",
uniqueVpcId: "vpc-4owdpnwr",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
proxy_end_point = tencentcloud.CynosdbProxyEndPoint("proxyEndPoint",
cluster_id="cynosdbmysql-bws8h88b",
instance_weights=[{
"instance_id": "cynosdbmysql-ins-afqx1hy0",
"weight": 1,
}],
unique_subnet_id="subnet-dwj7ipnc",
unique_vpc_id="vpc-4owdpnwr")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCynosdbProxyEndPoint(ctx, "proxyEndPoint", &tencentcloud.CynosdbProxyEndPointArgs{
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
InstanceWeights: tencentcloud.CynosdbProxyEndPointInstanceWeightArray{
&tencentcloud.CynosdbProxyEndPointInstanceWeightArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
Weight: pulumi.Float64(1),
},
},
UniqueSubnetId: pulumi.String("subnet-dwj7ipnc"),
UniqueVpcId: pulumi.String("vpc-4owdpnwr"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var proxyEndPoint = new Tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", new()
{
ClusterId = "cynosdbmysql-bws8h88b",
InstanceWeights = new[]
{
new Tencentcloud.Inputs.CynosdbProxyEndPointInstanceWeightArgs
{
InstanceId = "cynosdbmysql-ins-afqx1hy0",
Weight = 1,
},
},
UniqueSubnetId = "subnet-dwj7ipnc",
UniqueVpcId = "vpc-4owdpnwr",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbProxyEndPoint;
import com.pulumi.tencentcloud.CynosdbProxyEndPointArgs;
import com.pulumi.tencentcloud.inputs.CynosdbProxyEndPointInstanceWeightArgs;
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 proxyEndPoint = new CynosdbProxyEndPoint("proxyEndPoint", CynosdbProxyEndPointArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.instanceWeights(CynosdbProxyEndPointInstanceWeightArgs.builder()
.instanceId("cynosdbmysql-ins-afqx1hy0")
.weight(1)
.build())
.uniqueSubnetId("subnet-dwj7ipnc")
.uniqueVpcId("vpc-4owdpnwr")
.build());
}
}
resources:
proxyEndPoint:
type: tencentcloud:CynosdbProxyEndPoint
properties:
clusterId: cynosdbmysql-bws8h88b
instanceWeights:
- instanceId: cynosdbmysql-ins-afqx1hy0
weight: 1
uniqueSubnetId: subnet-dwj7ipnc
uniqueVpcId: vpc-4owdpnwr
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const proxyEndPoint = new tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", {
clusterId: "cynosdbmysql-bws8h88b",
instanceWeights: [{
instanceId: "cynosdbmysql-ins-afqx1hy0",
weight: 1,
}],
uniqueSubnetId: "subnet-dwj7ipnc",
uniqueVpcId: "vpc-4owdpnwr",
vip: "172.16.112.108",
vport: 3306,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
proxy_end_point = tencentcloud.CynosdbProxyEndPoint("proxyEndPoint",
cluster_id="cynosdbmysql-bws8h88b",
instance_weights=[{
"instance_id": "cynosdbmysql-ins-afqx1hy0",
"weight": 1,
}],
unique_subnet_id="subnet-dwj7ipnc",
unique_vpc_id="vpc-4owdpnwr",
vip="172.16.112.108",
vport=3306)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCynosdbProxyEndPoint(ctx, "proxyEndPoint", &tencentcloud.CynosdbProxyEndPointArgs{
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
InstanceWeights: tencentcloud.CynosdbProxyEndPointInstanceWeightArray{
&tencentcloud.CynosdbProxyEndPointInstanceWeightArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
Weight: pulumi.Float64(1),
},
},
UniqueSubnetId: pulumi.String("subnet-dwj7ipnc"),
UniqueVpcId: pulumi.String("vpc-4owdpnwr"),
Vip: pulumi.String("172.16.112.108"),
Vport: pulumi.Float64(3306),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var proxyEndPoint = new Tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", new()
{
ClusterId = "cynosdbmysql-bws8h88b",
InstanceWeights = new[]
{
new Tencentcloud.Inputs.CynosdbProxyEndPointInstanceWeightArgs
{
InstanceId = "cynosdbmysql-ins-afqx1hy0",
Weight = 1,
},
},
UniqueSubnetId = "subnet-dwj7ipnc",
UniqueVpcId = "vpc-4owdpnwr",
Vip = "172.16.112.108",
Vport = 3306,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbProxyEndPoint;
import com.pulumi.tencentcloud.CynosdbProxyEndPointArgs;
import com.pulumi.tencentcloud.inputs.CynosdbProxyEndPointInstanceWeightArgs;
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 proxyEndPoint = new CynosdbProxyEndPoint("proxyEndPoint", CynosdbProxyEndPointArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.instanceWeights(CynosdbProxyEndPointInstanceWeightArgs.builder()
.instanceId("cynosdbmysql-ins-afqx1hy0")
.weight(1)
.build())
.uniqueSubnetId("subnet-dwj7ipnc")
.uniqueVpcId("vpc-4owdpnwr")
.vip("172.16.112.108")
.vport("3306")
.build());
}
}
resources:
proxyEndPoint:
type: tencentcloud:CynosdbProxyEndPoint
properties:
clusterId: cynosdbmysql-bws8h88b
instanceWeights:
- instanceId: cynosdbmysql-ins-afqx1hy0
weight: 1
uniqueSubnetId: subnet-dwj7ipnc
uniqueVpcId: vpc-4owdpnwr
vip: 172.16.112.108
vport: '3306'
Open connection pool
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const proxyEndPoint = new tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", {
clusterId: "cynosdbmysql-bws8h88b",
connectionPoolTimeOut: 30,
connectionPoolType: "SessionConnectionPool",
instanceWeights: [{
instanceId: "cynosdbmysql-ins-afqx1hy0",
weight: 1,
}],
openConnectionPool: "yes",
uniqueSubnetId: "subnet-dwj7ipnc",
uniqueVpcId: "vpc-4owdpnwr",
vip: "172.16.112.108",
vport: 3306,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
proxy_end_point = tencentcloud.CynosdbProxyEndPoint("proxyEndPoint",
cluster_id="cynosdbmysql-bws8h88b",
connection_pool_time_out=30,
connection_pool_type="SessionConnectionPool",
instance_weights=[{
"instance_id": "cynosdbmysql-ins-afqx1hy0",
"weight": 1,
}],
open_connection_pool="yes",
unique_subnet_id="subnet-dwj7ipnc",
unique_vpc_id="vpc-4owdpnwr",
vip="172.16.112.108",
vport=3306)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCynosdbProxyEndPoint(ctx, "proxyEndPoint", &tencentcloud.CynosdbProxyEndPointArgs{
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
ConnectionPoolTimeOut: pulumi.Float64(30),
ConnectionPoolType: pulumi.String("SessionConnectionPool"),
InstanceWeights: tencentcloud.CynosdbProxyEndPointInstanceWeightArray{
&tencentcloud.CynosdbProxyEndPointInstanceWeightArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
Weight: pulumi.Float64(1),
},
},
OpenConnectionPool: pulumi.String("yes"),
UniqueSubnetId: pulumi.String("subnet-dwj7ipnc"),
UniqueVpcId: pulumi.String("vpc-4owdpnwr"),
Vip: pulumi.String("172.16.112.108"),
Vport: pulumi.Float64(3306),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var proxyEndPoint = new Tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", new()
{
ClusterId = "cynosdbmysql-bws8h88b",
ConnectionPoolTimeOut = 30,
ConnectionPoolType = "SessionConnectionPool",
InstanceWeights = new[]
{
new Tencentcloud.Inputs.CynosdbProxyEndPointInstanceWeightArgs
{
InstanceId = "cynosdbmysql-ins-afqx1hy0",
Weight = 1,
},
},
OpenConnectionPool = "yes",
UniqueSubnetId = "subnet-dwj7ipnc",
UniqueVpcId = "vpc-4owdpnwr",
Vip = "172.16.112.108",
Vport = 3306,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbProxyEndPoint;
import com.pulumi.tencentcloud.CynosdbProxyEndPointArgs;
import com.pulumi.tencentcloud.inputs.CynosdbProxyEndPointInstanceWeightArgs;
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 proxyEndPoint = new CynosdbProxyEndPoint("proxyEndPoint", CynosdbProxyEndPointArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.connectionPoolTimeOut(30)
.connectionPoolType("SessionConnectionPool")
.instanceWeights(CynosdbProxyEndPointInstanceWeightArgs.builder()
.instanceId("cynosdbmysql-ins-afqx1hy0")
.weight(1)
.build())
.openConnectionPool("yes")
.uniqueSubnetId("subnet-dwj7ipnc")
.uniqueVpcId("vpc-4owdpnwr")
.vip("172.16.112.108")
.vport("3306")
.build());
}
}
resources:
proxyEndPoint:
type: tencentcloud:CynosdbProxyEndPoint
properties:
clusterId: cynosdbmysql-bws8h88b
connectionPoolTimeOut: 30
connectionPoolType: SessionConnectionPool
instanceWeights:
- instanceId: cynosdbmysql-ins-afqx1hy0
weight: 1
openConnectionPool: yes
uniqueSubnetId: subnet-dwj7ipnc
uniqueVpcId: vpc-4owdpnwr
vip: 172.16.112.108
vport: '3306'
Close connection pool
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const proxyEndPoint = new tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", {
clusterId: "cynosdbmysql-bws8h88b",
instanceWeights: [{
instanceId: "cynosdbmysql-ins-afqx1hy0",
weight: 1,
}],
openConnectionPool: "no",
uniqueSubnetId: "subnet-dwj7ipnc",
uniqueVpcId: "vpc-4owdpnwr",
vip: "172.16.112.108",
vport: 3306,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
proxy_end_point = tencentcloud.CynosdbProxyEndPoint("proxyEndPoint",
cluster_id="cynosdbmysql-bws8h88b",
instance_weights=[{
"instance_id": "cynosdbmysql-ins-afqx1hy0",
"weight": 1,
}],
open_connection_pool="no",
unique_subnet_id="subnet-dwj7ipnc",
unique_vpc_id="vpc-4owdpnwr",
vip="172.16.112.108",
vport=3306)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCynosdbProxyEndPoint(ctx, "proxyEndPoint", &tencentcloud.CynosdbProxyEndPointArgs{
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
InstanceWeights: tencentcloud.CynosdbProxyEndPointInstanceWeightArray{
&tencentcloud.CynosdbProxyEndPointInstanceWeightArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
Weight: pulumi.Float64(1),
},
},
OpenConnectionPool: pulumi.String("no"),
UniqueSubnetId: pulumi.String("subnet-dwj7ipnc"),
UniqueVpcId: pulumi.String("vpc-4owdpnwr"),
Vip: pulumi.String("172.16.112.108"),
Vport: pulumi.Float64(3306),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var proxyEndPoint = new Tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", new()
{
ClusterId = "cynosdbmysql-bws8h88b",
InstanceWeights = new[]
{
new Tencentcloud.Inputs.CynosdbProxyEndPointInstanceWeightArgs
{
InstanceId = "cynosdbmysql-ins-afqx1hy0",
Weight = 1,
},
},
OpenConnectionPool = "no",
UniqueSubnetId = "subnet-dwj7ipnc",
UniqueVpcId = "vpc-4owdpnwr",
Vip = "172.16.112.108",
Vport = 3306,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbProxyEndPoint;
import com.pulumi.tencentcloud.CynosdbProxyEndPointArgs;
import com.pulumi.tencentcloud.inputs.CynosdbProxyEndPointInstanceWeightArgs;
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 proxyEndPoint = new CynosdbProxyEndPoint("proxyEndPoint", CynosdbProxyEndPointArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.instanceWeights(CynosdbProxyEndPointInstanceWeightArgs.builder()
.instanceId("cynosdbmysql-ins-afqx1hy0")
.weight(1)
.build())
.openConnectionPool("no")
.uniqueSubnetId("subnet-dwj7ipnc")
.uniqueVpcId("vpc-4owdpnwr")
.vip("172.16.112.108")
.vport("3306")
.build());
}
}
resources:
proxyEndPoint:
type: tencentcloud:CynosdbProxyEndPoint
properties:
clusterId: cynosdbmysql-bws8h88b
instanceWeights:
- instanceId: cynosdbmysql-ins-afqx1hy0
weight: 1
openConnectionPool: no
uniqueSubnetId: subnet-dwj7ipnc
uniqueVpcId: vpc-4owdpnwr
vip: 172.16.112.108
vport: '3306'
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const proxyEndPoint = new tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", {
clusterId: "cynosdbmysql-bws8h88b",
consistencyTimeOut: 30,
consistencyType: "global",
failOver: "yes",
instanceWeights: [{
instanceId: "cynosdbmysql-ins-afqx1hy0",
weight: 1,
}],
openConnectionPool: "no",
rwType: "READWRITE",
uniqueSubnetId: "subnet-dwj7ipnc",
uniqueVpcId: "vpc-4owdpnwr",
vip: "172.16.112.108",
vport: 3306,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
proxy_end_point = tencentcloud.CynosdbProxyEndPoint("proxyEndPoint",
cluster_id="cynosdbmysql-bws8h88b",
consistency_time_out=30,
consistency_type="global",
fail_over="yes",
instance_weights=[{
"instance_id": "cynosdbmysql-ins-afqx1hy0",
"weight": 1,
}],
open_connection_pool="no",
rw_type="READWRITE",
unique_subnet_id="subnet-dwj7ipnc",
unique_vpc_id="vpc-4owdpnwr",
vip="172.16.112.108",
vport=3306)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCynosdbProxyEndPoint(ctx, "proxyEndPoint", &tencentcloud.CynosdbProxyEndPointArgs{
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
ConsistencyTimeOut: pulumi.Float64(30),
ConsistencyType: pulumi.String("global"),
FailOver: pulumi.String("yes"),
InstanceWeights: tencentcloud.CynosdbProxyEndPointInstanceWeightArray{
&tencentcloud.CynosdbProxyEndPointInstanceWeightArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
Weight: pulumi.Float64(1),
},
},
OpenConnectionPool: pulumi.String("no"),
RwType: pulumi.String("READWRITE"),
UniqueSubnetId: pulumi.String("subnet-dwj7ipnc"),
UniqueVpcId: pulumi.String("vpc-4owdpnwr"),
Vip: pulumi.String("172.16.112.108"),
Vport: pulumi.Float64(3306),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var proxyEndPoint = new Tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", new()
{
ClusterId = "cynosdbmysql-bws8h88b",
ConsistencyTimeOut = 30,
ConsistencyType = "global",
FailOver = "yes",
InstanceWeights = new[]
{
new Tencentcloud.Inputs.CynosdbProxyEndPointInstanceWeightArgs
{
InstanceId = "cynosdbmysql-ins-afqx1hy0",
Weight = 1,
},
},
OpenConnectionPool = "no",
RwType = "READWRITE",
UniqueSubnetId = "subnet-dwj7ipnc",
UniqueVpcId = "vpc-4owdpnwr",
Vip = "172.16.112.108",
Vport = 3306,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbProxyEndPoint;
import com.pulumi.tencentcloud.CynosdbProxyEndPointArgs;
import com.pulumi.tencentcloud.inputs.CynosdbProxyEndPointInstanceWeightArgs;
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 proxyEndPoint = new CynosdbProxyEndPoint("proxyEndPoint", CynosdbProxyEndPointArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.consistencyTimeOut(30)
.consistencyType("global")
.failOver("yes")
.instanceWeights(CynosdbProxyEndPointInstanceWeightArgs.builder()
.instanceId("cynosdbmysql-ins-afqx1hy0")
.weight(1)
.build())
.openConnectionPool("no")
.rwType("READWRITE")
.uniqueSubnetId("subnet-dwj7ipnc")
.uniqueVpcId("vpc-4owdpnwr")
.vip("172.16.112.108")
.vport("3306")
.build());
}
}
resources:
proxyEndPoint:
type: tencentcloud:CynosdbProxyEndPoint
properties:
clusterId: cynosdbmysql-bws8h88b
consistencyTimeOut: 30
consistencyType: global
failOver: yes
instanceWeights:
- instanceId: cynosdbmysql-ins-afqx1hy0
weight: 1
openConnectionPool: no
rwType: READWRITE
uniqueSubnetId: subnet-dwj7ipnc
uniqueVpcId: vpc-4owdpnwr
vip: 172.16.112.108
vport: '3306'
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const proxyEndPoint = new tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", {
clusterId: "cynosdbmysql-bws8h88b",
instanceWeights: [{
instanceId: "cynosdbmysql-ins-rikr6z4o",
weight: 1,
}],
openConnectionPool: "no",
rwType: "READONLY",
uniqueSubnetId: "subnet-dwj7ipnc",
uniqueVpcId: "vpc-4owdpnwr",
vip: "172.16.112.108",
vport: 3306,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
proxy_end_point = tencentcloud.CynosdbProxyEndPoint("proxyEndPoint",
cluster_id="cynosdbmysql-bws8h88b",
instance_weights=[{
"instance_id": "cynosdbmysql-ins-rikr6z4o",
"weight": 1,
}],
open_connection_pool="no",
rw_type="READONLY",
unique_subnet_id="subnet-dwj7ipnc",
unique_vpc_id="vpc-4owdpnwr",
vip="172.16.112.108",
vport=3306)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCynosdbProxyEndPoint(ctx, "proxyEndPoint", &tencentcloud.CynosdbProxyEndPointArgs{
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
InstanceWeights: tencentcloud.CynosdbProxyEndPointInstanceWeightArray{
&tencentcloud.CynosdbProxyEndPointInstanceWeightArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-rikr6z4o"),
Weight: pulumi.Float64(1),
},
},
OpenConnectionPool: pulumi.String("no"),
RwType: pulumi.String("READONLY"),
UniqueSubnetId: pulumi.String("subnet-dwj7ipnc"),
UniqueVpcId: pulumi.String("vpc-4owdpnwr"),
Vip: pulumi.String("172.16.112.108"),
Vport: pulumi.Float64(3306),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var proxyEndPoint = new Tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", new()
{
ClusterId = "cynosdbmysql-bws8h88b",
InstanceWeights = new[]
{
new Tencentcloud.Inputs.CynosdbProxyEndPointInstanceWeightArgs
{
InstanceId = "cynosdbmysql-ins-rikr6z4o",
Weight = 1,
},
},
OpenConnectionPool = "no",
RwType = "READONLY",
UniqueSubnetId = "subnet-dwj7ipnc",
UniqueVpcId = "vpc-4owdpnwr",
Vip = "172.16.112.108",
Vport = 3306,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbProxyEndPoint;
import com.pulumi.tencentcloud.CynosdbProxyEndPointArgs;
import com.pulumi.tencentcloud.inputs.CynosdbProxyEndPointInstanceWeightArgs;
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 proxyEndPoint = new CynosdbProxyEndPoint("proxyEndPoint", CynosdbProxyEndPointArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.instanceWeights(CynosdbProxyEndPointInstanceWeightArgs.builder()
.instanceId("cynosdbmysql-ins-rikr6z4o")
.weight(1)
.build())
.openConnectionPool("no")
.rwType("READONLY")
.uniqueSubnetId("subnet-dwj7ipnc")
.uniqueVpcId("vpc-4owdpnwr")
.vip("172.16.112.108")
.vport("3306")
.build());
}
}
resources:
proxyEndPoint:
type: tencentcloud:CynosdbProxyEndPoint
properties:
clusterId: cynosdbmysql-bws8h88b
instanceWeights:
- instanceId: cynosdbmysql-ins-rikr6z4o
weight: 1
openConnectionPool: no
rwType: READONLY
uniqueSubnetId: subnet-dwj7ipnc
uniqueVpcId: vpc-4owdpnwr
vip: 172.16.112.108
vport: '3306'
Comprehensive parameter examples
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const proxyEndPoint = new tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", {
accessMode: "nearby",
autoAddRo: "yes",
clusterId: "cynosdbmysql-bws8h88b",
connectionPoolTimeOut: 30,
connectionPoolType: "SessionConnectionPool",
consistencyTimeOut: 30,
consistencyType: "global",
description: "desc value",
failOver: "yes",
instanceWeights: [{
instanceId: "cynosdbmysql-ins-afqx1hy0",
weight: 1,
}],
openConnectionPool: "yes",
rwType: "READWRITE",
securityGroupIds: ["sg-7kpsbxdb"],
transSplit: true,
uniqueSubnetId: "subnet-dwj7ipnc",
uniqueVpcId: "vpc-4owdpnwr",
vip: "172.16.112.118",
vport: 3306,
weightMode: "system",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
proxy_end_point = tencentcloud.CynosdbProxyEndPoint("proxyEndPoint",
access_mode="nearby",
auto_add_ro="yes",
cluster_id="cynosdbmysql-bws8h88b",
connection_pool_time_out=30,
connection_pool_type="SessionConnectionPool",
consistency_time_out=30,
consistency_type="global",
description="desc value",
fail_over="yes",
instance_weights=[{
"instance_id": "cynosdbmysql-ins-afqx1hy0",
"weight": 1,
}],
open_connection_pool="yes",
rw_type="READWRITE",
security_group_ids=["sg-7kpsbxdb"],
trans_split=True,
unique_subnet_id="subnet-dwj7ipnc",
unique_vpc_id="vpc-4owdpnwr",
vip="172.16.112.118",
vport=3306,
weight_mode="system")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCynosdbProxyEndPoint(ctx, "proxyEndPoint", &tencentcloud.CynosdbProxyEndPointArgs{
AccessMode: pulumi.String("nearby"),
AutoAddRo: pulumi.String("yes"),
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
ConnectionPoolTimeOut: pulumi.Float64(30),
ConnectionPoolType: pulumi.String("SessionConnectionPool"),
ConsistencyTimeOut: pulumi.Float64(30),
ConsistencyType: pulumi.String("global"),
Description: pulumi.String("desc value"),
FailOver: pulumi.String("yes"),
InstanceWeights: tencentcloud.CynosdbProxyEndPointInstanceWeightArray{
&tencentcloud.CynosdbProxyEndPointInstanceWeightArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-afqx1hy0"),
Weight: pulumi.Float64(1),
},
},
OpenConnectionPool: pulumi.String("yes"),
RwType: pulumi.String("READWRITE"),
SecurityGroupIds: pulumi.StringArray{
pulumi.String("sg-7kpsbxdb"),
},
TransSplit: pulumi.Bool(true),
UniqueSubnetId: pulumi.String("subnet-dwj7ipnc"),
UniqueVpcId: pulumi.String("vpc-4owdpnwr"),
Vip: pulumi.String("172.16.112.118"),
Vport: pulumi.Float64(3306),
WeightMode: pulumi.String("system"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var proxyEndPoint = new Tencentcloud.CynosdbProxyEndPoint("proxyEndPoint", new()
{
AccessMode = "nearby",
AutoAddRo = "yes",
ClusterId = "cynosdbmysql-bws8h88b",
ConnectionPoolTimeOut = 30,
ConnectionPoolType = "SessionConnectionPool",
ConsistencyTimeOut = 30,
ConsistencyType = "global",
Description = "desc value",
FailOver = "yes",
InstanceWeights = new[]
{
new Tencentcloud.Inputs.CynosdbProxyEndPointInstanceWeightArgs
{
InstanceId = "cynosdbmysql-ins-afqx1hy0",
Weight = 1,
},
},
OpenConnectionPool = "yes",
RwType = "READWRITE",
SecurityGroupIds = new[]
{
"sg-7kpsbxdb",
},
TransSplit = true,
UniqueSubnetId = "subnet-dwj7ipnc",
UniqueVpcId = "vpc-4owdpnwr",
Vip = "172.16.112.118",
Vport = 3306,
WeightMode = "system",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbProxyEndPoint;
import com.pulumi.tencentcloud.CynosdbProxyEndPointArgs;
import com.pulumi.tencentcloud.inputs.CynosdbProxyEndPointInstanceWeightArgs;
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 proxyEndPoint = new CynosdbProxyEndPoint("proxyEndPoint", CynosdbProxyEndPointArgs.builder()
.accessMode("nearby")
.autoAddRo("yes")
.clusterId("cynosdbmysql-bws8h88b")
.connectionPoolTimeOut(30)
.connectionPoolType("SessionConnectionPool")
.consistencyTimeOut(30)
.consistencyType("global")
.description("desc value")
.failOver("yes")
.instanceWeights(CynosdbProxyEndPointInstanceWeightArgs.builder()
.instanceId("cynosdbmysql-ins-afqx1hy0")
.weight(1)
.build())
.openConnectionPool("yes")
.rwType("READWRITE")
.securityGroupIds("sg-7kpsbxdb")
.transSplit(true)
.uniqueSubnetId("subnet-dwj7ipnc")
.uniqueVpcId("vpc-4owdpnwr")
.vip("172.16.112.118")
.vport("3306")
.weightMode("system")
.build());
}
}
resources:
proxyEndPoint:
type: tencentcloud:CynosdbProxyEndPoint
properties:
accessMode: nearby
autoAddRo: yes
clusterId: cynosdbmysql-bws8h88b
connectionPoolTimeOut: 30
connectionPoolType: SessionConnectionPool
consistencyTimeOut: 30
consistencyType: global
description: desc value
failOver: yes
instanceWeights:
- instanceId: cynosdbmysql-ins-afqx1hy0
weight: 1
openConnectionPool: yes
rwType: READWRITE
securityGroupIds:
- sg-7kpsbxdb
transSplit: true
uniqueSubnetId: subnet-dwj7ipnc
uniqueVpcId: vpc-4owdpnwr
vip: 172.16.112.118
vport: '3306'
weightMode: system
Create CynosdbProxyEndPoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbProxyEndPoint(name: string, args: CynosdbProxyEndPointArgs, opts?: CustomResourceOptions);
@overload
def CynosdbProxyEndPoint(resource_name: str,
args: CynosdbProxyEndPointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbProxyEndPoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
unique_subnet_id: Optional[str] = None,
unique_vpc_id: Optional[str] = None,
cluster_id: Optional[str] = None,
consistency_time_out: Optional[float] = None,
rw_type: Optional[str] = None,
access_mode: Optional[str] = None,
consistency_type: Optional[str] = None,
cynosdb_proxy_end_point_id: Optional[str] = None,
description: Optional[str] = None,
fail_over: Optional[str] = None,
instance_weights: Optional[Sequence[CynosdbProxyEndPointInstanceWeightArgs]] = None,
open_connection_pool: Optional[str] = None,
connection_pool_type: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
trans_split: Optional[bool] = None,
connection_pool_time_out: Optional[float] = None,
auto_add_ro: Optional[str] = None,
vip: Optional[str] = None,
vport: Optional[float] = None,
weight_mode: Optional[str] = None)
func NewCynosdbProxyEndPoint(ctx *Context, name string, args CynosdbProxyEndPointArgs, opts ...ResourceOption) (*CynosdbProxyEndPoint, error)
public CynosdbProxyEndPoint(string name, CynosdbProxyEndPointArgs args, CustomResourceOptions? opts = null)
public CynosdbProxyEndPoint(String name, CynosdbProxyEndPointArgs args)
public CynosdbProxyEndPoint(String name, CynosdbProxyEndPointArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbProxyEndPoint
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 CynosdbProxyEndPointArgs
- 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 CynosdbProxyEndPointArgs
- 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 CynosdbProxyEndPointArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbProxyEndPointArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbProxyEndPointArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbProxyEndPoint 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 CynosdbProxyEndPoint resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- Unique
Subnet stringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- Unique
Vpc stringId - Private network ID, which is consistent with the cluster private network ID by default.
- Access
Mode string - Connection mode: nearby, balance.
- Auto
Add stringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- Connection
Pool doubleTime Out - Connection pool threshold: unit (second).
- Connection
Pool stringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- Consistency
Time doubleOut - Consistency timeout.
- Consistency
Type string - Consistency type: event, global, session.
- Cynosdb
Proxy stringEnd Point Id - ID of the resource.
- Description string
- Description.
- Fail
Over string - Enable Failover. yes or no.
- Instance
Weights List<CynosdbProxy End Point Instance Weight> - Instance Weight.
- Open
Connection stringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- Rw
Type string - Read and write attributes: READWRITE, READONLY.
- Security
Group List<string>Ids - Security Group ID Array.
- Trans
Split bool - Transaction splitting.
- Vip string
- VIP Information.
- Vport double
- Port Information.
- Weight
Mode string - Weight mode: system system allocation, custom customization.
- Cluster
Id string - Cluster ID.
- Unique
Subnet stringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- Unique
Vpc stringId - Private network ID, which is consistent with the cluster private network ID by default.
- Access
Mode string - Connection mode: nearby, balance.
- Auto
Add stringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- Connection
Pool float64Time Out - Connection pool threshold: unit (second).
- Connection
Pool stringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- Consistency
Time float64Out - Consistency timeout.
- Consistency
Type string - Consistency type: event, global, session.
- Cynosdb
Proxy stringEnd Point Id - ID of the resource.
- Description string
- Description.
- Fail
Over string - Enable Failover. yes or no.
- Instance
Weights []CynosdbProxy End Point Instance Weight Args - Instance Weight.
- Open
Connection stringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- Rw
Type string - Read and write attributes: READWRITE, READONLY.
- Security
Group []stringIds - Security Group ID Array.
- Trans
Split bool - Transaction splitting.
- Vip string
- VIP Information.
- Vport float64
- Port Information.
- Weight
Mode string - Weight mode: system system allocation, custom customization.
- cluster
Id String - Cluster ID.
- unique
Subnet StringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- unique
Vpc StringId - Private network ID, which is consistent with the cluster private network ID by default.
- access
Mode String - Connection mode: nearby, balance.
- auto
Add StringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- connection
Pool DoubleTime Out - Connection pool threshold: unit (second).
- connection
Pool StringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- consistency
Time DoubleOut - Consistency timeout.
- consistency
Type String - Consistency type: event, global, session.
- cynosdb
Proxy StringEnd Point Id - ID of the resource.
- description String
- Description.
- fail
Over String - Enable Failover. yes or no.
- instance
Weights List<CynosdbProxy End Point Instance Weight> - Instance Weight.
- open
Connection StringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- rw
Type String - Read and write attributes: READWRITE, READONLY.
- security
Group List<String>Ids - Security Group ID Array.
- trans
Split Boolean - Transaction splitting.
- vip String
- VIP Information.
- vport Double
- Port Information.
- weight
Mode String - Weight mode: system system allocation, custom customization.
- cluster
Id string - Cluster ID.
- unique
Subnet stringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- unique
Vpc stringId - Private network ID, which is consistent with the cluster private network ID by default.
- access
Mode string - Connection mode: nearby, balance.
- auto
Add stringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- connection
Pool numberTime Out - Connection pool threshold: unit (second).
- connection
Pool stringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- consistency
Time numberOut - Consistency timeout.
- consistency
Type string - Consistency type: event, global, session.
- cynosdb
Proxy stringEnd Point Id - ID of the resource.
- description string
- Description.
- fail
Over string - Enable Failover. yes or no.
- instance
Weights CynosdbProxy End Point Instance Weight[] - Instance Weight.
- open
Connection stringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- rw
Type string - Read and write attributes: READWRITE, READONLY.
- security
Group string[]Ids - Security Group ID Array.
- trans
Split boolean - Transaction splitting.
- vip string
- VIP Information.
- vport number
- Port Information.
- weight
Mode string - Weight mode: system system allocation, custom customization.
- cluster_
id str - Cluster ID.
- unique_
subnet_ strid - The private network subnet ID is consistent with the cluster subnet ID by default.
- unique_
vpc_ strid - Private network ID, which is consistent with the cluster private network ID by default.
- access_
mode str - Connection mode: nearby, balance.
- auto_
add_ strro - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- connection_
pool_ floattime_ out - Connection pool threshold: unit (second).
- connection_
pool_ strtype - Connection pool type: SessionConnectionPool (session level Connection pool).
- consistency_
time_ floatout - Consistency timeout.
- consistency_
type str - Consistency type: event, global, session.
- cynosdb_
proxy_ strend_ point_ id - ID of the resource.
- description str
- Description.
- fail_
over str - Enable Failover. yes or no.
- instance_
weights Sequence[CynosdbProxy End Point Instance Weight Args] - Instance Weight.
- open_
connection_ strpool - Whether to enable Connection pool, yes - enable, no - do not enable.
- rw_
type str - Read and write attributes: READWRITE, READONLY.
- security_
group_ Sequence[str]ids - Security Group ID Array.
- trans_
split bool - Transaction splitting.
- vip str
- VIP Information.
- vport float
- Port Information.
- weight_
mode str - Weight mode: system system allocation, custom customization.
- cluster
Id String - Cluster ID.
- unique
Subnet StringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- unique
Vpc StringId - Private network ID, which is consistent with the cluster private network ID by default.
- access
Mode String - Connection mode: nearby, balance.
- auto
Add StringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- connection
Pool NumberTime Out - Connection pool threshold: unit (second).
- connection
Pool StringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- consistency
Time NumberOut - Consistency timeout.
- consistency
Type String - Consistency type: event, global, session.
- cynosdb
Proxy StringEnd Point Id - ID of the resource.
- description String
- Description.
- fail
Over String - Enable Failover. yes or no.
- instance
Weights List<Property Map> - Instance Weight.
- open
Connection StringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- rw
Type String - Read and write attributes: READWRITE, READONLY.
- security
Group List<String>Ids - Security Group ID Array.
- trans
Split Boolean - Transaction splitting.
- vip String
- VIP Information.
- vport Number
- Port Information.
- weight
Mode String - Weight mode: system system allocation, custom customization.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbProxyEndPoint resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Group stringId - Instance Group ID.
- Proxy
Group stringId - Proxy Group ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Group stringId - Instance Group ID.
- Proxy
Group stringId - Proxy Group ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Group StringId - Instance Group ID.
- proxy
Group StringId - Proxy Group ID.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Group stringId - Instance Group ID.
- proxy
Group stringId - Proxy Group ID.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
group_ strid - Instance Group ID.
- proxy_
group_ strid - Proxy Group ID.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Group StringId - Instance Group ID.
- proxy
Group StringId - Proxy Group ID.
Look up Existing CynosdbProxyEndPoint Resource
Get an existing CynosdbProxyEndPoint 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?: CynosdbProxyEndPointState, opts?: CustomResourceOptions): CynosdbProxyEndPoint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
auto_add_ro: Optional[str] = None,
cluster_id: Optional[str] = None,
connection_pool_time_out: Optional[float] = None,
connection_pool_type: Optional[str] = None,
consistency_time_out: Optional[float] = None,
consistency_type: Optional[str] = None,
cynosdb_proxy_end_point_id: Optional[str] = None,
description: Optional[str] = None,
fail_over: Optional[str] = None,
instance_group_id: Optional[str] = None,
instance_weights: Optional[Sequence[CynosdbProxyEndPointInstanceWeightArgs]] = None,
open_connection_pool: Optional[str] = None,
proxy_group_id: Optional[str] = None,
rw_type: Optional[str] = None,
security_group_ids: Optional[Sequence[str]] = None,
trans_split: Optional[bool] = None,
unique_subnet_id: Optional[str] = None,
unique_vpc_id: Optional[str] = None,
vip: Optional[str] = None,
vport: Optional[float] = None,
weight_mode: Optional[str] = None) -> CynosdbProxyEndPoint
func GetCynosdbProxyEndPoint(ctx *Context, name string, id IDInput, state *CynosdbProxyEndPointState, opts ...ResourceOption) (*CynosdbProxyEndPoint, error)
public static CynosdbProxyEndPoint Get(string name, Input<string> id, CynosdbProxyEndPointState? state, CustomResourceOptions? opts = null)
public static CynosdbProxyEndPoint get(String name, Output<String> id, CynosdbProxyEndPointState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CynosdbProxyEndPoint 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
Mode string - Connection mode: nearby, balance.
- Auto
Add stringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- Cluster
Id string - Cluster ID.
- Connection
Pool doubleTime Out - Connection pool threshold: unit (second).
- Connection
Pool stringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- Consistency
Time doubleOut - Consistency timeout.
- Consistency
Type string - Consistency type: event, global, session.
- Cynosdb
Proxy stringEnd Point Id - ID of the resource.
- Description string
- Description.
- Fail
Over string - Enable Failover. yes or no.
- Instance
Group stringId - Instance Group ID.
- Instance
Weights List<CynosdbProxy End Point Instance Weight> - Instance Weight.
- Open
Connection stringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- Proxy
Group stringId - Proxy Group ID.
- Rw
Type string - Read and write attributes: READWRITE, READONLY.
- Security
Group List<string>Ids - Security Group ID Array.
- Trans
Split bool - Transaction splitting.
- Unique
Subnet stringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- Unique
Vpc stringId - Private network ID, which is consistent with the cluster private network ID by default.
- Vip string
- VIP Information.
- Vport double
- Port Information.
- Weight
Mode string - Weight mode: system system allocation, custom customization.
- Access
Mode string - Connection mode: nearby, balance.
- Auto
Add stringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- Cluster
Id string - Cluster ID.
- Connection
Pool float64Time Out - Connection pool threshold: unit (second).
- Connection
Pool stringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- Consistency
Time float64Out - Consistency timeout.
- Consistency
Type string - Consistency type: event, global, session.
- Cynosdb
Proxy stringEnd Point Id - ID of the resource.
- Description string
- Description.
- Fail
Over string - Enable Failover. yes or no.
- Instance
Group stringId - Instance Group ID.
- Instance
Weights []CynosdbProxy End Point Instance Weight Args - Instance Weight.
- Open
Connection stringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- Proxy
Group stringId - Proxy Group ID.
- Rw
Type string - Read and write attributes: READWRITE, READONLY.
- Security
Group []stringIds - Security Group ID Array.
- Trans
Split bool - Transaction splitting.
- Unique
Subnet stringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- Unique
Vpc stringId - Private network ID, which is consistent with the cluster private network ID by default.
- Vip string
- VIP Information.
- Vport float64
- Port Information.
- Weight
Mode string - Weight mode: system system allocation, custom customization.
- access
Mode String - Connection mode: nearby, balance.
- auto
Add StringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- cluster
Id String - Cluster ID.
- connection
Pool DoubleTime Out - Connection pool threshold: unit (second).
- connection
Pool StringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- consistency
Time DoubleOut - Consistency timeout.
- consistency
Type String - Consistency type: event, global, session.
- cynosdb
Proxy StringEnd Point Id - ID of the resource.
- description String
- Description.
- fail
Over String - Enable Failover. yes or no.
- instance
Group StringId - Instance Group ID.
- instance
Weights List<CynosdbProxy End Point Instance Weight> - Instance Weight.
- open
Connection StringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- proxy
Group StringId - Proxy Group ID.
- rw
Type String - Read and write attributes: READWRITE, READONLY.
- security
Group List<String>Ids - Security Group ID Array.
- trans
Split Boolean - Transaction splitting.
- unique
Subnet StringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- unique
Vpc StringId - Private network ID, which is consistent with the cluster private network ID by default.
- vip String
- VIP Information.
- vport Double
- Port Information.
- weight
Mode String - Weight mode: system system allocation, custom customization.
- access
Mode string - Connection mode: nearby, balance.
- auto
Add stringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- cluster
Id string - Cluster ID.
- connection
Pool numberTime Out - Connection pool threshold: unit (second).
- connection
Pool stringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- consistency
Time numberOut - Consistency timeout.
- consistency
Type string - Consistency type: event, global, session.
- cynosdb
Proxy stringEnd Point Id - ID of the resource.
- description string
- Description.
- fail
Over string - Enable Failover. yes or no.
- instance
Group stringId - Instance Group ID.
- instance
Weights CynosdbProxy End Point Instance Weight[] - Instance Weight.
- open
Connection stringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- proxy
Group stringId - Proxy Group ID.
- rw
Type string - Read and write attributes: READWRITE, READONLY.
- security
Group string[]Ids - Security Group ID Array.
- trans
Split boolean - Transaction splitting.
- unique
Subnet stringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- unique
Vpc stringId - Private network ID, which is consistent with the cluster private network ID by default.
- vip string
- VIP Information.
- vport number
- Port Information.
- weight
Mode string - Weight mode: system system allocation, custom customization.
- access_
mode str - Connection mode: nearby, balance.
- auto_
add_ strro - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- cluster_
id str - Cluster ID.
- connection_
pool_ floattime_ out - Connection pool threshold: unit (second).
- connection_
pool_ strtype - Connection pool type: SessionConnectionPool (session level Connection pool).
- consistency_
time_ floatout - Consistency timeout.
- consistency_
type str - Consistency type: event, global, session.
- cynosdb_
proxy_ strend_ point_ id - ID of the resource.
- description str
- Description.
- fail_
over str - Enable Failover. yes or no.
- instance_
group_ strid - Instance Group ID.
- instance_
weights Sequence[CynosdbProxy End Point Instance Weight Args] - Instance Weight.
- open_
connection_ strpool - Whether to enable Connection pool, yes - enable, no - do not enable.
- proxy_
group_ strid - Proxy Group ID.
- rw_
type str - Read and write attributes: READWRITE, READONLY.
- security_
group_ Sequence[str]ids - Security Group ID Array.
- trans_
split bool - Transaction splitting.
- unique_
subnet_ strid - The private network subnet ID is consistent with the cluster subnet ID by default.
- unique_
vpc_ strid - Private network ID, which is consistent with the cluster private network ID by default.
- vip str
- VIP Information.
- vport float
- Port Information.
- weight_
mode str - Weight mode: system system allocation, custom customization.
- access
Mode String - Connection mode: nearby, balance.
- auto
Add StringRo - Do you want to automatically add read-only instances? Yes - Yes, no - Do not automatically add.
- cluster
Id String - Cluster ID.
- connection
Pool NumberTime Out - Connection pool threshold: unit (second).
- connection
Pool StringType - Connection pool type: SessionConnectionPool (session level Connection pool).
- consistency
Time NumberOut - Consistency timeout.
- consistency
Type String - Consistency type: event, global, session.
- cynosdb
Proxy StringEnd Point Id - ID of the resource.
- description String
- Description.
- fail
Over String - Enable Failover. yes or no.
- instance
Group StringId - Instance Group ID.
- instance
Weights List<Property Map> - Instance Weight.
- open
Connection StringPool - Whether to enable Connection pool, yes - enable, no - do not enable.
- proxy
Group StringId - Proxy Group ID.
- rw
Type String - Read and write attributes: READWRITE, READONLY.
- security
Group List<String>Ids - Security Group ID Array.
- trans
Split Boolean - Transaction splitting.
- unique
Subnet StringId - The private network subnet ID is consistent with the cluster subnet ID by default.
- unique
Vpc StringId - Private network ID, which is consistent with the cluster private network ID by default.
- vip String
- VIP Information.
- vport Number
- Port Information.
- weight
Mode String - Weight mode: system system allocation, custom customization.
Supporting Types
CynosdbProxyEndPointInstanceWeight, CynosdbProxyEndPointInstanceWeightArgs
- Instance
Id string - Instance Id.
- Weight double
- Instance Weight.
- Instance
Id string - Instance Id.
- Weight float64
- Instance Weight.
- instance
Id String - Instance Id.
- weight Double
- Instance Weight.
- instance
Id string - Instance Id.
- weight number
- Instance Weight.
- instance_
id str - Instance Id.
- weight float
- Instance Weight.
- instance
Id String - Instance Id.
- weight Number
- Instance Weight.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.