UNPKG

@pulumi/sdwan

Version:

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

146 lines 6.65 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.EigrpFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a eigrp 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.EigrpFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * asNumber: 1, * addressFamilies: [{ * type: "ipv4", * redistributes: [{ * protocol: "bgp", * routePolicy: "1.2.3.4", * }], * networks: [{ * prefix: "1.2.3.4/24", * }], * }], * helloInterval: 5, * holdTime: 15, * routePolicyName: "RP1", * filter: false, * authenticationType: "hmac-sha-256", * hmacAuthenticationKey: "myAuthKey", * interfaces: [{ * interfaceName: "Ethernet1", * shutdown: false, * summaryAddresses: [{ * prefix: "1.2.3.4/24", * }], * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/eigrpFeatureTemplate:EigrpFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class EigrpFeatureTemplate extends pulumi.CustomResource { /** * Get an existing EigrpFeatureTemplate 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 EigrpFeatureTemplate(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of EigrpFeatureTemplate. 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'] === EigrpFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["addressFamilies"] = state?.addressFamilies; resourceInputs["asNumber"] = state?.asNumber; resourceInputs["asNumberVariable"] = state?.asNumberVariable; resourceInputs["authenticationType"] = state?.authenticationType; resourceInputs["authenticationTypeVariable"] = state?.authenticationTypeVariable; resourceInputs["description"] = state?.description; resourceInputs["deviceTypes"] = state?.deviceTypes; resourceInputs["filter"] = state?.filter; resourceInputs["filterVariable"] = state?.filterVariable; resourceInputs["helloInterval"] = state?.helloInterval; resourceInputs["helloIntervalVariable"] = state?.helloIntervalVariable; resourceInputs["hmacAuthenticationKey"] = state?.hmacAuthenticationKey; resourceInputs["hmacAuthenticationKeyVariable"] = state?.hmacAuthenticationKeyVariable; resourceInputs["holdTime"] = state?.holdTime; resourceInputs["holdTimeVariable"] = state?.holdTimeVariable; resourceInputs["interfaces"] = state?.interfaces; resourceInputs["keys"] = state?.keys; resourceInputs["name"] = state?.name; resourceInputs["routePolicyName"] = state?.routePolicyName; resourceInputs["routePolicyNameVariable"] = state?.routePolicyNameVariable; 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["addressFamilies"] = args?.addressFamilies; resourceInputs["asNumber"] = args?.asNumber; resourceInputs["asNumberVariable"] = args?.asNumberVariable; resourceInputs["authenticationType"] = args?.authenticationType; resourceInputs["authenticationTypeVariable"] = args?.authenticationTypeVariable; resourceInputs["description"] = args?.description; resourceInputs["deviceTypes"] = args?.deviceTypes; resourceInputs["filter"] = args?.filter; resourceInputs["filterVariable"] = args?.filterVariable; resourceInputs["helloInterval"] = args?.helloInterval; resourceInputs["helloIntervalVariable"] = args?.helloIntervalVariable; resourceInputs["hmacAuthenticationKey"] = args?.hmacAuthenticationKey; resourceInputs["hmacAuthenticationKeyVariable"] = args?.hmacAuthenticationKeyVariable; resourceInputs["holdTime"] = args?.holdTime; resourceInputs["holdTimeVariable"] = args?.holdTimeVariable; resourceInputs["interfaces"] = args?.interfaces; resourceInputs["keys"] = args?.keys; resourceInputs["name"] = args?.name; resourceInputs["routePolicyName"] = args?.routePolicyName; resourceInputs["routePolicyNameVariable"] = args?.routePolicyNameVariable; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(EigrpFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.EigrpFeatureTemplate = EigrpFeatureTemplate; /** @internal */ EigrpFeatureTemplate.__pulumiType = 'sdwan:index/eigrpFeatureTemplate:EigrpFeatureTemplate'; //# sourceMappingURL=eigrpFeatureTemplate.js.map