Subscription
Create a Subscription Resource
new Subscription(name: string, args: SubscriptionArgs, opts?: CustomResourceOptions);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)public Subscription(string name, SubscriptionArgs args, CustomResourceOptions? opts = null)- 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:
- Project
Name 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.
- Topic
Name 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 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.
- Topic
Name 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 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.
- topic
Name 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:
- Create
Time 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.
- Last
Modify stringTime 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 string The identidy of the subscritpion, generate from server side.
- Create
Time 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.
- Last
Modify stringTime 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 string The identidy of the subscritpion, generate from server side.
- create
Time 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.
- last
Modify stringTime 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 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_ strtime 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): Subscriptionstatic 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.
- Create
Time string Create time of the datahub subscription. It is a human-readable string rather than 64-bits UTC.
- Last
Modify stringTime 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 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.
- Sub
Id string The identidy of the subscritpion, generate from server side.
- Topic
Name 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.
- Create
Time string Create time of the datahub subscription. It is a human-readable string rather than 64-bits UTC.
- Last
Modify stringTime 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 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.
- Sub
Id string The identidy of the subscritpion, generate from server side.
- Topic
Name 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.
- create
Time string Create time of the datahub subscription. It is a human-readable string rather than 64-bits UTC.
- last
Modify stringTime 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 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.
- sub
Id string The identidy of the subscritpion, generate from server side.
- topic
Name 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_ strtime 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
alicloudTerraform Provider.