HoneyPot

class HoneyPot : KotlinCustomResource

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

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.HoneyPot;
import com.pulumi.alicloud.threatdetection.HoneyPotArgs;
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 defaultHoneyPot = new HoneyPot("defaultHoneyPot", HoneyPotArgs.builder()
.honeypotImageName(defaultHoneypotImages.applyValue(getHoneypotImagesResult -> getHoneypotImagesResult.images()[0].honeypotImageName()))
.honeypotImageId(defaultHoneypotImages.applyValue(getHoneypotImagesResult -> getHoneypotImagesResult.images()[0].honeypotImageId()))
.honeypotName(name)
.nodeId(defaultHoneypotNode.id())
.build());
}
}

Import

Threat Detection Honey Pot can be imported using the id, e.g.

$ pulumi import alicloud:threatdetection/honeyPot:HoneyPot example <id>

Properties

Link copied to clipboard
val honeypotId: Output<String>

Honeypot ID.

Link copied to clipboard
val honeypotImageId: Output<String>

The image ID of the honeypot.

Link copied to clipboard

Honeypot mirror name.

Link copied to clipboard
val honeypotName: Output<String>

Honeypot custom name.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val nodeId: Output<String>

The ID of the honeypot management node.

Link copied to clipboard
val presetId: Output<String>

The custom parameter ID of honeypot.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val states: Output<List<String>>

Honeypot status.

Link copied to clipboard
val status: Output<String>

The status of the resource.

Link copied to clipboard
val urn: Output<String>