@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
200 lines • 10.9 kB
JavaScript
;
// *** 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.SystemGlobalFeature = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a System Global Feature.
* - Minimum SD-WAN Manager version: `20.12.0`
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdwan from "@pulumi/sdwan";
*
* const example = new sdwan.SystemGlobalFeature("example", {
* name: "Example",
* description: "My Example",
* featureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac",
* httpServer: false,
* httpsServer: false,
* ftpPassive: false,
* domainLookup: false,
* arpProxy: false,
* rshRcp: false,
* lineVty: false,
* cdp: true,
* lldp: true,
* sourceInterface: "GigabitEthernet0/0/1",
* tcpKeepalivesIn: true,
* tcpKeepalivesOut: true,
* tcpSmallServers: false,
* udpSmallServers: false,
* consoleLogging: true,
* ipSourceRouting: false,
* vtyLineLogging: false,
* snmpIfindexPersist: true,
* ignoreBootp: true,
* nat64UdpTimeout: 300,
* nat64TcpTimeout: 3600,
* httpAuthentication: "aaa",
* sshVersion: "2",
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Expected import identifier with the format: "system_global_feature_id,feature_profile_id"
*
* ```sh
* $ pulumi import sdwan:index/systemGlobalFeature:SystemGlobalFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
* ```
*/
class SystemGlobalFeature extends pulumi.CustomResource {
/**
* Get an existing SystemGlobalFeature 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 SystemGlobalFeature(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of SystemGlobalFeature. 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'] === SystemGlobalFeature.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arpProxy"] = state?.arpProxy;
resourceInputs["arpProxyVariable"] = state?.arpProxyVariable;
resourceInputs["cdp"] = state?.cdp;
resourceInputs["cdpVariable"] = state?.cdpVariable;
resourceInputs["consoleLogging"] = state?.consoleLogging;
resourceInputs["consoleLoggingVariable"] = state?.consoleLoggingVariable;
resourceInputs["description"] = state?.description;
resourceInputs["domainLookup"] = state?.domainLookup;
resourceInputs["domainLookupVariable"] = state?.domainLookupVariable;
resourceInputs["featureProfileId"] = state?.featureProfileId;
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["ignoreBootp"] = state?.ignoreBootp;
resourceInputs["ignoreBootpVariable"] = state?.ignoreBootpVariable;
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["udpSmallServers"] = state?.udpSmallServers;
resourceInputs["udpSmallServersVariable"] = state?.udpSmallServersVariable;
resourceInputs["version"] = state?.version;
resourceInputs["vtyLineLogging"] = state?.vtyLineLogging;
resourceInputs["vtyLineLoggingVariable"] = state?.vtyLineLoggingVariable;
}
else {
const args = argsOrState;
if (args?.featureProfileId === undefined && !opts.urn) {
throw new Error("Missing required property 'featureProfileId'");
}
resourceInputs["arpProxy"] = args?.arpProxy;
resourceInputs["arpProxyVariable"] = args?.arpProxyVariable;
resourceInputs["cdp"] = args?.cdp;
resourceInputs["cdpVariable"] = args?.cdpVariable;
resourceInputs["consoleLogging"] = args?.consoleLogging;
resourceInputs["consoleLoggingVariable"] = args?.consoleLoggingVariable;
resourceInputs["description"] = args?.description;
resourceInputs["domainLookup"] = args?.domainLookup;
resourceInputs["domainLookupVariable"] = args?.domainLookupVariable;
resourceInputs["featureProfileId"] = args?.featureProfileId;
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["ignoreBootp"] = args?.ignoreBootp;
resourceInputs["ignoreBootpVariable"] = args?.ignoreBootpVariable;
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["vtyLineLogging"] = args?.vtyLineLogging;
resourceInputs["vtyLineLoggingVariable"] = args?.vtyLineLoggingVariable;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(SystemGlobalFeature.__pulumiType, name, resourceInputs, opts);
}
}
exports.SystemGlobalFeature = SystemGlobalFeature;
/** @internal */
SystemGlobalFeature.__pulumiType = 'sdwan:index/systemGlobalFeature:SystemGlobalFeature';
//# sourceMappingURL=systemGlobalFeature.js.map