1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. TdmqSendRocketmqMessage
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.TdmqSendRocketmqMessage

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to create a tdmq send_rocketmq_message

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const sendRocketmqMessage = new tencentcloud.TdmqSendRocketmqMessage("sendRocketmqMessage", {
        clusterId: "rocketmq-7k45z9dkpnne",
        msgBody: "msg key",
        msgKey: "msg tag",
        msgTag: "msg value",
        namespaceId: "test_ns",
        topicName: "test_topic",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    send_rocketmq_message = tencentcloud.TdmqSendRocketmqMessage("sendRocketmqMessage",
        cluster_id="rocketmq-7k45z9dkpnne",
        msg_body="msg key",
        msg_key="msg tag",
        msg_tag="msg value",
        namespace_id="test_ns",
        topic_name="test_topic")
    
    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.NewTdmqSendRocketmqMessage(ctx, "sendRocketmqMessage", &tencentcloud.TdmqSendRocketmqMessageArgs{
    			ClusterId:   pulumi.String("rocketmq-7k45z9dkpnne"),
    			MsgBody:     pulumi.String("msg key"),
    			MsgKey:      pulumi.String("msg tag"),
    			MsgTag:      pulumi.String("msg value"),
    			NamespaceId: pulumi.String("test_ns"),
    			TopicName:   pulumi.String("test_topic"),
    		})
    		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 sendRocketmqMessage = new Tencentcloud.TdmqSendRocketmqMessage("sendRocketmqMessage", new()
        {
            ClusterId = "rocketmq-7k45z9dkpnne",
            MsgBody = "msg key",
            MsgKey = "msg tag",
            MsgTag = "msg value",
            NamespaceId = "test_ns",
            TopicName = "test_topic",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TdmqSendRocketmqMessage;
    import com.pulumi.tencentcloud.TdmqSendRocketmqMessageArgs;
    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 sendRocketmqMessage = new TdmqSendRocketmqMessage("sendRocketmqMessage", TdmqSendRocketmqMessageArgs.builder()
                .clusterId("rocketmq-7k45z9dkpnne")
                .msgBody("msg key")
                .msgKey("msg tag")
                .msgTag("msg value")
                .namespaceId("test_ns")
                .topicName("test_topic")
                .build());
    
        }
    }
    
    resources:
      sendRocketmqMessage:
        type: tencentcloud:TdmqSendRocketmqMessage
        properties:
          clusterId: rocketmq-7k45z9dkpnne
          msgBody: msg key
          msgKey: msg tag
          msgTag: msg value
          namespaceId: test_ns
          topicName: test_topic
    

    Create TdmqSendRocketmqMessage Resource

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

    Constructor syntax

    new TdmqSendRocketmqMessage(name: string, args: TdmqSendRocketmqMessageArgs, opts?: CustomResourceOptions);
    @overload
    def TdmqSendRocketmqMessage(resource_name: str,
                                args: TdmqSendRocketmqMessageArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def TdmqSendRocketmqMessage(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                cluster_id: Optional[str] = None,
                                msg_body: Optional[str] = None,
                                namespace_id: Optional[str] = None,
                                topic_name: Optional[str] = None,
                                msg_key: Optional[str] = None,
                                msg_tag: Optional[str] = None,
                                tdmq_send_rocketmq_message_id: Optional[str] = None)
    func NewTdmqSendRocketmqMessage(ctx *Context, name string, args TdmqSendRocketmqMessageArgs, opts ...ResourceOption) (*TdmqSendRocketmqMessage, error)
    public TdmqSendRocketmqMessage(string name, TdmqSendRocketmqMessageArgs args, CustomResourceOptions? opts = null)
    public TdmqSendRocketmqMessage(String name, TdmqSendRocketmqMessageArgs args)
    public TdmqSendRocketmqMessage(String name, TdmqSendRocketmqMessageArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TdmqSendRocketmqMessage
    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 TdmqSendRocketmqMessageArgs
    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 TdmqSendRocketmqMessageArgs
    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 TdmqSendRocketmqMessageArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TdmqSendRocketmqMessageArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TdmqSendRocketmqMessageArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    ClusterId string
    Cluster id.
    MsgBody string
    Information.
    NamespaceId string
    Namespaces.
    TopicName string
    topic name.
    MsgKey string
    Message key information.
    MsgTag string
    Message tag information.
    TdmqSendRocketmqMessageId string
    ID of the resource.
    ClusterId string
    Cluster id.
    MsgBody string
    Information.
    NamespaceId string
    Namespaces.
    TopicName string
    topic name.
    MsgKey string
    Message key information.
    MsgTag string
    Message tag information.
    TdmqSendRocketmqMessageId string
    ID of the resource.
    clusterId String
    Cluster id.
    msgBody String
    Information.
    namespaceId String
    Namespaces.
    topicName String
    topic name.
    msgKey String
    Message key information.
    msgTag String
    Message tag information.
    tdmqSendRocketmqMessageId String
    ID of the resource.
    clusterId string
    Cluster id.
    msgBody string
    Information.
    namespaceId string
    Namespaces.
    topicName string
    topic name.
    msgKey string
    Message key information.
    msgTag string
    Message tag information.
    tdmqSendRocketmqMessageId string
    ID of the resource.
    cluster_id str
    Cluster id.
    msg_body str
    Information.
    namespace_id str
    Namespaces.
    topic_name str
    topic name.
    msg_key str
    Message key information.
    msg_tag str
    Message tag information.
    tdmq_send_rocketmq_message_id str
    ID of the resource.
    clusterId String
    Cluster id.
    msgBody String
    Information.
    namespaceId String
    Namespaces.
    topicName String
    topic name.
    msgKey String
    Message key information.
    msgTag String
    Message tag information.
    tdmqSendRocketmqMessageId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TdmqSendRocketmqMessage 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 TdmqSendRocketmqMessage Resource

    Get an existing TdmqSendRocketmqMessage 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?: TdmqSendRocketmqMessageState, opts?: CustomResourceOptions): TdmqSendRocketmqMessage
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cluster_id: Optional[str] = None,
            msg_body: Optional[str] = None,
            msg_key: Optional[str] = None,
            msg_tag: Optional[str] = None,
            namespace_id: Optional[str] = None,
            tdmq_send_rocketmq_message_id: Optional[str] = None,
            topic_name: Optional[str] = None) -> TdmqSendRocketmqMessage
    func GetTdmqSendRocketmqMessage(ctx *Context, name string, id IDInput, state *TdmqSendRocketmqMessageState, opts ...ResourceOption) (*TdmqSendRocketmqMessage, error)
    public static TdmqSendRocketmqMessage Get(string name, Input<string> id, TdmqSendRocketmqMessageState? state, CustomResourceOptions? opts = null)
    public static TdmqSendRocketmqMessage get(String name, Output<String> id, TdmqSendRocketmqMessageState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TdmqSendRocketmqMessage    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.
    The following state arguments are supported:
    ClusterId string
    Cluster id.
    MsgBody string
    Information.
    MsgKey string
    Message key information.
    MsgTag string
    Message tag information.
    NamespaceId string
    Namespaces.
    TdmqSendRocketmqMessageId string
    ID of the resource.
    TopicName string
    topic name.
    ClusterId string
    Cluster id.
    MsgBody string
    Information.
    MsgKey string
    Message key information.
    MsgTag string
    Message tag information.
    NamespaceId string
    Namespaces.
    TdmqSendRocketmqMessageId string
    ID of the resource.
    TopicName string
    topic name.
    clusterId String
    Cluster id.
    msgBody String
    Information.
    msgKey String
    Message key information.
    msgTag String
    Message tag information.
    namespaceId String
    Namespaces.
    tdmqSendRocketmqMessageId String
    ID of the resource.
    topicName String
    topic name.
    clusterId string
    Cluster id.
    msgBody string
    Information.
    msgKey string
    Message key information.
    msgTag string
    Message tag information.
    namespaceId string
    Namespaces.
    tdmqSendRocketmqMessageId string
    ID of the resource.
    topicName string
    topic name.
    cluster_id str
    Cluster id.
    msg_body str
    Information.
    msg_key str
    Message key information.
    msg_tag str
    Message tag information.
    namespace_id str
    Namespaces.
    tdmq_send_rocketmq_message_id str
    ID of the resource.
    topic_name str
    topic name.
    clusterId String
    Cluster id.
    msgBody String
    Information.
    msgKey String
    Message key information.
    msgTag String
    Message tag information.
    namespaceId String
    Namespaces.
    tdmqSendRocketmqMessageId String
    ID of the resource.
    topicName String
    topic name.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack