import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A sandbox instance is a secure and isolated container runtime environment that actually runs the sandbox image in the cloud sandbox * * ## Import * * ```sh * $ pulumi import volcenginecc:vefaas/sandbox:Sandbox example "function_id|sandbox_id" * ``` */ export declare class Sandbox extends pulumi.CustomResource { /** * Get an existing Sandbox 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?: SandboxState, opts?: pulumi.CustomResourceOptions): Sandbox; /** * Returns true if the given object is an instance of Sandbox. 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 Sandbox; /** * Availability zone ID of the sandbox instance */ readonly availabilityZone: pulumi.Output; /** * Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000 */ readonly cpuMilli: pulumi.Output; /** * Sandbox instance creation time. */ readonly createdTime: pulumi.Output; readonly envs: pulumi.Output; /** * Sandbox instance startup failure error code. Parameter description: internal*load*request*error: internal system error, function*initialize*failed: business process initialization error, function*health*check*failed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally */ readonly errorCode: pulumi.Output; /** * Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally. */ readonly errorMessage: pulumi.Output; /** * Sandbox instance uptime. */ readonly expireAt: pulumi.Output; /** * Sandbox application ID to which the sandbox instance belongs */ readonly functionId: pulumi.Output; /** * Sandbox instance image information, including image address, startup command, and listening port. */ readonly instanceImageInfo: pulumi.Output; /** * Instance-level object storage (TOS) mount configuration for the sandbox instance */ readonly instanceTosMountConfig: pulumi.Output; /** * Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance */ readonly instanceType: pulumi.Output; /** * Maximum concurrent requests per instance: range: 10~1000, default: 100 */ readonly maxConcurrency: pulumi.Output; /** * Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048 */ readonly memoryMb: pulumi.Output; readonly metadatas: pulumi.Output; /** * Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no */ readonly pending: pulumi.Output; /** * Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30 */ readonly requestTimeout: pulumi.Output; /** * Function instance version number */ readonly revisionNumber: pulumi.Output; /** * Sandbox instance ID */ readonly sandboxId: pulumi.Output; /** * Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating */ readonly status: pulumi.Output; /** * Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60 */ readonly timeout: pulumi.Output; /** * Create a Sandbox 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: SandboxArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Sandbox resources. */ export interface SandboxState { /** * Availability zone ID of the sandbox instance */ availabilityZone?: pulumi.Input; /** * Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000 */ cpuMilli?: pulumi.Input; /** * Sandbox instance creation time. */ createdTime?: pulumi.Input; envs?: pulumi.Input[]>; /** * Sandbox instance startup failure error code. Parameter description: internal*load*request*error: internal system error, function*initialize*failed: business process initialization error, function*health*check*failed: health check error, route_terminating: route deletion in progress. This field is empty when the sandbox instance starts normally */ errorCode?: pulumi.Input; /** * Details of the error code when the sandbox instance fails to start. This field is empty when the sandbox instance starts normally. */ errorMessage?: pulumi.Input; /** * Sandbox instance uptime. */ expireAt?: pulumi.Input; /** * Sandbox application ID to which the sandbox instance belongs */ functionId?: pulumi.Input; /** * Sandbox instance image information, including image address, startup command, and listening port. */ instanceImageInfo?: pulumi.Input; /** * Instance-level object storage (TOS) mount configuration for the sandbox instance */ instanceTosMountConfig?: pulumi.Input; /** * Sandbox instance type. Parameter description: elastic: elastic instance, frozen: frozen instance, activated: activated instance, reserved: reserved instance */ instanceType?: pulumi.Input; /** * Maximum concurrent requests per instance: range: 10~1000, default: 100 */ maxConcurrency?: pulumi.Input; /** * Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048 */ memoryMb?: pulumi.Input; metadatas?: pulumi.Input[]>; /** * Whether the sandbox instance is in Pending status. Parameter description: true: yes, false: no */ pending?: pulumi.Input; /** * Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30 */ requestTimeout?: pulumi.Input; /** * Function instance version number */ revisionNumber?: pulumi.Input; /** * Sandbox instance ID */ sandboxId?: pulumi.Input; /** * Sandbox instance status. Parameter description: Starting: starting, Ready: startup completed, Failed: startup failed, Terminating: terminating */ status?: pulumi.Input; /** * Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60 */ timeout?: pulumi.Input; } /** * The set of arguments for constructing a Sandbox resource. */ export interface SandboxArgs { /** * Sandbox instance CPU specification: Unit: milli CPU, range: 250~16000, default: 1000 */ cpuMilli?: pulumi.Input; envs?: pulumi.Input[]>; /** * Sandbox application ID to which the sandbox instance belongs */ functionId: pulumi.Input; /** * Sandbox instance image information, including image address, startup command, and listening port. */ instanceImageInfo?: pulumi.Input; /** * Instance-level object storage (TOS) mount configuration for the sandbox instance */ instanceTosMountConfig?: pulumi.Input; /** * Maximum concurrent requests per instance: range: 10~1000, default: 100 */ maxConcurrency?: pulumi.Input; /** * Sandbox instance memory specification: Unit: MiB, range: 512~131072, default: 2048 */ memoryMb?: pulumi.Input; metadatas?: pulumi.Input[]>; /** * Request timeout: Unit: seconds, range: 1~900, positive integer. Default: 30 */ requestTimeout?: pulumi.Input; /** * Sandbox instance lifespan: Unit: minutes, range: 3~1440, default: 60 */ timeout?: pulumi.Input; }