SmartagFlowLog

class SmartagFlowLog : KotlinCustomResource

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>

Properties

Link copied to clipboard
val activeAging: Output<Int>

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>?

The description of the flow log.

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

The name of the flow log.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val inactiveAging: Output<Int>

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>?

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>?

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>

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>

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>

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

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val slsRegionId: Output<String>?

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>

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

Link copied to clipboard
val urn: Output<String>