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);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:
- Project
Name 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.
- Life
Cycle 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.
- Record
Schema Dictionary<string, object> Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are: - BIGINT - STRING - BOOLEAN - DOUBLE - TIMESTAMP
- Record
Type 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}.
- int
The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
- Project
Name 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.
- Life
Cycle 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.
- Record
Schema map[string]interface{} Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are: - BIGINT - STRING - BOOLEAN - DOUBLE - TIMESTAMP
- Record
Type 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}.
- int
The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
- project
Name 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.
- life
Cycle 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.
- record
Schema {[key: string]: any} Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are: - BIGINT - STRING - BOOLEAN - DOUBLE - TIMESTAMP
- record
Type 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}.
- 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}.
- 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:
- Create
Time 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.
- Last
Modify stringTime 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 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.
- Last
Modify stringTime 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 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.
- last
Modify stringTime 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_ strtime 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): Topicstatic 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.
- Create
Time string Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
- Last
Modify stringTime 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 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.
- Project
Name string The name of the datahub project that this topic belongs to. It is case-insensitive.
- Record
Schema Dictionary<string, object> Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are: - BIGINT - STRING - BOOLEAN - DOUBLE - TIMESTAMP
- Record
Type 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}.
- 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.
- Create
Time string Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
- Last
Modify stringTime 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 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.
- Project
Name string The name of the datahub project that this topic belongs to. It is case-insensitive.
- Record
Schema map[string]interface{} Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are: - BIGINT - STRING - BOOLEAN - DOUBLE - TIMESTAMP
- Record
Type 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}.
- 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.
- create
Time string Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
- last
Modify stringTime 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 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.
- project
Name string The name of the datahub project that this topic belongs to. It is case-insensitive.
- record
Schema {[key: string]: any} Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are: - BIGINT - STRING - BOOLEAN - DOUBLE - TIMESTAMP
- record
Type 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}.
- shard
Count 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_ strtime 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
alicloudTerraform Provider.