import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Returns a function with the given name from the requested project. */ export declare function getFunction(args: GetFunctionArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetFunctionArgs { functionId: string; location: string; project?: string; } export interface GetFunctionResult { /** * Describes the Build step of the function that builds a container from the given source. */ readonly buildConfig: outputs.cloudfunctions.v2beta.BuildConfigResponse; /** * User-provided description of a function. */ readonly description: string; /** * Describe whether the function is 1st Gen or 2nd Gen. */ readonly environment: string; /** * An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service. */ readonly eventTrigger: outputs.cloudfunctions.v2beta.EventTriggerResponse; /** * [Preview] Resource name of a KMS crypto key (managed by the user) used to encrypt/decrypt function resources. It must match the pattern `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`. */ readonly kmsKeyName: string; /** * Labels associated with this Cloud Function. */ readonly labels: { [key: string]: string; }; /** * A user-defined name of the function. Function names must be unique globally and match pattern `projects/*/locations/*/functions/*` */ readonly name: string; /** * Reserved for future use. */ readonly satisfiesPzs: boolean; /** * Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed). */ readonly serviceConfig: outputs.cloudfunctions.v2beta.ServiceConfigResponse; /** * State of the function. */ readonly state: string; /** * State Messages for this Cloud Function. */ readonly stateMessages: outputs.cloudfunctions.v2beta.GoogleCloudFunctionsV2betaStateMessageResponse[]; /** * The last update timestamp of a Cloud Function. */ readonly updateTime: string; /** * The deployed url for the function. */ readonly url: string; } /** * Returns a function with the given name from the requested project. */ export declare function getFunctionOutput(args: GetFunctionOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetFunctionOutputArgs { functionId: pulumi.Input; location: pulumi.Input; project?: pulumi.Input; }