alicloud.threatdetection.HoneypotPreset
Explore with Pulumi AI
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 in v1.195.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var defaultHoneypotNode = new AliCloud.ThreatDetection.HoneypotNode("defaultHoneypotNode", new()
{
NodeName = @var.Name,
AvailableProbeNum = 20,
SecurityGroupProbeIpLists = new[]
{
"0.0.0.0/0",
},
});
var defaultHoneypotPreset = new AliCloud.ThreatDetection.HoneypotPreset("defaultHoneypotPreset", new()
{
HoneypotImageName = "shiro",
Meta = new AliCloud.ThreatDetection.Inputs.HoneypotPresetMetaArgs
{
PortraitOption = true,
Burp = "open",
},
NodeId = defaultHoneypotNode.Id,
PresetName = "apiapec_test",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
defaultHoneypotNode, err := threatdetection.NewHoneypotNode(ctx, "defaultHoneypotNode", &threatdetection.HoneypotNodeArgs{
NodeName: pulumi.Any(_var.Name),
AvailableProbeNum: pulumi.Int(20),
SecurityGroupProbeIpLists: pulumi.StringArray{
pulumi.String("0.0.0.0/0"),
},
})
if err != nil {
return err
}
_, err = threatdetection.NewHoneypotPreset(ctx, "defaultHoneypotPreset", &threatdetection.HoneypotPresetArgs{
HoneypotImageName: pulumi.String("shiro"),
Meta: &threatdetection.HoneypotPresetMetaArgs{
PortraitOption: pulumi.Bool(true),
Burp: pulumi.String("open"),
},
NodeId: defaultHoneypotNode.ID(),
PresetName: pulumi.String("apiapec_test"),
})
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.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) {
var defaultHoneypotNode = new HoneypotNode("defaultHoneypotNode", HoneypotNodeArgs.builder()
.nodeName(var_.name())
.availableProbeNum(20)
.securityGroupProbeIpLists("0.0.0.0/0")
.build());
var defaultHoneypotPreset = new HoneypotPreset("defaultHoneypotPreset", HoneypotPresetArgs.builder()
.honeypotImageName("shiro")
.meta(HoneypotPresetMetaArgs.builder()
.portraitOption(true)
.burp("open")
.build())
.nodeId(defaultHoneypotNode.id())
.presetName("apiapec_test")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default_honeypot_node = alicloud.threatdetection.HoneypotNode("defaultHoneypotNode",
node_name=var["name"],
available_probe_num=20,
security_group_probe_ip_lists=["0.0.0.0/0"])
default_honeypot_preset = alicloud.threatdetection.HoneypotPreset("defaultHoneypotPreset",
honeypot_image_name="shiro",
meta=alicloud.threatdetection.HoneypotPresetMetaArgs(
portrait_option=True,
burp="open",
),
node_id=default_honeypot_node.id,
preset_name="apiapec_test")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const defaultHoneypotNode = new alicloud.threatdetection.HoneypotNode("defaultHoneypotNode", {
nodeName: _var.name,
availableProbeNum: 20,
securityGroupProbeIpLists: ["0.0.0.0/0"],
});
const defaultHoneypotPreset = new alicloud.threatdetection.HoneypotPreset("defaultHoneypotPreset", {
honeypotImageName: "shiro",
meta: {
portraitOption: true,
burp: "open",
},
nodeId: defaultHoneypotNode.id,
presetName: "apiapec_test",
});
resources:
defaultHoneypotNode:
type: alicloud:threatdetection:HoneypotNode
properties:
nodeName: ${var.name}
availableProbeNum: 20
securityGroupProbeIpLists:
- 0.0.0.0/0
defaultHoneypotPreset:
type: alicloud:threatdetection:HoneypotPreset
properties:
honeypotImageName: shiro
meta:
portraitOption: true
burp: open
nodeId: ${defaultHoneypotNode.id}
presetName: apiapec_test
Create HoneypotPreset Resource
new HoneypotPreset(name: string, args: HoneypotPresetArgs, opts?: CustomResourceOptions);
@overload
def HoneypotPreset(resource_name: str,
opts: Optional[ResourceOptions] = None,
honeypot_image_name: Optional[str] = None,
meta: Optional[HoneypotPresetMetaArgs] = None,
node_id: Optional[str] = None,
preset_name: Optional[str] = None)
@overload
def HoneypotPreset(resource_name: str,
args: HoneypotPresetArgs,
opts: Optional[ResourceOptions] = None)
func NewHoneypotPreset(ctx *Context, name string, args HoneypotPresetArgs, opts ...ResourceOption) (*HoneypotPreset, error)
public HoneypotPreset(string name, HoneypotPresetArgs args, CustomResourceOptions? opts = null)
public HoneypotPreset(String name, HoneypotPresetArgs args)
public HoneypotPreset(String name, HoneypotPresetArgs args, CustomResourceOptions options)
type: alicloud:threatdetection:HoneypotPreset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HoneypotPresetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args HoneypotPresetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args HoneypotPresetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HoneypotPresetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HoneypotPresetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
HoneypotPreset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The HoneypotPreset resource accepts the following input properties:
- Honeypot
Image stringName Honeypot mirror name
- Meta
Pulumi.
Ali Cloud. Threat Detection. Inputs. Honeypot Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- Node
Id string Unique id of management node
- Preset
Name string Honeypot template custom name
- Honeypot
Image stringName Honeypot mirror name
- Meta
Honeypot
Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- Node
Id string Unique id of management node
- Preset
Name string Honeypot template custom name
- honeypot
Image StringName Honeypot mirror name
- meta
Honeypot
Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- node
Id String Unique id of management node
- preset
Name String Honeypot template custom name
- honeypot
Image stringName Honeypot mirror name
- meta
Honeypot
Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- node
Id string Unique id of management node
- preset
Name string Honeypot template custom name
- honeypot_
image_ strname Honeypot mirror name
- meta
Honeypot
Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- node_
id str Unique id of management node
- preset_
name str Honeypot template custom name
- honeypot
Image StringName Honeypot mirror name
- meta Property Map
Honeypot template custom parameters. See the following
Block meta
.- node
Id String Unique id of management node
- preset
Name String Honeypot template custom name
Outputs
All input properties are implicitly available as output properties. Additionally, the HoneypotPreset resource produces the following output properties:
- Honeypot
Preset stringId Unique ID of honeypot Template
- Id string
The provider-assigned unique ID for this managed resource.
- Honeypot
Preset stringId Unique ID of honeypot Template
- Id string
The provider-assigned unique ID for this managed resource.
- honeypot
Preset StringId Unique ID of honeypot Template
- id String
The provider-assigned unique ID for this managed resource.
- honeypot
Preset stringId Unique ID of honeypot Template
- id string
The provider-assigned unique ID for this managed resource.
- honeypot_
preset_ strid Unique ID of honeypot Template
- id str
The provider-assigned unique ID for this managed resource.
- honeypot
Preset StringId Unique ID of honeypot Template
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing HoneypotPreset Resource
Get an existing HoneypotPreset resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: HoneypotPresetState, opts?: CustomResourceOptions): HoneypotPreset
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
honeypot_image_name: Optional[str] = None,
honeypot_preset_id: Optional[str] = None,
meta: Optional[HoneypotPresetMetaArgs] = None,
node_id: Optional[str] = None,
preset_name: Optional[str] = None) -> HoneypotPreset
func GetHoneypotPreset(ctx *Context, name string, id IDInput, state *HoneypotPresetState, opts ...ResourceOption) (*HoneypotPreset, error)
public static HoneypotPreset Get(string name, Input<string> id, HoneypotPresetState? state, CustomResourceOptions? opts = null)
public static HoneypotPreset get(String name, Output<String> id, HoneypotPresetState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Honeypot
Image stringName Honeypot mirror name
- Honeypot
Preset stringId Unique ID of honeypot Template
- Meta
Pulumi.
Ali Cloud. Threat Detection. Inputs. Honeypot Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- Node
Id string Unique id of management node
- Preset
Name string Honeypot template custom name
- Honeypot
Image stringName Honeypot mirror name
- Honeypot
Preset stringId Unique ID of honeypot Template
- Meta
Honeypot
Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- Node
Id string Unique id of management node
- Preset
Name string Honeypot template custom name
- honeypot
Image StringName Honeypot mirror name
- honeypot
Preset StringId Unique ID of honeypot Template
- meta
Honeypot
Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- node
Id String Unique id of management node
- preset
Name String Honeypot template custom name
- honeypot
Image stringName Honeypot mirror name
- honeypot
Preset stringId Unique ID of honeypot Template
- meta
Honeypot
Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- node
Id string Unique id of management node
- preset
Name string Honeypot template custom name
- honeypot_
image_ strname Honeypot mirror name
- honeypot_
preset_ strid Unique ID of honeypot Template
- meta
Honeypot
Preset Meta Args Honeypot template custom parameters. See the following
Block meta
.- node_
id str Unique id of management node
- preset_
name str Honeypot template custom name
- honeypot
Image StringName Honeypot mirror name
- honeypot
Preset StringId Unique ID of honeypot Template
- meta Property Map
Honeypot template custom parameters. See the following
Block meta
.- node
Id String Unique id of management node
- preset
Name String Honeypot template custom name
Supporting Types
HoneypotPresetMeta
- Burp string
Burp counter.
- Portrait
Option bool Social traceability.
- Trojan
Git string Git countered.
- Burp string
Burp counter.
- Portrait
Option bool Social traceability.
- Trojan
Git string Git countered.
- burp String
Burp counter.
- portrait
Option Boolean Social traceability.
- trojan
Git String Git countered.
- burp string
Burp counter.
- portrait
Option boolean Social traceability.
- trojan
Git string Git countered.
- burp str
Burp counter.
- portrait_
option bool Social traceability.
- trojan_
git str Git countered.
- burp String
Burp counter.
- portrait
Option Boolean Social traceability.
- trojan
Git String Git countered.
Import
Threat Detection Honeypot Preset can be imported using the id, e.g.
$ pulumi import alicloud:threatdetection/honeypotPreset:HoneypotPreset example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.