@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
173 lines • 7.34 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.CiscoSecureInternetGatewayFeatureTemplate = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Cisco Secure Internet Gateway 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.CiscoSecureInternetGatewayFeatureTemplate("example", {
* name: "Example",
* description: "My Example",
* deviceTypes: ["vedge-C8000V"],
* vpnId: 1,
* interfaces: [{
* name: "ipsec1",
* autoTunnelMode: true,
* shutdown: true,
* description: "My Description",
* ipUnnumbered: false,
* ipv4Address: "1.2.3.4/24",
* tunnelSource: "3.3.3.3",
* tunnelSourceInterface: "ge0/1",
* tunnelRouteVia: "ge0/2",
* tunnelDestination: "3.4.5.6",
* application: "sig",
* sigProvider: "secure-internet-gateway-umbrella",
* tunnelDcPreference: "primary-dc",
* tcpMss: 1400,
* mtu: 1500,
* deadPeerDetectionInterval: 30,
* deadPeerDetectionRetries: 5,
* ikeVersion: 1,
* ikePreSharedKey: "A1234567",
* ikeRekeyInterval: 600,
* ikeCiphersuite: "aes256-cbc-sha2",
* ikeGroup: "14",
* ikePreSharedKeyDynamic: false,
* ikePreSharedKeyLocalId: "1.2.3.4",
* ikePreSharedKeyRemoteId: "2.3.4.5",
* ipsecRekeyInterval: 7200,
* ipsecReplayWindow: 1024,
* ipsecCiphersuite: "aes256-cbc-sha1",
* ipsecPerfectForwardSecrecy: "group-14",
* tracker: "test",
* trackEnable: false,
* tunnelPublicIp: "5.5.5.5",
* }],
* services: [{
* serviceType: "sig",
* interfacePairs: [{
* activeInterface: "e1",
* backupInterface: "e2",
* activeInterfaceWeight: 10,
* backupInterfaceWeight: 20,
* }],
* zscalerAuthenticationRequired: true,
* zscalerXffForward: true,
* zscalerFirewallEnabled: true,
* zscalerIpsControlEnabled: true,
* zscalerCautionEnabled: true,
* zscalerPrimaryDataCenter: "Auto",
* zscalerSecondaryDataCenter: "Auto",
* zscalerSurrogateIp: true,
* zscalerSurrogateIdleTime: 100,
* zscalerSurrogateDisplayTimeUnit: "MINUTE",
* zscalerSurrogateIpEnforceForKnownBrowsers: true,
* zscalerSurrogateRefreshTime: 12345,
* zscalerSurrogateRefreshTimeUnit: "MINUTE",
* zscalerAupEnabled: true,
* zscalerAupBlockInternetUntilAccepted: true,
* zscalerAupForceSslInspection: true,
* zscalerAupTimeout: 60,
* zscalerLocationName: "LOC1",
* umbrellaPrimaryDataCenter: "Auto",
* umbrellaSecondaryDataCenter: "Auto",
* }],
* trackerSourceIp: "2.3.4.5",
* trackers: [{
* trackerType: "SIG",
* name: "TRACKER1",
* endpointApiUrl: "https://1.1.1.1",
* threshold: 500,
* interval: 60,
* multiplier: 4,
* }],
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* ```sh
* $ pulumi import sdwan:index/ciscoSecureInternetGatewayFeatureTemplate:CiscoSecureInternetGatewayFeatureTemplate example "f6b2c44c-693c-4763-b010-895aa3d236bd"
* ```
*/
class CiscoSecureInternetGatewayFeatureTemplate extends pulumi.CustomResource {
/**
* Get an existing CiscoSecureInternetGatewayFeatureTemplate 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 CiscoSecureInternetGatewayFeatureTemplate(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of CiscoSecureInternetGatewayFeatureTemplate. 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'] === CiscoSecureInternetGatewayFeatureTemplate.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["description"] = state?.description;
resourceInputs["deviceTypes"] = state?.deviceTypes;
resourceInputs["interfaces"] = state?.interfaces;
resourceInputs["name"] = state?.name;
resourceInputs["services"] = state?.services;
resourceInputs["templateType"] = state?.templateType;
resourceInputs["trackerSourceIp"] = state?.trackerSourceIp;
resourceInputs["trackerSourceIpVariable"] = state?.trackerSourceIpVariable;
resourceInputs["trackers"] = state?.trackers;
resourceInputs["version"] = state?.version;
resourceInputs["vpnId"] = state?.vpnId;
}
else {
const args = argsOrState;
if (args?.description === undefined && !opts.urn) {
throw new Error("Missing required property 'description'");
}
if (args?.deviceTypes === undefined && !opts.urn) {
throw new Error("Missing required property 'deviceTypes'");
}
resourceInputs["description"] = args?.description;
resourceInputs["deviceTypes"] = args?.deviceTypes;
resourceInputs["interfaces"] = args?.interfaces;
resourceInputs["name"] = args?.name;
resourceInputs["services"] = args?.services;
resourceInputs["trackerSourceIp"] = args?.trackerSourceIp;
resourceInputs["trackerSourceIpVariable"] = args?.trackerSourceIpVariable;
resourceInputs["trackers"] = args?.trackers;
resourceInputs["vpnId"] = args?.vpnId;
resourceInputs["templateType"] = undefined /*out*/;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(CiscoSecureInternetGatewayFeatureTemplate.__pulumiType, name, resourceInputs, opts);
}
}
exports.CiscoSecureInternetGatewayFeatureTemplate = CiscoSecureInternetGatewayFeatureTemplate;
/** @internal */
CiscoSecureInternetGatewayFeatureTemplate.__pulumiType = 'sdwan:index/ciscoSecureInternetGatewayFeatureTemplate:CiscoSecureInternetGatewayFeatureTemplate';
//# sourceMappingURL=ciscoSecureInternetGatewayFeatureTemplate.js.map