UNPKG

@pulumi/sdwan

Version:

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

241 lines 17.6 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.ServiceLanVpnInterfaceIpsecFeature = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Service LAN VPN Interface IPSec 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.ServiceLanVpnInterfaceIpsecFeature("example", { * name: "Example", * description: "My Example", * featureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac", * serviceLanVpnFeatureId: "140331f6-5418-4755-a059-13c77eb96037", * interfaceName: "ipsec987", * shutdown: true, * interfaceDescription: "ipsec987", * ipv4Address: "9.7.5.4", * ipv4SubnetMask: "255.255.255.0", * tunnelSourceIpv4Address: "1.3.5.88", * tunnelSourceIpv4SubnetMask: "255.255.255.0", * tunnelSourceInterface: "GigabitEthernet8", * tunnelDestinationIpv4Address: "2.55.67.99", * tunnelDestinationIpv4SubnetMask: "255.255.255.0", * applicationTunnelType: "none", * tcpMss: 1460, * clearDontFragment: false, * ipMtu: 1500, * dpdInterval: 10, * dpdRetries: 3, * ikePresharedKey: "123", * ikeVersion: 1, * ikeIntegrityProtocol: "main", * ikeRekeyInterval: 14400, * ikeCiphersuite: "aes256-cbc-sha1", * ikeDiffieHellmanGroup: "16", * ikeIdLocalEndPoint: "xxx", * ikeIdRemoteEndPoint: "xxx", * ipsecRekeyInterval: 3600, * ipsecReplayWindow: 512, * ipsecCiphersuite: "aes256-gcm", * perfectForwardSecrecy: "group-16", * tunnelRouteVia: "2222", * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * Expected import identifier with the format: "service_lan_vpn_interface_ipsec_feature_id,feature_profile_id,service_lan_vpn_feature_id" * * ```sh * $ pulumi import sdwan:index/serviceLanVpnInterfaceIpsecFeature:ServiceLanVpnInterfaceIpsecFeature example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac,140331f6-5418-4755-a059-13c77eb96037" * ``` */ class ServiceLanVpnInterfaceIpsecFeature extends pulumi.CustomResource { /** * Get an existing ServiceLanVpnInterfaceIpsecFeature 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 ServiceLanVpnInterfaceIpsecFeature(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ServiceLanVpnInterfaceIpsecFeature. 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'] === ServiceLanVpnInterfaceIpsecFeature.__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["dpdInterval"] = state ? state.dpdInterval : undefined; resourceInputs["dpdIntervalVariable"] = state ? state.dpdIntervalVariable : undefined; resourceInputs["dpdRetries"] = state ? state.dpdRetries : undefined; resourceInputs["dpdRetriesVariable"] = state ? state.dpdRetriesVariable : undefined; resourceInputs["featureProfileId"] = state ? state.featureProfileId : undefined; resourceInputs["ikeCiphersuite"] = state ? state.ikeCiphersuite : undefined; resourceInputs["ikeCiphersuiteVariable"] = state ? state.ikeCiphersuiteVariable : undefined; resourceInputs["ikeDiffieHellmanGroup"] = state ? state.ikeDiffieHellmanGroup : undefined; resourceInputs["ikeDiffieHellmanGroupVariable"] = state ? state.ikeDiffieHellmanGroupVariable : undefined; resourceInputs["ikeIdLocalEndPoint"] = state ? state.ikeIdLocalEndPoint : undefined; resourceInputs["ikeIdLocalEndPointVariable"] = state ? state.ikeIdLocalEndPointVariable : undefined; resourceInputs["ikeIdRemoteEndPoint"] = state ? state.ikeIdRemoteEndPoint : undefined; resourceInputs["ikeIdRemoteEndPointVariable"] = state ? state.ikeIdRemoteEndPointVariable : undefined; resourceInputs["ikeIntegrityProtocol"] = state ? state.ikeIntegrityProtocol : undefined; resourceInputs["ikeIntegrityProtocolVariable"] = state ? state.ikeIntegrityProtocolVariable : undefined; resourceInputs["ikePresharedKey"] = state ? state.ikePresharedKey : undefined; resourceInputs["ikePresharedKeyVariable"] = state ? state.ikePresharedKeyVariable : undefined; resourceInputs["ikeRekeyInterval"] = state ? state.ikeRekeyInterval : undefined; resourceInputs["ikeRekeyIntervalVariable"] = state ? state.ikeRekeyIntervalVariable : undefined; resourceInputs["ikeVersion"] = state ? state.ikeVersion : 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["ipsecCiphersuite"] = state ? state.ipsecCiphersuite : undefined; resourceInputs["ipsecCiphersuiteVariable"] = state ? state.ipsecCiphersuiteVariable : undefined; resourceInputs["ipsecRekeyInterval"] = state ? state.ipsecRekeyInterval : undefined; resourceInputs["ipsecRekeyIntervalVariable"] = state ? state.ipsecRekeyIntervalVariable : undefined; resourceInputs["ipsecReplayWindow"] = state ? state.ipsecReplayWindow : undefined; resourceInputs["ipsecReplayWindowVariable"] = state ? state.ipsecReplayWindowVariable : 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["perfectForwardSecrecy"] = state ? state.perfectForwardSecrecy : undefined; resourceInputs["perfectForwardSecrecyVariable"] = state ? state.perfectForwardSecrecyVariable : 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["trackerId"] = state ? state.trackerId : undefined; resourceInputs["trackerIdVariable"] = state ? state.trackerIdVariable : undefined; resourceInputs["tunnelDestinationIpv4Address"] = state ? state.tunnelDestinationIpv4Address : undefined; resourceInputs["tunnelDestinationIpv4AddressVariable"] = state ? state.tunnelDestinationIpv4AddressVariable : undefined; resourceInputs["tunnelDestinationIpv4SubnetMask"] = state ? state.tunnelDestinationIpv4SubnetMask : undefined; resourceInputs["tunnelDestinationIpv4SubnetMaskVariable"] = state ? state.tunnelDestinationIpv4SubnetMaskVariable : undefined; resourceInputs["tunnelRouteVia"] = state ? state.tunnelRouteVia : undefined; resourceInputs["tunnelRouteViaVariable"] = state ? state.tunnelRouteViaVariable : undefined; resourceInputs["tunnelSourceInterface"] = state ? state.tunnelSourceInterface : undefined; resourceInputs["tunnelSourceInterfaceVariable"] = state ? state.tunnelSourceInterfaceVariable : undefined; resourceInputs["tunnelSourceIpv4Address"] = state ? state.tunnelSourceIpv4Address : undefined; resourceInputs["tunnelSourceIpv4AddressVariable"] = state ? state.tunnelSourceIpv4AddressVariable : undefined; resourceInputs["tunnelSourceIpv4SubnetMask"] = state ? state.tunnelSourceIpv4SubnetMask : undefined; resourceInputs["tunnelSourceIpv4SubnetMaskVariable"] = state ? state.tunnelSourceIpv4SubnetMaskVariable : 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'"); } if ((!args || args.tunnelDestinationIpv4SubnetMask === undefined) && !opts.urn) { throw new Error("Missing required property 'tunnelDestinationIpv4SubnetMask'"); } 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["dpdInterval"] = args ? args.dpdInterval : undefined; resourceInputs["dpdIntervalVariable"] = args ? args.dpdIntervalVariable : undefined; resourceInputs["dpdRetries"] = args ? args.dpdRetries : undefined; resourceInputs["dpdRetriesVariable"] = args ? args.dpdRetriesVariable : undefined; resourceInputs["featureProfileId"] = args ? args.featureProfileId : undefined; resourceInputs["ikeCiphersuite"] = args ? args.ikeCiphersuite : undefined; resourceInputs["ikeCiphersuiteVariable"] = args ? args.ikeCiphersuiteVariable : undefined; resourceInputs["ikeDiffieHellmanGroup"] = args ? args.ikeDiffieHellmanGroup : undefined; resourceInputs["ikeDiffieHellmanGroupVariable"] = args ? args.ikeDiffieHellmanGroupVariable : undefined; resourceInputs["ikeIdLocalEndPoint"] = args ? args.ikeIdLocalEndPoint : undefined; resourceInputs["ikeIdLocalEndPointVariable"] = args ? args.ikeIdLocalEndPointVariable : undefined; resourceInputs["ikeIdRemoteEndPoint"] = args ? args.ikeIdRemoteEndPoint : undefined; resourceInputs["ikeIdRemoteEndPointVariable"] = args ? args.ikeIdRemoteEndPointVariable : undefined; resourceInputs["ikeIntegrityProtocol"] = args ? args.ikeIntegrityProtocol : undefined; resourceInputs["ikeIntegrityProtocolVariable"] = args ? args.ikeIntegrityProtocolVariable : undefined; resourceInputs["ikePresharedKey"] = args ? args.ikePresharedKey : undefined; resourceInputs["ikePresharedKeyVariable"] = args ? args.ikePresharedKeyVariable : undefined; resourceInputs["ikeRekeyInterval"] = args ? args.ikeRekeyInterval : undefined; resourceInputs["ikeRekeyIntervalVariable"] = args ? args.ikeRekeyIntervalVariable : undefined; resourceInputs["ikeVersion"] = args ? args.ikeVersion : 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["ipsecCiphersuite"] = args ? args.ipsecCiphersuite : undefined; resourceInputs["ipsecCiphersuiteVariable"] = args ? args.ipsecCiphersuiteVariable : undefined; resourceInputs["ipsecRekeyInterval"] = args ? args.ipsecRekeyInterval : undefined; resourceInputs["ipsecRekeyIntervalVariable"] = args ? args.ipsecRekeyIntervalVariable : undefined; resourceInputs["ipsecReplayWindow"] = args ? args.ipsecReplayWindow : undefined; resourceInputs["ipsecReplayWindowVariable"] = args ? args.ipsecReplayWindowVariable : 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["perfectForwardSecrecy"] = args ? args.perfectForwardSecrecy : undefined; resourceInputs["perfectForwardSecrecyVariable"] = args ? args.perfectForwardSecrecyVariable : 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["trackerId"] = args ? args.trackerId : undefined; resourceInputs["trackerIdVariable"] = args ? args.trackerIdVariable : undefined; resourceInputs["tunnelDestinationIpv4Address"] = args ? args.tunnelDestinationIpv4Address : undefined; resourceInputs["tunnelDestinationIpv4AddressVariable"] = args ? args.tunnelDestinationIpv4AddressVariable : undefined; resourceInputs["tunnelDestinationIpv4SubnetMask"] = args ? args.tunnelDestinationIpv4SubnetMask : undefined; resourceInputs["tunnelDestinationIpv4SubnetMaskVariable"] = args ? args.tunnelDestinationIpv4SubnetMaskVariable : undefined; resourceInputs["tunnelRouteVia"] = args ? args.tunnelRouteVia : undefined; resourceInputs["tunnelRouteViaVariable"] = args ? args.tunnelRouteViaVariable : undefined; resourceInputs["tunnelSourceInterface"] = args ? args.tunnelSourceInterface : undefined; resourceInputs["tunnelSourceInterfaceVariable"] = args ? args.tunnelSourceInterfaceVariable : undefined; resourceInputs["tunnelSourceIpv4Address"] = args ? args.tunnelSourceIpv4Address : undefined; resourceInputs["tunnelSourceIpv4AddressVariable"] = args ? args.tunnelSourceIpv4AddressVariable : undefined; resourceInputs["tunnelSourceIpv4SubnetMask"] = args ? args.tunnelSourceIpv4SubnetMask : undefined; resourceInputs["tunnelSourceIpv4SubnetMaskVariable"] = args ? args.tunnelSourceIpv4SubnetMaskVariable : undefined; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ServiceLanVpnInterfaceIpsecFeature.__pulumiType, name, resourceInputs, opts); } } exports.ServiceLanVpnInterfaceIpsecFeature = ServiceLanVpnInterfaceIpsecFeature; /** @internal */ ServiceLanVpnInterfaceIpsecFeature.__pulumiType = 'sdwan:index/serviceLanVpnInterfaceIpsecFeature:ServiceLanVpnInterfaceIpsecFeature'; //# sourceMappingURL=serviceLanVpnInterfaceIpsecFeature.js.map