tencentcloud.CynosdbWan
Explore with Pulumi AI
Provides a resource to create a cynosdb wan
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const wan = new tencentcloud.CynosdbWan("wan", {
clusterId: "cynosdbmysql-bws8h88b",
instanceGrpId: "cynosdbmysql-grp-lxav0p9z",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
wan = tencentcloud.CynosdbWan("wan",
cluster_id="cynosdbmysql-bws8h88b",
instance_grp_id="cynosdbmysql-grp-lxav0p9z")
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.NewCynosdbWan(ctx, "wan", &tencentcloud.CynosdbWanArgs{
ClusterId: pulumi.String("cynosdbmysql-bws8h88b"),
InstanceGrpId: pulumi.String("cynosdbmysql-grp-lxav0p9z"),
})
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 wan = new Tencentcloud.CynosdbWan("wan", new()
{
ClusterId = "cynosdbmysql-bws8h88b",
InstanceGrpId = "cynosdbmysql-grp-lxav0p9z",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbWan;
import com.pulumi.tencentcloud.CynosdbWanArgs;
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 wan = new CynosdbWan("wan", CynosdbWanArgs.builder()
.clusterId("cynosdbmysql-bws8h88b")
.instanceGrpId("cynosdbmysql-grp-lxav0p9z")
.build());
}
}
resources:
wan:
type: tencentcloud:CynosdbWan
properties:
clusterId: cynosdbmysql-bws8h88b
instanceGrpId: cynosdbmysql-grp-lxav0p9z
Create CynosdbWan Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbWan(name: string, args: CynosdbWanArgs, opts?: CustomResourceOptions);
@overload
def CynosdbWan(resource_name: str,
args: CynosdbWanArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbWan(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
instance_grp_id: Optional[str] = None,
cynosdb_wan_id: Optional[str] = None)
func NewCynosdbWan(ctx *Context, name string, args CynosdbWanArgs, opts ...ResourceOption) (*CynosdbWan, error)
public CynosdbWan(string name, CynosdbWanArgs args, CustomResourceOptions? opts = null)
public CynosdbWan(String name, CynosdbWanArgs args)
public CynosdbWan(String name, CynosdbWanArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbWan
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 CynosdbWanArgs
- 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 CynosdbWanArgs
- 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 CynosdbWanArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbWanArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbWanArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbWan 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 CynosdbWan resource accepts the following input properties:
- Cluster
Id string - Cluster ID.
- Instance
Grp stringId - Instance Group ID.
- Cynosdb
Wan stringId - ID of the resource.
- Cluster
Id string - Cluster ID.
- Instance
Grp stringId - Instance Group ID.
- Cynosdb
Wan stringId - ID of the resource.
- cluster
Id String - Cluster ID.
- instance
Grp StringId - Instance Group ID.
- cynosdb
Wan StringId - ID of the resource.
- cluster
Id string - Cluster ID.
- instance
Grp stringId - Instance Group ID.
- cynosdb
Wan stringId - ID of the resource.
- cluster_
id str - Cluster ID.
- instance_
grp_ strid - Instance Group ID.
- cynosdb_
wan_ strid - ID of the resource.
- cluster
Id String - Cluster ID.
- instance
Grp StringId - Instance Group ID.
- cynosdb
Wan StringId - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbWan resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- wan_
domain str - Domain name.
- wan_
ip str - Network ip.
- wan_
port float - Internet port.
- wan_
status str - Internet status.
Look up Existing CynosdbWan Resource
Get an existing CynosdbWan 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?: CynosdbWanState, opts?: CustomResourceOptions): CynosdbWan
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
cynosdb_wan_id: Optional[str] = None,
instance_grp_id: Optional[str] = None,
wan_domain: Optional[str] = None,
wan_ip: Optional[str] = None,
wan_port: Optional[float] = None,
wan_status: Optional[str] = None) -> CynosdbWan
func GetCynosdbWan(ctx *Context, name string, id IDInput, state *CynosdbWanState, opts ...ResourceOption) (*CynosdbWan, error)
public static CynosdbWan Get(string name, Input<string> id, CynosdbWanState? state, CustomResourceOptions? opts = null)
public static CynosdbWan get(String name, Output<String> id, CynosdbWanState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CynosdbWan 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.
- Cluster
Id string - Cluster ID.
- Cynosdb
Wan stringId - ID of the resource.
- Instance
Grp stringId - Instance Group ID.
- Wan
Domain string - Domain name.
- Wan
Ip string - Network ip.
- Wan
Port double - Internet port.
- Wan
Status string - Internet status.
- Cluster
Id string - Cluster ID.
- Cynosdb
Wan stringId - ID of the resource.
- Instance
Grp stringId - Instance Group ID.
- Wan
Domain string - Domain name.
- Wan
Ip string - Network ip.
- Wan
Port float64 - Internet port.
- Wan
Status string - Internet status.
- cluster
Id String - Cluster ID.
- cynosdb
Wan StringId - ID of the resource.
- instance
Grp StringId - Instance Group ID.
- wan
Domain String - Domain name.
- wan
Ip String - Network ip.
- wan
Port Double - Internet port.
- wan
Status String - Internet status.
- cluster
Id string - Cluster ID.
- cynosdb
Wan stringId - ID of the resource.
- instance
Grp stringId - Instance Group ID.
- wan
Domain string - Domain name.
- wan
Ip string - Network ip.
- wan
Port number - Internet port.
- wan
Status string - Internet status.
- cluster_
id str - Cluster ID.
- cynosdb_
wan_ strid - ID of the resource.
- instance_
grp_ strid - Instance Group ID.
- wan_
domain str - Domain name.
- wan_
ip str - Network ip.
- wan_
port float - Internet port.
- wan_
status str - Internet status.
- cluster
Id String - Cluster ID.
- cynosdb
Wan StringId - ID of the resource.
- instance
Grp StringId - Instance Group ID.
- wan
Domain String - Domain name.
- wan
Ip String - Network ip.
- wan
Port Number - Internet port.
- wan
Status String - Internet status.
Import
cynosdb wan can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cynosdbWan:CynosdbWan wan cynosdbmysql-bws8h88b#cynosdbmysql-grp-lxav0p9z
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.