@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
168 lines (167 loc) • 5.61 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage alb server group server
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.alb.ServerGroupServer("foo", {
* description: "test add server group server ecs1",
* instanceId: "i-ycony2kef4ygp2f8cgmk",
* ip: "172.16.0.3",
* port: 5679,
* serverGroupId: "rsp-1g7317vrcx3pc2zbhq4c3i6a2",
* type: "ecs",
* weight: 30,
* });
* ```
*
* ## Import
*
* AlbServerGroupServer can be imported using the server_group_id:server_id, e.g.
*
* ```sh
* $ pulumi import volcengine:alb/serverGroupServer:ServerGroupServer default rsp-274xltv2*****8tlv3q3s:rs-3ciynux6i1x4w****rszh49sj
* ```
*/
export declare class ServerGroupServer extends pulumi.CustomResource {
/**
* Get an existing ServerGroupServer 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?: ServerGroupServerState, opts?: pulumi.CustomResourceOptions): ServerGroupServer;
/**
* Returns true if the given object is an instance of ServerGroupServer. 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 ServerGroupServer;
/**
* The description of the instance.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The ID of ecs instance or the network card bound to ecs instance.
*/
readonly instanceId: pulumi.Output<string>;
/**
* The private ip of the instance.
*/
readonly ip: pulumi.Output<string>;
/**
* The port receiving request. Value range: 1 ~ 65535.
*/
readonly port: pulumi.Output<number>;
/**
* Whether to enable remote IP function. Optional choice contains `on`, `off`. Default value is `off`. This field is only effective when the type is `ip`.
*/
readonly remoteEnabled: pulumi.Output<string | undefined>;
/**
* The ID of the ServerGroup.
*/
readonly serverGroupId: pulumi.Output<string>;
/**
* The server id of instance in ServerGroup.
*/
readonly serverId: pulumi.Output<string>;
/**
* The type of instance. Optional choice contains `ecs`, `eni`, `ip`.
*/
readonly type: pulumi.Output<string>;
/**
* The weight of the instance, range in 0~100.
*/
readonly weight: pulumi.Output<number | undefined>;
/**
* Create a ServerGroupServer 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: ServerGroupServerArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ServerGroupServer resources.
*/
export interface ServerGroupServerState {
/**
* The description of the instance.
*/
description?: pulumi.Input<string>;
/**
* The ID of ecs instance or the network card bound to ecs instance.
*/
instanceId?: pulumi.Input<string>;
/**
* The private ip of the instance.
*/
ip?: pulumi.Input<string>;
/**
* The port receiving request. Value range: 1 ~ 65535.
*/
port?: pulumi.Input<number>;
/**
* Whether to enable remote IP function. Optional choice contains `on`, `off`. Default value is `off`. This field is only effective when the type is `ip`.
*/
remoteEnabled?: pulumi.Input<string>;
/**
* The ID of the ServerGroup.
*/
serverGroupId?: pulumi.Input<string>;
/**
* The server id of instance in ServerGroup.
*/
serverId?: pulumi.Input<string>;
/**
* The type of instance. Optional choice contains `ecs`, `eni`, `ip`.
*/
type?: pulumi.Input<string>;
/**
* The weight of the instance, range in 0~100.
*/
weight?: pulumi.Input<number>;
}
/**
* The set of arguments for constructing a ServerGroupServer resource.
*/
export interface ServerGroupServerArgs {
/**
* The description of the instance.
*/
description?: pulumi.Input<string>;
/**
* The ID of ecs instance or the network card bound to ecs instance.
*/
instanceId: pulumi.Input<string>;
/**
* The private ip of the instance.
*/
ip: pulumi.Input<string>;
/**
* The port receiving request. Value range: 1 ~ 65535.
*/
port: pulumi.Input<number>;
/**
* Whether to enable remote IP function. Optional choice contains `on`, `off`. Default value is `off`. This field is only effective when the type is `ip`.
*/
remoteEnabled?: pulumi.Input<string>;
/**
* The ID of the ServerGroup.
*/
serverGroupId: pulumi.Input<string>;
/**
* The type of instance. Optional choice contains `ecs`, `eni`, `ip`.
*/
type: pulumi.Input<string>;
/**
* The weight of the instance, range in 0~100.
*/
weight?: pulumi.Input<number>;
}