@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
130 lines • 9.55 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.TransportRoutingOspfFeature = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Transport Routing OSPF Feature.
* - Minimum SD-WAN Manager version: `20.12.0`
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Expected import identifier with the format: "transport_routing_ospf_feature_id,feature_profile_id"
*
* ```sh
* $ pulumi import sdwan:index/transportRoutingOspfFeature:TransportRoutingOspfFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
* ```
*/
class TransportRoutingOspfFeature extends pulumi.CustomResource {
/**
* Get an existing TransportRoutingOspfFeature 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 TransportRoutingOspfFeature(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of TransportRoutingOspfFeature. 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'] === TransportRoutingOspfFeature.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["areas"] = state ? state.areas : 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["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["featureProfileId"] = state ? state.featureProfileId : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["redistributes"] = state ? state.redistributes : undefined;
resourceInputs["referenceBandwidth"] = state ? state.referenceBandwidth : undefined;
resourceInputs["referenceBandwidthVariable"] = state ? state.referenceBandwidthVariable : undefined;
resourceInputs["rfc1583Compatible"] = state ? state.rfc1583Compatible : undefined;
resourceInputs["rfc1583CompatibleVariable"] = state ? state.rfc1583CompatibleVariable : undefined;
resourceInputs["routePolicyId"] = state ? state.routePolicyId : undefined;
resourceInputs["routerId"] = state ? state.routerId : undefined;
resourceInputs["routerIdVariable"] = state ? state.routerIdVariable : undefined;
resourceInputs["routerLsas"] = state ? state.routerLsas : undefined;
resourceInputs["spfCalculationDelay"] = state ? state.spfCalculationDelay : undefined;
resourceInputs["spfCalculationDelayVariable"] = state ? state.spfCalculationDelayVariable : undefined;
resourceInputs["spfInitialHoldTime"] = state ? state.spfInitialHoldTime : undefined;
resourceInputs["spfInitialHoldTimeVariable"] = state ? state.spfInitialHoldTimeVariable : undefined;
resourceInputs["spfMaximumHoldTime"] = state ? state.spfMaximumHoldTime : undefined;
resourceInputs["spfMaximumHoldTimeVariable"] = state ? state.spfMaximumHoldTimeVariable : undefined;
resourceInputs["version"] = state ? state.version : undefined;
}
else {
const args = argsOrState;
if ((!args || args.featureProfileId === undefined) && !opts.urn) {
throw new Error("Missing required property 'featureProfileId'");
}
resourceInputs["areas"] = args ? args.areas : 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["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["featureProfileId"] = args ? args.featureProfileId : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["redistributes"] = args ? args.redistributes : undefined;
resourceInputs["referenceBandwidth"] = args ? args.referenceBandwidth : undefined;
resourceInputs["referenceBandwidthVariable"] = args ? args.referenceBandwidthVariable : undefined;
resourceInputs["rfc1583Compatible"] = args ? args.rfc1583Compatible : undefined;
resourceInputs["rfc1583CompatibleVariable"] = args ? args.rfc1583CompatibleVariable : undefined;
resourceInputs["routePolicyId"] = args ? args.routePolicyId : undefined;
resourceInputs["routerId"] = args ? args.routerId : undefined;
resourceInputs["routerIdVariable"] = args ? args.routerIdVariable : undefined;
resourceInputs["routerLsas"] = args ? args.routerLsas : undefined;
resourceInputs["spfCalculationDelay"] = args ? args.spfCalculationDelay : undefined;
resourceInputs["spfCalculationDelayVariable"] = args ? args.spfCalculationDelayVariable : undefined;
resourceInputs["spfInitialHoldTime"] = args ? args.spfInitialHoldTime : undefined;
resourceInputs["spfInitialHoldTimeVariable"] = args ? args.spfInitialHoldTimeVariable : undefined;
resourceInputs["spfMaximumHoldTime"] = args ? args.spfMaximumHoldTime : undefined;
resourceInputs["spfMaximumHoldTimeVariable"] = args ? args.spfMaximumHoldTimeVariable : undefined;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(TransportRoutingOspfFeature.__pulumiType, name, resourceInputs, opts);
}
}
exports.TransportRoutingOspfFeature = TransportRoutingOspfFeature;
/** @internal */
TransportRoutingOspfFeature.__pulumiType = 'sdwan:index/transportRoutingOspfFeature:TransportRoutingOspfFeature';
//# sourceMappingURL=transportRoutingOspfFeature.js.map