tencentcloud.TdmqSendRocketmqMessage
Explore with Pulumi AI
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:
- Cluster
Id string - Cluster id.
- Msg
Body string - Information.
- Namespace
Id string - Namespaces.
- Topic
Name string - topic name.
- Msg
Key string - Message key information.
- Msg
Tag string - Message tag information.
- Tdmq
Send stringRocketmq Message Id - ID of the resource.
- Cluster
Id string - Cluster id.
- Msg
Body string - Information.
- Namespace
Id string - Namespaces.
- Topic
Name string - topic name.
- Msg
Key string - Message key information.
- Msg
Tag string - Message tag information.
- Tdmq
Send stringRocketmq Message Id - ID of the resource.
- cluster
Id String - Cluster id.
- msg
Body String - Information.
- namespace
Id String - Namespaces.
- topic
Name String - topic name.
- msg
Key String - Message key information.
- msg
Tag String - Message tag information.
- tdmq
Send StringRocketmq Message Id - ID of the resource.
- cluster
Id string - Cluster id.
- msg
Body string - Information.
- namespace
Id string - Namespaces.
- topic
Name string - topic name.
- msg
Key string - Message key information.
- msg
Tag string - Message tag information.
- tdmq
Send stringRocketmq Message Id - 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_ strrocketmq_ message_ id - ID of the resource.
- cluster
Id String - Cluster id.
- msg
Body String - Information.
- namespace
Id String - Namespaces.
- topic
Name String - topic name.
- msg
Key String - Message key information.
- msg
Tag String - Message tag information.
- tdmq
Send StringRocketmq Message Id - 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.
- Cluster
Id string - Cluster id.
- Msg
Body string - Information.
- Msg
Key string - Message key information.
- Msg
Tag string - Message tag information.
- Namespace
Id string - Namespaces.
- Tdmq
Send stringRocketmq Message Id - ID of the resource.
- Topic
Name string - topic name.
- Cluster
Id string - Cluster id.
- Msg
Body string - Information.
- Msg
Key string - Message key information.
- Msg
Tag string - Message tag information.
- Namespace
Id string - Namespaces.
- Tdmq
Send stringRocketmq Message Id - ID of the resource.
- Topic
Name string - topic name.
- cluster
Id String - Cluster id.
- msg
Body String - Information.
- msg
Key String - Message key information.
- msg
Tag String - Message tag information.
- namespace
Id String - Namespaces.
- tdmq
Send StringRocketmq Message Id - ID of the resource.
- topic
Name String - topic name.
- cluster
Id string - Cluster id.
- msg
Body string - Information.
- msg
Key string - Message key information.
- msg
Tag string - Message tag information.
- namespace
Id string - Namespaces.
- tdmq
Send stringRocketmq Message Id - ID of the resource.
- topic
Name 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_ strrocketmq_ message_ id - ID of the resource.
- topic_
name str - topic name.
- cluster
Id String - Cluster id.
- msg
Body String - Information.
- msg
Key String - Message key information.
- msg
Tag String - Message tag information.
- namespace
Id String - Namespaces.
- tdmq
Send StringRocketmq Message Id - ID of the resource.
- topic
Name String - topic name.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.