UNPKG

@pulumi/sdwan

Version:

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

147 lines 10.2 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.CiscoBgpFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Cisco BGP 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/ciscoBgpFeatureTemplate:CiscoBgpFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CiscoBgpFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CiscoBgpFeatureTemplate 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 CiscoBgpFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of CiscoBgpFeatureTemplate. 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'] === CiscoBgpFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["addressFamilies"] = state ? state.addressFamilies : undefined; resourceInputs["alwaysCompareMed"] = state ? state.alwaysCompareMed : undefined; resourceInputs["alwaysCompareMedVariable"] = state ? state.alwaysCompareMedVariable : undefined; resourceInputs["asNumber"] = state ? state.asNumber : undefined; resourceInputs["asNumberVariable"] = state ? state.asNumberVariable : undefined; resourceInputs["compareRouterId"] = state ? state.compareRouterId : undefined; resourceInputs["compareRouterIdVariable"] = state ? state.compareRouterIdVariable : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["deterministicMed"] = state ? state.deterministicMed : undefined; resourceInputs["deterministicMedVariable"] = state ? state.deterministicMedVariable : undefined; resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined; resourceInputs["distanceExternal"] = state ? state.distanceExternal : undefined; resourceInputs["distanceExternalVariable"] = state ? state.distanceExternalVariable : undefined; resourceInputs["distanceInternal"] = state ? state.distanceInternal : undefined; resourceInputs["distanceInternalVariable"] = state ? state.distanceInternalVariable : undefined; resourceInputs["distanceLocal"] = state ? state.distanceLocal : undefined; resourceInputs["distanceLocalVariable"] = state ? state.distanceLocalVariable : undefined; resourceInputs["holdtime"] = state ? state.holdtime : undefined; resourceInputs["holdtimeVariable"] = state ? state.holdtimeVariable : undefined; resourceInputs["ipv4Neighbors"] = state ? state.ipv4Neighbors : undefined; resourceInputs["ipv4RouteTargets"] = state ? state.ipv4RouteTargets : undefined; resourceInputs["ipv6Neighbors"] = state ? state.ipv6Neighbors : undefined; resourceInputs["ipv6RouteTargets"] = state ? state.ipv6RouteTargets : undefined; resourceInputs["keepalive"] = state ? state.keepalive : undefined; resourceInputs["keepaliveVariable"] = state ? state.keepaliveVariable : undefined; resourceInputs["missingMedWorst"] = state ? state.missingMedWorst : undefined; resourceInputs["missingMedWorstVariable"] = state ? state.missingMedWorstVariable : undefined; resourceInputs["mplsInterfaces"] = state ? state.mplsInterfaces : undefined; resourceInputs["multipathRelax"] = state ? state.multipathRelax : undefined; resourceInputs["multipathRelaxVariable"] = state ? state.multipathRelaxVariable : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["propagateAspath"] = state ? state.propagateAspath : undefined; resourceInputs["propagateAspathVariable"] = state ? state.propagateAspathVariable : undefined; resourceInputs["propagateCommunity"] = state ? state.propagateCommunity : undefined; resourceInputs["propagateCommunityVariable"] = state ? state.propagateCommunityVariable : undefined; resourceInputs["routerId"] = state ? state.routerId : undefined; resourceInputs["routerIdVariable"] = state ? state.routerIdVariable : undefined; resourceInputs["shutdown"] = state ? state.shutdown : undefined; resourceInputs["shutdownVariable"] = state ? state.shutdownVariable : 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["addressFamilies"] = args ? args.addressFamilies : undefined; resourceInputs["alwaysCompareMed"] = args ? args.alwaysCompareMed : undefined; resourceInputs["alwaysCompareMedVariable"] = args ? args.alwaysCompareMedVariable : undefined; resourceInputs["asNumber"] = args ? args.asNumber : undefined; resourceInputs["asNumberVariable"] = args ? args.asNumberVariable : undefined; resourceInputs["compareRouterId"] = args ? args.compareRouterId : undefined; resourceInputs["compareRouterIdVariable"] = args ? args.compareRouterIdVariable : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["deterministicMed"] = args ? args.deterministicMed : undefined; resourceInputs["deterministicMedVariable"] = args ? args.deterministicMedVariable : undefined; resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined; resourceInputs["distanceExternal"] = args ? args.distanceExternal : undefined; resourceInputs["distanceExternalVariable"] = args ? args.distanceExternalVariable : undefined; resourceInputs["distanceInternal"] = args ? args.distanceInternal : undefined; resourceInputs["distanceInternalVariable"] = args ? args.distanceInternalVariable : undefined; resourceInputs["distanceLocal"] = args ? args.distanceLocal : undefined; resourceInputs["distanceLocalVariable"] = args ? args.distanceLocalVariable : undefined; resourceInputs["holdtime"] = args ? args.holdtime : undefined; resourceInputs["holdtimeVariable"] = args ? args.holdtimeVariable : undefined; resourceInputs["ipv4Neighbors"] = args ? args.ipv4Neighbors : undefined; resourceInputs["ipv4RouteTargets"] = args ? args.ipv4RouteTargets : undefined; resourceInputs["ipv6Neighbors"] = args ? args.ipv6Neighbors : undefined; resourceInputs["ipv6RouteTargets"] = args ? args.ipv6RouteTargets : undefined; resourceInputs["keepalive"] = args ? args.keepalive : undefined; resourceInputs["keepaliveVariable"] = args ? args.keepaliveVariable : undefined; resourceInputs["missingMedWorst"] = args ? args.missingMedWorst : undefined; resourceInputs["missingMedWorstVariable"] = args ? args.missingMedWorstVariable : undefined; resourceInputs["mplsInterfaces"] = args ? args.mplsInterfaces : undefined; resourceInputs["multipathRelax"] = args ? args.multipathRelax : undefined; resourceInputs["multipathRelaxVariable"] = args ? args.multipathRelaxVariable : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["propagateAspath"] = args ? args.propagateAspath : undefined; resourceInputs["propagateAspathVariable"] = args ? args.propagateAspathVariable : undefined; resourceInputs["propagateCommunity"] = args ? args.propagateCommunity : undefined; resourceInputs["propagateCommunityVariable"] = args ? args.propagateCommunityVariable : undefined; resourceInputs["routerId"] = args ? args.routerId : undefined; resourceInputs["routerIdVariable"] = args ? args.routerIdVariable : undefined; resourceInputs["shutdown"] = args ? args.shutdown : undefined; resourceInputs["shutdownVariable"] = args ? args.shutdownVariable : undefined; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CiscoBgpFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CiscoBgpFeatureTemplate = CiscoBgpFeatureTemplate; /** @internal */ CiscoBgpFeatureTemplate.__pulumiType = 'sdwan:index/ciscoBgpFeatureTemplate:CiscoBgpFeatureTemplate'; //# sourceMappingURL=ciscoBgpFeatureTemplate.js.map