@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
117 lines (116 loc) • 4.14 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* (Deprecated! Recommend use volcengine.escloud_v2.EscloudInstanceV2 replace) Provides a resource to manage escloud instance
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooZones = volcengine.ecs.getZones({});
* const fooVpc = new volcengine.vpc.Vpc("fooVpc", {
* vpcName: "acc-test-vpc",
* cidrBlock: "172.16.0.0/16",
* });
* const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", {
* subnetName: "acc-test-subnet_new",
* description: "tfdesc",
* cidrBlock: "172.16.0.0/24",
* zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id),
* vpcId: fooVpc.id,
* });
* const fooInstance = new volcengine.escloud.Instance("fooInstance", {instanceConfiguration: {
* version: "V6_7",
* zoneNumber: 1,
* enableHttps: true,
* adminUserName: "admin",
* adminPassword: "Password@@",
* chargeType: "PostPaid",
* configurationCode: "es.standard",
* enablePureMaster: true,
* instanceName: "acc-test-0",
* nodeSpecsAssigns: [
* {
* type: "Master",
* number: 3,
* resourceSpecName: "es.x4.medium",
* storageSpecName: "es.volume.essd.pl0",
* storageSize: 100,
* },
* {
* type: "Hot",
* number: 2,
* resourceSpecName: "es.x4.large",
* storageSpecName: "es.volume.essd.pl0",
* storageSize: 100,
* },
* {
* type: "Kibana",
* number: 1,
* resourceSpecName: "kibana.x2.small",
* },
* ],
* subnetId: fooSubnet.id,
* projectName: "default",
* forceRestartAfterScale: false,
* }});
* ```
*
* ## Import
*
* ESCloud Instance can be imported using the id, e.g.
*
* ```sh
* $ pulumi import volcengine:escloud/instance:Instance default n769ewmjjqyqh5dv
* ```
*/
export declare class Instance extends pulumi.CustomResource {
/**
* Get an existing Instance resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: InstanceState, opts?: pulumi.CustomResourceOptions): Instance;
/**
* Returns true if the given object is an instance of Instance. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Instance;
/**
* The configuration of ESCloud instance.
*/
readonly instanceConfiguration: pulumi.Output<outputs.escloud.InstanceInstanceConfiguration>;
/**
* Create a Instance resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: InstanceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Instance resources.
*/
export interface InstanceState {
/**
* The configuration of ESCloud instance.
*/
instanceConfiguration?: pulumi.Input<inputs.escloud.InstanceInstanceConfiguration>;
}
/**
* The set of arguments for constructing a Instance resource.
*/
export interface InstanceArgs {
/**
* The configuration of ESCloud instance.
*/
instanceConfiguration: pulumi.Input<inputs.escloud.InstanceInstanceConfiguration>;
}