Instance
Provides an ONS instance resource.
For more information about how to use it, see RocketMQ Instance Management API.
NOTE: The number of instances in the same region cannot exceed 8. At present, the resource does not support region “mq-internet-access” and “ap-southeast-5”.
NOTE: Available in 1.51.0+
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = new AliCloud.RocketMQ.Instance("example", new AliCloud.RocketMQ.InstanceArgs
{
Remark = "tf-example-ons-instance-remark",
});
}
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.rocketmq.Instance("example", remark="tf-example-ons-instance-remark")import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.rocketmq.Instance("example", {
remark: "tf-example-ons-instance-remark",
});Create a Instance Resource
new Instance(name: string, args?: InstanceArgs, opts?: CustomResourceOptions);def Instance(resource_name, opts=None, name=None, remark=None, __props__=None);func NewInstance(ctx *Context, name string, args *InstanceArgs, opts ...ResourceOption) (*Instance, error)public Instance(string name, InstanceArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args InstanceArgs
- 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 InstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Instance Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Instance resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the Instance resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Status int The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.
- Instance
Type int The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.
- Release
Time string Platinum edition instance expiration time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Status int The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.
- Instance
Type int The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.
- Release
Time string Platinum edition instance expiration time.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Status number The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.
- instance
Type number The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.
- release
Time string Platinum edition instance expiration time.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
status float The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.
- instance_
type float The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.
- release_
time str Platinum edition instance expiration time.
Look up an Existing Instance Resource
Get an existing Instance 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?: InstanceState, opts?: CustomResourceOptions): Instancestatic get(resource_name, id, opts=None, instance_status=None, instance_type=None, name=None, release_time=None, remark=None, __props__=None);func GetInstance(ctx *Context, name string, id IDInput, state *InstanceState, opts ...ResourceOption) (*Instance, error)public static Instance Get(string name, Input<string> id, InstanceState? 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:
- Instance
Status int The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.
- Instance
Type int The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.
- Name string
Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.
- Release
Time string Platinum edition instance expiration time.
- Remark string
This attribute is a concise description of instance. The length cannot exceed 128.
- Instance
Status int The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.
- Instance
Type int The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.
- Name string
Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.
- Release
Time string Platinum edition instance expiration time.
- Remark string
This attribute is a concise description of instance. The length cannot exceed 128.
- instance
Status number The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.
- instance
Type number The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.
- name string
Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.
- release
Time string Platinum edition instance expiration time.
- remark string
This attribute is a concise description of instance. The length cannot exceed 128.
- instance_
status float The status of instance. 1 represents the platinum edition instance is in deployment. 2 represents the postpaid edition instance are overdue. 5 represents the postpaid or platinum edition instance is in service. 7 represents the platinum version instance is in upgrade and the service is available.
- instance_
type float The edition of instance. 1 represents the postPaid edition, and 2 represents the platinum edition.
- name str
Two instances on a single account in the same region cannot have the same name. The length must be 3 to 64 characters. Chinese characters, English letters digits and hyphen are allowed.
- release_
time str Platinum edition instance expiration time.
- remark str
This attribute is a concise description of instance. The length cannot exceed 128.
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloudTerraform Provider.