import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Instance launch template version is a collection of instance configuration information used for quick instance purchase. In the template, you can store all configuration information except passwords, including key pairs, compute specifications, disks, network, etc. If all configuration information is valid, you can purchase an instance with one click without repeated configuration * * ## Import * * ```sh * $ pulumi import volcenginecc:ecs/launchTemplateVersion:LaunchTemplateVersion example "launch_template_id|version_number" * ``` */ export declare class LaunchTemplateVersion extends pulumi.CustomResource { /** * Get an existing LaunchTemplateVersion 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?: LaunchTemplateVersionState, opts?: pulumi.CustomResourceOptions): LaunchTemplateVersion; /** * Returns true if the given object is an instance of LaunchTemplateVersion. 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 LaunchTemplateVersion; /** * When the deployment set policy for an ECS instance is set to AvailabilityGroup, use this parameter to specify the group number within the deployment set. */ readonly deploymentSetGroupNumber: pulumi.Output; /** * Deployment set ID to join for the instance. */ readonly deploymentSetId: pulumi.Output; /** * Instance description. */ readonly description: pulumi.Output; /** * Public IP information bound to the instance. */ readonly eip: pulumi.Output; /** * Instance hostname. Linux hostname length: 2–59 characters. Windows hostname length: 2–10 characters */ readonly hostName: pulumi.Output; /** * Specify the high-performance computing cluster ID when creating a high-performance computing GPU instance. */ readonly hpcClusterId: pulumi.Output; /** * Image ID */ readonly imageId: pulumi.Output; /** * Image name. */ readonly imageName: pulumi.Output; /** * Billing type for the instance and cloud disk. Value: PostPaid: Pay-as-you-go. PrePaid: Subscription. Esi: Elastic reservation instance. Segmented: Time-segmented elastic reservation instance. */ readonly instanceChargeType: pulumi.Output; /** * Instance name. */ readonly instanceName: pulumi.Output; /** * Instance specifications */ readonly instanceTypeId: pulumi.Output; /** * Retain image settings. Value: true: Retain image settings. If retained, the preset password or key pair in the image will be used to log in to the instance. false (default): Do not retain image settings. */ readonly keepImageCredential: pulumi.Output; /** * Key pair bound to the instance. */ readonly keyPairName: pulumi.Output; /** * Instance launch template ID. */ readonly launchTemplateId: pulumi.Output; readonly networkInterfaces: pulumi.Output; /** * Project to which the instance belongs. */ readonly projectName: pulumi.Output; /** * Elastic reservation order information */ readonly scheduledInstance: pulumi.Output; /** * Enable security hardening. Active: Enable security hardening, effective only for public images. InActive: Disable security hardening, effective for all images. */ readonly securityEnhancementStrategy: pulumi.Output; /** * Maximum hourly price for preemptible instances. */ readonly spotPriceLimit: pulumi.Output; /** * Preemptive strategy for pay-as-you-go billing. Values: NoSpot: Creates a standard pay-as-you-go instance. SpotAsPriceGo: System automatically bids, creating a preemptive instance that follows the current market price. SpotWithPriceLimit: Creates a preemptive instance with a bid limit */ readonly spotStrategy: pulumi.Output; /** * Starting sequence number for the ordered suffix. */ readonly suffixIndex: pulumi.Output; readonly tags: pulumi.Output; /** * Indicates whether to automatically add an ordered suffix to Hostname and InstanceName when creating multiple instances. */ readonly uniqueSuffix: pulumi.Output; /** * Custom data for the instance. */ readonly userData: pulumi.Output; /** * Template version description. */ readonly versionDescription: pulumi.Output; /** * Template version number. */ readonly versionNumber: pulumi.Output; readonly volumes: pulumi.Output; /** * Private network ID */ readonly vpcId: pulumi.Output; /** * Availability zone ID of the instance */ readonly zoneId: pulumi.Output; /** * Create a LaunchTemplateVersion 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?: LaunchTemplateVersionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LaunchTemplateVersion resources. */ export interface LaunchTemplateVersionState { /** * When the deployment set policy for an ECS instance is set to AvailabilityGroup, use this parameter to specify the group number within the deployment set. */ deploymentSetGroupNumber?: pulumi.Input; /** * Deployment set ID to join for the instance. */ deploymentSetId?: pulumi.Input; /** * Instance description. */ description?: pulumi.Input; /** * Public IP information bound to the instance. */ eip?: pulumi.Input; /** * Instance hostname. Linux hostname length: 2–59 characters. Windows hostname length: 2–10 characters */ hostName?: pulumi.Input; /** * Specify the high-performance computing cluster ID when creating a high-performance computing GPU instance. */ hpcClusterId?: pulumi.Input; /** * Image ID */ imageId?: pulumi.Input; /** * Image name. */ imageName?: pulumi.Input; /** * Billing type for the instance and cloud disk. Value: PostPaid: Pay-as-you-go. PrePaid: Subscription. Esi: Elastic reservation instance. Segmented: Time-segmented elastic reservation instance. */ instanceChargeType?: pulumi.Input; /** * Instance name. */ instanceName?: pulumi.Input; /** * Instance specifications */ instanceTypeId?: pulumi.Input; /** * Retain image settings. Value: true: Retain image settings. If retained, the preset password or key pair in the image will be used to log in to the instance. false (default): Do not retain image settings. */ keepImageCredential?: pulumi.Input; /** * Key pair bound to the instance. */ keyPairName?: pulumi.Input; /** * Instance launch template ID. */ launchTemplateId?: pulumi.Input; networkInterfaces?: pulumi.Input[]>; /** * Project to which the instance belongs. */ projectName?: pulumi.Input; /** * Elastic reservation order information */ scheduledInstance?: pulumi.Input; /** * Enable security hardening. Active: Enable security hardening, effective only for public images. InActive: Disable security hardening, effective for all images. */ securityEnhancementStrategy?: pulumi.Input; /** * Maximum hourly price for preemptible instances. */ spotPriceLimit?: pulumi.Input; /** * Preemptive strategy for pay-as-you-go billing. Values: NoSpot: Creates a standard pay-as-you-go instance. SpotAsPriceGo: System automatically bids, creating a preemptive instance that follows the current market price. SpotWithPriceLimit: Creates a preemptive instance with a bid limit */ spotStrategy?: pulumi.Input; /** * Starting sequence number for the ordered suffix. */ suffixIndex?: pulumi.Input; tags?: pulumi.Input[]>; /** * Indicates whether to automatically add an ordered suffix to Hostname and InstanceName when creating multiple instances. */ uniqueSuffix?: pulumi.Input; /** * Custom data for the instance. */ userData?: pulumi.Input; /** * Template version description. */ versionDescription?: pulumi.Input; /** * Template version number. */ versionNumber?: pulumi.Input; volumes?: pulumi.Input[]>; /** * Private network ID */ vpcId?: pulumi.Input; /** * Availability zone ID of the instance */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a LaunchTemplateVersion resource. */ export interface LaunchTemplateVersionArgs { /** * When the deployment set policy for an ECS instance is set to AvailabilityGroup, use this parameter to specify the group number within the deployment set. */ deploymentSetGroupNumber?: pulumi.Input; /** * Deployment set ID to join for the instance. */ deploymentSetId?: pulumi.Input; /** * Instance description. */ description?: pulumi.Input; /** * Public IP information bound to the instance. */ eip?: pulumi.Input; /** * Instance hostname. Linux hostname length: 2–59 characters. Windows hostname length: 2–10 characters */ hostName?: pulumi.Input; /** * Specify the high-performance computing cluster ID when creating a high-performance computing GPU instance. */ hpcClusterId?: pulumi.Input; /** * Image ID */ imageId?: pulumi.Input; /** * Image name. */ imageName?: pulumi.Input; /** * Billing type for the instance and cloud disk. Value: PostPaid: Pay-as-you-go. PrePaid: Subscription. Esi: Elastic reservation instance. Segmented: Time-segmented elastic reservation instance. */ instanceChargeType?: pulumi.Input; /** * Instance name. */ instanceName?: pulumi.Input; /** * Instance specifications */ instanceTypeId?: pulumi.Input; /** * Retain image settings. Value: true: Retain image settings. If retained, the preset password or key pair in the image will be used to log in to the instance. false (default): Do not retain image settings. */ keepImageCredential?: pulumi.Input; /** * Key pair bound to the instance. */ keyPairName?: pulumi.Input; /** * Instance launch template ID. */ launchTemplateId?: pulumi.Input; networkInterfaces?: pulumi.Input[]>; /** * Project to which the instance belongs. */ projectName?: pulumi.Input; /** * Elastic reservation order information */ scheduledInstance?: pulumi.Input; /** * Enable security hardening. Active: Enable security hardening, effective only for public images. InActive: Disable security hardening, effective for all images. */ securityEnhancementStrategy?: pulumi.Input; /** * Maximum hourly price for preemptible instances. */ spotPriceLimit?: pulumi.Input; /** * Preemptive strategy for pay-as-you-go billing. Values: NoSpot: Creates a standard pay-as-you-go instance. SpotAsPriceGo: System automatically bids, creating a preemptive instance that follows the current market price. SpotWithPriceLimit: Creates a preemptive instance with a bid limit */ spotStrategy?: pulumi.Input; /** * Starting sequence number for the ordered suffix. */ suffixIndex?: pulumi.Input; tags?: pulumi.Input[]>; /** * Indicates whether to automatically add an ordered suffix to Hostname and InstanceName when creating multiple instances. */ uniqueSuffix?: pulumi.Input; /** * Custom data for the instance. */ userData?: pulumi.Input; /** * Template version description. */ versionDescription?: pulumi.Input; volumes?: pulumi.Input[]>; /** * Private network ID */ vpcId?: pulumi.Input; /** * Availability zone ID of the instance */ zoneId?: pulumi.Input; }