import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Represents an Elastic Compute Service (ECS) instance resource. * * ## Import * * ```sh * $ pulumi import volcenginecc:ecs/instance:Instance example "instance_id" * ``` */ 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, 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; /** * Affinity group ID. */ readonly affinityGroupId: pulumi.Output; /** * Affinity group specification. Value: 2. **Note:** - Currently, only high performance computing NPU-type hpcpci3 * instances (by invitation) support affinity groups. - This feature is in invitation testing. To try it, please contact * your account manager. */ readonly affinityGroupSize: pulumi.Output; /** * Auto payment option. Valid values: true: Auto payment. Ensure your account balance is sufficient; if the balance is * insufficient, an exception order will be generated and the billing mode conversion will fail. false (default): Only * generates the order without charging. You can log in to the order management page to complete payment after the order is * generated. */ readonly autoPay: pulumi.Output; /** * Whether the instance will be automatically renewed upon expiration. Values: - true: Auto renewal - false (default): No * auto renewal **Note:** This parameter is effective only when `InstanceChargeType` is set to `PrePaid`. */ readonly autoRenew: pulumi.Output; /** * Duration for each automatic renewal. - This parameter takes effect only when `AutoRenew` is set to `True`. Default value * is 1. - When `PeriodUnit` is `Month`, valid values are 1, 2, 3, 6, 12. */ readonly autoRenewPeriod: pulumi.Output; /** * Specify the maximum CPU frequency, in GHz. Value range: between the CPU's base frequency and turbo frequency. **Note:** * - Currently, only g3al, c3al, r3al, g4i, c4i, r4i, g4ie, c4ie, r4ie instances support this parameter. For base/turbo * frequencies and more information, see [Instance Specifications * Introduction](https://www.volcengine.com/docs/6396/70840). - This feature is in invitation-only testing. To use it, * please contact your account manager. */ readonly cpuMaxFrequency: pulumi.Output; /** * The CPU options for the instance. */ readonly cpuMemory: pulumi.Output; /** * Instance creation time. */ readonly createdAt: pulumi.Output; /** * Burstable instance operating mode. Values: - Standard: Standard mode. - Unlimited: Unlimited performance mode (not * supported yet). **Note:** - This parameter is only effective when `InstanceTypeId` is set to ecs.t2 series, i.e., * burstable instances. - If not specified or left empty, burstable instances default to `Standard` mode. */ readonly creditSpecification: pulumi.Output; /** * Instance deletion protection attribute, specifies whether the instance can be deleted via the console or API. Values: - * true: Enable instance deletion protection - false (default): Disable instance deletion protection When deletion * protection is enabled, attempts to delete the instance via the console or API will return a deletion failure error code. * To delete the instance, disable deletion protection first */ readonly deletionProtection: pulumi.Output; /** * When the deployment set policy for an ECS instance is set to Availability Group, you can use this parameter to specify * the group number of the instance within the deployment set. Value range: 1–7. */ readonly deploymentSetGroupNumber: pulumi.Output; /** * The deployment set ID the instance needs to join. - You can call the * [DescribeDeploymentSets](https://www.volcengine.com/docs/6396/70873) API to query existing deployment sets. - For more * information about deployment sets, see [Deployment Set](https://www.volcengine.com/docs/6396/70871). */ readonly deploymentSetId: pulumi.Output; /** * The description of the instance. Default is an empty string. - Must start with a letter or Chinese character - Can only * contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals '=', English comma * ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters */ readonly description: pulumi.Output; /** * The EIP address of the instance. */ readonly eipAddress: pulumi.Output; /** * Elastic reservation instance type. Values: NoEsi: Non-elastic reservation instance. Esi: Elastic reservation instance. * Segmented: Elastic reservation instance - time segment type. */ readonly elasticScheduledInstanceType: pulumi.Output; /** * Whether jumbo frames are enabled for the instance. Values: - false: Jumbo frames are disabled. All network interfaces * have an MTU of 1500. - true: Jumbo frames are enabled. All network interfaces have an MTU of 8500 */ readonly enableJumboFrame: pulumi.Output; /** * The expiration time of the instance. */ readonly expiredAt: pulumi.Output; /** * Instance hostname, which is the computer name inside the instance operating system. - Linux instances: - Letters, * numbers, periods ('.'), and hyphens ('-') are allowed. - Cannot start or end with a hyphen or period, and cannot use * consecutive hyphens and periods. - Linux system hostname length must be between 2 and 63 characters. - Windows * instances: - Letters, numbers, and hyphens ('-') are allowed, but the hostname cannot be all numbers. - Cannot start or * end with a hyphen, and cannot use consecutive hyphens. - Windows system hostname length must be between 2 and 15 * characters. */ readonly hostname: pulumi.Output; /** * ID of the high performance computing cluster to which the instance belongs. **Note:** This parameter is only effective * and required when creating high performance computing GPU instances. */ readonly hpcClusterId: pulumi.Output; /** * The image of the instance. */ readonly image: pulumi.Output; /** * Whether to convert all pay-as-you-go data disks attached to the instance to subscription data disks. true: Convert. * false (default): Do not convert. */ readonly includeDataVolumes: pulumi.Output; /** * Whether to install Cloud Assistant Agent when creating the instance. Values: true: Install during creation. false * (default): Do not install during creation. */ readonly installRunCommandAgent: pulumi.Output; /** * The billing type for the instance and cloud disk. Values: - PostPaid: Pay-as-you-go - PrePaid: Subscription. Please * ensure your account supports balance payment or credit payment, otherwise an InvalidInstanceChargeType error will be * returned. */ readonly instanceChargeType: pulumi.Output; /** * The ECS instance ID. */ readonly instanceId: pulumi.Output; /** * Instance name - Must start with a letter or Chinese character - Can only contain Chinese characters, letters, numbers, * underscores "_", hyphens "-", and periods "." - Length limit: 1–128 characters */ readonly instanceName: pulumi.Output; /** * Instance specification. - Product selection: You can refer to [Instance Specifications * Introduction](https://www.volcengine.com/docs/6396/70840) or call * [DescribeInstanceTypes](https://www.volcengine.com/docs/6396/92769) to view performance data, and refer to [Instance * Selection Best Practices](https://www.volcengine.com/docs/6396/74174) to learn how to choose specifications. - Inventory * query: You can call [DescribeAvailableResource](https://www.volcengine.com/docs/6396/76279) to check available compute * resources in the zone. */ readonly instanceType: pulumi.Output; /** * Instance key pair name */ readonly keyPair: pulumi.Output; readonly localVolumes: pulumi.Output; /** * The operating system type of the instance. */ readonly operationSystem: pulumi.Output; /** * The password of the instance. */ readonly password: pulumi.Output; /** * Resource purchase duration (N). - When `PeriodUnit` is `Month` (default), valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, * 12, 24, 36, 48, 60. - When `PeriodUnit` is `Year`, valid values are 1, 2, 3, 4, 5. **Note:** This parameter is valid and * required only when `InstanceChargeType` is set to `PrePaid`. */ readonly period: pulumi.Output; /** * The unit for the duration of resource purchase. Values: - Month (default): Month - Year: Year **Note:** This parameter * is effective only when `InstanceChargeType` is set to `PrePaid`. */ readonly periodUnit: pulumi.Output; /** * The deployment information of the instance. */ readonly placement: pulumi.Output; /** * Primary network interface card of the instance. */ readonly primaryNetworkInterface: pulumi.Output; /** * Project name to which the instance belongs. */ readonly projectName: pulumi.Output; /** * When querying high performance computing GPU instances, returns the RDMA IP addresses of each network interface card in * a list. */ readonly rdmaIpAddresses: pulumi.Output; readonly rdmaNetworkInterfaceDetails: pulumi.Output; /** * Renewal information. */ readonly renewInfo: pulumi.Output; /** * IAM role name bound to the instance */ readonly roleNames: pulumi.Output; readonly secondaryNetworkInterfaces: pulumi.Output; /** * Maximum hourly price for spot instances. - Supports up to three decimal places. - Only effective when `SpotStrategy` is * set to `SpotWithPriceLimit`. - When `SpotStrategy` is set to `SpotWithPriceLimit`, you can set a custom price limit for * the spot instance. If the market price exceeds your bid, the instance will be released. When `SpotStrategy` is set to * `SpotAsPriceGo`, you accept the system's automatic bidding, following the current market price, and this parameter does * not need to be filled in. */ readonly spotPriceLimit: pulumi.Output; /** * Spot strategy. Values: - NoSpot (default): Non-spot instance. - SpotWithPriceLimit: Spot instance with price limit. - * SpotAsPriceGo: System bids automatically, following the current market price for spot instances. */ readonly spotStrategy: pulumi.Output; /** * Instance status. Values: CREATING: Creating RUNNING: Running STOPPING: Stopping STOPPED: Stopped REBOOTING: Rebooting * STARTING: Starting REBUILDING: Rebuilding RESIZING: Resizing ERROR: Error DELETING: Deleting */ readonly status: pulumi.Output; /** * StoppedMode string Optional Example value: KeepCharging Stopped mode. Valid values: KeepCharging: Standard stopped mode. * After stopping, the instance and its associated resources are retained and continue to be billed. Charges remain the * same as before stopping. StopCharging: Cost-saving stopped mode. After stopping, the instance's computing resources * (vCPU, GPU, and memory) are reclaimed and billing stops. Attached cloud disks, images, and public IPs are retained and * continue to be billed. For conditions to enable cost-saving stopped mode, see the description of cost-saving stopped * mode for pay-as-you-go billing. Default value: If you have enabled the default cost-saving stopped mode in the cloud * server console and meet the conditions, the default value is StopCharging. Otherwise, the default value is KeepCharging. * NotApplicable: Indicates that this instance does not support cost-saving stopped mode. */ readonly stoppedMode: pulumi.Output; /** * The system volume of the instance. */ readonly systemVolume: pulumi.Output; readonly tags: pulumi.Output; /** * The update time of the instance. */ readonly updatedAt: pulumi.Output; /** * Custom data for the instance. Default is empty. The final UserData passed will be Base64 encoded. - Linux instances: * Script content must not exceed 16 KB and must be Base64 encoded. - Windows instances: Script content must not exceed 8 * KB and does not require Base64 encoding */ readonly userData: pulumi.Output; /** * The private network ID to which the instance belongs. You can call the * [DescribeVpcs](https://www.volcengine.com/docs/6563/66127) API to obtain VPC information for the target region. */ readonly vpcId: pulumi.Output; /** * The availability zone ID where the instance is located. */ readonly zoneId: pulumi.Output; /** * 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 { /** * Affinity group ID. */ affinityGroupId?: pulumi.Input; /** * Affinity group specification. Value: 2. **Note:** - Currently, only high performance computing NPU-type hpcpci3 * instances (by invitation) support affinity groups. - This feature is in invitation testing. To try it, please contact * your account manager. */ affinityGroupSize?: pulumi.Input; /** * Auto payment option. Valid values: true: Auto payment. Ensure your account balance is sufficient; if the balance is * insufficient, an exception order will be generated and the billing mode conversion will fail. false (default): Only * generates the order without charging. You can log in to the order management page to complete payment after the order is * generated. */ autoPay?: pulumi.Input; /** * Whether the instance will be automatically renewed upon expiration. Values: - true: Auto renewal - false (default): No * auto renewal **Note:** This parameter is effective only when `InstanceChargeType` is set to `PrePaid`. */ autoRenew?: pulumi.Input; /** * Duration for each automatic renewal. - This parameter takes effect only when `AutoRenew` is set to `True`. Default value * is 1. - When `PeriodUnit` is `Month`, valid values are 1, 2, 3, 6, 12. */ autoRenewPeriod?: pulumi.Input; /** * Specify the maximum CPU frequency, in GHz. Value range: between the CPU's base frequency and turbo frequency. **Note:** * - Currently, only g3al, c3al, r3al, g4i, c4i, r4i, g4ie, c4ie, r4ie instances support this parameter. For base/turbo * frequencies and more information, see [Instance Specifications * Introduction](https://www.volcengine.com/docs/6396/70840). - This feature is in invitation-only testing. To use it, * please contact your account manager. */ cpuMaxFrequency?: pulumi.Input; /** * The CPU options for the instance. */ cpuMemory?: pulumi.Input; /** * Instance creation time. */ createdAt?: pulumi.Input; /** * Burstable instance operating mode. Values: - Standard: Standard mode. - Unlimited: Unlimited performance mode (not * supported yet). **Note:** - This parameter is only effective when `InstanceTypeId` is set to ecs.t2 series, i.e., * burstable instances. - If not specified or left empty, burstable instances default to `Standard` mode. */ creditSpecification?: pulumi.Input; /** * Instance deletion protection attribute, specifies whether the instance can be deleted via the console or API. Values: - * true: Enable instance deletion protection - false (default): Disable instance deletion protection When deletion * protection is enabled, attempts to delete the instance via the console or API will return a deletion failure error code. * To delete the instance, disable deletion protection first */ deletionProtection?: pulumi.Input; /** * When the deployment set policy for an ECS instance is set to Availability Group, you can use this parameter to specify * the group number of the instance within the deployment set. Value range: 1–7. */ deploymentSetGroupNumber?: pulumi.Input; /** * The deployment set ID the instance needs to join. - You can call the * [DescribeDeploymentSets](https://www.volcengine.com/docs/6396/70873) API to query existing deployment sets. - For more * information about deployment sets, see [Deployment Set](https://www.volcengine.com/docs/6396/70871). */ deploymentSetId?: pulumi.Input; /** * The description of the instance. Default is an empty string. - Must start with a letter or Chinese character - Can only * contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals '=', English comma * ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters */ description?: pulumi.Input; /** * The EIP address of the instance. */ eipAddress?: pulumi.Input; /** * Elastic reservation instance type. Values: NoEsi: Non-elastic reservation instance. Esi: Elastic reservation instance. * Segmented: Elastic reservation instance - time segment type. */ elasticScheduledInstanceType?: pulumi.Input; /** * Whether jumbo frames are enabled for the instance. Values: - false: Jumbo frames are disabled. All network interfaces * have an MTU of 1500. - true: Jumbo frames are enabled. All network interfaces have an MTU of 8500 */ enableJumboFrame?: pulumi.Input; /** * The expiration time of the instance. */ expiredAt?: pulumi.Input; /** * Instance hostname, which is the computer name inside the instance operating system. - Linux instances: - Letters, * numbers, periods ('.'), and hyphens ('-') are allowed. - Cannot start or end with a hyphen or period, and cannot use * consecutive hyphens and periods. - Linux system hostname length must be between 2 and 63 characters. - Windows * instances: - Letters, numbers, and hyphens ('-') are allowed, but the hostname cannot be all numbers. - Cannot start or * end with a hyphen, and cannot use consecutive hyphens. - Windows system hostname length must be between 2 and 15 * characters. */ hostname?: pulumi.Input; /** * ID of the high performance computing cluster to which the instance belongs. **Note:** This parameter is only effective * and required when creating high performance computing GPU instances. */ hpcClusterId?: pulumi.Input; /** * The image of the instance. */ image?: pulumi.Input; /** * Whether to convert all pay-as-you-go data disks attached to the instance to subscription data disks. true: Convert. * false (default): Do not convert. */ includeDataVolumes?: pulumi.Input; /** * Whether to install Cloud Assistant Agent when creating the instance. Values: true: Install during creation. false * (default): Do not install during creation. */ installRunCommandAgent?: pulumi.Input; /** * The billing type for the instance and cloud disk. Values: - PostPaid: Pay-as-you-go - PrePaid: Subscription. Please * ensure your account supports balance payment or credit payment, otherwise an InvalidInstanceChargeType error will be * returned. */ instanceChargeType?: pulumi.Input; /** * The ECS instance ID. */ instanceId?: pulumi.Input; /** * Instance name - Must start with a letter or Chinese character - Can only contain Chinese characters, letters, numbers, * underscores "_", hyphens "-", and periods "." - Length limit: 1–128 characters */ instanceName?: pulumi.Input; /** * Instance specification. - Product selection: You can refer to [Instance Specifications * Introduction](https://www.volcengine.com/docs/6396/70840) or call * [DescribeInstanceTypes](https://www.volcengine.com/docs/6396/92769) to view performance data, and refer to [Instance * Selection Best Practices](https://www.volcengine.com/docs/6396/74174) to learn how to choose specifications. - Inventory * query: You can call [DescribeAvailableResource](https://www.volcengine.com/docs/6396/76279) to check available compute * resources in the zone. */ instanceType?: pulumi.Input; /** * Instance key pair name */ keyPair?: pulumi.Input; localVolumes?: pulumi.Input[]>; /** * The operating system type of the instance. */ operationSystem?: pulumi.Input; /** * The password of the instance. */ password?: pulumi.Input; /** * Resource purchase duration (N). - When `PeriodUnit` is `Month` (default), valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, * 12, 24, 36, 48, 60. - When `PeriodUnit` is `Year`, valid values are 1, 2, 3, 4, 5. **Note:** This parameter is valid and * required only when `InstanceChargeType` is set to `PrePaid`. */ period?: pulumi.Input; /** * The unit for the duration of resource purchase. Values: - Month (default): Month - Year: Year **Note:** This parameter * is effective only when `InstanceChargeType` is set to `PrePaid`. */ periodUnit?: pulumi.Input; /** * The deployment information of the instance. */ placement?: pulumi.Input; /** * Primary network interface card of the instance. */ primaryNetworkInterface?: pulumi.Input; /** * Project name to which the instance belongs. */ projectName?: pulumi.Input; /** * When querying high performance computing GPU instances, returns the RDMA IP addresses of each network interface card in * a list. */ rdmaIpAddresses?: pulumi.Input[]>; rdmaNetworkInterfaceDetails?: pulumi.Input[]>; /** * Renewal information. */ renewInfo?: pulumi.Input; /** * IAM role name bound to the instance */ roleNames?: pulumi.Input[]>; secondaryNetworkInterfaces?: pulumi.Input[]>; /** * Maximum hourly price for spot instances. - Supports up to three decimal places. - Only effective when `SpotStrategy` is * set to `SpotWithPriceLimit`. - When `SpotStrategy` is set to `SpotWithPriceLimit`, you can set a custom price limit for * the spot instance. If the market price exceeds your bid, the instance will be released. When `SpotStrategy` is set to * `SpotAsPriceGo`, you accept the system's automatic bidding, following the current market price, and this parameter does * not need to be filled in. */ spotPriceLimit?: pulumi.Input; /** * Spot strategy. Values: - NoSpot (default): Non-spot instance. - SpotWithPriceLimit: Spot instance with price limit. - * SpotAsPriceGo: System bids automatically, following the current market price for spot instances. */ spotStrategy?: pulumi.Input; /** * Instance status. Values: CREATING: Creating RUNNING: Running STOPPING: Stopping STOPPED: Stopped REBOOTING: Rebooting * STARTING: Starting REBUILDING: Rebuilding RESIZING: Resizing ERROR: Error DELETING: Deleting */ status?: pulumi.Input; /** * StoppedMode string Optional Example value: KeepCharging Stopped mode. Valid values: KeepCharging: Standard stopped mode. * After stopping, the instance and its associated resources are retained and continue to be billed. Charges remain the * same as before stopping. StopCharging: Cost-saving stopped mode. After stopping, the instance's computing resources * (vCPU, GPU, and memory) are reclaimed and billing stops. Attached cloud disks, images, and public IPs are retained and * continue to be billed. For conditions to enable cost-saving stopped mode, see the description of cost-saving stopped * mode for pay-as-you-go billing. Default value: If you have enabled the default cost-saving stopped mode in the cloud * server console and meet the conditions, the default value is StopCharging. Otherwise, the default value is KeepCharging. * NotApplicable: Indicates that this instance does not support cost-saving stopped mode. */ stoppedMode?: pulumi.Input; /** * The system volume of the instance. */ systemVolume?: pulumi.Input; tags?: pulumi.Input[]>; /** * The update time of the instance. */ updatedAt?: pulumi.Input; /** * Custom data for the instance. Default is empty. The final UserData passed will be Base64 encoded. - Linux instances: * Script content must not exceed 16 KB and must be Base64 encoded. - Windows instances: Script content must not exceed 8 * KB and does not require Base64 encoding */ userData?: pulumi.Input; /** * The private network ID to which the instance belongs. You can call the * [DescribeVpcs](https://www.volcengine.com/docs/6563/66127) API to obtain VPC information for the target region. */ vpcId?: pulumi.Input; /** * The availability zone ID where the instance is located. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a Instance resource. */ export interface InstanceArgs { /** * Affinity group specification. Value: 2. **Note:** - Currently, only high performance computing NPU-type hpcpci3 * instances (by invitation) support affinity groups. - This feature is in invitation testing. To try it, please contact * your account manager. */ affinityGroupSize?: pulumi.Input; /** * Auto payment option. Valid values: true: Auto payment. Ensure your account balance is sufficient; if the balance is * insufficient, an exception order will be generated and the billing mode conversion will fail. false (default): Only * generates the order without charging. You can log in to the order management page to complete payment after the order is * generated. */ autoPay?: pulumi.Input; /** * Whether the instance will be automatically renewed upon expiration. Values: - true: Auto renewal - false (default): No * auto renewal **Note:** This parameter is effective only when `InstanceChargeType` is set to `PrePaid`. */ autoRenew?: pulumi.Input; /** * Duration for each automatic renewal. - This parameter takes effect only when `AutoRenew` is set to `True`. Default value * is 1. - When `PeriodUnit` is `Month`, valid values are 1, 2, 3, 6, 12. */ autoRenewPeriod?: pulumi.Input; /** * Specify the maximum CPU frequency, in GHz. Value range: between the CPU's base frequency and turbo frequency. **Note:** * - Currently, only g3al, c3al, r3al, g4i, c4i, r4i, g4ie, c4ie, r4ie instances support this parameter. For base/turbo * frequencies and more information, see [Instance Specifications * Introduction](https://www.volcengine.com/docs/6396/70840). - This feature is in invitation-only testing. To use it, * please contact your account manager. */ cpuMaxFrequency?: pulumi.Input; /** * Burstable instance operating mode. Values: - Standard: Standard mode. - Unlimited: Unlimited performance mode (not * supported yet). **Note:** - This parameter is only effective when `InstanceTypeId` is set to ecs.t2 series, i.e., * burstable instances. - If not specified or left empty, burstable instances default to `Standard` mode. */ creditSpecification?: pulumi.Input; /** * Instance deletion protection attribute, specifies whether the instance can be deleted via the console or API. Values: - * true: Enable instance deletion protection - false (default): Disable instance deletion protection When deletion * protection is enabled, attempts to delete the instance via the console or API will return a deletion failure error code. * To delete the instance, disable deletion protection first */ deletionProtection?: pulumi.Input; /** * When the deployment set policy for an ECS instance is set to Availability Group, you can use this parameter to specify * the group number of the instance within the deployment set. Value range: 1–7. */ deploymentSetGroupNumber?: pulumi.Input; /** * The deployment set ID the instance needs to join. - You can call the * [DescribeDeploymentSets](https://www.volcengine.com/docs/6396/70873) API to query existing deployment sets. - For more * information about deployment sets, see [Deployment Set](https://www.volcengine.com/docs/6396/70871). */ deploymentSetId?: pulumi.Input; /** * The description of the instance. Default is an empty string. - Must start with a letter or Chinese character - Can only * contain Chinese characters, letters, numbers, period '.', space, underscore '_', hyphen '-', equals '=', English comma * ',', Chinese comma ',', and Chinese period '。' - Maximum length is 255 characters */ description?: pulumi.Input; /** * The EIP address of the instance. */ eipAddress?: pulumi.Input; /** * Whether jumbo frames are enabled for the instance. Values: - false: Jumbo frames are disabled. All network interfaces * have an MTU of 1500. - true: Jumbo frames are enabled. All network interfaces have an MTU of 8500 */ enableJumboFrame?: pulumi.Input; /** * Instance hostname, which is the computer name inside the instance operating system. - Linux instances: - Letters, * numbers, periods ('.'), and hyphens ('-') are allowed. - Cannot start or end with a hyphen or period, and cannot use * consecutive hyphens and periods. - Linux system hostname length must be between 2 and 63 characters. - Windows * instances: - Letters, numbers, and hyphens ('-') are allowed, but the hostname cannot be all numbers. - Cannot start or * end with a hyphen, and cannot use consecutive hyphens. - Windows system hostname length must be between 2 and 15 * characters. */ hostname?: pulumi.Input; /** * ID of the high performance computing cluster to which the instance belongs. **Note:** This parameter is only effective * and required when creating high performance computing GPU instances. */ hpcClusterId?: pulumi.Input; /** * The image of the instance. */ image: pulumi.Input; /** * Whether to convert all pay-as-you-go data disks attached to the instance to subscription data disks. true: Convert. * false (default): Do not convert. */ includeDataVolumes?: pulumi.Input; /** * Whether to install Cloud Assistant Agent when creating the instance. Values: true: Install during creation. false * (default): Do not install during creation. */ installRunCommandAgent?: pulumi.Input; /** * The billing type for the instance and cloud disk. Values: - PostPaid: Pay-as-you-go - PrePaid: Subscription. Please * ensure your account supports balance payment or credit payment, otherwise an InvalidInstanceChargeType error will be * returned. */ instanceChargeType?: pulumi.Input; /** * Instance name - Must start with a letter or Chinese character - Can only contain Chinese characters, letters, numbers, * underscores "_", hyphens "-", and periods "." - Length limit: 1–128 characters */ instanceName: pulumi.Input; /** * Instance specification. - Product selection: You can refer to [Instance Specifications * Introduction](https://www.volcengine.com/docs/6396/70840) or call * [DescribeInstanceTypes](https://www.volcengine.com/docs/6396/92769) to view performance data, and refer to [Instance * Selection Best Practices](https://www.volcengine.com/docs/6396/74174) to learn how to choose specifications. - Inventory * query: You can call [DescribeAvailableResource](https://www.volcengine.com/docs/6396/76279) to check available compute * resources in the zone. */ instanceType: pulumi.Input; /** * Instance key pair name */ keyPair?: pulumi.Input; /** * The password of the instance. */ password?: pulumi.Input; /** * Resource purchase duration (N). - When `PeriodUnit` is `Month` (default), valid values are 1, 2, 3, 4, 5, 6, 7, 8, 9, * 12, 24, 36, 48, 60. - When `PeriodUnit` is `Year`, valid values are 1, 2, 3, 4, 5. **Note:** This parameter is valid and * required only when `InstanceChargeType` is set to `PrePaid`. */ period?: pulumi.Input; /** * The unit for the duration of resource purchase. Values: - Month (default): Month - Year: Year **Note:** This parameter * is effective only when `InstanceChargeType` is set to `PrePaid`. */ periodUnit?: pulumi.Input; /** * The deployment information of the instance. */ placement?: pulumi.Input; /** * Primary network interface card of the instance. */ primaryNetworkInterface: pulumi.Input; /** * Project name to which the instance belongs. */ projectName?: pulumi.Input; /** * Renewal information. */ renewInfo?: pulumi.Input; /** * IAM role name bound to the instance */ roleNames?: pulumi.Input[]>; secondaryNetworkInterfaces?: pulumi.Input[]>; /** * Maximum hourly price for spot instances. - Supports up to three decimal places. - Only effective when `SpotStrategy` is * set to `SpotWithPriceLimit`. - When `SpotStrategy` is set to `SpotWithPriceLimit`, you can set a custom price limit for * the spot instance. If the market price exceeds your bid, the instance will be released. When `SpotStrategy` is set to * `SpotAsPriceGo`, you accept the system's automatic bidding, following the current market price, and this parameter does * not need to be filled in. */ spotPriceLimit?: pulumi.Input; /** * Spot strategy. Values: - NoSpot (default): Non-spot instance. - SpotWithPriceLimit: Spot instance with price limit. - * SpotAsPriceGo: System bids automatically, following the current market price for spot instances. */ spotStrategy?: pulumi.Input; /** * Instance status. Values: CREATING: Creating RUNNING: Running STOPPING: Stopping STOPPED: Stopped REBOOTING: Rebooting * STARTING: Starting REBUILDING: Rebuilding RESIZING: Resizing ERROR: Error DELETING: Deleting */ status?: pulumi.Input; /** * StoppedMode string Optional Example value: KeepCharging Stopped mode. Valid values: KeepCharging: Standard stopped mode. * After stopping, the instance and its associated resources are retained and continue to be billed. Charges remain the * same as before stopping. StopCharging: Cost-saving stopped mode. After stopping, the instance's computing resources * (vCPU, GPU, and memory) are reclaimed and billing stops. Attached cloud disks, images, and public IPs are retained and * continue to be billed. For conditions to enable cost-saving stopped mode, see the description of cost-saving stopped * mode for pay-as-you-go billing. Default value: If you have enabled the default cost-saving stopped mode in the cloud * server console and meet the conditions, the default value is StopCharging. Otherwise, the default value is KeepCharging. * NotApplicable: Indicates that this instance does not support cost-saving stopped mode. */ stoppedMode?: pulumi.Input; /** * The system volume of the instance. */ systemVolume: pulumi.Input; tags?: pulumi.Input[]>; /** * Custom data for the instance. Default is empty. The final UserData passed will be Base64 encoded. - Linux instances: * Script content must not exceed 16 KB and must be Base64 encoded. - Windows instances: Script content must not exceed 8 * KB and does not require Base64 encoding */ userData?: pulumi.Input; /** * The availability zone ID where the instance is located. */ zoneId: pulumi.Input; }