@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
146 lines • 10.6 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.ServiceLanVpnFeature = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Service LAN VPN Feature.
* - Minimum SD-WAN Manager version: `20.12.0`
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Expected import identifier with the format: "service_lan_vpn_feature_id,feature_profile_id"
*
* ```sh
* $ pulumi import sdwan:index/serviceLanVpnFeature:ServiceLanVpnFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
* ```
*/
class ServiceLanVpnFeature extends pulumi.CustomResource {
/**
* Get an existing ServiceLanVpnFeature 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 ServiceLanVpnFeature(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ServiceLanVpnFeature. 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'] === ServiceLanVpnFeature.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["advertiseOmpIpv4s"] = state ? state.advertiseOmpIpv4s : undefined;
resourceInputs["advertiseOmpIpv6s"] = state ? state.advertiseOmpIpv6s : undefined;
resourceInputs["configDescription"] = state ? state.configDescription : undefined;
resourceInputs["configDescriptionVariable"] = state ? state.configDescriptionVariable : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["enableSdwanRemoteAccess"] = state ? state.enableSdwanRemoteAccess : undefined;
resourceInputs["featureProfileId"] = state ? state.featureProfileId : undefined;
resourceInputs["greRoutes"] = state ? state.greRoutes : undefined;
resourceInputs["hostMappings"] = state ? state.hostMappings : undefined;
resourceInputs["ipsecRoutes"] = state ? state.ipsecRoutes : undefined;
resourceInputs["ipv4ExportRouteTargets"] = state ? state.ipv4ExportRouteTargets : undefined;
resourceInputs["ipv4ImportRouteTargets"] = state ? state.ipv4ImportRouteTargets : undefined;
resourceInputs["ipv4StaticRoutes"] = state ? state.ipv4StaticRoutes : undefined;
resourceInputs["ipv6ExportRouteTargets"] = state ? state.ipv6ExportRouteTargets : undefined;
resourceInputs["ipv6ImportRouteTargets"] = state ? state.ipv6ImportRouteTargets : undefined;
resourceInputs["ipv6StaticRoutes"] = state ? state.ipv6StaticRoutes : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["nat64V4Pools"] = state ? state.nat64V4Pools : undefined;
resourceInputs["natPools"] = state ? state.natPools : undefined;
resourceInputs["natPortForwards"] = state ? state.natPortForwards : 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["primaryDnsAddressIpv4"] = state ? state.primaryDnsAddressIpv4 : undefined;
resourceInputs["primaryDnsAddressIpv4Variable"] = state ? state.primaryDnsAddressIpv4Variable : undefined;
resourceInputs["primaryDnsAddressIpv6"] = state ? state.primaryDnsAddressIpv6 : undefined;
resourceInputs["primaryDnsAddressIpv6Variable"] = state ? state.primaryDnsAddressIpv6Variable : undefined;
resourceInputs["routeLeakFromGlobalVpns"] = state ? state.routeLeakFromGlobalVpns : undefined;
resourceInputs["routeLeakFromOtherServices"] = state ? state.routeLeakFromOtherServices : undefined;
resourceInputs["routeLeakToGlobalVpns"] = state ? state.routeLeakToGlobalVpns : undefined;
resourceInputs["secondaryDnsAddressIpv4"] = state ? state.secondaryDnsAddressIpv4 : undefined;
resourceInputs["secondaryDnsAddressIpv4Variable"] = state ? state.secondaryDnsAddressIpv4Variable : undefined;
resourceInputs["secondaryDnsAddressIpv6"] = state ? state.secondaryDnsAddressIpv6 : undefined;
resourceInputs["secondaryDnsAddressIpv6Variable"] = state ? state.secondaryDnsAddressIpv6Variable : undefined;
resourceInputs["serviceRoutes"] = state ? state.serviceRoutes : undefined;
resourceInputs["services"] = state ? state.services : undefined;
resourceInputs["staticNats"] = state ? state.staticNats : undefined;
resourceInputs["version"] = state ? state.version : undefined;
resourceInputs["vpn"] = state ? state.vpn : undefined;
resourceInputs["vpnVariable"] = state ? state.vpnVariable : undefined;
}
else {
const args = argsOrState;
if ((!args || args.featureProfileId === undefined) && !opts.urn) {
throw new Error("Missing required property 'featureProfileId'");
}
resourceInputs["advertiseOmpIpv4s"] = args ? args.advertiseOmpIpv4s : undefined;
resourceInputs["advertiseOmpIpv6s"] = args ? args.advertiseOmpIpv6s : undefined;
resourceInputs["configDescription"] = args ? args.configDescription : undefined;
resourceInputs["configDescriptionVariable"] = args ? args.configDescriptionVariable : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["enableSdwanRemoteAccess"] = args ? args.enableSdwanRemoteAccess : undefined;
resourceInputs["featureProfileId"] = args ? args.featureProfileId : undefined;
resourceInputs["greRoutes"] = args ? args.greRoutes : undefined;
resourceInputs["hostMappings"] = args ? args.hostMappings : undefined;
resourceInputs["ipsecRoutes"] = args ? args.ipsecRoutes : undefined;
resourceInputs["ipv4ExportRouteTargets"] = args ? args.ipv4ExportRouteTargets : undefined;
resourceInputs["ipv4ImportRouteTargets"] = args ? args.ipv4ImportRouteTargets : undefined;
resourceInputs["ipv4StaticRoutes"] = args ? args.ipv4StaticRoutes : undefined;
resourceInputs["ipv6ExportRouteTargets"] = args ? args.ipv6ExportRouteTargets : undefined;
resourceInputs["ipv6ImportRouteTargets"] = args ? args.ipv6ImportRouteTargets : undefined;
resourceInputs["ipv6StaticRoutes"] = args ? args.ipv6StaticRoutes : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["nat64V4Pools"] = args ? args.nat64V4Pools : undefined;
resourceInputs["natPools"] = args ? args.natPools : undefined;
resourceInputs["natPortForwards"] = args ? args.natPortForwards : 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["primaryDnsAddressIpv4"] = args ? args.primaryDnsAddressIpv4 : undefined;
resourceInputs["primaryDnsAddressIpv4Variable"] = args ? args.primaryDnsAddressIpv4Variable : undefined;
resourceInputs["primaryDnsAddressIpv6"] = args ? args.primaryDnsAddressIpv6 : undefined;
resourceInputs["primaryDnsAddressIpv6Variable"] = args ? args.primaryDnsAddressIpv6Variable : undefined;
resourceInputs["routeLeakFromGlobalVpns"] = args ? args.routeLeakFromGlobalVpns : undefined;
resourceInputs["routeLeakFromOtherServices"] = args ? args.routeLeakFromOtherServices : undefined;
resourceInputs["routeLeakToGlobalVpns"] = args ? args.routeLeakToGlobalVpns : undefined;
resourceInputs["secondaryDnsAddressIpv4"] = args ? args.secondaryDnsAddressIpv4 : undefined;
resourceInputs["secondaryDnsAddressIpv4Variable"] = args ? args.secondaryDnsAddressIpv4Variable : undefined;
resourceInputs["secondaryDnsAddressIpv6"] = args ? args.secondaryDnsAddressIpv6 : undefined;
resourceInputs["secondaryDnsAddressIpv6Variable"] = args ? args.secondaryDnsAddressIpv6Variable : undefined;
resourceInputs["serviceRoutes"] = args ? args.serviceRoutes : undefined;
resourceInputs["services"] = args ? args.services : undefined;
resourceInputs["staticNats"] = args ? args.staticNats : undefined;
resourceInputs["vpn"] = args ? args.vpn : undefined;
resourceInputs["vpnVariable"] = args ? args.vpnVariable : undefined;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(ServiceLanVpnFeature.__pulumiType, name, resourceInputs, opts);
}
}
exports.ServiceLanVpnFeature = ServiceLanVpnFeature;
/** @internal */
ServiceLanVpnFeature.__pulumiType = 'sdwan:index/serviceLanVpnFeature:ServiceLanVpnFeature';
//# sourceMappingURL=serviceLanVpnFeature.js.map