LogConfig

Provides a Api Gateway Log Config resource. For information about Api Gateway Log Config and how to use it, see What is Log Config.

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.LogConfig;
import com.pulumi.alicloud.apigateway.LogConfigArgs;
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) {
var default_ = new LogConfig("default", LogConfigArgs.builder()
.logType("PROVIDER")
.slsLogStore("example_value")
.slsProject("example_value")
.build());
}
}

Import

Api Gateway Log Config can be imported using the id, e.g.

$ pulumi import alicloud:apigateway/logConfig:LogConfig example <log_type>

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val logType: Output<String>

The type the of log. Valid values: PROVIDER.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val slsLogStore: Output<String>

The name of the Log Store.

Link copied to clipboard
val slsProject: Output<String>

The name of the Project.

Link copied to clipboard
val urn: Output<String>