Topic

Create a Topic Resource

new Topic(name: string, args: TopicArgs, opts?: CustomResourceOptions);
def Topic(resource_name, opts=None, comment=None, life_cycle=None, name=None, project_name=None, record_schema=None, record_type=None, shard_count=None, __props__=None);
func NewTopic(ctx *Context, name string, args TopicArgs, opts ...ResourceOption) (*Topic, error)
public Topic(string name, TopicArgs args, CustomResourceOptions? opts = null)
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.
opts ResourceOptions
A bag of options that control this 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.

Topic Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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.

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.

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.

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.

life_cycle float

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 Dict[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 float

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.

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.

Look up an 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
static get(resource_name, id, opts=None, comment=None, create_time=None, last_modify_time=None, life_cycle=None, name=None, project_name=None, record_schema=None, record_type=None, shard_count=None, __props__=None);
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)
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.

The following state arguments are supported:

Comment string

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

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.

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.

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.

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 float

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 Dict[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 float

The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.