getFunctionCloudfunctionsV2 function

Future<GetFunctionCloudfunctionsV2Result> getFunctionCloudfunctionsV2(
  1. GetFunctionCloudfunctionsV2Args args, {
  2. InvokeOptions? options,
})

Returns a function with the given name from the requested project. args Arguments passed to this invoke. Arguments for getFunction. options Invoke options controlling this call.

Implementation

Future<GetFunctionCloudfunctionsV2Result> getFunctionCloudfunctionsV2(
  GetFunctionCloudfunctionsV2Args args, {
  pulumi.InvokeOptions? options,
}) async {
  final deployment = pulumi.Deployment.instance;
  final result = await deployment.invoke<Map<String, dynamic>>(
    'google-native:cloudfunctions/v2:getFunction',
    args.toMap(),
    options: pulumi.toDeploymentInvokeOptions(options),
  );
  return GetFunctionCloudfunctionsV2Result.fromMap(result);
}