UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

111 lines 4.74 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.Avprofile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages the Org Antivirus Profile. * * An Antivirus Profile is used to configure the Antivirus feature on SRX devices. It specifies which content the Antivirus should analyse and which content should be ignored. * * The Antivirus profiles can be used within the following resources: * * `mist_org_servicepolicy.antivirus` * * `mist_org_gatewaytemplate.service_policies.antivirus` * * `mist_org_deviceprofile_gateway.service_policies.antivirus` * * `mist_device_gateway.service_policies.antivirus` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as junipermist from "@pulumi/juniper-mist"; * * const avprofileOne = new junipermist.org.Avprofile("avprofile_one", { * orgId: terraformTest.id, * fallbackAction: "block", * maxFilesize: 5000, * mimeWhitelists: ["image/png"], * name: "avprofile_one", * protocols: [ * "ftp", * "http", * "imap", * "pop3", * "smtp", * ], * urlWhitelists: ["www.google.fr"], * }); * ``` * * ## Import * * Using `pulumi import`, import `mist_org_avprofile` with: * * IDP Profile can be imported by specifying the org_id and the avprofile_id * * ```sh * $ pulumi import junipermist:org/avprofile:Avprofile avprofile_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Avprofile extends pulumi.CustomResource { /** * Get an existing Avprofile 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 Avprofile(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Avprofile. 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'] === Avprofile.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["fallbackAction"] = state ? state.fallbackAction : undefined; resourceInputs["maxFilesize"] = state ? state.maxFilesize : undefined; resourceInputs["mimeWhitelists"] = state ? state.mimeWhitelists : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["protocols"] = state ? state.protocols : undefined; resourceInputs["urlWhitelists"] = state ? state.urlWhitelists : undefined; } else { const args = argsOrState; if ((!args || args.orgId === undefined) && !opts.urn) { throw new Error("Missing required property 'orgId'"); } if ((!args || args.protocols === undefined) && !opts.urn) { throw new Error("Missing required property 'protocols'"); } resourceInputs["fallbackAction"] = args ? args.fallbackAction : undefined; resourceInputs["maxFilesize"] = args ? args.maxFilesize : undefined; resourceInputs["mimeWhitelists"] = args ? args.mimeWhitelists : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["protocols"] = args ? args.protocols : undefined; resourceInputs["urlWhitelists"] = args ? args.urlWhitelists : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Avprofile.__pulumiType, name, resourceInputs, opts); } } exports.Avprofile = Avprofile; /** @internal */ Avprofile.__pulumiType = 'junipermist:org/avprofile:Avprofile'; //# sourceMappingURL=avprofile.js.map