1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. HoneypotNode
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

alicloud.threatdetection.HoneypotNode

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi

    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

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The HoneypotNode resource accepts the following input properties:

    AvailableProbeNum int
    Number of probes available.
    NodeName string
    Management node name.
    AllowHoneypotAccessInternet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    SecurityGroupProbeIpLists List<string>
    Release the collection of network segments.
    AvailableProbeNum int
    Number of probes available.
    NodeName string
    Management node name.
    AllowHoneypotAccessInternet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    SecurityGroupProbeIpLists []string
    Release the collection of network segments.
    availableProbeNum Integer
    Number of probes available.
    nodeName String
    Management node name.
    allowHoneypotAccessInternet Boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    securityGroupProbeIpLists List<String>
    Release the collection of network segments.
    availableProbeNum number
    Number of probes available.
    nodeName string
    Management node name.
    allowHoneypotAccessInternet boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    securityGroupProbeIpLists string[]
    Release the collection of network segments.
    available_probe_num int
    Number of probes available.
    node_name str
    Management node name.
    allow_honeypot_access_internet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    security_group_probe_ip_lists Sequence[str]
    Release the collection of network segments.
    availableProbeNum Number
    Number of probes available.
    nodeName String
    Management node name.
    allowHoneypotAccessInternet Boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    securityGroupProbeIpLists List<String>
    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:

    CreateTime 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
    CreateTime 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
    createTime 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
    createTime 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
    createTime 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.
    The following state arguments are supported:
    AllowHoneypotAccessInternet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    AvailableProbeNum int
    Number of probes available.
    CreateTime string
    The creation time of the resource
    NodeName string
    Management node name.
    SecurityGroupProbeIpLists List<string>
    Release the collection of network segments.
    Status int
    The status of the resource
    AllowHoneypotAccessInternet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    AvailableProbeNum int
    Number of probes available.
    CreateTime string
    The creation time of the resource
    NodeName string
    Management node name.
    SecurityGroupProbeIpLists []string
    Release the collection of network segments.
    Status int
    The status of the resource
    allowHoneypotAccessInternet Boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    availableProbeNum Integer
    Number of probes available.
    createTime String
    The creation time of the resource
    nodeName String
    Management node name.
    securityGroupProbeIpLists List<String>
    Release the collection of network segments.
    status Integer
    The status of the resource
    allowHoneypotAccessInternet boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    availableProbeNum number
    Number of probes available.
    createTime string
    The creation time of the resource
    nodeName string
    Management node name.
    securityGroupProbeIpLists string[]
    Release the collection of network segments.
    status number
    The status of the resource
    allow_honeypot_access_internet bool
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    available_probe_num int
    Number of probes available.
    create_time str
    The creation time of the resource
    node_name str
    Management node name.
    security_group_probe_ip_lists Sequence[str]
    Release the collection of network segments.
    status int
    The status of the resource
    allowHoneypotAccessInternet Boolean
    Whether to allow honeypot access to the external network. Value:-true: Allow-false: Disabled
    availableProbeNum Number
    Number of probes available.
    createTime String
    The creation time of the resource
    nodeName String
    Management node name.
    securityGroupProbeIpLists List<String>
    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.
    alicloud logo
    Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 by Pulumi