UNPKG

@pulumi/sdwan

Version:

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

203 lines 12.8 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.CedgeGlobalFeatureTemplate = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a cEdge Global 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.CedgeGlobalFeatureTemplate("example", { * name: "Example", * description: "My Example", * deviceTypes: ["vedge-C8000V"], * nat64UdpTimeout: 300, * nat64TcpTimeout: 3600, * httpAuthentication: "local", * sshVersion: 2, * httpServer: true, * httpsServer: true, * sourceInterface: "e1", * ipSourceRouting: true, * arpProxy: true, * ftpPassive: true, * rshRcp: true, * bootp: true, * domainLookup: true, * tcpKeepalivesOut: true, * tcpKeepalivesIn: true, * tcpSmallServers: true, * udpSmallServers: true, * lldp: true, * cdp: true, * snmpIfindexPersist: true, * consoleLogging: true, * vtyLogging: true, * lineVty: true, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/cedgeGlobalFeatureTemplate:CedgeGlobalFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class CedgeGlobalFeatureTemplate extends pulumi.CustomResource { /** * Get an existing CedgeGlobalFeatureTemplate 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 CedgeGlobalFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of CedgeGlobalFeatureTemplate. 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'] === CedgeGlobalFeatureTemplate.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["arpProxy"] = state ? state.arpProxy : undefined; resourceInputs["arpProxyVariable"] = state ? state.arpProxyVariable : undefined; resourceInputs["bootp"] = state ? state.bootp : undefined; resourceInputs["bootpVariable"] = state ? state.bootpVariable : undefined; resourceInputs["cdp"] = state ? state.cdp : undefined; resourceInputs["cdpVariable"] = state ? state.cdpVariable : undefined; resourceInputs["consoleLogging"] = state ? state.consoleLogging : undefined; resourceInputs["consoleLoggingVariable"] = state ? state.consoleLoggingVariable : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined; resourceInputs["domainLookup"] = state ? state.domainLookup : undefined; resourceInputs["domainLookupVariable"] = state ? state.domainLookupVariable : undefined; resourceInputs["ftpPassive"] = state ? state.ftpPassive : undefined; resourceInputs["ftpPassiveVariable"] = state ? state.ftpPassiveVariable : undefined; resourceInputs["httpAuthentication"] = state ? state.httpAuthentication : undefined; resourceInputs["httpAuthenticationVariable"] = state ? state.httpAuthenticationVariable : undefined; resourceInputs["httpServer"] = state ? state.httpServer : undefined; resourceInputs["httpServerVariable"] = state ? state.httpServerVariable : undefined; resourceInputs["httpsServer"] = state ? state.httpsServer : undefined; resourceInputs["httpsServerVariable"] = state ? state.httpsServerVariable : undefined; resourceInputs["ipSourceRouting"] = state ? state.ipSourceRouting : undefined; resourceInputs["ipSourceRoutingVariable"] = state ? state.ipSourceRoutingVariable : undefined; resourceInputs["lineVty"] = state ? state.lineVty : undefined; resourceInputs["lineVtyVariable"] = state ? state.lineVtyVariable : undefined; resourceInputs["lldp"] = state ? state.lldp : undefined; resourceInputs["lldpVariable"] = state ? state.lldpVariable : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["nat64TcpTimeout"] = state ? state.nat64TcpTimeout : undefined; resourceInputs["nat64TcpTimeoutVariable"] = state ? state.nat64TcpTimeoutVariable : undefined; resourceInputs["nat64UdpTimeout"] = state ? state.nat64UdpTimeout : undefined; resourceInputs["nat64UdpTimeoutVariable"] = state ? state.nat64UdpTimeoutVariable : undefined; resourceInputs["rshRcp"] = state ? state.rshRcp : undefined; resourceInputs["rshRcpVariable"] = state ? state.rshRcpVariable : undefined; resourceInputs["snmpIfindexPersist"] = state ? state.snmpIfindexPersist : undefined; resourceInputs["snmpIfindexPersistVariable"] = state ? state.snmpIfindexPersistVariable : undefined; resourceInputs["sourceInterface"] = state ? state.sourceInterface : undefined; resourceInputs["sourceInterfaceVariable"] = state ? state.sourceInterfaceVariable : undefined; resourceInputs["sshVersion"] = state ? state.sshVersion : undefined; resourceInputs["sshVersionVariable"] = state ? state.sshVersionVariable : undefined; resourceInputs["tcpKeepalivesIn"] = state ? state.tcpKeepalivesIn : undefined; resourceInputs["tcpKeepalivesInVariable"] = state ? state.tcpKeepalivesInVariable : undefined; resourceInputs["tcpKeepalivesOut"] = state ? state.tcpKeepalivesOut : undefined; resourceInputs["tcpKeepalivesOutVariable"] = state ? state.tcpKeepalivesOutVariable : undefined; resourceInputs["tcpSmallServers"] = state ? state.tcpSmallServers : undefined; resourceInputs["tcpSmallServersVariable"] = state ? state.tcpSmallServersVariable : undefined; resourceInputs["templateType"] = state ? state.templateType : undefined; resourceInputs["udpSmallServers"] = state ? state.udpSmallServers : undefined; resourceInputs["udpSmallServersVariable"] = state ? state.udpSmallServersVariable : undefined; resourceInputs["version"] = state ? state.version : undefined; resourceInputs["vtyLogging"] = state ? state.vtyLogging : undefined; resourceInputs["vtyLoggingVariable"] = state ? state.vtyLoggingVariable : 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["arpProxy"] = args ? args.arpProxy : undefined; resourceInputs["arpProxyVariable"] = args ? args.arpProxyVariable : undefined; resourceInputs["bootp"] = args ? args.bootp : undefined; resourceInputs["bootpVariable"] = args ? args.bootpVariable : undefined; resourceInputs["cdp"] = args ? args.cdp : undefined; resourceInputs["cdpVariable"] = args ? args.cdpVariable : undefined; resourceInputs["consoleLogging"] = args ? args.consoleLogging : undefined; resourceInputs["consoleLoggingVariable"] = args ? args.consoleLoggingVariable : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined; resourceInputs["domainLookup"] = args ? args.domainLookup : undefined; resourceInputs["domainLookupVariable"] = args ? args.domainLookupVariable : undefined; resourceInputs["ftpPassive"] = args ? args.ftpPassive : undefined; resourceInputs["ftpPassiveVariable"] = args ? args.ftpPassiveVariable : undefined; resourceInputs["httpAuthentication"] = args ? args.httpAuthentication : undefined; resourceInputs["httpAuthenticationVariable"] = args ? args.httpAuthenticationVariable : undefined; resourceInputs["httpServer"] = args ? args.httpServer : undefined; resourceInputs["httpServerVariable"] = args ? args.httpServerVariable : undefined; resourceInputs["httpsServer"] = args ? args.httpsServer : undefined; resourceInputs["httpsServerVariable"] = args ? args.httpsServerVariable : undefined; resourceInputs["ipSourceRouting"] = args ? args.ipSourceRouting : undefined; resourceInputs["ipSourceRoutingVariable"] = args ? args.ipSourceRoutingVariable : undefined; resourceInputs["lineVty"] = args ? args.lineVty : undefined; resourceInputs["lineVtyVariable"] = args ? args.lineVtyVariable : undefined; resourceInputs["lldp"] = args ? args.lldp : undefined; resourceInputs["lldpVariable"] = args ? args.lldpVariable : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["nat64TcpTimeout"] = args ? args.nat64TcpTimeout : undefined; resourceInputs["nat64TcpTimeoutVariable"] = args ? args.nat64TcpTimeoutVariable : undefined; resourceInputs["nat64UdpTimeout"] = args ? args.nat64UdpTimeout : undefined; resourceInputs["nat64UdpTimeoutVariable"] = args ? args.nat64UdpTimeoutVariable : undefined; resourceInputs["rshRcp"] = args ? args.rshRcp : undefined; resourceInputs["rshRcpVariable"] = args ? args.rshRcpVariable : undefined; resourceInputs["snmpIfindexPersist"] = args ? args.snmpIfindexPersist : undefined; resourceInputs["snmpIfindexPersistVariable"] = args ? args.snmpIfindexPersistVariable : undefined; resourceInputs["sourceInterface"] = args ? args.sourceInterface : undefined; resourceInputs["sourceInterfaceVariable"] = args ? args.sourceInterfaceVariable : undefined; resourceInputs["sshVersion"] = args ? args.sshVersion : undefined; resourceInputs["sshVersionVariable"] = args ? args.sshVersionVariable : undefined; resourceInputs["tcpKeepalivesIn"] = args ? args.tcpKeepalivesIn : undefined; resourceInputs["tcpKeepalivesInVariable"] = args ? args.tcpKeepalivesInVariable : undefined; resourceInputs["tcpKeepalivesOut"] = args ? args.tcpKeepalivesOut : undefined; resourceInputs["tcpKeepalivesOutVariable"] = args ? args.tcpKeepalivesOutVariable : undefined; resourceInputs["tcpSmallServers"] = args ? args.tcpSmallServers : undefined; resourceInputs["tcpSmallServersVariable"] = args ? args.tcpSmallServersVariable : undefined; resourceInputs["udpSmallServers"] = args ? args.udpSmallServers : undefined; resourceInputs["udpSmallServersVariable"] = args ? args.udpSmallServersVariable : undefined; resourceInputs["vtyLogging"] = args ? args.vtyLogging : undefined; resourceInputs["vtyLoggingVariable"] = args ? args.vtyLoggingVariable : undefined; resourceInputs["templateType"] = undefined /*out*/; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CedgeGlobalFeatureTemplate.__pulumiType, name, resourceInputs, opts); } } exports.CedgeGlobalFeatureTemplate = CedgeGlobalFeatureTemplate; /** @internal */ CedgeGlobalFeatureTemplate.__pulumiType = 'sdwan:index/cedgeGlobalFeatureTemplate:CedgeGlobalFeatureTemplate'; //# sourceMappingURL=cedgeGlobalFeatureTemplate.js.map