@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
123 lines • 7.71 kB
JavaScript
;
// *** 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`
*
* ## 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, Object.assign(Object.assign({}, 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 ? state.autoRp : undefined;
resourceInputs["autoRpVariable"] = state ? state.autoRpVariable : undefined;
resourceInputs["bsrCandidate"] = state ? state.bsrCandidate : undefined;
resourceInputs["bsrCandidateVariable"] = state ? state.bsrCandidateVariable : undefined;
resourceInputs["default"] = state ? state.default : undefined;
resourceInputs["defaultVariable"] = state ? state.defaultVariable : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined;
resourceInputs["hashMaskLength"] = state ? state.hashMaskLength : undefined;
resourceInputs["hashMaskLengthVariable"] = state ? state.hashMaskLengthVariable : undefined;
resourceInputs["interfaceName"] = state ? state.interfaceName : undefined;
resourceInputs["interfaceNameVariable"] = state ? state.interfaceNameVariable : undefined;
resourceInputs["interfaces"] = state ? state.interfaces : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["priority"] = state ? state.priority : undefined;
resourceInputs["priorityVariable"] = state ? state.priorityVariable : undefined;
resourceInputs["range"] = state ? state.range : undefined;
resourceInputs["rangeVariable"] = state ? state.rangeVariable : undefined;
resourceInputs["rpAddresses"] = state ? state.rpAddresses : undefined;
resourceInputs["rpAnnounceFields"] = state ? state.rpAnnounceFields : undefined;
resourceInputs["rpCandidateAccessList"] = state ? state.rpCandidateAccessList : undefined;
resourceInputs["rpCandidateAccessListVariable"] = state ? state.rpCandidateAccessListVariable : undefined;
resourceInputs["rpCandidates"] = state ? state.rpCandidates : undefined;
resourceInputs["scope"] = state ? state.scope : undefined;
resourceInputs["scopeVariable"] = state ? state.scopeVariable : undefined;
resourceInputs["sptThreshold"] = state ? state.sptThreshold : undefined;
resourceInputs["sptThresholdVariable"] = state ? state.sptThresholdVariable : undefined;
resourceInputs["templateType"] = state ? state.templateType : undefined;
resourceInputs["version"] = state ? state.version : undefined;
}
else {
const args = argsOrState;
if ((!args || args.description === undefined) && !opts.urn) {
throw new Error("Missing required property 'description'");
}
if ((!args || args.deviceTypes === undefined) && !opts.urn) {
throw new Error("Missing required property 'deviceTypes'");
}
resourceInputs["autoRp"] = args ? args.autoRp : undefined;
resourceInputs["autoRpVariable"] = args ? args.autoRpVariable : undefined;
resourceInputs["bsrCandidate"] = args ? args.bsrCandidate : undefined;
resourceInputs["bsrCandidateVariable"] = args ? args.bsrCandidateVariable : undefined;
resourceInputs["default"] = args ? args.default : undefined;
resourceInputs["defaultVariable"] = args ? args.defaultVariable : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined;
resourceInputs["hashMaskLength"] = args ? args.hashMaskLength : undefined;
resourceInputs["hashMaskLengthVariable"] = args ? args.hashMaskLengthVariable : undefined;
resourceInputs["interfaceName"] = args ? args.interfaceName : undefined;
resourceInputs["interfaceNameVariable"] = args ? args.interfaceNameVariable : undefined;
resourceInputs["interfaces"] = args ? args.interfaces : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["priority"] = args ? args.priority : undefined;
resourceInputs["priorityVariable"] = args ? args.priorityVariable : undefined;
resourceInputs["range"] = args ? args.range : undefined;
resourceInputs["rangeVariable"] = args ? args.rangeVariable : undefined;
resourceInputs["rpAddresses"] = args ? args.rpAddresses : undefined;
resourceInputs["rpAnnounceFields"] = args ? args.rpAnnounceFields : undefined;
resourceInputs["rpCandidateAccessList"] = args ? args.rpCandidateAccessList : undefined;
resourceInputs["rpCandidateAccessListVariable"] = args ? args.rpCandidateAccessListVariable : undefined;
resourceInputs["rpCandidates"] = args ? args.rpCandidates : undefined;
resourceInputs["scope"] = args ? args.scope : undefined;
resourceInputs["scopeVariable"] = args ? args.scopeVariable : undefined;
resourceInputs["sptThreshold"] = args ? args.sptThreshold : undefined;
resourceInputs["sptThresholdVariable"] = args ? args.sptThresholdVariable : undefined;
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