import * as pulumi from "@pulumi/pulumi"; /** * The `scaleway.Function` data source is used to retrieve information about a Serverless Function. * * Refer to the Serverless Functions [product documentation](https://www.scaleway.com/en/docs/serverless/functions/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/) for more information. * * For more information on the limitations of Serverless Functions, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/). * * ## Retrieve a Serverless Function * * The following commands allow you to: * * - retrieve a function by its name * - retrieve a function by its ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myFunction = scaleway.getFunction({ * functionId: "11111111-1111-1111-1111-111111111111", * namespaceId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getFunction(args: GetFunctionArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getFunction. */ export interface GetFunctionArgs { /** * The unique identifier of the function. Only one of `name` and `functionId` should be specified. */ functionId?: string; /** * The name of the function. Only one of `name` and `namespaceId` should be specified. */ name?: string; /** * The namespace ID associated with this function. */ namespaceId: string; /** * The unique identifier of the project with which the function is associated. */ projectId?: string; /** * `region`) The region in which the container exists. */ region?: 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 sandbox: string; readonly secretEnvironmentVariables: { [key: string]: string; }; readonly timeout: number; readonly zipFile: string; readonly zipHash: string; } /** * The `scaleway.Function` data source is used to retrieve information about a Serverless Function. * * Refer to the Serverless Functions [product documentation](https://www.scaleway.com/en/docs/serverless/functions/) and [API documentation](https://www.scaleway.com/en/developers/api/serverless-functions/) for more information. * * For more information on the limitations of Serverless Functions, refer to the [dedicated documentation](https://www.scaleway.com/en/docs/compute/functions/reference-content/functions-limitations/). * * ## Retrieve a Serverless Function * * The following commands allow you to: * * - retrieve a function by its name * - retrieve a function by its ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myFunction = scaleway.getFunction({ * functionId: "11111111-1111-1111-1111-111111111111", * namespaceId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getFunctionOutput(args: GetFunctionOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getFunction. */ export interface GetFunctionOutputArgs { /** * The unique identifier of the function. Only one of `name` and `functionId` should be specified. */ functionId?: pulumi.Input; /** * The name of the function. Only one of `name` and `namespaceId` should be specified. */ name?: pulumi.Input; /** * The namespace ID associated with this function. */ namespaceId: pulumi.Input; /** * The unique identifier of the project with which the function is associated. */ projectId?: pulumi.Input; /** * `region`) The region in which the container exists. */ region?: pulumi.Input; }