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
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()
{
Reason = "tf-example-reason",
TargetInfo = "{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}",
Whitelist = "[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]",
});
});
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{
Reason: pulumi.String("tf-example-reason"),
TargetInfo: pulumi.String("{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}"),
Whitelist: pulumi.String("[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]"),
})
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.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()
.reason("tf-example-reason")
.targetInfo("{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}")
.whitelist("[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.threatdetection.VulWhitelist("default",
reason="tf-example-reason",
target_info="{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}",
whitelist="[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.threatdetection.VulWhitelist("default", {
reason: "tf-example-reason",
targetInfo: "{\"type\":\"GroupId\",\"uuids\":[],\"groupIds\":[10782678]}",
whitelist: "[{\"aliasName\":\"RHSA-2021:2260: libwebp 安全更新\",\"name\":\"RHSA-2021:2260: libwebp 安全更新\",\"type\":\"cve\"}]",
});
resources:
default:
type: alicloud:threatdetection:VulWhitelist
properties:
reason: tf-example-reason
targetInfo: '{"type":"GroupId","uuids":[],"groupIds":[10782678]}'
whitelist: '[{"aliasName":"RHSA-2021:2260: libwebp 安全更新","name":"RHSA-2021:2260: libwebp 安全更新","type":"cve"}]'
Create VulWhitelist Resource
new VulWhitelist(name: string, args: VulWhitelistArgs, opts?: CustomResourceOptions);
@overload
def VulWhitelist(resource_name: str,
opts: Optional[ResourceOptions] = None,
reason: Optional[str] = None,
target_info: Optional[str] = None,
whitelist: Optional[str] = None)
@overload
def VulWhitelist(resource_name: str,
args: VulWhitelistArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.