UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

121 lines 5.19 kB
"use strict"; // *** 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.AntiSpywareProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * AntiSpywareProfile resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Basic Anti-Spyware Profile * const scmAntiSpywareProfile1 = new scm.AntiSpywareProfile("scm_anti_spyware_profile_1", { * folder: "All", * name: "scm_anti_spyware_profile_1", * description: "Managed by Pulumi", * cloudInlineAnalysis: true, * }); * // Required object that will be referenced in examples * const scmAddress1 = new scm.Address("scm_address_1", { * folder: "Shared", * name: "scm_address_1", * description: "Made by Pulumi", * ipNetmask: "10.2.3.4", * }); * // Anti-Spyware Profile with exception EDL * const scmAntiSpywareProfile2 = new scm.AntiSpywareProfile("scm_anti_spyware_profile_2", { * folder: "All", * name: "scm_anti_spyware_profile_2", * description: "Managed by Pulumi", * cloudInlineAnalysis: true, * inlineExceptionIpAddresses: ["scm_address_1"], * }, { * dependsOn: [scmAddress1], * }); * // Anti-Spyware Profile with rules * const scmAntiSpywareProfile3 = new scm.AntiSpywareProfile("scm_anti_spyware_profile_3", { * folder: "All", * name: "scm_anti_spyware_profile_3", * description: "Managed by Pulumi", * cloudInlineAnalysis: true, * rules: [{ * name: "Custom Rule", * notes: "Managed by Pulumi", * packetCapture: "single-packet", * category: "net-worm", * severity: ["critical"], * threatName: "data-theft", * }], * }); * ``` */ class AntiSpywareProfile extends pulumi.CustomResource { /** * Get an existing AntiSpywareProfile 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 AntiSpywareProfile(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of AntiSpywareProfile. 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'] === AntiSpywareProfile.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["cloudInlineAnalysis"] = state?.cloudInlineAnalysis; resourceInputs["description"] = state?.description; resourceInputs["device"] = state?.device; resourceInputs["folder"] = state?.folder; resourceInputs["inlineExceptionEdlUrls"] = state?.inlineExceptionEdlUrls; resourceInputs["inlineExceptionIpAddresses"] = state?.inlineExceptionIpAddresses; resourceInputs["micaEngineSpywareEnableds"] = state?.micaEngineSpywareEnableds; resourceInputs["name"] = state?.name; resourceInputs["rules"] = state?.rules; resourceInputs["snippet"] = state?.snippet; resourceInputs["tfid"] = state?.tfid; resourceInputs["threatExceptions"] = state?.threatExceptions; } else { const args = argsOrState; resourceInputs["cloudInlineAnalysis"] = args?.cloudInlineAnalysis; resourceInputs["description"] = args?.description; resourceInputs["device"] = args?.device; resourceInputs["folder"] = args?.folder; resourceInputs["inlineExceptionEdlUrls"] = args?.inlineExceptionEdlUrls; resourceInputs["inlineExceptionIpAddresses"] = args?.inlineExceptionIpAddresses; resourceInputs["micaEngineSpywareEnableds"] = args?.micaEngineSpywareEnableds; resourceInputs["name"] = args?.name; resourceInputs["rules"] = args?.rules; resourceInputs["snippet"] = args?.snippet; resourceInputs["threatExceptions"] = args?.threatExceptions; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AntiSpywareProfile.__pulumiType, name, resourceInputs, opts); } } exports.AntiSpywareProfile = AntiSpywareProfile; /** @internal */ AntiSpywareProfile.__pulumiType = 'scm:index/antiSpywareProfile:AntiSpywareProfile'; //# sourceMappingURL=antiSpywareProfile.js.map