MaliciousFileWhitelistConfig

class MaliciousFileWhitelistConfig : KotlinCustomResource

Provides a Threat Detection Malicious File Whitelist Config resource. malicious file add whitelist config. For information about Threat Detection Malicious File Whitelist Config and how to use it, see What is Malicious File Whitelist Config.

NOTE: Available since v1.214.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.MaliciousFileWhitelistConfig("default", {
operator: "strEquals",
field: "fileMd6",
targetValue: "123",
targetType: "SELECTION_KEY",
eventName: "123",
source: "agentless",
fieldValue: "sadfas",
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.threatdetection.MaliciousFileWhitelistConfig("default",
operator="strEquals",
field="fileMd6",
target_value="123",
target_type="SELECTION_KEY",
event_name="123",
source="agentless",
field_value="sadfas")
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.MaliciousFileWhitelistConfig("default", new()
{
Operator = "strEquals",
Field = "fileMd6",
TargetValue = "123",
TargetType = "SELECTION_KEY",
EventName = "123",
Source = "agentless",
FieldValue = "sadfas",
});
});
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.NewMaliciousFileWhitelistConfig(ctx, "default", &threatdetection.MaliciousFileWhitelistConfigArgs{
Operator: pulumi.String("strEquals"),
Field: pulumi.String("fileMd6"),
TargetValue: pulumi.String("123"),
TargetType: pulumi.String("SELECTION_KEY"),
EventName: pulumi.String("123"),
Source: pulumi.String("agentless"),
FieldValue: pulumi.String("sadfas"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.threatdetection.MaliciousFileWhitelistConfig;
import com.pulumi.alicloud.threatdetection.MaliciousFileWhitelistConfigArgs;
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 MaliciousFileWhitelistConfig("default", MaliciousFileWhitelistConfigArgs.builder()
.operator("strEquals")
.field("fileMd6")
.targetValue("123")
.targetType("SELECTION_KEY")
.eventName("123")
.source("agentless")
.fieldValue("sadfas")
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
default:
type: alicloud:threatdetection:MaliciousFileWhitelistConfig
properties:
operator: strEquals
field: fileMd6
targetValue: '123'
targetType: SELECTION_KEY
eventName: '123'
source: agentless
fieldValue: sadfas

Import

Threat Detection Malicious File Whitelist Config can be imported using the id, e.g.

$ pulumi import alicloud:threatdetection/maliciousFileWhitelistConfig:MaliciousFileWhitelistConfig example <id>

Properties

Link copied to clipboard
val createTime: Output<String>

The creation time of the resource.

Link copied to clipboard
val eventName: Output<String>?

The name of the security alert associated with the representative rule.

Link copied to clipboard
val field: Output<String>?

Represents the alarm associated with the resource and the white field.

Link copied to clipboard
val fieldValue: Output<String>?

Represents the whiteout target value in effect for the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val operator: Output<String>?

The decision operator in effect on behalf of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val source: Output<String>?

Business Source:

Link copied to clipboard
val targetType: Output<String>?

The type of target in effect on behalf of the resource.

Link copied to clipboard
val targetValue: Output<String>?

Represents the specific value of the target type in effect for the resource.

Link copied to clipboard
val urn: Output<String>