UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

120 lines (119 loc) 4.14 kB
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; /** * Manages a CFW anti virus resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const objectId = config.requireObject("objectId"); * const test = new huaweicloud.cfw.AntiVirus("test", { * objectId: objectId, * scanProtocolConfigs: [ * { * protocolType: 3, * action: 1, * }, * { * protocolType: 2, * action: 1, * }, * ], * }); * ``` * * ## Import * * The anti virus can be imported using `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Cfw/antiVirus:AntiVirus test <id> * ``` */ export declare class AntiVirus extends pulumi.CustomResource { /** * Get an existing AntiVirus resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AntiVirusState, opts?: pulumi.CustomResourceOptions): AntiVirus; /** * Returns true if the given object is an instance of AntiVirus. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is AntiVirus; readonly enableForceNew: pulumi.Output<string | undefined>; /** * Specifies the protected object ID. */ readonly objectId: pulumi.Output<string>; /** * The region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ readonly region: pulumi.Output<string>; /** * Specifies the scan protocol configurations. * The scanProtocolConfigs structure is documented below. */ readonly scanProtocolConfigs: pulumi.Output<outputs.Cfw.AntiVirusScanProtocolConfig[]>; /** * Create a AntiVirus resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: AntiVirusArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AntiVirus resources. */ export interface AntiVirusState { enableForceNew?: pulumi.Input<string>; /** * Specifies the protected object ID. */ objectId?: pulumi.Input<string>; /** * The region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ region?: pulumi.Input<string>; /** * Specifies the scan protocol configurations. * The scanProtocolConfigs structure is documented below. */ scanProtocolConfigs?: pulumi.Input<pulumi.Input<inputs.Cfw.AntiVirusScanProtocolConfig>[]>; } /** * The set of arguments for constructing a AntiVirus resource. */ export interface AntiVirusArgs { enableForceNew?: pulumi.Input<string>; /** * Specifies the protected object ID. */ objectId: pulumi.Input<string>; /** * The region in which to create the resource. * If omitted, the provider-level region will be used. * Changing this creates a new resource. */ region?: pulumi.Input<string>; /** * Specifies the scan protocol configurations. * The scanProtocolConfigs structure is documented below. */ scanProtocolConfigs: pulumi.Input<pulumi.Input<inputs.Cfw.AntiVirusScanProtocolConfig>[]>; }