get Function
Get information about a Google Cloud Function. For more information see the official documentation and API.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.cloudfunctions.CloudfunctionsFunctions;
import com.pulumi.gcp.cloudfunctions.inputs.GetFunctionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var my-function = CloudfunctionsFunctions.getFunction(GetFunctionArgs.builder()
.name("function")
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getFunction.
Parameters
argument
A collection of arguments for invoking getFunction.
suspend fun getFunction(name: String, project: String? = null, region: String? = null): GetFunctionResult
Return
A collection of values returned by getFunction.
Parameters
name
The name of a Cloud Function.
project
The project in which the resource belongs. If it is not provided, the provider project is used.
region
The region in which the resource belongs. If it is not provided, the provider region is used.
See also
suspend fun getFunction(argument: suspend GetFunctionPlainArgsBuilder.() -> Unit): GetFunctionResult
Return
A collection of values returned by getFunction.
Parameters
argument
Builder for com.pulumi.gcp.cloudfunctions.kotlin.inputs.GetFunctionPlainArgs.