UNPKG

@pulumi/juniper-mist

Version:

A Pulumi package for creating and managing Juniper Mist resources.

95 lines 4.9 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.Servicepolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * This resource manages WAN Assurance Service Policies (Application Policies). * * The Service Policies can be used in the `servicePolicies` object by referencing the Service Policy ID as the `servicepolicyId` in: * * the Gateway configuration (`mist_device_gateway.service_policies`) * * the Gateway Templates (`mist_org_gatewaytemplate.service_policies`) * * the HUB Profiles (`mist_org_deviceprofile_gateway.service_policies`) * They can be used to manage common policies between multiples configurations * * ## Import * * Using `pulumi import`, import `mist_org_servicepolicy` with: * * Org Service Policy can be imported by specifying the org_id and the servicepolicy_id * * ```sh * $ pulumi import junipermist:org/servicepolicy:Servicepolicy servicepolicy_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309 * ``` */ class Servicepolicy extends pulumi.CustomResource { /** * Get an existing Servicepolicy 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 Servicepolicy(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Servicepolicy. 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'] === Servicepolicy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["aamw"] = state ? state.aamw : undefined; resourceInputs["action"] = state ? state.action : undefined; resourceInputs["antivirus"] = state ? state.antivirus : undefined; resourceInputs["appqoe"] = state ? state.appqoe : undefined; resourceInputs["ewfs"] = state ? state.ewfs : undefined; resourceInputs["idp"] = state ? state.idp : undefined; resourceInputs["localRouting"] = state ? state.localRouting : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["pathPreference"] = state ? state.pathPreference : undefined; resourceInputs["services"] = state ? state.services : undefined; resourceInputs["sslProxy"] = state ? state.sslProxy : undefined; resourceInputs["tenants"] = state ? state.tenants : undefined; } else { const args = argsOrState; if ((!args || args.orgId === undefined) && !opts.urn) { throw new Error("Missing required property 'orgId'"); } resourceInputs["aamw"] = args ? args.aamw : undefined; resourceInputs["action"] = args ? args.action : undefined; resourceInputs["antivirus"] = args ? args.antivirus : undefined; resourceInputs["appqoe"] = args ? args.appqoe : undefined; resourceInputs["ewfs"] = args ? args.ewfs : undefined; resourceInputs["idp"] = args ? args.idp : undefined; resourceInputs["localRouting"] = args ? args.localRouting : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["pathPreference"] = args ? args.pathPreference : undefined; resourceInputs["services"] = args ? args.services : undefined; resourceInputs["sslProxy"] = args ? args.sslProxy : undefined; resourceInputs["tenants"] = args ? args.tenants : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Servicepolicy.__pulumiType, name, resourceInputs, opts); } } exports.Servicepolicy = Servicepolicy; /** @internal */ Servicepolicy.__pulumiType = 'junipermist:org/servicepolicy:Servicepolicy'; //# sourceMappingURL=servicepolicy.js.map