UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

175 lines (174 loc) 6.04 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Provides a resource to manage veecp edge node pool * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@volcengine/pulumi"; * * const foo = new volcengine.veecp.EdgeNodePool("foo", { * clusterId: "ccvmb0c66t101fnob3dhg", * elasticConfig: { * autoScaleConfig: { * desiredReplicas: 0, * enabled: true, * maxReplicas: 2, * minReplicas: 0, * priority: 10, * }, * cloudServerIdentity: "cloudserver-47vz7k929cp9xqb", * instanceArea: { * clusterName: "bdcdn-zzcu02", * vpcIdentity: "vpc-l9sz9qlf2t", * }, * }, * nodePoolType: "edge-machine-pool", * vpcId: "vpc-l9sz9qlf2t", * }); * ``` * * ## Import * * VeecpNodePool can be imported using the id, e.g. * * ```sh * $ pulumi import volcengine:veecp/edgeNodePool:EdgeNodePool default resource_id * ``` */ export declare class EdgeNodePool extends pulumi.CustomResource { /** * Get an existing EdgeNodePool 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?: EdgeNodePoolState, opts?: pulumi.CustomResourceOptions): EdgeNodePool; /** * Returns true if the given object is an instance of EdgeNodePool. 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 EdgeNodePool; /** * The billing configuration of the node pool. */ readonly billingConfigs: pulumi.Output<outputs.veecp.EdgeNodePoolBillingConfigs | undefined>; /** * The ClientToken of NodePool. */ readonly clientToken: pulumi.Output<string | undefined>; /** * The ClusterId of NodePool. */ readonly clusterId: pulumi.Output<string>; /** * Elastic scaling configuration. */ readonly elasticConfig: pulumi.Output<outputs.veecp.EdgeNodePoolElasticConfig>; /** * The KubernetesConfig of NodeConfig. */ readonly kubernetesConfig: pulumi.Output<outputs.veecp.EdgeNodePoolKubernetesConfig>; /** * The Name of NodePool. */ readonly name: pulumi.Output<string>; /** * Node pool type, with the default being a static node pool. edge-machine-set: Static node pool. edge-machine-pool: Elastic node poolNode pool type, which is static node pool by default. edge-machine-set: static node pool * edge-machine-pool: elastic node pool. */ readonly nodePoolType: pulumi.Output<string | undefined>; /** * The VpcId of NodePool. */ readonly vpcId: pulumi.Output<string | undefined>; /** * Create a EdgeNodePool 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: EdgeNodePoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EdgeNodePool resources. */ export interface EdgeNodePoolState { /** * The billing configuration of the node pool. */ billingConfigs?: pulumi.Input<inputs.veecp.EdgeNodePoolBillingConfigs>; /** * The ClientToken of NodePool. */ clientToken?: pulumi.Input<string>; /** * The ClusterId of NodePool. */ clusterId?: pulumi.Input<string>; /** * Elastic scaling configuration. */ elasticConfig?: pulumi.Input<inputs.veecp.EdgeNodePoolElasticConfig>; /** * The KubernetesConfig of NodeConfig. */ kubernetesConfig?: pulumi.Input<inputs.veecp.EdgeNodePoolKubernetesConfig>; /** * The Name of NodePool. */ name?: pulumi.Input<string>; /** * Node pool type, with the default being a static node pool. edge-machine-set: Static node pool. edge-machine-pool: Elastic node poolNode pool type, which is static node pool by default. edge-machine-set: static node pool * edge-machine-pool: elastic node pool. */ nodePoolType?: pulumi.Input<string>; /** * The VpcId of NodePool. */ vpcId?: pulumi.Input<string>; } /** * The set of arguments for constructing a EdgeNodePool resource. */ export interface EdgeNodePoolArgs { /** * The billing configuration of the node pool. */ billingConfigs?: pulumi.Input<inputs.veecp.EdgeNodePoolBillingConfigs>; /** * The ClientToken of NodePool. */ clientToken?: pulumi.Input<string>; /** * The ClusterId of NodePool. */ clusterId: pulumi.Input<string>; /** * Elastic scaling configuration. */ elasticConfig?: pulumi.Input<inputs.veecp.EdgeNodePoolElasticConfig>; /** * The KubernetesConfig of NodeConfig. */ kubernetesConfig?: pulumi.Input<inputs.veecp.EdgeNodePoolKubernetesConfig>; /** * The Name of NodePool. */ name?: pulumi.Input<string>; /** * Node pool type, with the default being a static node pool. edge-machine-set: Static node pool. edge-machine-pool: Elastic node poolNode pool type, which is static node pool by default. edge-machine-set: static node pool * edge-machine-pool: elastic node pool. */ nodePoolType?: pulumi.Input<string>; /** * The VpcId of NodePool. */ vpcId?: pulumi.Input<string>; }