tencentcloud.CkafkaDatahubTopic
Explore with Pulumi AI
Provides a resource to create a ckafka datahub_topic
Create CkafkaDatahubTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CkafkaDatahubTopic(name: string, args: CkafkaDatahubTopicArgs, opts?: CustomResourceOptions);
@overload
def CkafkaDatahubTopic(resource_name: str,
args: CkafkaDatahubTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CkafkaDatahubTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
partition_num: Optional[float] = None,
retention_ms: Optional[float] = None,
ckafka_datahub_topic_id: Optional[str] = None,
name: Optional[str] = None,
note: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewCkafkaDatahubTopic(ctx *Context, name string, args CkafkaDatahubTopicArgs, opts ...ResourceOption) (*CkafkaDatahubTopic, error)
public CkafkaDatahubTopic(string name, CkafkaDatahubTopicArgs args, CustomResourceOptions? opts = null)
public CkafkaDatahubTopic(String name, CkafkaDatahubTopicArgs args)
public CkafkaDatahubTopic(String name, CkafkaDatahubTopicArgs args, CustomResourceOptions options)
type: tencentcloud:CkafkaDatahubTopic
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 CkafkaDatahubTopicArgs
- 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 CkafkaDatahubTopicArgs
- 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 CkafkaDatahubTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CkafkaDatahubTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CkafkaDatahubTopicArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CkafkaDatahubTopic 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 CkafkaDatahubTopic resource accepts the following input properties:
- Partition
Num double - Number of Partitions, greater than 0.
- Retention
Ms double - Message retention time, in ms, the current minimum value is 60000 ms.
- Ckafka
Datahub stringTopic Id - ID of the resource.
- Name string
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- Note string
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- Dictionary<string, string>
- Tags of dataHub topic.
- Partition
Num float64 - Number of Partitions, greater than 0.
- Retention
Ms float64 - Message retention time, in ms, the current minimum value is 60000 ms.
- Ckafka
Datahub stringTopic Id - ID of the resource.
- Name string
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- Note string
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- map[string]string
- Tags of dataHub topic.
- partition
Num Double - Number of Partitions, greater than 0.
- retention
Ms Double - Message retention time, in ms, the current minimum value is 60000 ms.
- ckafka
Datahub StringTopic Id - ID of the resource.
- name String
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- note String
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- Map<String,String>
- Tags of dataHub topic.
- partition
Num number - Number of Partitions, greater than 0.
- retention
Ms number - Message retention time, in ms, the current minimum value is 60000 ms.
- ckafka
Datahub stringTopic Id - ID of the resource.
- name string
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- note string
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- {[key: string]: string}
- Tags of dataHub topic.
- partition_
num float - Number of Partitions, greater than 0.
- retention_
ms float - Message retention time, in ms, the current minimum value is 60000 ms.
- ckafka_
datahub_ strtopic_ id - ID of the resource.
- name str
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- note str
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- Mapping[str, str]
- Tags of dataHub topic.
- partition
Num Number - Number of Partitions, greater than 0.
- retention
Ms Number - Message retention time, in ms, the current minimum value is 60000 ms.
- ckafka
Datahub StringTopic Id - ID of the resource.
- name String
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- note String
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- Map<String>
- Tags of dataHub topic.
Outputs
All input properties are implicitly available as output properties. Additionally, the CkafkaDatahubTopic 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 CkafkaDatahubTopic Resource
Get an existing CkafkaDatahubTopic 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?: CkafkaDatahubTopicState, opts?: CustomResourceOptions): CkafkaDatahubTopic
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
ckafka_datahub_topic_id: Optional[str] = None,
name: Optional[str] = None,
note: Optional[str] = None,
partition_num: Optional[float] = None,
retention_ms: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None) -> CkafkaDatahubTopic
func GetCkafkaDatahubTopic(ctx *Context, name string, id IDInput, state *CkafkaDatahubTopicState, opts ...ResourceOption) (*CkafkaDatahubTopic, error)
public static CkafkaDatahubTopic Get(string name, Input<string> id, CkafkaDatahubTopicState? state, CustomResourceOptions? opts = null)
public static CkafkaDatahubTopic get(String name, Output<String> id, CkafkaDatahubTopicState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CkafkaDatahubTopic 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.
- Ckafka
Datahub stringTopic Id - ID of the resource.
- Name string
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- Note string
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- Partition
Num double - Number of Partitions, greater than 0.
- Retention
Ms double - Message retention time, in ms, the current minimum value is 60000 ms.
- Dictionary<string, string>
- Tags of dataHub topic.
- Ckafka
Datahub stringTopic Id - ID of the resource.
- Name string
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- Note string
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- Partition
Num float64 - Number of Partitions, greater than 0.
- Retention
Ms float64 - Message retention time, in ms, the current minimum value is 60000 ms.
- map[string]string
- Tags of dataHub topic.
- ckafka
Datahub StringTopic Id - ID of the resource.
- name String
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- note String
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- partition
Num Double - Number of Partitions, greater than 0.
- retention
Ms Double - Message retention time, in ms, the current minimum value is 60000 ms.
- Map<String,String>
- Tags of dataHub topic.
- ckafka
Datahub stringTopic Id - ID of the resource.
- name string
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- note string
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- partition
Num number - Number of Partitions, greater than 0.
- retention
Ms number - Message retention time, in ms, the current minimum value is 60000 ms.
- {[key: string]: string}
- Tags of dataHub topic.
- ckafka_
datahub_ strtopic_ id - ID of the resource.
- name str
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- note str
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- partition_
num float - Number of Partitions, greater than 0.
- retention_
ms float - Message retention time, in ms, the current minimum value is 60000 ms.
- Mapping[str, str]
- Tags of dataHub topic.
- ckafka
Datahub StringTopic Id - ID of the resource.
- name String
- Name, start with appid, which is a string of no more than 128 characters, must start with a letter, and the rest can contain letters, numbers, and dashes (-).
- note String
- Subject note, which is a string of no more than 64 characters, must start with a letter, and the rest can contain letters, numbers and dashes (-).
- partition
Num Number - Number of Partitions, greater than 0.
- retention
Ms Number - Message retention time, in ms, the current minimum value is 60000 ms.
- Map<String>
- Tags of dataHub topic.
Import
ckafka datahub_topic can be imported using the id, e.g.
$ pulumi import tencentcloud:index/ckafkaDatahubTopic:CkafkaDatahubTopic datahub_topic datahub_topic_name
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.