getFunctions

This data source provides the Function Compute functions of the current Alibaba Cloud user.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.fc.FcFunctions;
import com.pulumi.alicloud.fc.inputs.GetFunctionsArgs;
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 functionsDs = FcFunctions.getFunctions(GetFunctionsArgs.builder()
.nameRegex("sample_fc_function")
.serviceName("sample_service")
.build());
ctx.export("firstFcFunctionName", functionsDs.applyValue(getFunctionsResult -> getFunctionsResult.functions()[0].name()));
}
}

Return

A collection of values returned by getFunctions.

Parameters

argument

A collection of arguments for invoking getFunctions.


suspend fun getFunctions(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, serviceName: String): GetFunctionsResult

Return

A collection of values returned by getFunctions.

See also

Parameters

ids

A list of functions ids.

nameRegex

A regex string to filter results by function name.

outputFile
serviceName

Name of the service that contains the functions to find.


Return

A collection of values returned by getFunctions.

See also

Parameters

argument

Builder for com.pulumi.alicloud.fc.kotlin.inputs.GetFunctionsPlainArgs.