@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
135 lines • 9.06 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.CiscoVpnFeatureTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Cisco VPN 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/ciscoVpnFeatureTemplate:CiscoVpnFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd"
* ```
*/
class CiscoVpnFeatureTemplate extends pulumi.CustomResource {
/**
* Get an existing CiscoVpnFeatureTemplate 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 CiscoVpnFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of CiscoVpnFeatureTemplate. 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'] === CiscoVpnFeatureTemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined;
resourceInputs["dnsHosts"] = state ? state.dnsHosts : undefined;
resourceInputs["dnsIpv4Servers"] = state ? state.dnsIpv4Servers : undefined;
resourceInputs["dnsIpv6Servers"] = state ? state.dnsIpv6Servers : undefined;
resourceInputs["enhanceEcmpKeying"] = state ? state.enhanceEcmpKeying : undefined;
resourceInputs["enhanceEcmpKeyingVariable"] = state ? state.enhanceEcmpKeyingVariable : undefined;
resourceInputs["ipv4StaticGreRoutes"] = state ? state.ipv4StaticGreRoutes : undefined;
resourceInputs["ipv4StaticIpsecRoutes"] = state ? state.ipv4StaticIpsecRoutes : undefined;
resourceInputs["ipv4StaticRoutes"] = state ? state.ipv4StaticRoutes : undefined;
resourceInputs["ipv4StaticServiceRoutes"] = state ? state.ipv4StaticServiceRoutes : undefined;
resourceInputs["ipv6StaticRoutes"] = state ? state.ipv6StaticRoutes : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["nat64Pools"] = state ? state.nat64Pools : undefined;
resourceInputs["natPools"] = state ? state.natPools : undefined;
resourceInputs["ompAdminDistanceIpv4"] = state ? state.ompAdminDistanceIpv4 : undefined;
resourceInputs["ompAdminDistanceIpv4Variable"] = state ? state.ompAdminDistanceIpv4Variable : undefined;
resourceInputs["ompAdminDistanceIpv6"] = state ? state.ompAdminDistanceIpv6 : undefined;
resourceInputs["ompAdminDistanceIpv6Variable"] = state ? state.ompAdminDistanceIpv6Variable : undefined;
resourceInputs["ompAdvertiseIpv4Routes"] = state ? state.ompAdvertiseIpv4Routes : undefined;
resourceInputs["ompAdvertiseIpv6Routes"] = state ? state.ompAdvertiseIpv6Routes : undefined;
resourceInputs["organizationName"] = state ? state.organizationName : undefined;
resourceInputs["portForwardRules"] = state ? state.portForwardRules : undefined;
resourceInputs["routeGlobalExports"] = state ? state.routeGlobalExports : undefined;
resourceInputs["routeGlobalImports"] = state ? state.routeGlobalImports : undefined;
resourceInputs["routeVpnImports"] = state ? state.routeVpnImports : undefined;
resourceInputs["services"] = state ? state.services : undefined;
resourceInputs["staticNatRules"] = state ? state.staticNatRules : undefined;
resourceInputs["staticNatSubnetRules"] = state ? state.staticNatSubnetRules : undefined;
resourceInputs["templateType"] = state ? state.templateType : undefined;
resourceInputs["tenantVpnId"] = state ? state.tenantVpnId : undefined;
resourceInputs["version"] = state ? state.version : undefined;
resourceInputs["vpnId"] = state ? state.vpnId : undefined;
resourceInputs["vpnName"] = state ? state.vpnName : undefined;
resourceInputs["vpnNameVariable"] = state ? state.vpnNameVariable : 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["description"] = args ? args.description : undefined;
resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined;
resourceInputs["dnsHosts"] = args ? args.dnsHosts : undefined;
resourceInputs["dnsIpv4Servers"] = args ? args.dnsIpv4Servers : undefined;
resourceInputs["dnsIpv6Servers"] = args ? args.dnsIpv6Servers : undefined;
resourceInputs["enhanceEcmpKeying"] = args ? args.enhanceEcmpKeying : undefined;
resourceInputs["enhanceEcmpKeyingVariable"] = args ? args.enhanceEcmpKeyingVariable : undefined;
resourceInputs["ipv4StaticGreRoutes"] = args ? args.ipv4StaticGreRoutes : undefined;
resourceInputs["ipv4StaticIpsecRoutes"] = args ? args.ipv4StaticIpsecRoutes : undefined;
resourceInputs["ipv4StaticRoutes"] = args ? args.ipv4StaticRoutes : undefined;
resourceInputs["ipv4StaticServiceRoutes"] = args ? args.ipv4StaticServiceRoutes : undefined;
resourceInputs["ipv6StaticRoutes"] = args ? args.ipv6StaticRoutes : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["nat64Pools"] = args ? args.nat64Pools : undefined;
resourceInputs["natPools"] = args ? args.natPools : undefined;
resourceInputs["ompAdminDistanceIpv4"] = args ? args.ompAdminDistanceIpv4 : undefined;
resourceInputs["ompAdminDistanceIpv4Variable"] = args ? args.ompAdminDistanceIpv4Variable : undefined;
resourceInputs["ompAdminDistanceIpv6"] = args ? args.ompAdminDistanceIpv6 : undefined;
resourceInputs["ompAdminDistanceIpv6Variable"] = args ? args.ompAdminDistanceIpv6Variable : undefined;
resourceInputs["ompAdvertiseIpv4Routes"] = args ? args.ompAdvertiseIpv4Routes : undefined;
resourceInputs["ompAdvertiseIpv6Routes"] = args ? args.ompAdvertiseIpv6Routes : undefined;
resourceInputs["organizationName"] = args ? args.organizationName : undefined;
resourceInputs["portForwardRules"] = args ? args.portForwardRules : undefined;
resourceInputs["routeGlobalExports"] = args ? args.routeGlobalExports : undefined;
resourceInputs["routeGlobalImports"] = args ? args.routeGlobalImports : undefined;
resourceInputs["routeVpnImports"] = args ? args.routeVpnImports : undefined;
resourceInputs["services"] = args ? args.services : undefined;
resourceInputs["staticNatRules"] = args ? args.staticNatRules : undefined;
resourceInputs["staticNatSubnetRules"] = args ? args.staticNatSubnetRules : undefined;
resourceInputs["tenantVpnId"] = args ? args.tenantVpnId : undefined;
resourceInputs["vpnId"] = args ? args.vpnId : undefined;
resourceInputs["vpnName"] = args ? args.vpnName : undefined;
resourceInputs["vpnNameVariable"] = args ? args.vpnNameVariable : undefined;
resourceInputs["templateType"] = undefined /*out*/;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CiscoVpnFeatureTemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.CiscoVpnFeatureTemplate = CiscoVpnFeatureTemplate;
/** @internal */
CiscoVpnFeatureTemplate.__pulumiType = 'sdwan:index/ciscoVpnFeatureTemplate:CiscoVpnFeatureTemplate';
//# sourceMappingURL=ciscoVpnFeatureTemplate.js.map