getLogConfigs

This data source provides the Api Gateway Log Configs of the current Alibaba Cloud user.

NOTE: Available in v1.185.0+.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.apigateway.ApigatewayFunctions;
import com.pulumi.alicloud.apigateway.inputs.GetLogConfigsArgs;
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 ids = ApigatewayFunctions.getLogConfigs(GetLogConfigsArgs.builder()
.ids("example_id")
.build());
ctx.export("apiGatewayLogConfigId1", ids.applyValue(getLogConfigsResult -> getLogConfigsResult.configs()[0].id()));
final var logType = ApigatewayFunctions.getLogConfigs(GetLogConfigsArgs.builder()
.logType("PROVIDER")
.build());
ctx.export("apiGatewayLogConfigId2", logType.applyValue(getLogConfigsResult -> getLogConfigsResult.configs()[0].id()));
}
}

Return

A collection of values returned by getLogConfigs.

Parameters

argument

A collection of arguments for invoking getLogConfigs.


suspend fun getLogConfigs(ids: List<String>? = null, logType: String? = null, outputFile: String? = null): GetLogConfigsResult

Return

A collection of values returned by getLogConfigs.

See also

Parameters

ids

A list of Log Config IDs.

logType

The type the of log.

outputFile

File name where to save data source results (after running pulumi preview).


Return

A collection of values returned by getLogConfigs.

See also

Parameters

argument

Builder for com.pulumi.alicloud.apigateway.kotlin.inputs.GetLogConfigsPlainArgs.