1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. AssetSelectionConfig
Alibaba Cloud v3.96.0 published on Tuesday, Mar 3, 2026 by Pulumi
alicloud logo
Alibaba Cloud v3.96.0 published on Tuesday, Mar 3, 2026 by Pulumi

    Provides a Threat Detection Asset Selection Config resource.

    Asset selection configuration.

    For information about Threat Detection Asset Selection Config and how to use it, see What is Asset Selection Config.

    NOTE: Available since v1.245.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") || "terraform-example";
    const _default = new alicloud.threatdetection.AssetSelectionConfig("default", {
        businessType: "agentlesss_vul_white_1",
        targetType: "instance",
        platform: "all",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.threatdetection.AssetSelectionConfig("default",
        business_type="agentlesss_vul_white_1",
        target_type="instance",
        platform="all")
    
    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 := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := threatdetection.NewAssetSelectionConfig(ctx, "default", &threatdetection.AssetSelectionConfigArgs{
    			BusinessType: pulumi.String("agentlesss_vul_white_1"),
    			TargetType:   pulumi.String("instance"),
    			Platform:     pulumi.String("all"),
    		})
    		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") ?? "terraform-example";
        var @default = new AliCloud.ThreatDetection.AssetSelectionConfig("default", new()
        {
            BusinessType = "agentlesss_vul_white_1",
            TargetType = "instance",
            Platform = "all",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.threatdetection.AssetSelectionConfig;
    import com.pulumi.alicloud.threatdetection.AssetSelectionConfigArgs;
    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("terraform-example");
            var default_ = new AssetSelectionConfig("default", AssetSelectionConfigArgs.builder()
                .businessType("agentlesss_vul_white_1")
                .targetType("instance")
                .platform("all")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      default:
        type: alicloud:threatdetection:AssetSelectionConfig
        properties:
          businessType: agentlesss_vul_white_1
          targetType: instance
          platform: all
    

    Deleting alicloud.threatdetection.AssetSelectionConfig or removing it from your configuration

    Terraform cannot destroy resource alicloud.threatdetection.AssetSelectionConfig. Terraform will remove this resource from the state file, however resources may remain.

    📚 Need more examples? VIEW MORE EXAMPLES

    Create AssetSelectionConfig Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AssetSelectionConfig(name: string, args: AssetSelectionConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AssetSelectionConfig(resource_name: str,
                             args: AssetSelectionConfigArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def AssetSelectionConfig(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             business_type: Optional[str] = None,
                             target_type: Optional[str] = None,
                             platform: Optional[str] = None)
    func NewAssetSelectionConfig(ctx *Context, name string, args AssetSelectionConfigArgs, opts ...ResourceOption) (*AssetSelectionConfig, error)
    public AssetSelectionConfig(string name, AssetSelectionConfigArgs args, CustomResourceOptions? opts = null)
    public AssetSelectionConfig(String name, AssetSelectionConfigArgs args)
    public AssetSelectionConfig(String name, AssetSelectionConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:threatdetection:AssetSelectionConfig
    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 AssetSelectionConfigArgs
    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 AssetSelectionConfigArgs
    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 AssetSelectionConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AssetSelectionConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AssetSelectionConfigArgs
    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 assetSelectionConfigResource = new AliCloud.ThreatDetection.AssetSelectionConfig("assetSelectionConfigResource", new()
    {
        BusinessType = "string",
        TargetType = "string",
        Platform = "string",
    });
    
    example, err := threatdetection.NewAssetSelectionConfig(ctx, "assetSelectionConfigResource", &threatdetection.AssetSelectionConfigArgs{
    	BusinessType: pulumi.String("string"),
    	TargetType:   pulumi.String("string"),
    	Platform:     pulumi.String("string"),
    })
    
    var assetSelectionConfigResource = new AssetSelectionConfig("assetSelectionConfigResource", AssetSelectionConfigArgs.builder()
        .businessType("string")
        .targetType("string")
        .platform("string")
        .build());
    
    asset_selection_config_resource = alicloud.threatdetection.AssetSelectionConfig("assetSelectionConfigResource",
        business_type="string",
        target_type="string",
        platform="string")
    
    const assetSelectionConfigResource = new alicloud.threatdetection.AssetSelectionConfig("assetSelectionConfigResource", {
        businessType: "string",
        targetType: "string",
        platform: "string",
    });
    
    type: alicloud:threatdetection:AssetSelectionConfig
    properties:
        businessType: string
        platform: string
        targetType: string
    

    AssetSelectionConfig 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 AssetSelectionConfig resource accepts the following input properties:

    BusinessType string
    The first ID of the resource
    TargetType string
    Target object type.
    Platform string
    The operating system type.
    BusinessType string
    The first ID of the resource
    TargetType string
    Target object type.
    Platform string
    The operating system type.
    businessType String
    The first ID of the resource
    targetType String
    Target object type.
    platform String
    The operating system type.
    businessType string
    The first ID of the resource
    targetType string
    Target object type.
    platform string
    The operating system type.
    business_type str
    The first ID of the resource
    target_type str
    Target object type.
    platform str
    The operating system type.
    businessType String
    The first ID of the resource
    targetType String
    Target object type.
    platform String
    The operating system type.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AssetSelectionConfig resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AssetSelectionConfig Resource

    Get an existing AssetSelectionConfig 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?: AssetSelectionConfigState, opts?: CustomResourceOptions): AssetSelectionConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            business_type: Optional[str] = None,
            platform: Optional[str] = None,
            target_type: Optional[str] = None) -> AssetSelectionConfig
    func GetAssetSelectionConfig(ctx *Context, name string, id IDInput, state *AssetSelectionConfigState, opts ...ResourceOption) (*AssetSelectionConfig, error)
    public static AssetSelectionConfig Get(string name, Input<string> id, AssetSelectionConfigState? state, CustomResourceOptions? opts = null)
    public static AssetSelectionConfig get(String name, Output<String> id, AssetSelectionConfigState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:threatdetection:AssetSelectionConfig    get:      id: ${id}
    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:
    BusinessType string
    The first ID of the resource
    Platform string
    The operating system type.
    TargetType string
    Target object type.
    BusinessType string
    The first ID of the resource
    Platform string
    The operating system type.
    TargetType string
    Target object type.
    businessType String
    The first ID of the resource
    platform String
    The operating system type.
    targetType String
    Target object type.
    businessType string
    The first ID of the resource
    platform string
    The operating system type.
    targetType string
    Target object type.
    business_type str
    The first ID of the resource
    platform str
    The operating system type.
    target_type str
    Target object type.
    businessType String
    The first ID of the resource
    platform String
    The operating system type.
    targetType String
    Target object type.

    Import

    Threat Detection Asset Selection Config can be imported using the id, e.g.

    $ pulumi import alicloud:threatdetection/assetSelectionConfig:AssetSelectionConfig 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.96.0 published on Tuesday, Mar 3, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate