SmartagFlowLogArgs

data class SmartagFlowLogArgs(val activeAging: Output<Int>? = null, val description: Output<String>? = null, val flowLogName: Output<String>? = null, val inactiveAging: Output<Int>? = null, val logstoreName: Output<String>? = null, val netflowServerIp: Output<String>? = null, val netflowServerPort: Output<Int>? = null, val netflowVersion: Output<String>? = null, val outputType: Output<String>? = null, val projectName: Output<String>? = null, val slsRegionId: Output<String>? = null, val status: Output<String>? = null) : ConvertibleToJava<SmartagFlowLogArgs>

Provides a Smartag Flow Log resource. For information about Smartag Flow Log and how to use it, see What is Flow Log.

NOTE: Available since v1.168.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.sag.SmartagFlowLog;
import com.pulumi.alicloud.sag.SmartagFlowLogArgs;
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 example = new SmartagFlowLog("example", SmartagFlowLogArgs.builder()
.netflowServerIp("192.168.0.2")
.netflowServerPort(9995)
.netflowVersion("V9")
.outputType("netflow")
.build());
}
}

Import

Smartag Flow Log can be imported using the id, e.g.

$ pulumi import alicloud:sag/smartagFlowLog:SmartagFlowLog example <id>

Constructors

Link copied to clipboard
fun SmartagFlowLogArgs(activeAging: Output<Int>? = null, description: Output<String>? = null, flowLogName: Output<String>? = null, inactiveAging: Output<Int>? = null, logstoreName: Output<String>? = null, netflowServerIp: Output<String>? = null, netflowServerPort: Output<Int>? = null, netflowVersion: Output<String>? = null, outputType: Output<String>? = null, projectName: Output<String>? = null, slsRegionId: Output<String>? = null, status: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): SmartagFlowLogArgs

Properties

Link copied to clipboard
val activeAging: Output<Int>? = null

The time interval at which log data of active connections is collected. Valid values: 60 to 6000. Default value: 300. Unit: second.

Link copied to clipboard
val description: Output<String>? = null

The description of the flow log.

Link copied to clipboard
val flowLogName: Output<String>? = null

The name of the flow log.

Link copied to clipboard
val inactiveAging: Output<Int>? = null

The time interval at which log data of inactive connections is connected. Valid values: 10 to 600. Default value: 15. Unit: second.

Link copied to clipboard
val logstoreName: Output<String>? = null

The Logstore in Log Service. If output_type is set to sls or all, this parameter is required.

Link copied to clipboard
val netflowServerIp: Output<String>? = null

The IP address of the NetFlow collector where the flow log is stored. If output_type is set to netflow or all, this parameter is required.

Link copied to clipboard
val netflowServerPort: Output<Int>? = null

The port of the NetFlow collector. Default value: 9995. If output_type is set to netflow or all, this parameter is required.

Link copied to clipboard
val netflowVersion: Output<String>? = null

The NetFlow version. Default value: V9. Valid values: V10, V5, V9. If output_type is set to netflow or all, this parameter is required.

Link copied to clipboard
val outputType: Output<String>? = null

The location where the flow log is stored. Valid values:

Link copied to clipboard
val projectName: Output<String>? = null

The project in Log Service. If output_type is set to sls or all, this parameter is required.

Link copied to clipboard
val slsRegionId: Output<String>? = null

The ID of the region where Log Service is deployed. If output_type is set to sls or all, this parameter is required.

Link copied to clipboard
val status: Output<String>? = null

The status of the flow log. Valid values: Active: The flow log is enabled. Inactive: The flow log is disabled.