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 10.9 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, { ...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?.arpProxy; resourceInputs["arpProxyVariable"] = state?.arpProxyVariable; resourceInputs["bootp"] = state?.bootp; resourceInputs["bootpVariable"] = state?.bootpVariable; resourceInputs["cdp"] = state?.cdp; resourceInputs["cdpVariable"] = state?.cdpVariable; resourceInputs["consoleLogging"] = state?.consoleLogging; resourceInputs["consoleLoggingVariable"] = state?.consoleLoggingVariable; resourceInputs["description"] = state?.description; resourceInputs["deviceTypes"] = state?.deviceTypes; resourceInputs["domainLookup"] = state?.domainLookup; resourceInputs["domainLookupVariable"] = state?.domainLookupVariable; resourceInputs["ftpPassive"] = state?.ftpPassive; resourceInputs["ftpPassiveVariable"] = state?.ftpPassiveVariable; resourceInputs["httpAuthentication"] = state?.httpAuthentication; resourceInputs["httpAuthenticationVariable"] = state?.httpAuthenticationVariable; resourceInputs["httpServer"] = state?.httpServer; resourceInputs["httpServerVariable"] = state?.httpServerVariable; resourceInputs["httpsServer"] = state?.httpsServer; resourceInputs["httpsServerVariable"] = state?.httpsServerVariable; resourceInputs["ipSourceRouting"] = state?.ipSourceRouting; resourceInputs["ipSourceRoutingVariable"] = state?.ipSourceRoutingVariable; resourceInputs["lineVty"] = state?.lineVty; resourceInputs["lineVtyVariable"] = state?.lineVtyVariable; resourceInputs["lldp"] = state?.lldp; resourceInputs["lldpVariable"] = state?.lldpVariable; resourceInputs["name"] = state?.name; resourceInputs["nat64TcpTimeout"] = state?.nat64TcpTimeout; resourceInputs["nat64TcpTimeoutVariable"] = state?.nat64TcpTimeoutVariable; resourceInputs["nat64UdpTimeout"] = state?.nat64UdpTimeout; resourceInputs["nat64UdpTimeoutVariable"] = state?.nat64UdpTimeoutVariable; resourceInputs["rshRcp"] = state?.rshRcp; resourceInputs["rshRcpVariable"] = state?.rshRcpVariable; resourceInputs["snmpIfindexPersist"] = state?.snmpIfindexPersist; resourceInputs["snmpIfindexPersistVariable"] = state?.snmpIfindexPersistVariable; resourceInputs["sourceInterface"] = state?.sourceInterface; resourceInputs["sourceInterfaceVariable"] = state?.sourceInterfaceVariable; resourceInputs["sshVersion"] = state?.sshVersion; resourceInputs["sshVersionVariable"] = state?.sshVersionVariable; resourceInputs["tcpKeepalivesIn"] = state?.tcpKeepalivesIn; resourceInputs["tcpKeepalivesInVariable"] = state?.tcpKeepalivesInVariable; resourceInputs["tcpKeepalivesOut"] = state?.tcpKeepalivesOut; resourceInputs["tcpKeepalivesOutVariable"] = state?.tcpKeepalivesOutVariable; resourceInputs["tcpSmallServers"] = state?.tcpSmallServers; resourceInputs["tcpSmallServersVariable"] = state?.tcpSmallServersVariable; resourceInputs["templateType"] = state?.templateType; resourceInputs["udpSmallServers"] = state?.udpSmallServers; resourceInputs["udpSmallServersVariable"] = state?.udpSmallServersVariable; resourceInputs["version"] = state?.version; resourceInputs["vtyLogging"] = state?.vtyLogging; resourceInputs["vtyLoggingVariable"] = state?.vtyLoggingVariable; } 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["arpProxy"] = args?.arpProxy; resourceInputs["arpProxyVariable"] = args?.arpProxyVariable; resourceInputs["bootp"] = args?.bootp; resourceInputs["bootpVariable"] = args?.bootpVariable; resourceInputs["cdp"] = args?.cdp; resourceInputs["cdpVariable"] = args?.cdpVariable; resourceInputs["consoleLogging"] = args?.consoleLogging; resourceInputs["consoleLoggingVariable"] = args?.consoleLoggingVariable; resourceInputs["description"] = args?.description; resourceInputs["deviceTypes"] = args?.deviceTypes; resourceInputs["domainLookup"] = args?.domainLookup; resourceInputs["domainLookupVariable"] = args?.domainLookupVariable; resourceInputs["ftpPassive"] = args?.ftpPassive; resourceInputs["ftpPassiveVariable"] = args?.ftpPassiveVariable; resourceInputs["httpAuthentication"] = args?.httpAuthentication; resourceInputs["httpAuthenticationVariable"] = args?.httpAuthenticationVariable; resourceInputs["httpServer"] = args?.httpServer; resourceInputs["httpServerVariable"] = args?.httpServerVariable; resourceInputs["httpsServer"] = args?.httpsServer; resourceInputs["httpsServerVariable"] = args?.httpsServerVariable; resourceInputs["ipSourceRouting"] = args?.ipSourceRouting; resourceInputs["ipSourceRoutingVariable"] = args?.ipSourceRoutingVariable; resourceInputs["lineVty"] = args?.lineVty; resourceInputs["lineVtyVariable"] = args?.lineVtyVariable; resourceInputs["lldp"] = args?.lldp; resourceInputs["lldpVariable"] = args?.lldpVariable; resourceInputs["name"] = args?.name; resourceInputs["nat64TcpTimeout"] = args?.nat64TcpTimeout; resourceInputs["nat64TcpTimeoutVariable"] = args?.nat64TcpTimeoutVariable; resourceInputs["nat64UdpTimeout"] = args?.nat64UdpTimeout; resourceInputs["nat64UdpTimeoutVariable"] = args?.nat64UdpTimeoutVariable; resourceInputs["rshRcp"] = args?.rshRcp; resourceInputs["rshRcpVariable"] = args?.rshRcpVariable; resourceInputs["snmpIfindexPersist"] = args?.snmpIfindexPersist; resourceInputs["snmpIfindexPersistVariable"] = args?.snmpIfindexPersistVariable; resourceInputs["sourceInterface"] = args?.sourceInterface; resourceInputs["sourceInterfaceVariable"] = args?.sourceInterfaceVariable; resourceInputs["sshVersion"] = args?.sshVersion; resourceInputs["sshVersionVariable"] = args?.sshVersionVariable; resourceInputs["tcpKeepalivesIn"] = args?.tcpKeepalivesIn; resourceInputs["tcpKeepalivesInVariable"] = args?.tcpKeepalivesInVariable; resourceInputs["tcpKeepalivesOut"] = args?.tcpKeepalivesOut; resourceInputs["tcpKeepalivesOutVariable"] = args?.tcpKeepalivesOutVariable; resourceInputs["tcpSmallServers"] = args?.tcpSmallServers; resourceInputs["tcpSmallServersVariable"] = args?.tcpSmallServersVariable; resourceInputs["udpSmallServers"] = args?.udpSmallServers; resourceInputs["udpSmallServersVariable"] = args?.udpSmallServersVariable; resourceInputs["vtyLogging"] = args?.vtyLogging; resourceInputs["vtyLoggingVariable"] = args?.vtyLoggingVariable; 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