get Functions
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()));
}
}
Content copied to clipboard
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.
name Regex
A regex string to filter results by function name.
output File
File name where to save data source results (after running pulumi preview
).
service Name
Name of the service that contains the functions to find.
suspend fun getFunctions(argument: suspend GetFunctionsPlainArgsBuilder.() -> Unit): GetFunctionsResult
Return
A collection of values returned by getFunctions.
See also
Parameters
argument
Builder for com.pulumi.alicloud.fc.kotlin.inputs.GetFunctionsPlainArgs.