1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. datahub
  5. Topic
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.datahub.Topic

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

    The topic is the basic unit of Datahub data source and is used to define one kind of data or stream. It contains a set of subscriptions. You can manage the datahub source of an application by using topics. Refer to details.

    NOTE: Available since v1.19.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tf_example";
    const example = new alicloud.datahub.Project("example", {comment: "created by terraform"});
    const exampleBlob = new alicloud.datahub.Topic("exampleBlob", {
        projectName: example.name,
        recordType: "BLOB",
        shardCount: 3,
        lifeCycle: 7,
        comment: "created by terraform",
    });
    const exampleTuple = new alicloud.datahub.Topic("exampleTuple", {
        projectName: example.name,
        recordType: "TUPLE",
        recordSchema: {
            bigint_field: "BIGINT",
            timestamp_field: "TIMESTAMP",
            string_field: "STRING",
            double_field: "DOUBLE",
            boolean_field: "BOOLEAN",
        },
        shardCount: 3,
        lifeCycle: 7,
        comment: "created by terraform",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tf_example"
    example = alicloud.datahub.Project("example", comment="created by terraform")
    example_blob = alicloud.datahub.Topic("exampleBlob",
        project_name=example.name,
        record_type="BLOB",
        shard_count=3,
        life_cycle=7,
        comment="created by terraform")
    example_tuple = alicloud.datahub.Topic("exampleTuple",
        project_name=example.name,
        record_type="TUPLE",
        record_schema={
            "bigint_field": "BIGINT",
            "timestamp_field": "TIMESTAMP",
            "string_field": "STRING",
            "double_field": "DOUBLE",
            "boolean_field": "BOOLEAN",
        },
        shard_count=3,
        life_cycle=7,
        comment="created by terraform")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/datahub"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "tf_example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		example, err := datahub.NewProject(ctx, "example", &datahub.ProjectArgs{
    			Comment: pulumi.String("created by terraform"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = datahub.NewTopic(ctx, "exampleBlob", &datahub.TopicArgs{
    			ProjectName: example.Name,
    			RecordType:  pulumi.String("BLOB"),
    			ShardCount:  pulumi.Int(3),
    			LifeCycle:   pulumi.Int(7),
    			Comment:     pulumi.String("created by terraform"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = datahub.NewTopic(ctx, "exampleTuple", &datahub.TopicArgs{
    			ProjectName: example.Name,
    			RecordType:  pulumi.String("TUPLE"),
    			RecordSchema: pulumi.Map{
    				"bigint_field":    pulumi.Any("BIGINT"),
    				"timestamp_field": pulumi.Any("TIMESTAMP"),
    				"string_field":    pulumi.Any("STRING"),
    				"double_field":    pulumi.Any("DOUBLE"),
    				"boolean_field":   pulumi.Any("BOOLEAN"),
    			},
    			ShardCount: pulumi.Int(3),
    			LifeCycle:  pulumi.Int(7),
    			Comment:    pulumi.String("created by terraform"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf_example";
        var example = new AliCloud.Datahub.Project("example", new()
        {
            Comment = "created by terraform",
        });
    
        var exampleBlob = new AliCloud.Datahub.Topic("exampleBlob", new()
        {
            ProjectName = example.Name,
            RecordType = "BLOB",
            ShardCount = 3,
            LifeCycle = 7,
            Comment = "created by terraform",
        });
    
        var exampleTuple = new AliCloud.Datahub.Topic("exampleTuple", new()
        {
            ProjectName = example.Name,
            RecordType = "TUPLE",
            RecordSchema = 
            {
                { "bigint_field", "BIGINT" },
                { "timestamp_field", "TIMESTAMP" },
                { "string_field", "STRING" },
                { "double_field", "DOUBLE" },
                { "boolean_field", "BOOLEAN" },
            },
            ShardCount = 3,
            LifeCycle = 7,
            Comment = "created by terraform",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.datahub.Project;
    import com.pulumi.alicloud.datahub.ProjectArgs;
    import com.pulumi.alicloud.datahub.Topic;
    import com.pulumi.alicloud.datahub.TopicArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("tf_example");
            var example = new Project("example", ProjectArgs.builder()        
                .comment("created by terraform")
                .build());
    
            var exampleBlob = new Topic("exampleBlob", TopicArgs.builder()        
                .projectName(example.name())
                .recordType("BLOB")
                .shardCount(3)
                .lifeCycle(7)
                .comment("created by terraform")
                .build());
    
            var exampleTuple = new Topic("exampleTuple", TopicArgs.builder()        
                .projectName(example.name())
                .recordType("TUPLE")
                .recordSchema(Map.ofEntries(
                    Map.entry("bigint_field", "BIGINT"),
                    Map.entry("timestamp_field", "TIMESTAMP"),
                    Map.entry("string_field", "STRING"),
                    Map.entry("double_field", "DOUBLE"),
                    Map.entry("boolean_field", "BOOLEAN")
                ))
                .shardCount(3)
                .lifeCycle(7)
                .comment("created by terraform")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tf_example
    resources:
      example:
        type: alicloud:datahub:Project
        properties:
          comment: created by terraform
      exampleBlob:
        type: alicloud:datahub:Topic
        properties:
          projectName: ${example.name}
          recordType: BLOB
          shardCount: 3
          lifeCycle: 7
          comment: created by terraform
      exampleTuple:
        type: alicloud:datahub:Topic
        properties:
          projectName: ${example.name}
          recordType: TUPLE
          recordSchema:
            bigint_field: BIGINT
            timestamp_field: TIMESTAMP
            string_field: STRING
            double_field: DOUBLE
            boolean_field: BOOLEAN
          shardCount: 3
          lifeCycle: 7
          comment: created by terraform
    

    Create Topic Resource

    new Topic(name: string, args: TopicArgs, opts?: CustomResourceOptions);
    @overload
    def Topic(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              comment: Optional[str] = None,
              life_cycle: Optional[int] = None,
              name: Optional[str] = None,
              project_name: Optional[str] = None,
              record_schema: Optional[Mapping[str, Any]] = None,
              record_type: Optional[str] = None,
              shard_count: Optional[int] = None)
    @overload
    def Topic(resource_name: str,
              args: TopicArgs,
              opts: Optional[ResourceOptions] = None)
    func NewTopic(ctx *Context, name string, args TopicArgs, opts ...ResourceOption) (*Topic, error)
    public Topic(string name, TopicArgs args, CustomResourceOptions? opts = null)
    public Topic(String name, TopicArgs args)
    public Topic(String name, TopicArgs args, CustomResourceOptions options)
    
    type: alicloud:datahub:Topic
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args TopicArgs
    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 TopicArgs
    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 TopicArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TopicArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TopicArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Topic Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Topic resource accepts the following input properties:

    ProjectName string
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    Comment string

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    LifeCycle int
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    Name string
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    RecordSchema Dictionary<string, object>
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    RecordType string
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    ShardCount int
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    ProjectName string
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    Comment string

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    LifeCycle int
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    Name string
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    RecordSchema map[string]interface{}
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    RecordType string
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    ShardCount int
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    projectName String
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    comment String

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    lifeCycle Integer
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    name String
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    recordSchema Map<String,Object>
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    recordType String
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    shardCount Integer
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    projectName string
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    comment string

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    lifeCycle number
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    name string
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    recordSchema {[key: string]: any}
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    recordType string
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    shardCount number
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    project_name str
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    comment str

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    life_cycle int
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    name str
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    record_schema Mapping[str, Any]
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    record_type str
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    shard_count int
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    projectName String
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    comment String

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    lifeCycle Number
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    name String
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    recordSchema Map<Any>
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    recordType String
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    shardCount Number
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Topic resource produces the following output properties:

    CreateTime string
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifyTime string
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    CreateTime string
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastModifyTime string
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    createTime String
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifyTime String
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    createTime string
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    id string
    The provider-assigned unique ID for this managed resource.
    lastModifyTime string
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    create_time str
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    id str
    The provider-assigned unique ID for this managed resource.
    last_modify_time str
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    createTime String
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    id String
    The provider-assigned unique ID for this managed resource.
    lastModifyTime String
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

    Look up Existing Topic Resource

    Get an existing Topic 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?: TopicState, opts?: CustomResourceOptions): Topic
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            create_time: Optional[str] = None,
            last_modify_time: Optional[str] = None,
            life_cycle: Optional[int] = None,
            name: Optional[str] = None,
            project_name: Optional[str] = None,
            record_schema: Optional[Mapping[str, Any]] = None,
            record_type: Optional[str] = None,
            shard_count: Optional[int] = None) -> Topic
    func GetTopic(ctx *Context, name string, id IDInput, state *TopicState, opts ...ResourceOption) (*Topic, error)
    public static Topic Get(string name, Input<string> id, TopicState? state, CustomResourceOptions? opts = null)
    public static Topic get(String name, Output<String> id, TopicState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    Comment string

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    CreateTime string
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    LastModifyTime string
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    LifeCycle int
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    Name string
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    ProjectName string
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    RecordSchema Dictionary<string, object>
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    RecordType string
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    ShardCount int
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    Comment string

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    CreateTime string
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    LastModifyTime string
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    LifeCycle int
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    Name string
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    ProjectName string
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    RecordSchema map[string]interface{}
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    RecordType string
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    ShardCount int
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    comment String

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    createTime String
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    lastModifyTime String
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    lifeCycle Integer
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    name String
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    projectName String
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    recordSchema Map<String,Object>
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    recordType String
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    shardCount Integer
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    comment string

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    createTime string
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    lastModifyTime string
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    lifeCycle number
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    name string
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    projectName string
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    recordSchema {[key: string]: any}
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    recordType string
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    shardCount number
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    comment str

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    create_time str
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    last_modify_time str
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    life_cycle int
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    name str
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    project_name str
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    record_schema Mapping[str, Any]
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    record_type str
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    shard_count int
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
    comment String

    Comment of the datahub topic. It cannot be longer than 255 characters.

    Notes: Currently life_cycle can not be modified and it will be supported in the next future.

    createTime String
    Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
    lastModifyTime String
    Last modify time of the datahub topic. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.
    lifeCycle Number
    How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
    name String
    The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
    projectName String
    The name of the datahub project that this topic belongs to. It is case-insensitive.
    recordSchema Map<Any>
    Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:

    • BIGINT
    • STRING
    • BOOLEAN
    • DOUBLE
    • TIMESTAMP
    recordType String
    The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
    shardCount Number
    The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.

    Import

    Datahub topic can be imported using the ID, e.g.

    $ pulumi import alicloud:datahub/topic:Topic example tf_datahub_project:tf_datahub_topic
    

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi