UNPKG

@pulumi/scm

Version:

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

242 lines 8.32 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.HipObject = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * HipObject resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // This resource creates a comprehensive HIP Object with many criteria enabled. * // This showcases the use of nested objects and lists of objects that the * // corrected provider schema now supports. * const scmHipObject1 = new scm.HipObject("scm_hip_object_1", { * folder: "Shared", * name: "scm_hip_object_1", * description: "HIP object with multiple advanced criteria configured", * antiMalware: { * criteria: { * isInstalled: true, * realTimeProtection: "yes", * virdefVersion: { * notWithin: { * days: 10, * }, * }, * }, * vendors: [{ * name: "Microsoft", * product: ["Microsoft Defender"], * }], * }, * dataLossPrevention: { * criteria: { * isInstalled: true, * isEnabled: "yes", * }, * vendors: [{ * name: "Symantec", * }], * }, * diskBackup: { * criteria: { * isInstalled: true, * lastBackupTime: { * within: { * days: 7, * }, * }, * }, * vendors: [{ * name: "Veeam", * }], * }, * diskEncryption: { * criteria: { * isInstalled: true, * encryptedLocations: [ * { * name: "C:\\", * encryptionState: { * is: "encrypted", * }, * }, * { * name: "D:\\Users\\", * encryptionState: { * isNot: "unencrypted", * }, * }, * ], * }, * vendors: [{ * name: "BitLocker", * }], * }, * firewall: { * criteria: { * isInstalled: true, * isEnabled: "yes", * }, * vendors: [{ * name: "Microsoft", * }], * }, * hostInfo: { * criteria: { * os: { * contains: { * microsoft: "Microsoft Windows 11", * }, * }, * domain: { * is: "corp.example.com", * }, * }, * }, * mobileDevice: { * criteria: { * jailbroken: false, * passcodeSet: true, * applications: { * hasUnmanagedApp: false, * hasMalware: { * no: {}, * }, * }, * }, * }, * networkInfo: { * criteria: { * network: { * is: { * wifi: { * ssid: "Corporate-WLAN", * }, * }, * }, * }, * }, * patchManagement: { * criteria: { * isInstalled: true, * missingPatches: { * check: "has-none", * patches: [ * "KB4012212", * "KB4012213", * ], * severity: { * greaterThan: 5, * }, * }, * }, * vendors: [{ * name: "Microsoft", * }], * }, * customChecks: { * criteria: { * processLists: [ * { * name: "evil_process.exe", * running: false, * }, * { * name: "corp_security_agent.exe", * running: true, * }, * ], * registryKeys: [{ * name: "HKEY_LOCAL_MACHINE\\Software\\PaloAltoNetworks", * registryValue: [{ * name: "AllowRemoteAccess", * valueData: "false", * }], * }], * }, * }, * }); * ``` */ class HipObject extends pulumi.CustomResource { /** * Get an existing HipObject 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 HipObject(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of HipObject. 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'] === HipObject.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["antiMalware"] = state?.antiMalware; resourceInputs["certificate"] = state?.certificate; resourceInputs["customChecks"] = state?.customChecks; resourceInputs["dataLossPrevention"] = state?.dataLossPrevention; resourceInputs["description"] = state?.description; resourceInputs["device"] = state?.device; resourceInputs["diskBackup"] = state?.diskBackup; resourceInputs["diskEncryption"] = state?.diskEncryption; resourceInputs["firewall"] = state?.firewall; resourceInputs["folder"] = state?.folder; resourceInputs["hostInfo"] = state?.hostInfo; resourceInputs["mobileDevice"] = state?.mobileDevice; resourceInputs["name"] = state?.name; resourceInputs["networkInfo"] = state?.networkInfo; resourceInputs["patchManagement"] = state?.patchManagement; resourceInputs["snippet"] = state?.snippet; resourceInputs["tfid"] = state?.tfid; } else { const args = argsOrState; resourceInputs["antiMalware"] = args?.antiMalware; resourceInputs["certificate"] = args?.certificate; resourceInputs["customChecks"] = args?.customChecks; resourceInputs["dataLossPrevention"] = args?.dataLossPrevention; resourceInputs["description"] = args?.description; resourceInputs["device"] = args?.device; resourceInputs["diskBackup"] = args?.diskBackup; resourceInputs["diskEncryption"] = args?.diskEncryption; resourceInputs["firewall"] = args?.firewall; resourceInputs["folder"] = args?.folder; resourceInputs["hostInfo"] = args?.hostInfo; resourceInputs["mobileDevice"] = args?.mobileDevice; resourceInputs["name"] = args?.name; resourceInputs["networkInfo"] = args?.networkInfo; resourceInputs["patchManagement"] = args?.patchManagement; resourceInputs["snippet"] = args?.snippet; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(HipObject.__pulumiType, name, resourceInputs, opts); } } exports.HipObject = HipObject; /** @internal */ HipObject.__pulumiType = 'scm:index/hipObject:HipObject'; //# sourceMappingURL=hipObject.js.map