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

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.sag.SmartagFlowLog("example", {
netflowServerIp: "192.168.0.2",
netflowServerPort: 9995,
netflowVersion: "V9",
outputType: "netflow",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.sag.SmartagFlowLog("example",
netflow_server_ip="192.168.0.2",
netflow_server_port=9995,
netflow_version="V9",
output_type="netflow")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Sag.SmartagFlowLog("example", new()
{
NetflowServerIp = "192.168.0.2",
NetflowServerPort = 9995,
NetflowVersion = "V9",
OutputType = "netflow",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sag"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sag.NewSmartagFlowLog(ctx, "example", &sag.SmartagFlowLogArgs{
NetflowServerIp: pulumi.String("192.168.0.2"),
NetflowServerPort: pulumi.Int(9995),
NetflowVersion: pulumi.String("V9"),
OutputType: pulumi.String("netflow"),
})
if err != nil {
return err
}
return nil
})
}
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());
}
}
resources:
example:
type: alicloud:sag:SmartagFlowLog
properties:
netflowServerIp: 192.168.0.2
netflowServerPort: 9995
netflowVersion: V9
outputType: netflow

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
constructor(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)

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.

Functions

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