UNPKG

@pulumi/scm

Version:

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

148 lines 5.46 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.ExternalDynamicList = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * ExternalDynamicList resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // This resource creates a domain-based External Dynamic List (EDL). * // The EDL will fetch a list of domains from the specified URL daily. * const scmEdl1 = new scm.ExternalDynamicList("scm_edl_1", { * folder: "All", * name: "scm_edl_1", * type: { * domain: { * description: "List of malicious domains to block, updated daily.", * url: "http://some-threat-feed.com/domains.txt", * recurring: { * daily: { * at: "03", * }, * }, * }, * }, * }); * const scmEdl2 = new scm.ExternalDynamicList("scm_edl_2", { * folder: "All", * name: "scm_edl_2", * type: { * ip: { * description: "IP threat feed with basic auth, updated hourly.", * url: "https://threats.example.com/ips.txt", * recurring: { * hourly: {}, * }, * }, * }, * }); * const scmEdl3 = new scm.ExternalDynamicList("scm_edl_3", { * folder: "All", * name: "scm_edl_3", * type: { * url: { * description: "List of phishing URLs, updated every Monday at 2 AM.", * url: "https://phish-block.example.com/urls.txt", * recurring: { * weekly: { * dayOfWeek: "monday", * at: "02", * }, * }, * }, * }, * }); * const scmEdl4 = new scm.ExternalDynamicList("scm_edl_4", { * folder: "All", * name: "scm_edl_4", * type: { * predefinedIp: { * description: "Palo Alto Networks-provided list of high-risk IP addresses.", * url: "panw-highrisk-ip-list", * }, * }, * }); * const scmEdl5 = new scm.ExternalDynamicList("scm_edl_5", { * folder: "All", * name: "scm_edl_5", * type: { * ip: { * description: "IP threat feed that requires authentication.", * url: "https://secure-feed.example.com/ips.txt", * certificateProfile: "test-cert-list-qekwys", * auth: { * username: "my-api-user", * password: "a-very-secret-password-123!", * }, * recurring: { * fiveMinute: {}, * }, * }, * }, * }); * ``` */ class ExternalDynamicList extends pulumi.CustomResource { /** * Get an existing ExternalDynamicList 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 ExternalDynamicList(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ExternalDynamicList. 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'] === ExternalDynamicList.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["device"] = state?.device; resourceInputs["encryptedValues"] = state?.encryptedValues; resourceInputs["folder"] = state?.folder; resourceInputs["name"] = state?.name; resourceInputs["snippet"] = state?.snippet; resourceInputs["tfid"] = state?.tfid; resourceInputs["type"] = state?.type; } else { const args = argsOrState; resourceInputs["device"] = args?.device; resourceInputs["folder"] = args?.folder; resourceInputs["name"] = args?.name; resourceInputs["snippet"] = args?.snippet; resourceInputs["type"] = args?.type; resourceInputs["encryptedValues"] = undefined /*out*/; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const secretOpts = { additionalSecretOutputs: ["encryptedValues"] }; opts = pulumi.mergeOptions(opts, secretOpts); super(ExternalDynamicList.__pulumiType, name, resourceInputs, opts); } } exports.ExternalDynamicList = ExternalDynamicList; /** @internal */ ExternalDynamicList.__pulumiType = 'scm:index/externalDynamicList:ExternalDynamicList'; //# sourceMappingURL=externalDynamicList.js.map