Example Usage
Use topic_name and<span pulumi-lang-nodejs=" groupName
" pulumi-lang-dotnet=" GroupName " pulumi-lang-go=" groupName " pulumi-lang-python=" group_name " pulumi-lang-yaml=" groupName " pulumi-lang-java=" groupName “> group_name
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CynosdbClsDelivery("example", {
instanceId: "cynosdbmysql-ins-m2903cxq",
clsInfoList: {
region: "ap-guangzhou",
topicName: "tf-example",
groupName: "tf-example",
},
runningStatus: true,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CynosdbClsDelivery("example",
instance_id="cynosdbmysql-ins-m2903cxq",
cls_info_list={
"region": "ap-guangzhou",
"topic_name": "tf-example",
"group_name": "tf-example",
},
running_status=True)
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.NewCynosdbClsDelivery(ctx, "example", &tencentcloud.CynosdbClsDeliveryArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-m2903cxq"),
ClsInfoList: &tencentcloud.CynosdbClsDeliveryClsInfoListArgs{
Region: pulumi.String("ap-guangzhou"),
TopicName: pulumi.String("tf-example"),
GroupName: pulumi.String("tf-example"),
},
RunningStatus: pulumi.Bool(true),
})
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 example = new Tencentcloud.CynosdbClsDelivery("example", new()
{
InstanceId = "cynosdbmysql-ins-m2903cxq",
ClsInfoList = new Tencentcloud.Inputs.CynosdbClsDeliveryClsInfoListArgs
{
Region = "ap-guangzhou",
TopicName = "tf-example",
GroupName = "tf-example",
},
RunningStatus = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbClsDelivery;
import com.pulumi.tencentcloud.CynosdbClsDeliveryArgs;
import com.pulumi.tencentcloud.inputs.CynosdbClsDeliveryClsInfoListArgs;
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 example = new CynosdbClsDelivery("example", CynosdbClsDeliveryArgs.builder()
.instanceId("cynosdbmysql-ins-m2903cxq")
.clsInfoList(CynosdbClsDeliveryClsInfoListArgs.builder()
.region("ap-guangzhou")
.topicName("tf-example")
.groupName("tf-example")
.build())
.runningStatus(true)
.build());
}
}
resources:
example:
type: tencentcloud:CynosdbClsDelivery
properties:
instanceId: cynosdbmysql-ins-m2903cxq
clsInfoList:
region: ap-guangzhou
topicName: tf-example
groupName: tf-example
runningStatus: true
Use topic_id and<span pulumi-lang-nodejs=” groupId
" pulumi-lang-dotnet=" GroupId " pulumi-lang-go=" groupId " pulumi-lang-python=" group_id " pulumi-lang-yaml=" groupId " pulumi-lang-java=" groupId “> group_id
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CynosdbClsDelivery("example", {
instanceId: "cynosdbmysql-ins-m2903cxq",
clsInfoList: {
region: "ap-guangzhou",
topicId: "a9d582f8-8c14-462c-94b8-bbc579a04f02",
groupId: "67fca013-379b-4bc6-8e72-390227d869c4",
},
runningStatus: false,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CynosdbClsDelivery("example",
instance_id="cynosdbmysql-ins-m2903cxq",
cls_info_list={
"region": "ap-guangzhou",
"topic_id": "a9d582f8-8c14-462c-94b8-bbc579a04f02",
"group_id": "67fca013-379b-4bc6-8e72-390227d869c4",
},
running_status=False)
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.NewCynosdbClsDelivery(ctx, "example", &tencentcloud.CynosdbClsDeliveryArgs{
InstanceId: pulumi.String("cynosdbmysql-ins-m2903cxq"),
ClsInfoList: &tencentcloud.CynosdbClsDeliveryClsInfoListArgs{
Region: pulumi.String("ap-guangzhou"),
TopicId: pulumi.String("a9d582f8-8c14-462c-94b8-bbc579a04f02"),
GroupId: pulumi.String("67fca013-379b-4bc6-8e72-390227d869c4"),
},
RunningStatus: pulumi.Bool(false),
})
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 example = new Tencentcloud.CynosdbClsDelivery("example", new()
{
InstanceId = "cynosdbmysql-ins-m2903cxq",
ClsInfoList = new Tencentcloud.Inputs.CynosdbClsDeliveryClsInfoListArgs
{
Region = "ap-guangzhou",
TopicId = "a9d582f8-8c14-462c-94b8-bbc579a04f02",
GroupId = "67fca013-379b-4bc6-8e72-390227d869c4",
},
RunningStatus = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CynosdbClsDelivery;
import com.pulumi.tencentcloud.CynosdbClsDeliveryArgs;
import com.pulumi.tencentcloud.inputs.CynosdbClsDeliveryClsInfoListArgs;
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 example = new CynosdbClsDelivery("example", CynosdbClsDeliveryArgs.builder()
.instanceId("cynosdbmysql-ins-m2903cxq")
.clsInfoList(CynosdbClsDeliveryClsInfoListArgs.builder()
.region("ap-guangzhou")
.topicId("a9d582f8-8c14-462c-94b8-bbc579a04f02")
.groupId("67fca013-379b-4bc6-8e72-390227d869c4")
.build())
.runningStatus(false)
.build());
}
}
resources:
example:
type: tencentcloud:CynosdbClsDelivery
properties:
instanceId: cynosdbmysql-ins-m2903cxq
clsInfoList:
region: ap-guangzhou
topicId: a9d582f8-8c14-462c-94b8-bbc579a04f02
groupId: 67fca013-379b-4bc6-8e72-390227d869c4
runningStatus: false
Create CynosdbClsDelivery Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CynosdbClsDelivery(name: string, args: CynosdbClsDeliveryArgs, opts?: CustomResourceOptions);@overload
def CynosdbClsDelivery(resource_name: str,
args: CynosdbClsDeliveryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CynosdbClsDelivery(resource_name: str,
opts: Optional[ResourceOptions] = None,
cls_info_list: Optional[CynosdbClsDeliveryClsInfoListArgs] = None,
instance_id: Optional[str] = None,
cynosdb_cls_delivery_id: Optional[str] = None,
log_type: Optional[str] = None,
running_status: Optional[bool] = None)func NewCynosdbClsDelivery(ctx *Context, name string, args CynosdbClsDeliveryArgs, opts ...ResourceOption) (*CynosdbClsDelivery, error)public CynosdbClsDelivery(string name, CynosdbClsDeliveryArgs args, CustomResourceOptions? opts = null)
public CynosdbClsDelivery(String name, CynosdbClsDeliveryArgs args)
public CynosdbClsDelivery(String name, CynosdbClsDeliveryArgs args, CustomResourceOptions options)
type: tencentcloud:CynosdbClsDelivery
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 CynosdbClsDeliveryArgs
- 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 CynosdbClsDeliveryArgs
- 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 CynosdbClsDeliveryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CynosdbClsDeliveryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CynosdbClsDeliveryArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CynosdbClsDelivery 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 CynosdbClsDelivery resource accepts the following input properties:
- Cls
Info CynosdbList Cls Delivery Cls Info List - Log shipping configuration.
- Instance
Id string - Intance ID.
- Cynosdb
Cls stringDelivery Id - ID of the resource.
- Log
Type string - Log type.
- Running
Status bool - Delivery status. true: Enabled; false: Disabled.
- Cls
Info CynosdbList Cls Delivery Cls Info List Args - Log shipping configuration.
- Instance
Id string - Intance ID.
- Cynosdb
Cls stringDelivery Id - ID of the resource.
- Log
Type string - Log type.
- Running
Status bool - Delivery status. true: Enabled; false: Disabled.
- cls
Info CynosdbList Cls Delivery Cls Info List - Log shipping configuration.
- instance
Id String - Intance ID.
- cynosdb
Cls StringDelivery Id - ID of the resource.
- log
Type String - Log type.
- running
Status Boolean - Delivery status. true: Enabled; false: Disabled.
- cls
Info CynosdbList Cls Delivery Cls Info List - Log shipping configuration.
- instance
Id string - Intance ID.
- cynosdb
Cls stringDelivery Id - ID of the resource.
- log
Type string - Log type.
- running
Status boolean - Delivery status. true: Enabled; false: Disabled.
- cls_
info_ Cynosdblist Cls Delivery Cls Info List Args - Log shipping configuration.
- instance_
id str - Intance ID.
- cynosdb_
cls_ strdelivery_ id - ID of the resource.
- log_
type str - Log type.
- running_
status bool - Delivery status. true: Enabled; false: Disabled.
- cls
Info Property MapList - Log shipping configuration.
- instance
Id String - Intance ID.
- cynosdb
Cls StringDelivery Id - ID of the resource.
- log
Type String - Log type.
- running
Status Boolean - Delivery status. true: Enabled; false: Disabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the CynosdbClsDelivery 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 CynosdbClsDelivery Resource
Get an existing CynosdbClsDelivery 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?: CynosdbClsDeliveryState, opts?: CustomResourceOptions): CynosdbClsDelivery@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cls_info_list: Optional[CynosdbClsDeliveryClsInfoListArgs] = None,
cynosdb_cls_delivery_id: Optional[str] = None,
instance_id: Optional[str] = None,
log_type: Optional[str] = None,
running_status: Optional[bool] = None) -> CynosdbClsDeliveryfunc GetCynosdbClsDelivery(ctx *Context, name string, id IDInput, state *CynosdbClsDeliveryState, opts ...ResourceOption) (*CynosdbClsDelivery, error)public static CynosdbClsDelivery Get(string name, Input<string> id, CynosdbClsDeliveryState? state, CustomResourceOptions? opts = null)public static CynosdbClsDelivery get(String name, Output<String> id, CynosdbClsDeliveryState state, CustomResourceOptions options)resources: _: type: tencentcloud:CynosdbClsDelivery 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.
- Cls
Info CynosdbList Cls Delivery Cls Info List - Log shipping configuration.
- Cynosdb
Cls stringDelivery Id - ID of the resource.
- Instance
Id string - Intance ID.
- Log
Type string - Log type.
- Running
Status bool - Delivery status. true: Enabled; false: Disabled.
- Cls
Info CynosdbList Cls Delivery Cls Info List Args - Log shipping configuration.
- Cynosdb
Cls stringDelivery Id - ID of the resource.
- Instance
Id string - Intance ID.
- Log
Type string - Log type.
- Running
Status bool - Delivery status. true: Enabled; false: Disabled.
- cls
Info CynosdbList Cls Delivery Cls Info List - Log shipping configuration.
- cynosdb
Cls StringDelivery Id - ID of the resource.
- instance
Id String - Intance ID.
- log
Type String - Log type.
- running
Status Boolean - Delivery status. true: Enabled; false: Disabled.
- cls
Info CynosdbList Cls Delivery Cls Info List - Log shipping configuration.
- cynosdb
Cls stringDelivery Id - ID of the resource.
- instance
Id string - Intance ID.
- log
Type string - Log type.
- running
Status boolean - Delivery status. true: Enabled; false: Disabled.
- cls_
info_ Cynosdblist Cls Delivery Cls Info List Args - Log shipping configuration.
- cynosdb_
cls_ strdelivery_ id - ID of the resource.
- instance_
id str - Intance ID.
- log_
type str - Log type.
- running_
status bool - Delivery status. true: Enabled; false: Disabled.
- cls
Info Property MapList - Log shipping configuration.
- cynosdb
Cls StringDelivery Id - ID of the resource.
- instance
Id String - Intance ID.
- log
Type String - Log type.
- running
Status Boolean - Delivery status. true: Enabled; false: Disabled.
Supporting Types
CynosdbClsDeliveryClsInfoList, CynosdbClsDeliveryClsInfoListArgs
- region str
- Log delivery area.
- group_
id str - Log set ID.
- group_
name str - Log set name.
- topic_
id str - Log topic ID.
- topic_
name str - Log topic name.
Import
CynosDB cls delivery can be imported using the instanceId#topicId, e.g.
$ pulumi import tencentcloud:index/cynosdbClsDelivery:CynosdbClsDelivery example cynosdbmysql-ins-m2903cxq#222932ff-a10a-41f1-8d29-ff0cfe2a2d99
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
tencentcloudTerraform Provider.
