get Vpc Flow Logs
This data source provides the Vpc Flow Logs of the current Alibaba Cloud user.
NOTE: Available in v1.122.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.vpc.VpcFunctions;
import com.pulumi.alicloud.vpc.inputs.GetVpcFlowLogsArgs;
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 example = VpcFunctions.getVpcFlowLogs(GetVpcFlowLogsArgs.builder()
.ids("example_value")
.nameRegex("the_resource_name")
.build());
ctx.export("firstVpcFlowLogId", example.applyValue(getVpcFlowLogsResult -> getVpcFlowLogsResult.logs()[0].id()));
}
}
Content copied to clipboard
Return
A collection of values returned by getVpcFlowLogs.
Parameters
argument
A collection of arguments for invoking getVpcFlowLogs.
suspend fun getVpcFlowLogs(description: String? = null, flowLogName: String? = null, ids: List<String>? = null, logStoreName: String? = null, nameRegex: String? = null, outputFile: String? = null, projectName: String? = null, resourceId: String? = null, resourceType: String? = null, status: String? = null, trafficType: String? = null): GetVpcFlowLogsResult
Return
A collection of values returned by getVpcFlowLogs.
See also
Parameters
description
The Description of flow log.
flow Log Name
The flow log name.
ids
A list of Flow Log IDs.
log Store Name
The log store name.
name Regex
A regex string to filter results by Flow Log name.
output File
File name where to save data source results (after running pulumi preview
).
project Name
The project name.
resource Id
The resource id.
resource Type
The resource type.
status
The status of flow log.
traffic Type
The traffic type.
suspend fun getVpcFlowLogs(argument: suspend GetVpcFlowLogsPlainArgsBuilder.() -> Unit): GetVpcFlowLogsResult
Return
A collection of values returned by getVpcFlowLogs.
See also
Parameters
argument
Builder for com.pulumi.alicloud.vpc.kotlin.inputs.GetVpcFlowLogsPlainArgs.