alicloud.threatdetection.HoneypotNode
Explore with Pulumi AI
Provides a Threat Detection Honeypot Node resource.
For information about Threat Detection Honeypot Node and how to use it, see What is Honeypot Node.
NOTE: Available since v1.195.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf_example";
const _default = new alicloud.threatdetection.HoneypotNode("default", {
nodeName: name,
availableProbeNum: 20,
securityGroupProbeIpLists: ["0.0.0.0/0"],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf_example"
default = alicloud.threatdetection.HoneypotNode("default",
node_name=name,
available_probe_num=20,
security_group_probe_ip_lists=["0.0.0.0/0"])
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/threatdetection"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf_example"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := threatdetection.NewHoneypotNode(ctx, "default", &threatdetection.HoneypotNodeArgs{
NodeName: pulumi.String(name),
AvailableProbeNum: pulumi.Int(20),
SecurityGroupProbeIpLists: pulumi.StringArray{
pulumi.String("0.0.0.0/0"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf_example";
var @default = new AliCloud.ThreatDetection.HoneypotNode("default", new()
{
NodeName = name,
AvailableProbeNum = 20,
SecurityGroupProbeIpLists = new[]
{
"0.0.0.0/0",
},
});
});
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 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("tf_example");
var default_ = new HoneypotNode("default", HoneypotNodeArgs.builder()
.nodeName(name)
.availableProbeNum(20)
.securityGroupProbeIpLists("0.0.0.0/0")
.build());
}
}
configuration:
name:
type: string
default: tf_example
resources:
default:
type: alicloud:threatdetection:HoneypotNode
properties:
nodeName: ${name}
availableProbeNum: 20
securityGroupProbeIpLists:
- 0.0.0.0/0
Create HoneypotNode Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HoneypotNode(name: string, args: HoneypotNodeArgs, opts?: CustomResourceOptions);
@overload
def HoneypotNode(resource_name: str,
args: HoneypotNodeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HoneypotNode(resource_name: str,
opts: Optional[ResourceOptions] = None,
available_probe_num: Optional[int] = None,
node_name: Optional[str] = None,
allow_honeypot_access_internet: Optional[bool] = None,
security_group_probe_ip_lists: Optional[Sequence[str]] = None)
func NewHoneypotNode(ctx *Context, name string, args HoneypotNodeArgs, opts ...ResourceOption) (*HoneypotNode, error)
public HoneypotNode(string name, HoneypotNodeArgs args, CustomResourceOptions? opts = null)
public HoneypotNode(String name, HoneypotNodeArgs args)
public HoneypotNode(String name, HoneypotNodeArgs args, CustomResourceOptions options)
type: alicloud:threatdetection:HoneypotNode
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args HoneypotNodeArgs
- 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 HoneypotNodeArgs
- 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 HoneypotNodeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HoneypotNodeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HoneypotNodeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var honeypotNodeResource = new AliCloud.ThreatDetection.HoneypotNode("honeypotNodeResource", new()
{
AvailableProbeNum = 0,
NodeName = "string",
AllowHoneypotAccessInternet = false,
SecurityGroupProbeIpLists = new[]
{
"string",
},
});
example, err := threatdetection.NewHoneypotNode(ctx, "honeypotNodeResource", &threatdetection.HoneypotNodeArgs{
AvailableProbeNum: pulumi.Int(0),
NodeName: pulumi.String("string"),
AllowHoneypotAccessInternet: pulumi.Bool(false),
SecurityGroupProbeIpLists: pulumi.StringArray{
pulumi.String("string"),
},
})
var honeypotNodeResource = new HoneypotNode("honeypotNodeResource", HoneypotNodeArgs.builder()
.availableProbeNum(0)
.nodeName("string")
.allowHoneypotAccessInternet(false)
.securityGroupProbeIpLists("string")
.build());
honeypot_node_resource = alicloud.threatdetection.HoneypotNode("honeypotNodeResource",
available_probe_num=0,
node_name="string",
allow_honeypot_access_internet=False,
security_group_probe_ip_lists=["string"])
const honeypotNodeResource = new alicloud.threatdetection.HoneypotNode("honeypotNodeResource", {
availableProbeNum: 0,
nodeName: "string",
allowHoneypotAccessInternet: false,
securityGroupProbeIpLists: ["string"],
});
type: alicloud:threatdetection:HoneypotNode
properties:
allowHoneypotAccessInternet: false
availableProbeNum: 0
nodeName: string
securityGroupProbeIpLists:
- string
HoneypotNode 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 HoneypotNode resource accepts the following input properties:
- Available
Probe intNum - Number of probes available.
- Node
Name string - Management node name.
- Allow
Honeypot boolAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- Security
Group List<string>Probe Ip Lists - Release the collection of network segments.
- Available
Probe intNum - Number of probes available.
- Node
Name string - Management node name.
- Allow
Honeypot boolAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- Security
Group []stringProbe Ip Lists - Release the collection of network segments.
- available
Probe IntegerNum - Number of probes available.
- node
Name String - Management node name.
- allow
Honeypot BooleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- security
Group List<String>Probe Ip Lists - Release the collection of network segments.
- available
Probe numberNum - Number of probes available.
- node
Name string - Management node name.
- allow
Honeypot booleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- security
Group string[]Probe Ip Lists - Release the collection of network segments.
- available_
probe_ intnum - Number of probes available.
- node_
name str - Management node name.
- allow_
honeypot_ boolaccess_ internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- security_
group_ Sequence[str]probe_ ip_ lists - Release the collection of network segments.
- available
Probe NumberNum - Number of probes available.
- node
Name String - Management node name.
- allow
Honeypot BooleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- security
Group List<String>Probe Ip Lists - Release the collection of network segments.
Outputs
All input properties are implicitly available as output properties. Additionally, the HoneypotNode resource produces the following output properties:
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Status int
- The status of the resource
- Create
Time string - The creation time of the resource
- Id string
- The provider-assigned unique ID for this managed resource.
- Status int
- The status of the resource
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- status Integer
- The status of the resource
- create
Time string - The creation time of the resource
- id string
- The provider-assigned unique ID for this managed resource.
- status number
- The status of the resource
- create_
time str - The creation time of the resource
- id str
- The provider-assigned unique ID for this managed resource.
- status int
- The status of the resource
- create
Time String - The creation time of the resource
- id String
- The provider-assigned unique ID for this managed resource.
- status Number
- The status of the resource
Look up Existing HoneypotNode Resource
Get an existing HoneypotNode 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?: HoneypotNodeState, opts?: CustomResourceOptions): HoneypotNode
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allow_honeypot_access_internet: Optional[bool] = None,
available_probe_num: Optional[int] = None,
create_time: Optional[str] = None,
node_name: Optional[str] = None,
security_group_probe_ip_lists: Optional[Sequence[str]] = None,
status: Optional[int] = None) -> HoneypotNode
func GetHoneypotNode(ctx *Context, name string, id IDInput, state *HoneypotNodeState, opts ...ResourceOption) (*HoneypotNode, error)
public static HoneypotNode Get(string name, Input<string> id, HoneypotNodeState? state, CustomResourceOptions? opts = null)
public static HoneypotNode get(String name, Output<String> id, HoneypotNodeState 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.
- Allow
Honeypot boolAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- Available
Probe intNum - Number of probes available.
- Create
Time string - The creation time of the resource
- Node
Name string - Management node name.
- Security
Group List<string>Probe Ip Lists - Release the collection of network segments.
- Status int
- The status of the resource
- Allow
Honeypot boolAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- Available
Probe intNum - Number of probes available.
- Create
Time string - The creation time of the resource
- Node
Name string - Management node name.
- Security
Group []stringProbe Ip Lists - Release the collection of network segments.
- Status int
- The status of the resource
- allow
Honeypot BooleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- available
Probe IntegerNum - Number of probes available.
- create
Time String - The creation time of the resource
- node
Name String - Management node name.
- security
Group List<String>Probe Ip Lists - Release the collection of network segments.
- status Integer
- The status of the resource
- allow
Honeypot booleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- available
Probe numberNum - Number of probes available.
- create
Time string - The creation time of the resource
- node
Name string - Management node name.
- security
Group string[]Probe Ip Lists - Release the collection of network segments.
- status number
- The status of the resource
- allow_
honeypot_ boolaccess_ internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- available_
probe_ intnum - Number of probes available.
- create_
time str - The creation time of the resource
- node_
name str - Management node name.
- security_
group_ Sequence[str]probe_ ip_ lists - Release the collection of network segments.
- status int
- The status of the resource
- allow
Honeypot BooleanAccess Internet - Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
- available
Probe NumberNum - Number of probes available.
- create
Time String - The creation time of the resource
- node
Name String - Management node name.
- security
Group List<String>Probe Ip Lists - Release the collection of network segments.
- status Number
- The status of the resource
Import
Threat Detection Honeypot Node can be imported using the id, e.g.
$ pulumi import alicloud:threatdetection/honeypotNode:HoneypotNode example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.