1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. MysqlSwitchProxy
tencentcloud 1.81.187 published on Monday, Apr 28, 2025 by tencentcloudstack

tencentcloud.MysqlSwitchProxy

Explore with Pulumi AI

Create MysqlSwitchProxy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new MysqlSwitchProxy(name: string, args: MysqlSwitchProxyArgs, opts?: CustomResourceOptions);
@overload
def MysqlSwitchProxy(resource_name: str,
                     args: MysqlSwitchProxyArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def MysqlSwitchProxy(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     instance_id: Optional[str] = None,
                     proxy_group_id: Optional[str] = None,
                     mysql_switch_proxy_id: Optional[str] = None)
func NewMysqlSwitchProxy(ctx *Context, name string, args MysqlSwitchProxyArgs, opts ...ResourceOption) (*MysqlSwitchProxy, error)
public MysqlSwitchProxy(string name, MysqlSwitchProxyArgs args, CustomResourceOptions? opts = null)
public MysqlSwitchProxy(String name, MysqlSwitchProxyArgs args)
public MysqlSwitchProxy(String name, MysqlSwitchProxyArgs args, CustomResourceOptions options)
type: tencentcloud:MysqlSwitchProxy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MysqlSwitchProxyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MysqlSwitchProxyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MysqlSwitchProxyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MysqlSwitchProxyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MysqlSwitchProxyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

MysqlSwitchProxy 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 MysqlSwitchProxy resource accepts the following input properties:

InstanceId This property is required. string
Instance id.
ProxyGroupId This property is required. string
Proxy group id.
MysqlSwitchProxyId string
InstanceId This property is required. string
Instance id.
ProxyGroupId This property is required. string
Proxy group id.
MysqlSwitchProxyId string
instanceId This property is required. String
Instance id.
proxyGroupId This property is required. String
Proxy group id.
mysqlSwitchProxyId String
instanceId This property is required. string
Instance id.
proxyGroupId This property is required. string
Proxy group id.
mysqlSwitchProxyId string
instance_id This property is required. str
Instance id.
proxy_group_id This property is required. str
Proxy group id.
mysql_switch_proxy_id str
instanceId This property is required. String
Instance id.
proxyGroupId This property is required. String
Proxy group id.
mysqlSwitchProxyId String

Outputs

All input properties are implicitly available as output properties. Additionally, the MysqlSwitchProxy resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing MysqlSwitchProxy Resource

Get an existing MysqlSwitchProxy 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?: MysqlSwitchProxyState, opts?: CustomResourceOptions): MysqlSwitchProxy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        instance_id: Optional[str] = None,
        mysql_switch_proxy_id: Optional[str] = None,
        proxy_group_id: Optional[str] = None) -> MysqlSwitchProxy
func GetMysqlSwitchProxy(ctx *Context, name string, id IDInput, state *MysqlSwitchProxyState, opts ...ResourceOption) (*MysqlSwitchProxy, error)
public static MysqlSwitchProxy Get(string name, Input<string> id, MysqlSwitchProxyState? state, CustomResourceOptions? opts = null)
public static MysqlSwitchProxy get(String name, Output<String> id, MysqlSwitchProxyState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:MysqlSwitchProxy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
InstanceId string
Instance id.
MysqlSwitchProxyId string
ProxyGroupId string
Proxy group id.
InstanceId string
Instance id.
MysqlSwitchProxyId string
ProxyGroupId string
Proxy group id.
instanceId String
Instance id.
mysqlSwitchProxyId String
proxyGroupId String
Proxy group id.
instanceId string
Instance id.
mysqlSwitchProxyId string
proxyGroupId string
Proxy group id.
instance_id str
Instance id.
mysql_switch_proxy_id str
proxy_group_id str
Proxy group id.
instanceId String
Instance id.
mysqlSwitchProxyId String
proxyGroupId String
Proxy group id.

Package Details

Repository
tencentcloud tencentcloudstack/terraform-provider-tencentcloud
License
Notes
This Pulumi package is based on the tencentcloud Terraform Provider.