@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
133 lines • 9.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.CiscoOspfFeatureTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Cisco OSPF 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/ciscoOspfFeatureTemplate:CiscoOspfFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd"
* ```
*/
class CiscoOspfFeatureTemplate extends pulumi.CustomResource {
/**
* Get an existing CiscoOspfFeatureTemplate 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 CiscoOspfFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of CiscoOspfFeatureTemplate. 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'] === CiscoOspfFeatureTemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["areas"] = state ? state.areas : undefined;
resourceInputs["autoCostReferenceBandwidth"] = state ? state.autoCostReferenceBandwidth : undefined;
resourceInputs["autoCostReferenceBandwidthVariable"] = state ? state.autoCostReferenceBandwidthVariable : undefined;
resourceInputs["compatibleRfc1583"] = state ? state.compatibleRfc1583 : undefined;
resourceInputs["compatibleRfc1583Variable"] = state ? state.compatibleRfc1583Variable : undefined;
resourceInputs["defaultInformationOriginate"] = state ? state.defaultInformationOriginate : undefined;
resourceInputs["defaultInformationOriginateAlways"] = state ? state.defaultInformationOriginateAlways : undefined;
resourceInputs["defaultInformationOriginateAlwaysVariable"] = state ? state.defaultInformationOriginateAlwaysVariable : undefined;
resourceInputs["defaultInformationOriginateMetric"] = state ? state.defaultInformationOriginateMetric : undefined;
resourceInputs["defaultInformationOriginateMetricType"] = state ? state.defaultInformationOriginateMetricType : undefined;
resourceInputs["defaultInformationOriginateMetricTypeVariable"] = state ? state.defaultInformationOriginateMetricTypeVariable : undefined;
resourceInputs["defaultInformationOriginateMetricVariable"] = state ? state.defaultInformationOriginateMetricVariable : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined;
resourceInputs["distanceExternal"] = state ? state.distanceExternal : undefined;
resourceInputs["distanceExternalVariable"] = state ? state.distanceExternalVariable : undefined;
resourceInputs["distanceInterArea"] = state ? state.distanceInterArea : undefined;
resourceInputs["distanceInterAreaVariable"] = state ? state.distanceInterAreaVariable : undefined;
resourceInputs["distanceIntraArea"] = state ? state.distanceIntraArea : undefined;
resourceInputs["distanceIntraAreaVariable"] = state ? state.distanceIntraAreaVariable : undefined;
resourceInputs["maxMetricRouterLsas"] = state ? state.maxMetricRouterLsas : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["redistributes"] = state ? state.redistributes : undefined;
resourceInputs["routePolicies"] = state ? state.routePolicies : undefined;
resourceInputs["routerId"] = state ? state.routerId : undefined;
resourceInputs["routerIdVariable"] = state ? state.routerIdVariable : undefined;
resourceInputs["templateType"] = state ? state.templateType : undefined;
resourceInputs["timersSpfDelay"] = state ? state.timersSpfDelay : undefined;
resourceInputs["timersSpfDelayVariable"] = state ? state.timersSpfDelayVariable : undefined;
resourceInputs["timersSpfInitialHold"] = state ? state.timersSpfInitialHold : undefined;
resourceInputs["timersSpfInitialHoldVariable"] = state ? state.timersSpfInitialHoldVariable : undefined;
resourceInputs["timersSpfMaxHold"] = state ? state.timersSpfMaxHold : undefined;
resourceInputs["timersSpfMaxHoldVariable"] = state ? state.timersSpfMaxHoldVariable : 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["areas"] = args ? args.areas : undefined;
resourceInputs["autoCostReferenceBandwidth"] = args ? args.autoCostReferenceBandwidth : undefined;
resourceInputs["autoCostReferenceBandwidthVariable"] = args ? args.autoCostReferenceBandwidthVariable : undefined;
resourceInputs["compatibleRfc1583"] = args ? args.compatibleRfc1583 : undefined;
resourceInputs["compatibleRfc1583Variable"] = args ? args.compatibleRfc1583Variable : undefined;
resourceInputs["defaultInformationOriginate"] = args ? args.defaultInformationOriginate : undefined;
resourceInputs["defaultInformationOriginateAlways"] = args ? args.defaultInformationOriginateAlways : undefined;
resourceInputs["defaultInformationOriginateAlwaysVariable"] = args ? args.defaultInformationOriginateAlwaysVariable : undefined;
resourceInputs["defaultInformationOriginateMetric"] = args ? args.defaultInformationOriginateMetric : undefined;
resourceInputs["defaultInformationOriginateMetricType"] = args ? args.defaultInformationOriginateMetricType : undefined;
resourceInputs["defaultInformationOriginateMetricTypeVariable"] = args ? args.defaultInformationOriginateMetricTypeVariable : undefined;
resourceInputs["defaultInformationOriginateMetricVariable"] = args ? args.defaultInformationOriginateMetricVariable : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined;
resourceInputs["distanceExternal"] = args ? args.distanceExternal : undefined;
resourceInputs["distanceExternalVariable"] = args ? args.distanceExternalVariable : undefined;
resourceInputs["distanceInterArea"] = args ? args.distanceInterArea : undefined;
resourceInputs["distanceInterAreaVariable"] = args ? args.distanceInterAreaVariable : undefined;
resourceInputs["distanceIntraArea"] = args ? args.distanceIntraArea : undefined;
resourceInputs["distanceIntraAreaVariable"] = args ? args.distanceIntraAreaVariable : undefined;
resourceInputs["maxMetricRouterLsas"] = args ? args.maxMetricRouterLsas : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["redistributes"] = args ? args.redistributes : undefined;
resourceInputs["routePolicies"] = args ? args.routePolicies : undefined;
resourceInputs["routerId"] = args ? args.routerId : undefined;
resourceInputs["routerIdVariable"] = args ? args.routerIdVariable : undefined;
resourceInputs["timersSpfDelay"] = args ? args.timersSpfDelay : undefined;
resourceInputs["timersSpfDelayVariable"] = args ? args.timersSpfDelayVariable : undefined;
resourceInputs["timersSpfInitialHold"] = args ? args.timersSpfInitialHold : undefined;
resourceInputs["timersSpfInitialHoldVariable"] = args ? args.timersSpfInitialHoldVariable : undefined;
resourceInputs["timersSpfMaxHold"] = args ? args.timersSpfMaxHold : undefined;
resourceInputs["timersSpfMaxHoldVariable"] = args ? args.timersSpfMaxHoldVariable : undefined;
resourceInputs["templateType"] = undefined /*out*/;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CiscoOspfFeatureTemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.CiscoOspfFeatureTemplate = CiscoOspfFeatureTemplate;
/** @internal */
CiscoOspfFeatureTemplate.__pulumiType = 'sdwan:index/ciscoOspfFeatureTemplate:CiscoOspfFeatureTemplate';
//# sourceMappingURL=ciscoOspfFeatureTemplate.js.map