getFlowlogs

This data source provides CEN flow logs available to the user.

NOTE: Available in 1.78.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.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetFlowlogsArgs;
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 default = CenFunctions.getFlowlogs(GetFlowlogsArgs.builder()
.ids("flowlog-tig1xxxxx")
.nameRegex("^foo")
.build());
ctx.export("firstCenFlowlogId", data.alicloud_cen_instances().default().flowlogs()[0].id());
}
}

Return

A collection of values returned by getFlowlogs.

Parameters

argument

A collection of arguments for invoking getFlowlogs.


suspend fun getFlowlogs(cenId: String? = null, description: String? = null, ids: List<String>? = null, logStoreName: String? = null, nameRegex: String? = null, outputFile: String? = null, projectName: String? = null, status: String? = null): GetFlowlogsResult

Return

A collection of values returned by getFlowlogs.

See also

Parameters

cenId

The ID of the CEN Instance.

description

The description of flowlog.

ids

A list of CEN flow log IDs.

logStoreName

The name of the log store which is in the project_name SLS project.

nameRegex

A regex string to filter CEN flow logs by name.

outputFile

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

projectName

The name of the SLS project.

status

The status of flowlog. Valid values: "Active", "Inactive". Default to "Active".


suspend fun getFlowlogs(argument: suspend GetFlowlogsPlainArgsBuilder.() -> Unit): GetFlowlogsResult

Return

A collection of values returned by getFlowlogs.

See also

Parameters

argument

Builder for com.pulumi.alicloud.cen.kotlin.inputs.GetFlowlogsPlainArgs.