@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
55 lines (54 loc) • 1.67 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
export declare function getFunction(args: GetFunctionArgs, opts?: pulumi.InvokeOptions): Promise<GetFunctionResult>;
/**
* A collection of arguments for invoking getFunction.
*/
export interface GetFunctionArgs {
functionId?: string;
name?: string;
namespaceId: string;
}
/**
* A collection of values returned by getFunction.
*/
export interface GetFunctionResult {
readonly cpuLimit: number;
readonly deploy: boolean;
readonly description: string;
readonly domainName: string;
readonly environmentVariables: {
[key: string]: string;
};
readonly functionId?: string;
readonly handler: string;
readonly httpOption: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly maxScale: number;
readonly memoryLimit: number;
readonly minScale: number;
readonly name?: string;
readonly namespaceId: string;
readonly organizationId: string;
readonly privacy: string;
readonly projectId: string;
readonly region: string;
readonly runtime: string;
readonly secretEnvironmentVariables: {
[key: string]: string;
};
readonly timeout: number;
readonly zipFile: string;
readonly zipHash: string;
}
export declare function getFunctionOutput(args: GetFunctionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetFunctionResult>;
/**
* A collection of arguments for invoking getFunction.
*/
export interface GetFunctionOutputArgs {
functionId?: pulumi.Input<string>;
name?: pulumi.Input<string>;
namespaceId: pulumi.Input<string>;
}