alicloud.threatdetection.VulWhitelist
Explore with Pulumi AI
Provides a Threat Detection Vul Whitelist resource.
For information about Threat Detection Vul Whitelist and how to use it, see What is Vul Whitelist.
NOTE: Available in v1.195.0+.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.threatdetection.VulWhitelist("default", {
whitelist: "[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]",
targetInfo: "{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}",
reason: "tf-example-reason",
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.threatdetection.VulWhitelist("default",
whitelist="[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]",
target_info="{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}",
reason="tf-example-reason")
package main
import (
"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 {
_, err := threatdetection.NewVulWhitelist(ctx, "default", &threatdetection.VulWhitelistArgs{
Whitelist: pulumi.String("[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]"),
TargetInfo: pulumi.String("{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}"),
Reason: pulumi.String("tf-example-reason"),
})
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 = new AliCloud.ThreatDetection.VulWhitelist("default", new()
{
Whitelist = "[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]",
TargetInfo = "{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}",
Reason = "tf-example-reason",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.threatdetection.VulWhitelist;
import com.pulumi.alicloud.threatdetection.VulWhitelistArgs;
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) {
var default_ = new VulWhitelist("default", VulWhitelistArgs.builder()
.whitelist("[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]")
.targetInfo("{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}")
.reason("tf-example-reason")
.build());
}
}
resources:
default:
type: alicloud:threatdetection:VulWhitelist
properties:
whitelist: '[{"aliasName":"RHSA-2021:2260: libwebp 安全更新","name":"RHSA-2021:2260: libwebp 安全更新","type":"cve"}]'
targetInfo: '{"type":"GroupId","uuids":[],"groupIds":[10782678]}'
reason: tf-example-reason
Create VulWhitelist Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VulWhitelist(name: string, args: VulWhitelistArgs, opts?: CustomResourceOptions);
@overload
def VulWhitelist(resource_name: str,
args: VulWhitelistArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VulWhitelist(resource_name: str,
opts: Optional[ResourceOptions] = None,
whitelist: Optional[str] = None,
reason: Optional[str] = None,
target_info: Optional[str] = None)
func NewVulWhitelist(ctx *Context, name string, args VulWhitelistArgs, opts ...ResourceOption) (*VulWhitelist, error)
public VulWhitelist(string name, VulWhitelistArgs args, CustomResourceOptions? opts = null)
public VulWhitelist(String name, VulWhitelistArgs args)
public VulWhitelist(String name, VulWhitelistArgs args, CustomResourceOptions options)
type: alicloud:threatdetection:VulWhitelist
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 VulWhitelistArgs
- 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 VulWhitelistArgs
- 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 VulWhitelistArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VulWhitelistArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VulWhitelistArgs
- 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 vulWhitelistResource = new AliCloud.ThreatDetection.VulWhitelist("vulWhitelistResource", new()
{
Whitelist = "string",
Reason = "string",
TargetInfo = "string",
});
example, err := threatdetection.NewVulWhitelist(ctx, "vulWhitelistResource", &threatdetection.VulWhitelistArgs{
Whitelist: pulumi.String("string"),
Reason: pulumi.String("string"),
TargetInfo: pulumi.String("string"),
})
var vulWhitelistResource = new VulWhitelist("vulWhitelistResource", VulWhitelistArgs.builder()
.whitelist("string")
.reason("string")
.targetInfo("string")
.build());
vul_whitelist_resource = alicloud.threatdetection.VulWhitelist("vulWhitelistResource",
whitelist="string",
reason="string",
target_info="string")
const vulWhitelistResource = new alicloud.threatdetection.VulWhitelist("vulWhitelistResource", {
whitelist: "string",
reason: "string",
targetInfo: "string",
});
type: alicloud:threatdetection:VulWhitelist
properties:
reason: string
targetInfo: string
whitelist: string
VulWhitelist Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The VulWhitelist resource accepts the following input properties:
- Whitelist string
- Information about the vulnerability to be added to the whitelist. see how to use it.
- Reason string
- Reason for adding whitelist.
- Target
Info string - Set the effective range of the whitelist. see how to use it.
- Whitelist string
- Information about the vulnerability to be added to the whitelist. see how to use it.
- Reason string
- Reason for adding whitelist.
- Target
Info string - Set the effective range of the whitelist. see how to use it.
- whitelist String
- Information about the vulnerability to be added to the whitelist. see how to use it.
- reason String
- Reason for adding whitelist.
- target
Info String - Set the effective range of the whitelist. see how to use it.
- whitelist string
- Information about the vulnerability to be added to the whitelist. see how to use it.
- reason string
- Reason for adding whitelist.
- target
Info string - Set the effective range of the whitelist. see how to use it.
- whitelist str
- Information about the vulnerability to be added to the whitelist. see how to use it.
- reason str
- Reason for adding whitelist.
- target_
info str - Set the effective range of the whitelist. see how to use it.
- whitelist String
- Information about the vulnerability to be added to the whitelist. see how to use it.
- reason String
- Reason for adding whitelist.
- target
Info String - Set the effective range of the whitelist. see how to use it.
Outputs
All input properties are implicitly available as output properties. Additionally, the VulWhitelist 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 VulWhitelist Resource
Get an existing VulWhitelist 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?: VulWhitelistState, opts?: CustomResourceOptions): VulWhitelist
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
reason: Optional[str] = None,
target_info: Optional[str] = None,
whitelist: Optional[str] = None) -> VulWhitelist
func GetVulWhitelist(ctx *Context, name string, id IDInput, state *VulWhitelistState, opts ...ResourceOption) (*VulWhitelist, error)
public static VulWhitelist Get(string name, Input<string> id, VulWhitelistState? state, CustomResourceOptions? opts = null)
public static VulWhitelist get(String name, Output<String> id, VulWhitelistState 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.
- Reason string
- Reason for adding whitelist.
- Target
Info string - Set the effective range of the whitelist. see how to use it.
- Whitelist string
- Information about the vulnerability to be added to the whitelist. see how to use it.
- Reason string
- Reason for adding whitelist.
- Target
Info string - Set the effective range of the whitelist. see how to use it.
- Whitelist string
- Information about the vulnerability to be added to the whitelist. see how to use it.
- reason String
- Reason for adding whitelist.
- target
Info String - Set the effective range of the whitelist. see how to use it.
- whitelist String
- Information about the vulnerability to be added to the whitelist. see how to use it.
- reason string
- Reason for adding whitelist.
- target
Info string - Set the effective range of the whitelist. see how to use it.
- whitelist string
- Information about the vulnerability to be added to the whitelist. see how to use it.
- reason str
- Reason for adding whitelist.
- target_
info str - Set the effective range of the whitelist. see how to use it.
- whitelist str
- Information about the vulnerability to be added to the whitelist. see how to use it.
- reason String
- Reason for adding whitelist.
- target
Info String - Set the effective range of the whitelist. see how to use it.
- whitelist String
- Information about the vulnerability to be added to the whitelist. see how to use it.
Import
Threat Detection Vul Whitelist can be imported using the id, e.g.
$ pulumi import alicloud:threatdetection/vulWhitelist:VulWhitelist 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.