import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A node pool is a group of nodes in a cluster with the same configuration. A node pool can contain one or more nodes. The node pool configuration includes node attributes such as node specifications, availability zones, labels, taints, and more. These attributes can be specified when creating the node pool or edited after creation. * * ## Import * * ```sh * $ pulumi import volcenginecc:vke/nodePool:NodePool example "cluster_id|node_pool_id" * ``` */ export declare class NodePool extends pulumi.CustomResource { /** * Get an existing NodePool 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, state?: NodePoolState, opts?: pulumi.CustomResourceOptions): NodePool; /** * Returns true if the given object is an instance of NodePool. 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 NodePool; /** * Node pool scaling policy configuration. */ readonly autoScaling: pulumi.Output; /** * ID of the cluster where the node pool is located */ readonly clusterId: pulumi.Output; /** * Node pool creation time */ readonly createdTime: pulumi.Output; /** * Kubernetes-related configuration for the node pool */ readonly kubernetesConfig: pulumi.Output; /** * Managed node pool configuration */ readonly management: pulumi.Output; /** * Node pool name. The node pool name must be unique within the same cluster. Supports uppercase and lowercase English letters, Chinese characters, numbers, and hyphens (-). Length limit: 2–64 characters. */ readonly name: pulumi.Output; /** * Cloud server (ECS) instance configuration in the node pool */ readonly nodeConfig: pulumi.Output; /** * Node pool ID */ readonly nodePoolId: pulumi.Output; /** * Node statistics in the node pool. */ readonly nodeStatistics: pulumi.Output; /** * When deleting a node pool, specify related resources to retain. Values: Empty value (default): delete associated resources Ecs: when deleting the node pool, retain ECS instances in the node pool. If the node pool contains prepaid ECS instances and retaining ECS is not selected, this API only removes the ECS instance from the node pool and does not delete it. You can query the instance via the ECS console or ECS API and perform subsequent operations as needed. */ readonly retainResources: pulumi.Output; /** * Node pool status */ readonly status: pulumi.Output; readonly tags: pulumi.Output; /** * Node pool update time */ readonly updatedTime: pulumi.Output; /** * Create a NodePool 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: NodePoolArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NodePool resources. */ export interface NodePoolState { /** * Node pool scaling policy configuration. */ autoScaling?: pulumi.Input; /** * ID of the cluster where the node pool is located */ clusterId?: pulumi.Input; /** * Node pool creation time */ createdTime?: pulumi.Input; /** * Kubernetes-related configuration for the node pool */ kubernetesConfig?: pulumi.Input; /** * Managed node pool configuration */ management?: pulumi.Input; /** * Node pool name. The node pool name must be unique within the same cluster. Supports uppercase and lowercase English letters, Chinese characters, numbers, and hyphens (-). Length limit: 2–64 characters. */ name?: pulumi.Input; /** * Cloud server (ECS) instance configuration in the node pool */ nodeConfig?: pulumi.Input; /** * Node pool ID */ nodePoolId?: pulumi.Input; /** * Node statistics in the node pool. */ nodeStatistics?: pulumi.Input; /** * When deleting a node pool, specify related resources to retain. Values: Empty value (default): delete associated resources Ecs: when deleting the node pool, retain ECS instances in the node pool. If the node pool contains prepaid ECS instances and retaining ECS is not selected, this API only removes the ECS instance from the node pool and does not delete it. You can query the instance via the ECS console or ECS API and perform subsequent operations as needed. */ retainResources?: pulumi.Input[]>; /** * Node pool status */ status?: pulumi.Input; tags?: pulumi.Input[]>; /** * Node pool update time */ updatedTime?: pulumi.Input; } /** * The set of arguments for constructing a NodePool resource. */ export interface NodePoolArgs { /** * Node pool scaling policy configuration. */ autoScaling?: pulumi.Input; /** * ID of the cluster where the node pool is located */ clusterId: pulumi.Input; /** * Kubernetes-related configuration for the node pool */ kubernetesConfig?: pulumi.Input; /** * Managed node pool configuration */ management?: pulumi.Input; /** * Node pool name. The node pool name must be unique within the same cluster. Supports uppercase and lowercase English letters, Chinese characters, numbers, and hyphens (-). Length limit: 2–64 characters. */ name?: pulumi.Input; /** * Cloud server (ECS) instance configuration in the node pool */ nodeConfig?: pulumi.Input; /** * When deleting a node pool, specify related resources to retain. Values: Empty value (default): delete associated resources Ecs: when deleting the node pool, retain ECS instances in the node pool. If the node pool contains prepaid ECS instances and retaining ECS is not selected, this API only removes the ECS instance from the node pool and does not delete it. You can query the instance via the ECS console or ECS API and perform subsequent operations as needed. */ retainResources?: pulumi.Input[]>; tags?: pulumi.Input[]>; }