@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
252 lines (251 loc) • 10.1 kB
TypeScript
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<pulumi.ID>, 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<number | undefined>;
/**
* Core fraction (**0...100**) of the Yandex Cloud Serverless Container
*/
readonly coreFraction: pulumi.Output<number>;
readonly cores: pulumi.Output<number | undefined>;
/**
* Creation timestamp of the Yandex Cloud Serverless Container
*/
readonly createdAt: pulumi.Output<string>;
/**
* Description of the Yandex Cloud Serverless Container
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Execution timeout in seconds (**duration format**) for Yandex Cloud Serverless Container
*/
readonly executionTimeout: pulumi.Output<string>;
/**
* Folder ID for the Yandex Cloud Serverless Container
*/
readonly folderId: pulumi.Output<string>;
/**
* 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<outputs.ServerlessContainerImage>;
/**
* 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<number>;
/**
* Yandex Cloud Serverless Container name
*/
readonly name: pulumi.Output<string>;
/**
* Last revision ID of the Yandex Cloud Serverless Container
*/
readonly revisionId: pulumi.Output<string>;
/**
* Service account ID for Yandex Cloud Serverless Container
*/
readonly serviceAccountId: pulumi.Output<string | undefined>;
/**
* Invoke URL for the Yandex Cloud Serverless Container
*/
readonly url: pulumi.Output<string>;
/**
* 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<number>;
/**
* Core fraction (**0...100**) of the Yandex Cloud Serverless Container
*/
coreFraction?: pulumi.Input<number>;
cores?: pulumi.Input<number>;
/**
* Creation timestamp of the Yandex Cloud Serverless Container
*/
createdAt?: pulumi.Input<string>;
/**
* Description of the Yandex Cloud Serverless Container
*/
description?: pulumi.Input<string>;
/**
* Execution timeout in seconds (**duration format**) for Yandex Cloud Serverless Container
*/
executionTimeout?: pulumi.Input<string>;
/**
* Folder ID for the Yandex Cloud Serverless Container
*/
folderId?: pulumi.Input<string>;
/**
* 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<inputs.ServerlessContainerImage>;
/**
* A set of key/value label pairs to assign to the Yandex Cloud Serverless Container
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Memory in megabytes (**aligned to 128MB**) for Yandex Cloud Serverless Container
*/
memory?: pulumi.Input<number>;
/**
* Yandex Cloud Serverless Container name
*/
name?: pulumi.Input<string>;
/**
* Last revision ID of the Yandex Cloud Serverless Container
*/
revisionId?: pulumi.Input<string>;
/**
* Service account ID for Yandex Cloud Serverless Container
*/
serviceAccountId?: pulumi.Input<string>;
/**
* Invoke URL for the Yandex Cloud Serverless Container
*/
url?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ServerlessContainer resource.
*/
export interface ServerlessContainerArgs {
/**
* Concurrency of Yandex Cloud Serverless Container
*/
concurrency?: pulumi.Input<number>;
/**
* Core fraction (**0...100**) of the Yandex Cloud Serverless Container
*/
coreFraction?: pulumi.Input<number>;
cores?: pulumi.Input<number>;
/**
* Description of the Yandex Cloud Serverless Container
*/
description?: pulumi.Input<string>;
/**
* Execution timeout in seconds (**duration format**) for Yandex Cloud Serverless Container
*/
executionTimeout?: pulumi.Input<string>;
/**
* Folder ID for the Yandex Cloud Serverless Container
*/
folderId?: pulumi.Input<string>;
/**
* 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<inputs.ServerlessContainerImage>;
/**
* A set of key/value label pairs to assign to the Yandex Cloud Serverless Container
*/
labels?: pulumi.Input<{
[key: string]: pulumi.Input<string>;
}>;
/**
* Memory in megabytes (**aligned to 128MB**) for Yandex Cloud Serverless Container
*/
memory: pulumi.Input<number>;
/**
* Yandex Cloud Serverless Container name
*/
name?: pulumi.Input<string>;
/**
* Service account ID for Yandex Cloud Serverless Container
*/
serviceAccountId?: pulumi.Input<string>;
}