UNPKG

@pulumi/sdwan

Version:

A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1

158 lines 10.5 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.ServiceLanVpnInterfaceGreFeature = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Service LAN VPN Interface GRE 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.ServiceLanVpnInterfaceGreFeature("example", { * name: "Example", * description: "My Example", * featureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac", * serviceLanVpnFeatureId: "140331f6-5418-4755-a059-13c77eb96037", * interfaceName: "gre1", * interfaceDescription: "gre1", * ipv4Address: "70.1.1.1", * ipv4SubnetMask: "255.255.255.0", * shutdown: true, * tunnelSourceIpv4Address: "78.1.1.1", * tunnelDestinationIpv4Address: "79.1.1.1", * ipMtu: 1500, * tcpMss: 1460, * clearDontFragment: false, * applicationTunnelType: "none", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Expected import identifier with the format: "service_lan_vpn_interface_gre_feature_id,feature_profile_id,service_lan_vpn_feature_id" * * ```sh * $ pulumi import sdwan:index/serviceLanVpnInterfaceGreFeature:ServiceLanVpnInterfaceGreFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac,140331f6-5418-4755-a059-13c77eb96037" * ``` */ class ServiceLanVpnInterfaceGreFeature extends pulumi.CustomResource { /** * Get an existing ServiceLanVpnInterfaceGreFeature 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 ServiceLanVpnInterfaceGreFeature(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ServiceLanVpnInterfaceGreFeature. 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'] === ServiceLanVpnInterfaceGreFeature.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["applicationTunnelType"] = state ? state.applicationTunnelType : undefined; resourceInputs["applicationTunnelTypeVariable"] = state ? state.applicationTunnelTypeVariable : undefined; resourceInputs["clearDontFragment"] = state ? state.clearDontFragment : undefined; resourceInputs["clearDontFragmentVariable"] = state ? state.clearDontFragmentVariable : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["featureProfileId"] = state ? state.featureProfileId : undefined; resourceInputs["interfaceDescription"] = state ? state.interfaceDescription : undefined; resourceInputs["interfaceDescriptionVariable"] = state ? state.interfaceDescriptionVariable : undefined; resourceInputs["interfaceName"] = state ? state.interfaceName : undefined; resourceInputs["interfaceNameVariable"] = state ? state.interfaceNameVariable : undefined; resourceInputs["ipMtu"] = state ? state.ipMtu : undefined; resourceInputs["ipMtuVariable"] = state ? state.ipMtuVariable : undefined; resourceInputs["ipv4Address"] = state ? state.ipv4Address : undefined; resourceInputs["ipv4AddressVariable"] = state ? state.ipv4AddressVariable : undefined; resourceInputs["ipv4SubnetMask"] = state ? state.ipv4SubnetMask : undefined; resourceInputs["ipv4SubnetMaskVariable"] = state ? state.ipv4SubnetMaskVariable : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["serviceLanVpnFeatureId"] = state ? state.serviceLanVpnFeatureId : undefined; resourceInputs["shutdown"] = state ? state.shutdown : undefined; resourceInputs["shutdownVariable"] = state ? state.shutdownVariable : undefined; resourceInputs["tcpMss"] = state ? state.tcpMss : undefined; resourceInputs["tcpMssVariable"] = state ? state.tcpMssVariable : undefined; resourceInputs["tunnelDestinationIpv4Address"] = state ? state.tunnelDestinationIpv4Address : undefined; resourceInputs["tunnelDestinationIpv4AddressVariable"] = state ? state.tunnelDestinationIpv4AddressVariable : undefined; resourceInputs["tunnelRouteViaLoopback"] = state ? state.tunnelRouteViaLoopback : undefined; resourceInputs["tunnelRouteViaLoopbackVariable"] = state ? state.tunnelRouteViaLoopbackVariable : undefined; resourceInputs["tunnelSourceInterface"] = state ? state.tunnelSourceInterface : undefined; resourceInputs["tunnelSourceInterfaceLoopback"] = state ? state.tunnelSourceInterfaceLoopback : undefined; resourceInputs["tunnelSourceInterfaceLoopbackVariable"] = state ? state.tunnelSourceInterfaceLoopbackVariable : undefined; resourceInputs["tunnelSourceInterfaceVariable"] = state ? state.tunnelSourceInterfaceVariable : undefined; resourceInputs["tunnelSourceIpv4Address"] = state ? state.tunnelSourceIpv4Address : undefined; resourceInputs["tunnelSourceIpv4AddressVariable"] = state ? state.tunnelSourceIpv4AddressVariable : undefined; resourceInputs["version"] = state ? state.version : undefined; } else { const args = argsOrState; if ((!args || args.featureProfileId === undefined) && !opts.urn) { throw new Error("Missing required property 'featureProfileId'"); } if ((!args || args.serviceLanVpnFeatureId === undefined) && !opts.urn) { throw new Error("Missing required property 'serviceLanVpnFeatureId'"); } resourceInputs["applicationTunnelType"] = args ? args.applicationTunnelType : undefined; resourceInputs["applicationTunnelTypeVariable"] = args ? args.applicationTunnelTypeVariable : undefined; resourceInputs["clearDontFragment"] = args ? args.clearDontFragment : undefined; resourceInputs["clearDontFragmentVariable"] = args ? args.clearDontFragmentVariable : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["featureProfileId"] = args ? args.featureProfileId : undefined; resourceInputs["interfaceDescription"] = args ? args.interfaceDescription : undefined; resourceInputs["interfaceDescriptionVariable"] = args ? args.interfaceDescriptionVariable : undefined; resourceInputs["interfaceName"] = args ? args.interfaceName : undefined; resourceInputs["interfaceNameVariable"] = args ? args.interfaceNameVariable : undefined; resourceInputs["ipMtu"] = args ? args.ipMtu : undefined; resourceInputs["ipMtuVariable"] = args ? args.ipMtuVariable : undefined; resourceInputs["ipv4Address"] = args ? args.ipv4Address : undefined; resourceInputs["ipv4AddressVariable"] = args ? args.ipv4AddressVariable : undefined; resourceInputs["ipv4SubnetMask"] = args ? args.ipv4SubnetMask : undefined; resourceInputs["ipv4SubnetMaskVariable"] = args ? args.ipv4SubnetMaskVariable : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["serviceLanVpnFeatureId"] = args ? args.serviceLanVpnFeatureId : undefined; resourceInputs["shutdown"] = args ? args.shutdown : undefined; resourceInputs["shutdownVariable"] = args ? args.shutdownVariable : undefined; resourceInputs["tcpMss"] = args ? args.tcpMss : undefined; resourceInputs["tcpMssVariable"] = args ? args.tcpMssVariable : undefined; resourceInputs["tunnelDestinationIpv4Address"] = args ? args.tunnelDestinationIpv4Address : undefined; resourceInputs["tunnelDestinationIpv4AddressVariable"] = args ? args.tunnelDestinationIpv4AddressVariable : undefined; resourceInputs["tunnelRouteViaLoopback"] = args ? args.tunnelRouteViaLoopback : undefined; resourceInputs["tunnelRouteViaLoopbackVariable"] = args ? args.tunnelRouteViaLoopbackVariable : undefined; resourceInputs["tunnelSourceInterface"] = args ? args.tunnelSourceInterface : undefined; resourceInputs["tunnelSourceInterfaceLoopback"] = args ? args.tunnelSourceInterfaceLoopback : undefined; resourceInputs["tunnelSourceInterfaceLoopbackVariable"] = args ? args.tunnelSourceInterfaceLoopbackVariable : undefined; resourceInputs["tunnelSourceInterfaceVariable"] = args ? args.tunnelSourceInterfaceVariable : undefined; resourceInputs["tunnelSourceIpv4Address"] = args ? args.tunnelSourceIpv4Address : undefined; resourceInputs["tunnelSourceIpv4AddressVariable"] = args ? args.tunnelSourceIpv4AddressVariable : undefined; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ServiceLanVpnInterfaceGreFeature.__pulumiType, name, resourceInputs, opts); } } exports.ServiceLanVpnInterfaceGreFeature = ServiceLanVpnInterfaceGreFeature; /** @internal */ ServiceLanVpnInterfaceGreFeature.__pulumiType = 'sdwan:index/serviceLanVpnInterfaceGreFeature:ServiceLanVpnInterfaceGreFeature'; //# sourceMappingURL=serviceLanVpnInterfaceGreFeature.js.map