UNPKG

@pulumi/sdwan

Version:

A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1

166 lines 7.7 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.CedgePimFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a cEdge PIM feature template. * - Minimum SD-WAN Manager version: `15.0.0` * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.CedgePimFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * autoRp: true, * rpAnnounceFields: [{ * interfaceName: "Ethernet1", * scope: 1, * }], * interfaceName: "Ethernet1", * rpCandidates: [{ * "interface": "Ethernet1", * accessList: "1", * interval: 100, * priority: 2, * }], * bsrCandidate: "Ethernet1", * hashMaskLength: "24", * priority: 1, * rpCandidateAccessList: "120", * scope: 1, * range: "16", * "default": true, * rpAddresses: [{ * accessList: "99", * ipAddress: "1.2.3.4", * override: false, * }], * sptThreshold: "0", * interfaces: [{ * interfaceName: "Ethernet1", * queryInterval: 30, * joinPruneInterval: 60, * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/cedgePimFeatureTemplate:CedgePimFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CedgePimFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CedgePimFeatureTemplate 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 CedgePimFeatureTemplate(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of CedgePimFeatureTemplate. 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'] === CedgePimFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["autoRp"] = state?.autoRp; resourceInputs["autoRpVariable"] = state?.autoRpVariable; resourceInputs["bsrCandidate"] = state?.bsrCandidate; resourceInputs["bsrCandidateVariable"] = state?.bsrCandidateVariable; resourceInputs["default"] = state?.default; resourceInputs["defaultVariable"] = state?.defaultVariable; resourceInputs["description"] = state?.description; resourceInputs["deviceTypes"] = state?.deviceTypes; resourceInputs["hashMaskLength"] = state?.hashMaskLength; resourceInputs["hashMaskLengthVariable"] = state?.hashMaskLengthVariable; resourceInputs["interfaceName"] = state?.interfaceName; resourceInputs["interfaceNameVariable"] = state?.interfaceNameVariable; resourceInputs["interfaces"] = state?.interfaces; resourceInputs["name"] = state?.name; resourceInputs["priority"] = state?.priority; resourceInputs["priorityVariable"] = state?.priorityVariable; resourceInputs["range"] = state?.range; resourceInputs["rangeVariable"] = state?.rangeVariable; resourceInputs["rpAddresses"] = state?.rpAddresses; resourceInputs["rpAnnounceFields"] = state?.rpAnnounceFields; resourceInputs["rpCandidateAccessList"] = state?.rpCandidateAccessList; resourceInputs["rpCandidateAccessListVariable"] = state?.rpCandidateAccessListVariable; resourceInputs["rpCandidates"] = state?.rpCandidates; resourceInputs["scope"] = state?.scope; resourceInputs["scopeVariable"] = state?.scopeVariable; resourceInputs["sptThreshold"] = state?.sptThreshold; resourceInputs["sptThresholdVariable"] = state?.sptThresholdVariable; resourceInputs["templateType"] = state?.templateType; resourceInputs["version"] = state?.version; } else { const args = argsOrState; if (args?.description === undefined && !opts.urn) { throw new Error("Missing required property 'description'"); } if (args?.deviceTypes === undefined && !opts.urn) { throw new Error("Missing required property 'deviceTypes'"); } resourceInputs["autoRp"] = args?.autoRp; resourceInputs["autoRpVariable"] = args?.autoRpVariable; resourceInputs["bsrCandidate"] = args?.bsrCandidate; resourceInputs["bsrCandidateVariable"] = args?.bsrCandidateVariable; resourceInputs["default"] = args?.default; resourceInputs["defaultVariable"] = args?.defaultVariable; resourceInputs["description"] = args?.description; resourceInputs["deviceTypes"] = args?.deviceTypes; resourceInputs["hashMaskLength"] = args?.hashMaskLength; resourceInputs["hashMaskLengthVariable"] = args?.hashMaskLengthVariable; resourceInputs["interfaceName"] = args?.interfaceName; resourceInputs["interfaceNameVariable"] = args?.interfaceNameVariable; resourceInputs["interfaces"] = args?.interfaces; resourceInputs["name"] = args?.name; resourceInputs["priority"] = args?.priority; resourceInputs["priorityVariable"] = args?.priorityVariable; resourceInputs["range"] = args?.range; resourceInputs["rangeVariable"] = args?.rangeVariable; resourceInputs["rpAddresses"] = args?.rpAddresses; resourceInputs["rpAnnounceFields"] = args?.rpAnnounceFields; resourceInputs["rpCandidateAccessList"] = args?.rpCandidateAccessList; resourceInputs["rpCandidateAccessListVariable"] = args?.rpCandidateAccessListVariable; resourceInputs["rpCandidates"] = args?.rpCandidates; resourceInputs["scope"] = args?.scope; resourceInputs["scopeVariable"] = args?.scopeVariable; resourceInputs["sptThreshold"] = args?.sptThreshold; resourceInputs["sptThresholdVariable"] = args?.sptThresholdVariable; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CedgePimFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CedgePimFeatureTemplate = CedgePimFeatureTemplate; /** @internal */ CedgePimFeatureTemplate.__pulumiType = 'sdwan:index/cedgePimFeatureTemplate:CedgePimFeatureTemplate'; //# sourceMappingURL=cedgePimFeatureTemplate.js.map