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

tencentcloud.CkafkaDatahubTopic

Explore with Pulumi AI

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

    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:

    PartitionNum double
    Number of Partitions, greater than 0.
    RetentionMs double
    Message retention time, in ms, the current minimum value is 60000 ms.
    CkafkaDatahubTopicId string
    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 (-).
    Tags Dictionary<string, string>
    Tags of dataHub topic.
    PartitionNum float64
    Number of Partitions, greater than 0.
    RetentionMs float64
    Message retention time, in ms, the current minimum value is 60000 ms.
    CkafkaDatahubTopicId string
    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 (-).
    Tags map[string]string
    Tags of dataHub topic.
    partitionNum Double
    Number of Partitions, greater than 0.
    retentionMs Double
    Message retention time, in ms, the current minimum value is 60000 ms.
    ckafkaDatahubTopicId String
    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 (-).
    tags Map<String,String>
    Tags of dataHub topic.
    partitionNum number
    Number of Partitions, greater than 0.
    retentionMs number
    Message retention time, in ms, the current minimum value is 60000 ms.
    ckafkaDatahubTopicId string
    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 (-).
    tags {[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_topic_id str
    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 (-).
    tags Mapping[str, str]
    Tags of dataHub topic.
    partitionNum Number
    Number of Partitions, greater than 0.
    retentionMs Number
    Message retention time, in ms, the current minimum value is 60000 ms.
    ckafkaDatahubTopicId String
    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 (-).
    tags 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.
    The following state arguments are supported:
    CkafkaDatahubTopicId string
    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 (-).
    PartitionNum double
    Number of Partitions, greater than 0.
    RetentionMs double
    Message retention time, in ms, the current minimum value is 60000 ms.
    Tags Dictionary<string, string>
    Tags of dataHub topic.
    CkafkaDatahubTopicId string
    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 (-).
    PartitionNum float64
    Number of Partitions, greater than 0.
    RetentionMs float64
    Message retention time, in ms, the current minimum value is 60000 ms.
    Tags map[string]string
    Tags of dataHub topic.
    ckafkaDatahubTopicId String
    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 (-).
    partitionNum Double
    Number of Partitions, greater than 0.
    retentionMs Double
    Message retention time, in ms, the current minimum value is 60000 ms.
    tags Map<String,String>
    Tags of dataHub topic.
    ckafkaDatahubTopicId string
    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 (-).
    partitionNum number
    Number of Partitions, greater than 0.
    retentionMs number
    Message retention time, in ms, the current minimum value is 60000 ms.
    tags {[key: string]: string}
    Tags of dataHub topic.
    ckafka_datahub_topic_id str
    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.
    tags Mapping[str, str]
    Tags of dataHub topic.
    ckafkaDatahubTopicId String
    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 (-).
    partitionNum Number
    Number of Partitions, greater than 0.
    retentionMs Number
    Message retention time, in ms, the current minimum value is 60000 ms.
    tags 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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack