HoneypotPresetArgs

data class HoneypotPresetArgs(val honeypotImageName: Output<String>? = null, val meta: Output<HoneypotPresetMetaArgs>? = null, val nodeId: Output<String>? = null, val presetName: Output<String>? = null) : ConvertibleToJava<HoneypotPresetArgs>

Provides a Threat Detection Honeypot Preset resource. For information about Threat Detection Honeypot Preset and how to use it, see What is Honeypot Preset.

NOTE: Available since v1.195.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.threatdetection.ThreatdetectionFunctions;
import com.pulumi.alicloud.threatdetection.inputs.GetHoneypotImagesArgs;
import com.pulumi.alicloud.threatdetection.HoneypotNode;
import com.pulumi.alicloud.threatdetection.HoneypotNodeArgs;
import com.pulumi.alicloud.threatdetection.HoneypotPreset;
import com.pulumi.alicloud.threatdetection.HoneypotPresetArgs;
import com.pulumi.alicloud.threatdetection.inputs.HoneypotPresetMetaArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tfexample");
final var defaultHoneypotImages = ThreatdetectionFunctions.getHoneypotImages(GetHoneypotImagesArgs.builder()
.nameRegex("^ruoyi")
.build());
var defaultHoneypotNode = new HoneypotNode("defaultHoneypotNode", HoneypotNodeArgs.builder()
.nodeName(name)
.availableProbeNum(20)
.securityGroupProbeIpLists("0.0.0.0/0")
.build());
var defaultHoneypotPreset = new HoneypotPreset("defaultHoneypotPreset", HoneypotPresetArgs.builder()
.presetName(name)
.nodeId(defaultHoneypotNode.id())
.honeypotImageName(defaultHoneypotImages.applyValue(getHoneypotImagesResult -> getHoneypotImagesResult.images()[0].honeypotImageName()))
.meta(HoneypotPresetMetaArgs.builder()
.portraitOption(true)
.burp("open")
.build())
.build());
}
}

Import

Threat Detection Honeypot Preset can be imported using the id, e.g.

$ pulumi import alicloud:threatdetection/honeypotPreset:HoneypotPreset example <id>

Constructors

Link copied to clipboard
fun HoneypotPresetArgs(honeypotImageName: Output<String>? = null, meta: Output<HoneypotPresetMetaArgs>? = null, nodeId: Output<String>? = null, presetName: Output<String>? = null)

Functions

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

Properties

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

Honeypot mirror name

Link copied to clipboard
val meta: Output<HoneypotPresetMetaArgs>? = null

Honeypot template custom parameters. See meta below.

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

Unique id of management node

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

Honeypot template custom name