@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
115 lines (114 loc) • 3.91 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { output as outputs } from "./types";
/**
* Get information about a Yandex Cloud Serverless Container.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as yandex from "@pulumi/yandex";
*
* const my_container = pulumi.output(yandex.getServerlessContainer({
* containerId: "are1samplecontainer11",
* }));
* ```
*
* This data source is used to define Yandex Cloud Container that can be used by other resources.
*/
export declare function getServerlessContainer(args?: GetServerlessContainerArgs, opts?: pulumi.InvokeOptions): Promise<GetServerlessContainerResult>;
/**
* A collection of arguments for invoking getServerlessContainer.
*/
export interface GetServerlessContainerArgs {
/**
* Yandex Cloud Serverless Container id used to define container
*/
containerId?: string;
/**
* Folder ID for the Yandex Cloud Serverless Container
*/
folderId?: string;
/**
* Yandex Cloud Serverless Container name used to define container
*/
name?: string;
}
/**
* A collection of values returned by getServerlessContainer.
*/
export interface GetServerlessContainerResult {
/**
* Concurrency of Yandex Cloud Serverless Container
*/
readonly concurrency: number;
readonly containerId?: string;
/**
* Core fraction (**0...100**) of the Yandex Cloud Serverless Container
*/
readonly coreFraction: number;
readonly cores: number;
/**
* Creation timestamp of the Yandex Cloud Serverless Container
*/
readonly createdAt: string;
/**
* Description of the Yandex Cloud Serverless Container
*/
readonly description: string;
/**
* Execution timeout (duration format) of Yandex Cloud Serverless Container
*/
readonly executionTimeout: string;
readonly folderId?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly images: outputs.GetServerlessContainerImage[];
/**
* A set of key/value label pairs assigned to the Yandex Cloud Serverless Container
*/
readonly labels: {
[key: string]: string;
};
/**
* Memory in megabytes of Yandex Cloud Serverless Container
*/
readonly memory: number;
readonly name?: string;
/**
* Last revision ID of the Yandex Cloud Serverless Container
*/
readonly revisionId: string;
/**
* Service account ID of Yandex Cloud Serverless Container
* * `image.0.url` - URL of image that deployed as Yandex Cloud Serverless Container
* * `image.0.work_dir` - Working directory of Yandex Cloud Serverless Container
* * `image.0.digest` - Digest of image that deployed as Yandex Cloud Serverless Container
* * `image.0.command` - List of commands of the Yandex Cloud Serverless Container
* * `image.0.args` - List of arguments of the Yandex Cloud Serverless Container
* * `image.0.environment` - A set of key/value environment variable pairs of Yandex Cloud Serverless Container
*/
readonly serviceAccountId: string;
/**
* Invoke URL of the Yandex Cloud Serverless Container
*/
readonly url: string;
}
export declare function getServerlessContainerOutput(args?: GetServerlessContainerOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetServerlessContainerResult>;
/**
* A collection of arguments for invoking getServerlessContainer.
*/
export interface GetServerlessContainerOutputArgs {
/**
* Yandex Cloud Serverless Container id used to define container
*/
containerId?: pulumi.Input<string>;
/**
* Folder ID for the Yandex Cloud Serverless Container
*/
folderId?: pulumi.Input<string>;
/**
* Yandex Cloud Serverless Container name used to define container
*/
name?: pulumi.Input<string>;
}