Subscription

Create a Subscription Resource

def Subscription(resource_name, opts=None, comment=None, project_name=None, topic_name=None, __props__=None);
func NewSubscription(ctx *Context, name string, args SubscriptionArgs, opts ...ResourceOption) (*Subscription, error)
name string
The unique name of the resource.
args SubscriptionArgs
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 SubscriptionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args SubscriptionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Subscription Resource Properties

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

Inputs

The Subscription resource accepts the following input properties:

ProjectName string

The name of the datahub project that the subscription belongs to. Its length is limited to 3-32 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

TopicName string

The name of the datahub topic that the subscription belongs to. Its length is limited to 1-128 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

Comment string

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

ProjectName string

The name of the datahub project that the subscription belongs to. Its length is limited to 3-32 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

TopicName string

The name of the datahub topic that the subscription belongs to. Its length is limited to 1-128 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

Comment string

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

projectName string

The name of the datahub project that the subscription belongs to. Its length is limited to 3-32 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

topicName string

The name of the datahub topic that the subscription belongs to. Its length is limited to 1-128 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

comment string

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

project_name str

The name of the datahub project that the subscription belongs to. Its length is limited to 3-32 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

topic_name str

The name of the datahub topic that the subscription belongs to. Its length is limited to 1-128 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

comment str

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

Outputs

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

CreateTime string

Create time of the datahub subscription. 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 subscription. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

SubId string

The identidy of the subscritpion, generate from server side.

CreateTime string

Create time of the datahub subscription. 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 subscription. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

SubId string

The identidy of the subscritpion, generate from server side.

createTime string

Create time of the datahub subscription. 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 subscription. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

subId string

The identidy of the subscritpion, generate from server side.

create_time str

Create time of the datahub subscription. 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 subscription. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

sub_id str

The identidy of the subscritpion, generate from server side.

Look up an Existing Subscription Resource

Get an existing Subscription 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?: SubscriptionState, opts?: CustomResourceOptions): Subscription
static get(resource_name, id, opts=None, comment=None, create_time=None, last_modify_time=None, project_name=None, sub_id=None, topic_name=None, __props__=None);
func GetSubscription(ctx *Context, name string, id IDInput, state *SubscriptionState, opts ...ResourceOption) (*Subscription, error)
public static Subscription Get(string name, Input<string> id, SubscriptionState? 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 subscription. It cannot be longer than 255 characters.

CreateTime string

Create time of the datahub subscription. It is a human-readable string rather than 64-bits UTC.

LastModifyTime string

Last modify time of the datahub subscription. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

ProjectName string

The name of the datahub project that the subscription belongs to. Its length is limited to 3-32 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

SubId string

The identidy of the subscritpion, generate from server side.

TopicName string

The name of the datahub topic that the subscription belongs to. Its length is limited to 1-128 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

Comment string

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

CreateTime string

Create time of the datahub subscription. It is a human-readable string rather than 64-bits UTC.

LastModifyTime string

Last modify time of the datahub subscription. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

ProjectName string

The name of the datahub project that the subscription belongs to. Its length is limited to 3-32 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

SubId string

The identidy of the subscritpion, generate from server side.

TopicName string

The name of the datahub topic that the subscription belongs to. Its length is limited to 1-128 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

comment string

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

createTime string

Create time of the datahub subscription. It is a human-readable string rather than 64-bits UTC.

lastModifyTime string

Last modify time of the datahub subscription. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

projectName string

The name of the datahub project that the subscription belongs to. Its length is limited to 3-32 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

subId string

The identidy of the subscritpion, generate from server side.

topicName string

The name of the datahub topic that the subscription belongs to. Its length is limited to 1-128 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

comment str

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

create_time str

Create time of the datahub subscription. It is a human-readable string rather than 64-bits UTC.

last_modify_time str

Last modify time of the datahub subscription. It is the same as create_time at the beginning. It is also a human-readable string rather than 64-bits UTC.

project_name str

The name of the datahub project that the subscription belongs to. Its length is limited to 3-32 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

sub_id str

The identidy of the subscritpion, generate from server side.

topic_name str

The name of the datahub topic that the subscription belongs to. Its length is limited to 1-128 and only characters such as letters, digits and ‘_’ are allowed. It is case-insensitive.

Package Details

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