@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
221 lines • 15.3 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.CiscoVpnInterfaceIpsecFeatureTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Cisco VPN Interface IPSec feature template.
* - Minimum SD-WAN Manager version: `15.0.0`
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdwan from "@pulumi/sdwan";
*
* const example = new sdwan.CiscoVpnInterfaceIpsecFeatureTemplate("example", {
* name: "Example",
* description: "My Example",
* deviceTypes: ["vedge-C8000V"],
* interfaceName: "ipsec1",
* shutdown: false,
* interfaceDescription: "My Description",
* ipAddress: "1.1.1.1/24",
* tunnelSource: "1.2.3.4",
* tunnelSourceInterface: "e1",
* tunnelDestination: "3.4.5.6",
* application: "sig",
* tcpMssAdjust: 1400,
* clearDontFragment: true,
* mtu: 1500,
* deadPeerDetectionInterval: 100,
* deadPeerDetectionRetries: 4,
* ikeVersion: 2,
* ikeMode: "main",
* ikeRekeyInterval: 20000,
* ikeCiphersuite: "aes256-cbc-sha1",
* ikeGroup: "20",
* ikePreSharedKey: "cisco123",
* ikePreSharedKeyLocalId: "1",
* ikePreSharedKeyRemoteId: "2",
* ipsecRekeyInterval: 7200,
* ipsecReplayWindow: 128,
* ipsecCiphersuite: "aes256-cbc-sha256",
* ipsecPerfectForwardSecrecy: "group-20",
* trackers: ["TRACKER1"],
* tunnelRouteVia: "g0/0",
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import sdwan:index/ciscoVpnInterfaceIpsecFeatureTemplate:CiscoVpnInterfaceIpsecFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd"
* ```
*/
class CiscoVpnInterfaceIpsecFeatureTemplate extends pulumi.CustomResource {
/**
* Get an existing CiscoVpnInterfaceIpsecFeatureTemplate 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 CiscoVpnInterfaceIpsecFeatureTemplate(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of CiscoVpnInterfaceIpsecFeatureTemplate. 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'] === CiscoVpnInterfaceIpsecFeatureTemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["application"] = state ? state.application : undefined;
resourceInputs["applicationVariable"] = state ? state.applicationVariable : undefined;
resourceInputs["clearDontFragment"] = state ? state.clearDontFragment : undefined;
resourceInputs["clearDontFragmentVariable"] = state ? state.clearDontFragmentVariable : undefined;
resourceInputs["deadPeerDetectionInterval"] = state ? state.deadPeerDetectionInterval : undefined;
resourceInputs["deadPeerDetectionIntervalVariable"] = state ? state.deadPeerDetectionIntervalVariable : undefined;
resourceInputs["deadPeerDetectionRetries"] = state ? state.deadPeerDetectionRetries : undefined;
resourceInputs["deadPeerDetectionRetriesVariable"] = state ? state.deadPeerDetectionRetriesVariable : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["deviceTypes"] = state ? state.deviceTypes : undefined;
resourceInputs["ikeCiphersuite"] = state ? state.ikeCiphersuite : undefined;
resourceInputs["ikeCiphersuiteVariable"] = state ? state.ikeCiphersuiteVariable : undefined;
resourceInputs["ikeGroup"] = state ? state.ikeGroup : undefined;
resourceInputs["ikeGroupVariable"] = state ? state.ikeGroupVariable : undefined;
resourceInputs["ikeMode"] = state ? state.ikeMode : undefined;
resourceInputs["ikeModeVariable"] = state ? state.ikeModeVariable : undefined;
resourceInputs["ikePreSharedKey"] = state ? state.ikePreSharedKey : undefined;
resourceInputs["ikePreSharedKeyLocalId"] = state ? state.ikePreSharedKeyLocalId : undefined;
resourceInputs["ikePreSharedKeyLocalIdVariable"] = state ? state.ikePreSharedKeyLocalIdVariable : undefined;
resourceInputs["ikePreSharedKeyRemoteId"] = state ? state.ikePreSharedKeyRemoteId : undefined;
resourceInputs["ikePreSharedKeyRemoteIdVariable"] = state ? state.ikePreSharedKeyRemoteIdVariable : 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["ipAddress"] = state ? state.ipAddress : undefined;
resourceInputs["ipAddressVariable"] = state ? state.ipAddressVariable : undefined;
resourceInputs["ipsecCiphersuite"] = state ? state.ipsecCiphersuite : undefined;
resourceInputs["ipsecCiphersuiteVariable"] = state ? state.ipsecCiphersuiteVariable : undefined;
resourceInputs["ipsecPerfectForwardSecrecy"] = state ? state.ipsecPerfectForwardSecrecy : undefined;
resourceInputs["ipsecPerfectForwardSecrecyVariable"] = state ? state.ipsecPerfectForwardSecrecyVariable : 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["mtu"] = state ? state.mtu : undefined;
resourceInputs["mtuVariable"] = state ? state.mtuVariable : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["shutdown"] = state ? state.shutdown : undefined;
resourceInputs["shutdownVariable"] = state ? state.shutdownVariable : undefined;
resourceInputs["tcpMssAdjust"] = state ? state.tcpMssAdjust : undefined;
resourceInputs["tcpMssAdjustVariable"] = state ? state.tcpMssAdjustVariable : undefined;
resourceInputs["templateType"] = state ? state.templateType : undefined;
resourceInputs["trackerVariable"] = state ? state.trackerVariable : undefined;
resourceInputs["trackers"] = state ? state.trackers : undefined;
resourceInputs["tunnelDestination"] = state ? state.tunnelDestination : undefined;
resourceInputs["tunnelDestinationVariable"] = state ? state.tunnelDestinationVariable : undefined;
resourceInputs["tunnelRouteVia"] = state ? state.tunnelRouteVia : undefined;
resourceInputs["tunnelRouteViaVariable"] = state ? state.tunnelRouteViaVariable : undefined;
resourceInputs["tunnelSource"] = state ? state.tunnelSource : undefined;
resourceInputs["tunnelSourceInterface"] = state ? state.tunnelSourceInterface : undefined;
resourceInputs["tunnelSourceInterfaceVariable"] = state ? state.tunnelSourceInterfaceVariable : undefined;
resourceInputs["tunnelSourceVariable"] = state ? state.tunnelSourceVariable : 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["application"] = args ? args.application : undefined;
resourceInputs["applicationVariable"] = args ? args.applicationVariable : undefined;
resourceInputs["clearDontFragment"] = args ? args.clearDontFragment : undefined;
resourceInputs["clearDontFragmentVariable"] = args ? args.clearDontFragmentVariable : undefined;
resourceInputs["deadPeerDetectionInterval"] = args ? args.deadPeerDetectionInterval : undefined;
resourceInputs["deadPeerDetectionIntervalVariable"] = args ? args.deadPeerDetectionIntervalVariable : undefined;
resourceInputs["deadPeerDetectionRetries"] = args ? args.deadPeerDetectionRetries : undefined;
resourceInputs["deadPeerDetectionRetriesVariable"] = args ? args.deadPeerDetectionRetriesVariable : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["deviceTypes"] = args ? args.deviceTypes : undefined;
resourceInputs["ikeCiphersuite"] = args ? args.ikeCiphersuite : undefined;
resourceInputs["ikeCiphersuiteVariable"] = args ? args.ikeCiphersuiteVariable : undefined;
resourceInputs["ikeGroup"] = args ? args.ikeGroup : undefined;
resourceInputs["ikeGroupVariable"] = args ? args.ikeGroupVariable : undefined;
resourceInputs["ikeMode"] = args ? args.ikeMode : undefined;
resourceInputs["ikeModeVariable"] = args ? args.ikeModeVariable : undefined;
resourceInputs["ikePreSharedKey"] = args ? args.ikePreSharedKey : undefined;
resourceInputs["ikePreSharedKeyLocalId"] = args ? args.ikePreSharedKeyLocalId : undefined;
resourceInputs["ikePreSharedKeyLocalIdVariable"] = args ? args.ikePreSharedKeyLocalIdVariable : undefined;
resourceInputs["ikePreSharedKeyRemoteId"] = args ? args.ikePreSharedKeyRemoteId : undefined;
resourceInputs["ikePreSharedKeyRemoteIdVariable"] = args ? args.ikePreSharedKeyRemoteIdVariable : 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["ipAddress"] = args ? args.ipAddress : undefined;
resourceInputs["ipAddressVariable"] = args ? args.ipAddressVariable : undefined;
resourceInputs["ipsecCiphersuite"] = args ? args.ipsecCiphersuite : undefined;
resourceInputs["ipsecCiphersuiteVariable"] = args ? args.ipsecCiphersuiteVariable : undefined;
resourceInputs["ipsecPerfectForwardSecrecy"] = args ? args.ipsecPerfectForwardSecrecy : undefined;
resourceInputs["ipsecPerfectForwardSecrecyVariable"] = args ? args.ipsecPerfectForwardSecrecyVariable : 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["mtu"] = args ? args.mtu : undefined;
resourceInputs["mtuVariable"] = args ? args.mtuVariable : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["shutdown"] = args ? args.shutdown : undefined;
resourceInputs["shutdownVariable"] = args ? args.shutdownVariable : undefined;
resourceInputs["tcpMssAdjust"] = args ? args.tcpMssAdjust : undefined;
resourceInputs["tcpMssAdjustVariable"] = args ? args.tcpMssAdjustVariable : undefined;
resourceInputs["trackerVariable"] = args ? args.trackerVariable : undefined;
resourceInputs["trackers"] = args ? args.trackers : undefined;
resourceInputs["tunnelDestination"] = args ? args.tunnelDestination : undefined;
resourceInputs["tunnelDestinationVariable"] = args ? args.tunnelDestinationVariable : undefined;
resourceInputs["tunnelRouteVia"] = args ? args.tunnelRouteVia : undefined;
resourceInputs["tunnelRouteViaVariable"] = args ? args.tunnelRouteViaVariable : undefined;
resourceInputs["tunnelSource"] = args ? args.tunnelSource : undefined;
resourceInputs["tunnelSourceInterface"] = args ? args.tunnelSourceInterface : undefined;
resourceInputs["tunnelSourceInterfaceVariable"] = args ? args.tunnelSourceInterfaceVariable : undefined;
resourceInputs["tunnelSourceVariable"] = args ? args.tunnelSourceVariable : undefined;
resourceInputs["templateType"] = undefined /*out*/;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CiscoVpnInterfaceIpsecFeatureTemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.CiscoVpnInterfaceIpsecFeatureTemplate = CiscoVpnInterfaceIpsecFeatureTemplate;
/** @internal */
CiscoVpnInterfaceIpsecFeatureTemplate.__pulumiType = 'sdwan:index/ciscoVpnInterfaceIpsecFeatureTemplate:CiscoVpnInterfaceIpsecFeatureTemplate';
//# sourceMappingURL=ciscoVpnInterfaceIpsecFeatureTemplate.js.map