@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
149 lines • 10.4 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.VpnInterfaceSviFeatureTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a VPN Interface SVI 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/vpnInterfaceSviFeatureTemplate:VpnInterfaceSviFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd"
* ```
*/
class VpnInterfaceSviFeatureTemplate extends pulumi.CustomResource {
/**
* Get an existing VpnInterfaceSviFeatureTemplate 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 VpnInterfaceSviFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of VpnInterfaceSviFeatureTemplate. 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'] === VpnInterfaceSviFeatureTemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["arpTimeout"] = state ? state.arpTimeout : undefined;
resourceInputs["arpTimeoutVariable"] = state ? state.arpTimeoutVariable : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined;
resourceInputs["ifName"] = state ? state.ifName : undefined;
resourceInputs["ifNameVariable"] = state ? state.ifNameVariable : undefined;
resourceInputs["interfaceDescription"] = state ? state.interfaceDescription : undefined;
resourceInputs["interfaceDescriptionVariable"] = state ? state.interfaceDescriptionVariable : undefined;
resourceInputs["ipDirectedBroadcast"] = state ? state.ipDirectedBroadcast : undefined;
resourceInputs["ipDirectedBroadcastVariable"] = state ? state.ipDirectedBroadcastVariable : undefined;
resourceInputs["ipMtu"] = state ? state.ipMtu : undefined;
resourceInputs["ipMtuVariable"] = state ? state.ipMtuVariable : undefined;
resourceInputs["ipv4AccessLists"] = state ? state.ipv4AccessLists : undefined;
resourceInputs["ipv4Address"] = state ? state.ipv4Address : undefined;
resourceInputs["ipv4AddressVariable"] = state ? state.ipv4AddressVariable : undefined;
resourceInputs["ipv4DhcpHelperVariable"] = state ? state.ipv4DhcpHelperVariable : undefined;
resourceInputs["ipv4DhcpHelpers"] = state ? state.ipv4DhcpHelpers : undefined;
resourceInputs["ipv4SecondaryAddresses"] = state ? state.ipv4SecondaryAddresses : undefined;
resourceInputs["ipv4Vrrps"] = state ? state.ipv4Vrrps : undefined;
resourceInputs["ipv6AccessLists"] = state ? state.ipv6AccessLists : undefined;
resourceInputs["ipv6Address"] = state ? state.ipv6Address : undefined;
resourceInputs["ipv6AddressVariable"] = state ? state.ipv6AddressVariable : undefined;
resourceInputs["ipv6DhcpClient"] = state ? state.ipv6DhcpClient : undefined;
resourceInputs["ipv6DhcpClientVariable"] = state ? state.ipv6DhcpClientVariable : undefined;
resourceInputs["ipv6DhcpDistance"] = state ? state.ipv6DhcpDistance : undefined;
resourceInputs["ipv6DhcpDistanceVariable"] = state ? state.ipv6DhcpDistanceVariable : undefined;
resourceInputs["ipv6DhcpHelpers"] = state ? state.ipv6DhcpHelpers : undefined;
resourceInputs["ipv6DhcpRapidCommit"] = state ? state.ipv6DhcpRapidCommit : undefined;
resourceInputs["ipv6DhcpRapidCommitVariable"] = state ? state.ipv6DhcpRapidCommitVariable : undefined;
resourceInputs["ipv6SecondaryAddresses"] = state ? state.ipv6SecondaryAddresses : undefined;
resourceInputs["ipv6Vrrps"] = state ? state.ipv6Vrrps : undefined;
resourceInputs["mtu"] = state ? state.mtu : undefined;
resourceInputs["mtuVariable"] = state ? state.mtuVariable : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["policers"] = state ? state.policers : undefined;
resourceInputs["shutdown"] = state ? state.shutdown : undefined;
resourceInputs["shutdownVariable"] = state ? state.shutdownVariable : undefined;
resourceInputs["staticArpEntries"] = state ? state.staticArpEntries : undefined;
resourceInputs["tcpMssAdjust"] = state ? state.tcpMssAdjust : undefined;
resourceInputs["tcpMssAdjustVariable"] = state ? state.tcpMssAdjustVariable : undefined;
resourceInputs["templateType"] = state ? state.templateType : 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["arpTimeout"] = args ? args.arpTimeout : undefined;
resourceInputs["arpTimeoutVariable"] = args ? args.arpTimeoutVariable : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined;
resourceInputs["ifName"] = args ? args.ifName : undefined;
resourceInputs["ifNameVariable"] = args ? args.ifNameVariable : undefined;
resourceInputs["interfaceDescription"] = args ? args.interfaceDescription : undefined;
resourceInputs["interfaceDescriptionVariable"] = args ? args.interfaceDescriptionVariable : undefined;
resourceInputs["ipDirectedBroadcast"] = args ? args.ipDirectedBroadcast : undefined;
resourceInputs["ipDirectedBroadcastVariable"] = args ? args.ipDirectedBroadcastVariable : undefined;
resourceInputs["ipMtu"] = args ? args.ipMtu : undefined;
resourceInputs["ipMtuVariable"] = args ? args.ipMtuVariable : undefined;
resourceInputs["ipv4AccessLists"] = args ? args.ipv4AccessLists : undefined;
resourceInputs["ipv4Address"] = args ? args.ipv4Address : undefined;
resourceInputs["ipv4AddressVariable"] = args ? args.ipv4AddressVariable : undefined;
resourceInputs["ipv4DhcpHelperVariable"] = args ? args.ipv4DhcpHelperVariable : undefined;
resourceInputs["ipv4DhcpHelpers"] = args ? args.ipv4DhcpHelpers : undefined;
resourceInputs["ipv4SecondaryAddresses"] = args ? args.ipv4SecondaryAddresses : undefined;
resourceInputs["ipv4Vrrps"] = args ? args.ipv4Vrrps : undefined;
resourceInputs["ipv6AccessLists"] = args ? args.ipv6AccessLists : undefined;
resourceInputs["ipv6Address"] = args ? args.ipv6Address : undefined;
resourceInputs["ipv6AddressVariable"] = args ? args.ipv6AddressVariable : undefined;
resourceInputs["ipv6DhcpClient"] = args ? args.ipv6DhcpClient : undefined;
resourceInputs["ipv6DhcpClientVariable"] = args ? args.ipv6DhcpClientVariable : undefined;
resourceInputs["ipv6DhcpDistance"] = args ? args.ipv6DhcpDistance : undefined;
resourceInputs["ipv6DhcpDistanceVariable"] = args ? args.ipv6DhcpDistanceVariable : undefined;
resourceInputs["ipv6DhcpHelpers"] = args ? args.ipv6DhcpHelpers : undefined;
resourceInputs["ipv6DhcpRapidCommit"] = args ? args.ipv6DhcpRapidCommit : undefined;
resourceInputs["ipv6DhcpRapidCommitVariable"] = args ? args.ipv6DhcpRapidCommitVariable : undefined;
resourceInputs["ipv6SecondaryAddresses"] = args ? args.ipv6SecondaryAddresses : undefined;
resourceInputs["ipv6Vrrps"] = args ? args.ipv6Vrrps : undefined;
resourceInputs["mtu"] = args ? args.mtu : undefined;
resourceInputs["mtuVariable"] = args ? args.mtuVariable : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["policers"] = args ? args.policers : undefined;
resourceInputs["shutdown"] = args ? args.shutdown : undefined;
resourceInputs["shutdownVariable"] = args ? args.shutdownVariable : undefined;
resourceInputs["staticArpEntries"] = args ? args.staticArpEntries : undefined;
resourceInputs["tcpMssAdjust"] = args ? args.tcpMssAdjust : undefined;
resourceInputs["tcpMssAdjustVariable"] = args ? args.tcpMssAdjustVariable : undefined;
resourceInputs["templateType"] = undefined /*out*/;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(VpnInterfaceSviFeatureTemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.VpnInterfaceSviFeatureTemplate = VpnInterfaceSviFeatureTemplate;
/** @internal */
VpnInterfaceSviFeatureTemplate.__pulumiType = 'sdwan:index/vpnInterfaceSviFeatureTemplate:VpnInterfaceSviFeatureTemplate';
//# sourceMappingURL=vpnInterfaceSviFeatureTemplate.js.map