1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. threatdetection
  5. AssetSelectionConfig
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.threatdetection.AssetSelectionConfig

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

    Import

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

    $ pulumi import alicloud:threatdetection/assetSelectionConfig:AssetSelectionConfig example <id>
    

    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.

    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.76.0 published on Tuesday, Apr 8, 2025 by Pulumi