tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.MysqlSwitchProxy
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
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 string
- The unique name of the resource.
- args MysqlSwitchProxyArgs
- 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 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 string
- The unique name of the resource.
- args MysqlSwitchProxyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MysqlSwitchProxyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Instance
Id string - Instance id.
- Proxy
Group stringId - Proxy group id.
- Mysql
Switch stringProxy Id
- Instance
Id string - Instance id.
- Proxy
Group stringId - Proxy group id.
- Mysql
Switch stringProxy Id
- instance
Id String - Instance id.
- proxy
Group StringId - Proxy group id.
- mysql
Switch StringProxy Id
- instance
Id string - Instance id.
- proxy
Group stringId - Proxy group id.
- mysql
Switch stringProxy Id
- instance_
id str - Instance id.
- proxy_
group_ strid - Proxy group id.
- mysql_
switch_ strproxy_ id
- instance
Id String - Instance id.
- proxy
Group StringId - Proxy group id.
- mysql
Switch StringProxy Id
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
- 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.
- Instance
Id string - Instance id.
- Mysql
Switch stringProxy Id - Proxy
Group stringId - Proxy group id.
- Instance
Id string - Instance id.
- Mysql
Switch stringProxy Id - Proxy
Group stringId - Proxy group id.
- instance
Id String - Instance id.
- mysql
Switch StringProxy Id - proxy
Group StringId - Proxy group id.
- instance
Id string - Instance id.
- mysql
Switch stringProxy Id - proxy
Group stringId - Proxy group id.
- instance_
id str - Instance id.
- mysql_
switch_ strproxy_ id - proxy_
group_ strid - Proxy group id.
- instance
Id String - Instance id.
- mysql
Switch StringProxy Id - proxy
Group StringId - Proxy group id.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack