1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. AttackPathSensitiveAssetConfig
Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi

alicloud.threatdetection.AttackPathSensitiveAssetConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.85.0 published on Tuesday, Sep 9, 2025 by Pulumi

    Provides a Threat Detection Attack Path Sensitive Asset Config resource.

    Attack Path Sensitive Asset Configuration.

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

    NOTE: Available since v1.257.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const _default = alicloud.slb.getApplicationLoadBalancers({});
    const defaultAttackPathSensitiveAssetConfig = new alicloud.threatdetection.AttackPathSensitiveAssetConfig("default", {attackPathAssetLists: [{
        instanceId: _default.then(_default => _default.balancers?.[0]?.id),
        vendor: 0,
        assetType: 1,
        assetSubType: 0,
        regionId: "cn-hangzhou",
    }]});
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.slb.get_application_load_balancers()
    default_attack_path_sensitive_asset_config = alicloud.threatdetection.AttackPathSensitiveAssetConfig("default", attack_path_asset_lists=[{
        "instance_id": default.balancers[0].id,
        "vendor": 0,
        "asset_type": 1,
        "asset_sub_type": 0,
        "region_id": "cn-hangzhou",
    }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/slb"
    	"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 {
    		_default, err := slb.GetApplicationLoadBalancers(ctx, &slb.GetApplicationLoadBalancersArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = threatdetection.NewAttackPathSensitiveAssetConfig(ctx, "default", &threatdetection.AttackPathSensitiveAssetConfigArgs{
    			AttackPathAssetLists: threatdetection.AttackPathSensitiveAssetConfigAttackPathAssetListArray{
    				&threatdetection.AttackPathSensitiveAssetConfigAttackPathAssetListArgs{
    					InstanceId:   pulumi.String(_default.Balancers[0].Id),
    					Vendor:       pulumi.Int(0),
    					AssetType:    pulumi.Int(1),
    					AssetSubType: pulumi.Int(0),
    					RegionId:     pulumi.String("cn-hangzhou"),
    				},
    			},
    		})
    		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 @default = AliCloud.Slb.GetApplicationLoadBalancers.Invoke();
    
        var defaultAttackPathSensitiveAssetConfig = new AliCloud.ThreatDetection.AttackPathSensitiveAssetConfig("default", new()
        {
            AttackPathAssetLists = new[]
            {
                new AliCloud.ThreatDetection.Inputs.AttackPathSensitiveAssetConfigAttackPathAssetListArgs
                {
                    InstanceId = @default.Apply(@default => @default.Apply(getApplicationLoadBalancersResult => getApplicationLoadBalancersResult.Balancers[0]?.Id)),
                    Vendor = 0,
                    AssetType = 1,
                    AssetSubType = 0,
                    RegionId = "cn-hangzhou",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.slb.SlbFunctions;
    import com.pulumi.alicloud.slb.inputs.GetApplicationLoadBalancersArgs;
    import com.pulumi.alicloud.threatdetection.AttackPathSensitiveAssetConfig;
    import com.pulumi.alicloud.threatdetection.AttackPathSensitiveAssetConfigArgs;
    import com.pulumi.alicloud.threatdetection.inputs.AttackPathSensitiveAssetConfigAttackPathAssetListArgs;
    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 default = SlbFunctions.getApplicationLoadBalancers(GetApplicationLoadBalancersArgs.builder()
                .build());
    
            var defaultAttackPathSensitiveAssetConfig = new AttackPathSensitiveAssetConfig("defaultAttackPathSensitiveAssetConfig", AttackPathSensitiveAssetConfigArgs.builder()
                .attackPathAssetLists(AttackPathSensitiveAssetConfigAttackPathAssetListArgs.builder()
                    .instanceId(default_.balancers()[0].id())
                    .vendor(0)
                    .assetType(1)
                    .assetSubType(0)
                    .regionId("cn-hangzhou")
                    .build())
                .build());
    
        }
    }
    
    resources:
      defaultAttackPathSensitiveAssetConfig:
        type: alicloud:threatdetection:AttackPathSensitiveAssetConfig
        name: default
        properties:
          attackPathAssetLists:
            - instanceId: ${default.balancers[0].id}
              vendor: '0'
              assetType: '1'
              assetSubType: '0'
              regionId: cn-hangzhou
    variables:
      default:
        fn::invoke:
          function: alicloud:slb:getApplicationLoadBalancers
          arguments: {}
    

    Create AttackPathSensitiveAssetConfig Resource

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

    Constructor syntax

    new AttackPathSensitiveAssetConfig(name: string, args: AttackPathSensitiveAssetConfigArgs, opts?: CustomResourceOptions);
    @overload
    def AttackPathSensitiveAssetConfig(resource_name: str,
                                       args: AttackPathSensitiveAssetConfigArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def AttackPathSensitiveAssetConfig(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       attack_path_asset_lists: Optional[Sequence[AttackPathSensitiveAssetConfigAttackPathAssetListArgs]] = None)
    func NewAttackPathSensitiveAssetConfig(ctx *Context, name string, args AttackPathSensitiveAssetConfigArgs, opts ...ResourceOption) (*AttackPathSensitiveAssetConfig, error)
    public AttackPathSensitiveAssetConfig(string name, AttackPathSensitiveAssetConfigArgs args, CustomResourceOptions? opts = null)
    public AttackPathSensitiveAssetConfig(String name, AttackPathSensitiveAssetConfigArgs args)
    public AttackPathSensitiveAssetConfig(String name, AttackPathSensitiveAssetConfigArgs args, CustomResourceOptions options)
    
    type: alicloud:threatdetection:AttackPathSensitiveAssetConfig
    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 AttackPathSensitiveAssetConfigArgs
    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 AttackPathSensitiveAssetConfigArgs
    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 AttackPathSensitiveAssetConfigArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AttackPathSensitiveAssetConfigArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AttackPathSensitiveAssetConfigArgs
    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 attackPathSensitiveAssetConfigResource = new AliCloud.ThreatDetection.AttackPathSensitiveAssetConfig("attackPathSensitiveAssetConfigResource", new()
    {
        AttackPathAssetLists = new[]
        {
            new AliCloud.ThreatDetection.Inputs.AttackPathSensitiveAssetConfigAttackPathAssetListArgs
            {
                AssetSubType = 0,
                AssetType = 0,
                InstanceId = "string",
                RegionId = "string",
                Vendor = 0,
            },
        },
    });
    
    example, err := threatdetection.NewAttackPathSensitiveAssetConfig(ctx, "attackPathSensitiveAssetConfigResource", &threatdetection.AttackPathSensitiveAssetConfigArgs{
    	AttackPathAssetLists: threatdetection.AttackPathSensitiveAssetConfigAttackPathAssetListArray{
    		&threatdetection.AttackPathSensitiveAssetConfigAttackPathAssetListArgs{
    			AssetSubType: pulumi.Int(0),
    			AssetType:    pulumi.Int(0),
    			InstanceId:   pulumi.String("string"),
    			RegionId:     pulumi.String("string"),
    			Vendor:       pulumi.Int(0),
    		},
    	},
    })
    
    var attackPathSensitiveAssetConfigResource = new AttackPathSensitiveAssetConfig("attackPathSensitiveAssetConfigResource", AttackPathSensitiveAssetConfigArgs.builder()
        .attackPathAssetLists(AttackPathSensitiveAssetConfigAttackPathAssetListArgs.builder()
            .assetSubType(0)
            .assetType(0)
            .instanceId("string")
            .regionId("string")
            .vendor(0)
            .build())
        .build());
    
    attack_path_sensitive_asset_config_resource = alicloud.threatdetection.AttackPathSensitiveAssetConfig("attackPathSensitiveAssetConfigResource", attack_path_asset_lists=[{
        "asset_sub_type": 0,
        "asset_type": 0,
        "instance_id": "string",
        "region_id": "string",
        "vendor": 0,
    }])
    
    const attackPathSensitiveAssetConfigResource = new alicloud.threatdetection.AttackPathSensitiveAssetConfig("attackPathSensitiveAssetConfigResource", {attackPathAssetLists: [{
        assetSubType: 0,
        assetType: 0,
        instanceId: "string",
        regionId: "string",
        vendor: 0,
    }]});
    
    type: alicloud:threatdetection:AttackPathSensitiveAssetConfig
    properties:
        attackPathAssetLists:
            - assetSubType: 0
              assetType: 0
              instanceId: string
              regionId: string
              vendor: 0
    

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

    AttackPathAssetLists List<Pulumi.AliCloud.ThreatDetection.Inputs.AttackPathSensitiveAssetConfigAttackPathAssetList>
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    AttackPathAssetLists []AttackPathSensitiveAssetConfigAttackPathAssetListArgs
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    attackPathAssetLists List<AttackPathSensitiveAssetConfigAttackPathAssetList>
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    attackPathAssetLists AttackPathSensitiveAssetConfigAttackPathAssetList[]
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    attack_path_asset_lists Sequence[AttackPathSensitiveAssetConfigAttackPathAssetListArgs]
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    attackPathAssetLists List<Property Map>
    The attack path sensitive asset configuration list. See attack_path_asset_list below.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AttackPathSensitiveAssetConfig 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 AttackPathSensitiveAssetConfig Resource

    Get an existing AttackPathSensitiveAssetConfig 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?: AttackPathSensitiveAssetConfigState, opts?: CustomResourceOptions): AttackPathSensitiveAssetConfig
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            attack_path_asset_lists: Optional[Sequence[AttackPathSensitiveAssetConfigAttackPathAssetListArgs]] = None) -> AttackPathSensitiveAssetConfig
    func GetAttackPathSensitiveAssetConfig(ctx *Context, name string, id IDInput, state *AttackPathSensitiveAssetConfigState, opts ...ResourceOption) (*AttackPathSensitiveAssetConfig, error)
    public static AttackPathSensitiveAssetConfig Get(string name, Input<string> id, AttackPathSensitiveAssetConfigState? state, CustomResourceOptions? opts = null)
    public static AttackPathSensitiveAssetConfig get(String name, Output<String> id, AttackPathSensitiveAssetConfigState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:threatdetection:AttackPathSensitiveAssetConfig    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:
    AttackPathAssetLists List<Pulumi.AliCloud.ThreatDetection.Inputs.AttackPathSensitiveAssetConfigAttackPathAssetList>
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    AttackPathAssetLists []AttackPathSensitiveAssetConfigAttackPathAssetListArgs
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    attackPathAssetLists List<AttackPathSensitiveAssetConfigAttackPathAssetList>
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    attackPathAssetLists AttackPathSensitiveAssetConfigAttackPathAssetList[]
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    attack_path_asset_lists Sequence[AttackPathSensitiveAssetConfigAttackPathAssetListArgs]
    The attack path sensitive asset configuration list. See attack_path_asset_list below.
    attackPathAssetLists List<Property Map>
    The attack path sensitive asset configuration list. See attack_path_asset_list below.

    Supporting Types

    AttackPathSensitiveAssetConfigAttackPathAssetList, AttackPathSensitiveAssetConfigAttackPathAssetListArgs

    AssetSubType int
    Cloud product asset subtype.
    AssetType int
    The asset type of the cloud product asset.
    InstanceId string
    The ID of the cloud product instance.
    RegionId string
    The region ID of the cloud product.
    Vendor int
    Cloud product asset vendor. Valid values: 0.
    AssetSubType int
    Cloud product asset subtype.
    AssetType int
    The asset type of the cloud product asset.
    InstanceId string
    The ID of the cloud product instance.
    RegionId string
    The region ID of the cloud product.
    Vendor int
    Cloud product asset vendor. Valid values: 0.
    assetSubType Integer
    Cloud product asset subtype.
    assetType Integer
    The asset type of the cloud product asset.
    instanceId String
    The ID of the cloud product instance.
    regionId String
    The region ID of the cloud product.
    vendor Integer
    Cloud product asset vendor. Valid values: 0.
    assetSubType number
    Cloud product asset subtype.
    assetType number
    The asset type of the cloud product asset.
    instanceId string
    The ID of the cloud product instance.
    regionId string
    The region ID of the cloud product.
    vendor number
    Cloud product asset vendor. Valid values: 0.
    asset_sub_type int
    Cloud product asset subtype.
    asset_type int
    The asset type of the cloud product asset.
    instance_id str
    The ID of the cloud product instance.
    region_id str
    The region ID of the cloud product.
    vendor int
    Cloud product asset vendor. Valid values: 0.
    assetSubType Number
    Cloud product asset subtype.
    assetType Number
    The asset type of the cloud product asset.
    instanceId String
    The ID of the cloud product instance.
    regionId String
    The region ID of the cloud product.
    vendor Number
    Cloud product asset vendor. Valid values: 0.

    Import

    Threat Detection Attack Path Sensitive Asset Config can be imported using the id, e.g.

    $ pulumi import alicloud:threatdetection/attackPathSensitiveAssetConfig:AttackPathSensitiveAssetConfig 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.85.0 published on Tuesday, Sep 9, 2025 by Pulumi