import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "./types"; /** * Allows management of [Yandex Cloud Function](https://cloud.yandex.com/docs/functions/) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as yandex from "@pulumi/yandex"; * * const test_function = new yandex.Function("test-function", { * content: { * zipFilename: "function.zip", * }, * description: "any description", * entrypoint: "main", * executionTimeout: "10", * memory: 128, * runtime: "python37", * serviceAccountId: "are1service2account3id", * tags: ["my_tag"], * userHash: "any_user_defined_string", * }); * ``` */ export declare class Function extends pulumi.CustomResource { /** * Get an existing Function 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?: FunctionState, opts?: pulumi.CustomResourceOptions): Function; /** * Returns true if the given object is an instance of Function. 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 Function; /** * Version deployment content for Yandex Cloud Function code. Can be only one `package` or `content` section. * * `content.0.zip_filename` - Filename to zip archive for the version. */ readonly content: pulumi.Output; /** * Creation timestamp of the Yandex Cloud Function. */ readonly createdAt: pulumi.Output; /** * Description of the Yandex Cloud Function */ readonly description: pulumi.Output; /** * Entrypoint for Yandex Cloud Function */ readonly entrypoint: pulumi.Output; /** * A set of key/value environment variables for Yandex Cloud Function */ readonly environment: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Execution timeout in seconds for Yandex Cloud Function */ readonly executionTimeout: pulumi.Output; /** * Folder ID for the Yandex Cloud Function */ readonly folderId: pulumi.Output; /** * Image size for Yandex Cloud Function. */ readonly imageSize: pulumi.Output; /** * A set of key/value label pairs to assign to the Yandex Cloud Function */ readonly labels: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Loggroup ID size for Yandex Cloud Function. */ readonly loggroupId: pulumi.Output; /** * Memory in megabytes (**aligned to 128MB**) for Yandex Cloud Function */ readonly memory: pulumi.Output; /** * Yandex Cloud Function name used to define trigger */ readonly name: pulumi.Output; /** * Version deployment package for Yandex Cloud Function code. Can be only one `package` or `content` section. * * `package.0.sha_256` - SHA256 hash of the version deployment package. * * `package.0.bucket_name` - Name of the bucket that stores the code for the version. * * `package.0.object_name` - Name of the object in the bucket that stores the code for the version. */ readonly package: pulumi.Output; /** * Runtime for Yandex Cloud Function */ readonly runtime: pulumi.Output; /** * Service account ID for Yandex Cloud Function */ readonly serviceAccountId: pulumi.Output; /** * Tags for Yandex Cloud Function. Tag "$latest" isn't returned. */ readonly tags: pulumi.Output; /** * User-defined string for current function version. User must change this string any times when function changed. Function will be updated when hash is changed. */ readonly userHash: pulumi.Output; /** * Version for Yandex Cloud Function. */ readonly version: pulumi.Output; /** * Create a Function 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: FunctionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Function resources. */ export interface FunctionState { /** * Version deployment content for Yandex Cloud Function code. Can be only one `package` or `content` section. * * `content.0.zip_filename` - Filename to zip archive for the version. */ content?: pulumi.Input; /** * Creation timestamp of the Yandex Cloud Function. */ createdAt?: pulumi.Input; /** * Description of the Yandex Cloud Function */ description?: pulumi.Input; /** * Entrypoint for Yandex Cloud Function */ entrypoint?: pulumi.Input; /** * A set of key/value environment variables for Yandex Cloud Function */ environment?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Execution timeout in seconds for Yandex Cloud Function */ executionTimeout?: pulumi.Input; /** * Folder ID for the Yandex Cloud Function */ folderId?: pulumi.Input; /** * Image size for Yandex Cloud Function. */ imageSize?: pulumi.Input; /** * A set of key/value label pairs to assign to the Yandex Cloud Function */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Loggroup ID size for Yandex Cloud Function. */ loggroupId?: pulumi.Input; /** * Memory in megabytes (**aligned to 128MB**) for Yandex Cloud Function */ memory?: pulumi.Input; /** * Yandex Cloud Function name used to define trigger */ name?: pulumi.Input; /** * Version deployment package for Yandex Cloud Function code. Can be only one `package` or `content` section. * * `package.0.sha_256` - SHA256 hash of the version deployment package. * * `package.0.bucket_name` - Name of the bucket that stores the code for the version. * * `package.0.object_name` - Name of the object in the bucket that stores the code for the version. */ package?: pulumi.Input; /** * Runtime for Yandex Cloud Function */ runtime?: pulumi.Input; /** * Service account ID for Yandex Cloud Function */ serviceAccountId?: pulumi.Input; /** * Tags for Yandex Cloud Function. Tag "$latest" isn't returned. */ tags?: pulumi.Input[]>; /** * User-defined string for current function version. User must change this string any times when function changed. Function will be updated when hash is changed. */ userHash?: pulumi.Input; /** * Version for Yandex Cloud Function. */ version?: pulumi.Input; } /** * The set of arguments for constructing a Function resource. */ export interface FunctionArgs { /** * Version deployment content for Yandex Cloud Function code. Can be only one `package` or `content` section. * * `content.0.zip_filename` - Filename to zip archive for the version. */ content?: pulumi.Input; /** * Description of the Yandex Cloud Function */ description?: pulumi.Input; /** * Entrypoint for Yandex Cloud Function */ entrypoint: pulumi.Input; /** * A set of key/value environment variables for Yandex Cloud Function */ environment?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Execution timeout in seconds for Yandex Cloud Function */ executionTimeout?: pulumi.Input; /** * Folder ID for the Yandex Cloud Function */ folderId?: pulumi.Input; /** * A set of key/value label pairs to assign to the Yandex Cloud Function */ labels?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Memory in megabytes (**aligned to 128MB**) for Yandex Cloud Function */ memory: pulumi.Input; /** * Yandex Cloud Function name used to define trigger */ name?: pulumi.Input; /** * Version deployment package for Yandex Cloud Function code. Can be only one `package` or `content` section. * * `package.0.sha_256` - SHA256 hash of the version deployment package. * * `package.0.bucket_name` - Name of the bucket that stores the code for the version. * * `package.0.object_name` - Name of the object in the bucket that stores the code for the version. */ package?: pulumi.Input; /** * Runtime for Yandex Cloud Function */ runtime: pulumi.Input; /** * Service account ID for Yandex Cloud Function */ serviceAccountId?: pulumi.Input; /** * Tags for Yandex Cloud Function. Tag "$latest" isn't returned. */ tags?: pulumi.Input[]>; /** * User-defined string for current function version. User must change this string any times when function changed. Function will be updated when hash is changed. */ userHash: pulumi.Input; }