UNPKG

@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.07 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.CiscoVpnInterfaceGreFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Cisco VPN Interface GRE 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/ciscoVpnInterfaceGreFeatureTemplate:CiscoVpnInterfaceGreFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CiscoVpnInterfaceGreFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CiscoVpnInterfaceGreFeatureTemplate 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 CiscoVpnInterfaceGreFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of CiscoVpnInterfaceGreFeatureTemplate. 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'] === CiscoVpnInterfaceGreFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accessLists"] = state ? state.accessLists : undefined; resourceInputs["application"] = state ? state.application : undefined; resourceInputs["applicationVariable"] = state ? state.applicationVariable : undefined; resourceInputs["clearDontFragment"] = state ? state.clearDontFragment : undefined; resourceInputs["clearDontFragmentVariable"] = state ? state.clearDontFragmentVariable : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined; resourceInputs["interfaceDescription"] = state ? state.interfaceDescription : undefined; resourceInputs["interfaceDescriptionVariable"] = state ? state.interfaceDescriptionVariable : undefined; resourceInputs["interfaceName"] = state ? state.interfaceName : undefined; resourceInputs["interfaceNameVariable"] = state ? state.interfaceNameVariable : undefined; resourceInputs["ipAddress"] = state ? state.ipAddress : undefined; resourceInputs["ipAddressVariable"] = state ? state.ipAddressVariable : undefined; resourceInputs["ipMtu"] = state ? state.ipMtu : undefined; resourceInputs["ipMtuVariable"] = state ? state.ipMtuVariable : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["rewriteRule"] = state ? state.rewriteRule : undefined; resourceInputs["rewriteRuleVariable"] = state ? state.rewriteRuleVariable : undefined; resourceInputs["shutdown"] = state ? state.shutdown : undefined; resourceInputs["shutdownVariable"] = state ? state.shutdownVariable : undefined; resourceInputs["tcpMssAdjust"] = state ? state.tcpMssAdjust : undefined; resourceInputs["tcpMssAdjustVariable"] = state ? state.tcpMssAdjustVariable : undefined; resourceInputs["templateType"] = state ? state.templateType : undefined; resourceInputs["trackerVariable"] = state ? state.trackerVariable : undefined; resourceInputs["trackers"] = state ? state.trackers : undefined; resourceInputs["tunnelDestination"] = state ? state.tunnelDestination : undefined; resourceInputs["tunnelDestinationVariable"] = state ? state.tunnelDestinationVariable : undefined; resourceInputs["tunnelRouteVia"] = state ? state.tunnelRouteVia : undefined; resourceInputs["tunnelRouteViaVariable"] = state ? state.tunnelRouteViaVariable : undefined; resourceInputs["tunnelSource"] = state ? state.tunnelSource : undefined; resourceInputs["tunnelSourceInterface"] = state ? state.tunnelSourceInterface : undefined; resourceInputs["tunnelSourceInterfaceVariable"] = state ? state.tunnelSourceInterfaceVariable : undefined; resourceInputs["tunnelSourceVariable"] = state ? state.tunnelSourceVariable : 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["accessLists"] = args ? args.accessLists : undefined; resourceInputs["application"] = args ? args.application : undefined; resourceInputs["applicationVariable"] = args ? args.applicationVariable : undefined; resourceInputs["clearDontFragment"] = args ? args.clearDontFragment : undefined; resourceInputs["clearDontFragmentVariable"] = args ? args.clearDontFragmentVariable : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined; resourceInputs["interfaceDescription"] = args ? args.interfaceDescription : undefined; resourceInputs["interfaceDescriptionVariable"] = args ? args.interfaceDescriptionVariable : undefined; resourceInputs["interfaceName"] = args ? args.interfaceName : undefined; resourceInputs["interfaceNameVariable"] = args ? args.interfaceNameVariable : undefined; resourceInputs["ipAddress"] = args ? args.ipAddress : undefined; resourceInputs["ipAddressVariable"] = args ? args.ipAddressVariable : undefined; resourceInputs["ipMtu"] = args ? args.ipMtu : undefined; resourceInputs["ipMtuVariable"] = args ? args.ipMtuVariable : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["rewriteRule"] = args ? args.rewriteRule : undefined; resourceInputs["rewriteRuleVariable"] = args ? args.rewriteRuleVariable : undefined; resourceInputs["shutdown"] = args ? args.shutdown : undefined; resourceInputs["shutdownVariable"] = args ? args.shutdownVariable : undefined; resourceInputs["tcpMssAdjust"] = args ? args.tcpMssAdjust : undefined; resourceInputs["tcpMssAdjustVariable"] = args ? args.tcpMssAdjustVariable : undefined; resourceInputs["trackerVariable"] = args ? args.trackerVariable : undefined; resourceInputs["trackers"] = args ? args.trackers : undefined; resourceInputs["tunnelDestination"] = args ? args.tunnelDestination : undefined; resourceInputs["tunnelDestinationVariable"] = args ? args.tunnelDestinationVariable : undefined; resourceInputs["tunnelRouteVia"] = args ? args.tunnelRouteVia : undefined; resourceInputs["tunnelRouteViaVariable"] = args ? args.tunnelRouteViaVariable : undefined; resourceInputs["tunnelSource"] = args ? args.tunnelSource : undefined; resourceInputs["tunnelSourceInterface"] = args ? args.tunnelSourceInterface : undefined; resourceInputs["tunnelSourceInterfaceVariable"] = args ? args.tunnelSourceInterfaceVariable : undefined; resourceInputs["tunnelSourceVariable"] = args ? args.tunnelSourceVariable : undefined; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CiscoVpnInterfaceGreFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CiscoVpnInterfaceGreFeatureTemplate = CiscoVpnInterfaceGreFeatureTemplate; /** @internal */ CiscoVpnInterfaceGreFeatureTemplate.__pulumiType = 'sdwan:index/ciscoVpnInterfaceGreFeatureTemplate:CiscoVpnInterfaceGreFeatureTemplate'; //# sourceMappingURL=ciscoVpnInterfaceGreFeatureTemplate.js.map