import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Allows management of Yandex Cloud Serverless Containers * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const test_container = new yandex.ServerlessContainer("test-container", { * coreFraction: 100, * cores: 1, * description: "any description", * executionTimeout: "15s", * image: { * url: "cr.yandex/yc/test-image:v1", * }, * memory: 256, * serviceAccountId: "are1service2account3id", * }); * ``` * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const test_container_with_digest = new yandex.ServerlessContainer("test-container-with-digest", { * image: { * digest: "sha256:e1d772fa8795adac847a2420c87d0d2e3d38fb02f168cab8c0b5fe2fb95c47f4", * url: "cr.yandex/yc/test-image:v1", * }, * memory: 128, * }); * ``` */ export declare class ServerlessContainer extends pulumi.CustomResource { /** * Get an existing ServerlessContainer 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?: ServerlessContainerState, opts?: pulumi.CustomResourceOptions): ServerlessContainer; /** * Returns true if the given object is an instance of ServerlessContainer. 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 ServerlessContainer; /** * Concurrency of Yandex Cloud Serverless Container */ readonly concurrency: pulumi.Output; /** * Core fraction (**0...100**) of the Yandex Cloud Serverless Container */ readonly coreFraction: pulumi.Output; readonly cores: pulumi.Output; /** * Creation timestamp of the Yandex Cloud Serverless Container */ readonly createdAt: pulumi.Output; /** * Description of the Yandex Cloud Serverless Container */ readonly description: pulumi.Output; /** * Execution timeout in seconds (**duration format**) for Yandex Cloud Serverless Container */ readonly executionTimeout: pulumi.Output; /** * Folder ID for the Yandex Cloud Serverless Container */ readonly folderId: pulumi.Output; /** * Revision deployment image for Yandex Cloud Serverless Container * * `image.0.url` (Required) - URL of image that will be deployed as Yandex Cloud Serverless Container * * `image.0.work_dir` - Working directory for Yandex Cloud Serverless Container * * `image.0.digest` - Digest of image that will be deployed as Yandex Cloud Serverless Container. * If presented, should be equal to digest that will be resolved at server side by URL. * Container will be updated on digest change even if `image.0.url` stays the same. * If field not specified then its value will be computed. * * `image.0.command` - List of commands for Yandex Cloud Serverless Container * * `image.0.args` - List of arguments for Yandex Cloud Serverless Container * * `image.0.environment` - A set of key/value environment variable pairs for Yandex Cloud Serverless Container */ readonly image: pulumi.Output; /** * A set of key/value label pairs to assign to the Yandex Cloud Serverless Container */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Memory in megabytes (**aligned to 128MB**) for Yandex Cloud Serverless Container */ readonly memory: pulumi.Output; /** * Yandex Cloud Serverless Container name */ readonly name: pulumi.Output; /** * Last revision ID of the Yandex Cloud Serverless Container */ readonly revisionId: pulumi.Output; /** * Service account ID for Yandex Cloud Serverless Container */ readonly serviceAccountId: pulumi.Output; /** * Invoke URL for the Yandex Cloud Serverless Container */ readonly url: pulumi.Output; /** * Create a ServerlessContainer 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: ServerlessContainerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ServerlessContainer resources. */ export interface ServerlessContainerState { /** * Concurrency of Yandex Cloud Serverless Container */ concurrency?: pulumi.Input; /** * Core fraction (**0...100**) of the Yandex Cloud Serverless Container */ coreFraction?: pulumi.Input; cores?: pulumi.Input; /** * Creation timestamp of the Yandex Cloud Serverless Container */ createdAt?: pulumi.Input; /** * Description of the Yandex Cloud Serverless Container */ description?: pulumi.Input; /** * Execution timeout in seconds (**duration format**) for Yandex Cloud Serverless Container */ executionTimeout?: pulumi.Input; /** * Folder ID for the Yandex Cloud Serverless Container */ folderId?: pulumi.Input; /** * Revision deployment image for Yandex Cloud Serverless Container * * `image.0.url` (Required) - URL of image that will be deployed as Yandex Cloud Serverless Container * * `image.0.work_dir` - Working directory for Yandex Cloud Serverless Container * * `image.0.digest` - Digest of image that will be deployed as Yandex Cloud Serverless Container. * If presented, should be equal to digest that will be resolved at server side by URL. * Container will be updated on digest change even if `image.0.url` stays the same. * If field not specified then its value will be computed. * * `image.0.command` - List of commands for Yandex Cloud Serverless Container * * `image.0.args` - List of arguments for Yandex Cloud Serverless Container * * `image.0.environment` - A set of key/value environment variable pairs for Yandex Cloud Serverless Container */ image?: pulumi.Input; /** * A set of key/value label pairs to assign to the Yandex Cloud Serverless Container */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Memory in megabytes (**aligned to 128MB**) for Yandex Cloud Serverless Container */ memory?: pulumi.Input; /** * Yandex Cloud Serverless Container name */ name?: pulumi.Input; /** * Last revision ID of the Yandex Cloud Serverless Container */ revisionId?: pulumi.Input; /** * Service account ID for Yandex Cloud Serverless Container */ serviceAccountId?: pulumi.Input; /** * Invoke URL for the Yandex Cloud Serverless Container */ url?: pulumi.Input; } /** * The set of arguments for constructing a ServerlessContainer resource. */ export interface ServerlessContainerArgs { /** * Concurrency of Yandex Cloud Serverless Container */ concurrency?: pulumi.Input; /** * Core fraction (**0...100**) of the Yandex Cloud Serverless Container */ coreFraction?: pulumi.Input; cores?: pulumi.Input; /** * Description of the Yandex Cloud Serverless Container */ description?: pulumi.Input; /** * Execution timeout in seconds (**duration format**) for Yandex Cloud Serverless Container */ executionTimeout?: pulumi.Input; /** * Folder ID for the Yandex Cloud Serverless Container */ folderId?: pulumi.Input; /** * Revision deployment image for Yandex Cloud Serverless Container * * `image.0.url` (Required) - URL of image that will be deployed as Yandex Cloud Serverless Container * * `image.0.work_dir` - Working directory for Yandex Cloud Serverless Container * * `image.0.digest` - Digest of image that will be deployed as Yandex Cloud Serverless Container. * If presented, should be equal to digest that will be resolved at server side by URL. * Container will be updated on digest change even if `image.0.url` stays the same. * If field not specified then its value will be computed. * * `image.0.command` - List of commands for Yandex Cloud Serverless Container * * `image.0.args` - List of arguments for Yandex Cloud Serverless Container * * `image.0.environment` - A set of key/value environment variable pairs for Yandex Cloud Serverless Container */ image: pulumi.Input; /** * A set of key/value label pairs to assign to the Yandex Cloud Serverless Container */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Memory in megabytes (**aligned to 128MB**) for Yandex Cloud Serverless Container */ memory: pulumi.Input; /** * Yandex Cloud Serverless Container name */ name?: pulumi.Input; /** * Service account ID for Yandex Cloud Serverless Container */ serviceAccountId?: pulumi.Input; }