@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
122 lines • 5.04 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.AntiSpywareSignature = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* AntiSpywareSignature resource
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* const scmAntiSpywareSignature1 = new scm.AntiSpywareSignature("scm_anti_spyware_signature_1", {
* folder: "All",
* threatId: "6900001",
* comment: "Managed by Pulumi",
* direction: "client2server",
* severity: "critical",
* threatname: "Example Threat",
* defaultAction: {
* alert: {},
* },
* signature: {
* combination: {
* andConditions: [{
* name: "And Condition 1",
* orCondition: [{
* name: "Test",
* threat_id: "10001",
* }],
* }],
* orderFree: false,
* timeAttribute: {
* interval: 3600,
* threshold: 60,
* trackBy: "source",
* },
* },
* },
* });
* ```
*/
class AntiSpywareSignature extends pulumi.CustomResource {
/**
* Get an existing AntiSpywareSignature 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, id, state, opts) {
return new AntiSpywareSignature(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of AntiSpywareSignature. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj) {
if (obj === undefined || obj === null) {
return false;
}
return obj['__pulumiType'] === AntiSpywareSignature.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["bugtraqs"] = state?.bugtraqs;
resourceInputs["comment"] = state?.comment;
resourceInputs["cves"] = state?.cves;
resourceInputs["defaultAction"] = state?.defaultAction;
resourceInputs["device"] = state?.device;
resourceInputs["direction"] = state?.direction;
resourceInputs["folder"] = state?.folder;
resourceInputs["references"] = state?.references;
resourceInputs["severity"] = state?.severity;
resourceInputs["signature"] = state?.signature;
resourceInputs["snippet"] = state?.snippet;
resourceInputs["tfid"] = state?.tfid;
resourceInputs["threatId"] = state?.threatId;
resourceInputs["threatname"] = state?.threatname;
resourceInputs["vendors"] = state?.vendors;
}
else {
const args = argsOrState;
if (args?.threatId === undefined && !opts.urn) {
throw new Error("Missing required property 'threatId'");
}
if (args?.threatname === undefined && !opts.urn) {
throw new Error("Missing required property 'threatname'");
}
resourceInputs["bugtraqs"] = args?.bugtraqs;
resourceInputs["comment"] = args?.comment;
resourceInputs["cves"] = args?.cves;
resourceInputs["defaultAction"] = args?.defaultAction;
resourceInputs["device"] = args?.device;
resourceInputs["direction"] = args?.direction;
resourceInputs["folder"] = args?.folder;
resourceInputs["references"] = args?.references;
resourceInputs["severity"] = args?.severity;
resourceInputs["signature"] = args?.signature;
resourceInputs["snippet"] = args?.snippet;
resourceInputs["threatId"] = args?.threatId;
resourceInputs["threatname"] = args?.threatname;
resourceInputs["vendors"] = args?.vendors;
resourceInputs["tfid"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(AntiSpywareSignature.__pulumiType, name, resourceInputs, opts);
}
}
exports.AntiSpywareSignature = AntiSpywareSignature;
/** @internal */
AntiSpywareSignature.__pulumiType = 'scm:index/antiSpywareSignature:AntiSpywareSignature';
//# sourceMappingURL=antiSpywareSignature.js.map