UNPKG

@pulumi/sdwan

Version:

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

131 lines 6.37 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.SecurityPolicy = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a Security Policy . * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.SecurityPolicy("example", { * name: "Example", * description: "Example", * mode: "security", * useCase: "custom", * definitions: [{ * id: "7d299c34-981c-4fb3-9167-6be44ab1691f", * type: "urlFiltering", * }], * failureMode: "close", * loggings: [{ * externalSyslogServerIp: "10.0.0.1", * externalSyslogServerVpn: "123", * }], * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/securityPolicy:SecurityPolicy example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class SecurityPolicy extends pulumi.CustomResource { /** * Get an existing SecurityPolicy 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 SecurityPolicy(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of SecurityPolicy. 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'] === SecurityPolicy.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["auditTrail"] = state?.auditTrail; resourceInputs["definitions"] = state?.definitions; resourceInputs["description"] = state?.description; resourceInputs["directInternetApplications"] = state?.directInternetApplications; resourceInputs["failureMode"] = state?.failureMode; resourceInputs["highSpeedLoggingServerIp"] = state?.highSpeedLoggingServerIp; resourceInputs["highSpeedLoggingServerPort"] = state?.highSpeedLoggingServerPort; resourceInputs["highSpeedLoggingServerSourceInterface"] = state?.highSpeedLoggingServerSourceInterface; resourceInputs["highSpeedLoggingVpn"] = state?.highSpeedLoggingVpn; resourceInputs["imcpUnreachableAllow"] = state?.imcpUnreachableAllow; resourceInputs["loggings"] = state?.loggings; resourceInputs["matchStatisticsPerFilter"] = state?.matchStatisticsPerFilter; resourceInputs["maxIncompleteIcmpLimit"] = state?.maxIncompleteIcmpLimit; resourceInputs["maxIncompleteTcpLimit"] = state?.maxIncompleteTcpLimit; resourceInputs["maxIncompleteUdpLimit"] = state?.maxIncompleteUdpLimit; resourceInputs["mode"] = state?.mode; resourceInputs["name"] = state?.name; resourceInputs["sessionReclassifyAllow"] = state?.sessionReclassifyAllow; resourceInputs["tcpSynFloodLimit"] = state?.tcpSynFloodLimit; resourceInputs["unifiedLogging"] = state?.unifiedLogging; resourceInputs["useCase"] = state?.useCase; resourceInputs["version"] = state?.version; } else { const args = argsOrState; if (args?.definitions === undefined && !opts.urn) { throw new Error("Missing required property 'definitions'"); } if (args?.description === undefined && !opts.urn) { throw new Error("Missing required property 'description'"); } resourceInputs["auditTrail"] = args?.auditTrail; resourceInputs["definitions"] = args?.definitions; resourceInputs["description"] = args?.description; resourceInputs["directInternetApplications"] = args?.directInternetApplications; resourceInputs["failureMode"] = args?.failureMode; resourceInputs["highSpeedLoggingServerIp"] = args?.highSpeedLoggingServerIp; resourceInputs["highSpeedLoggingServerPort"] = args?.highSpeedLoggingServerPort; resourceInputs["highSpeedLoggingServerSourceInterface"] = args?.highSpeedLoggingServerSourceInterface; resourceInputs["highSpeedLoggingVpn"] = args?.highSpeedLoggingVpn; resourceInputs["imcpUnreachableAllow"] = args?.imcpUnreachableAllow; resourceInputs["loggings"] = args?.loggings; resourceInputs["matchStatisticsPerFilter"] = args?.matchStatisticsPerFilter; resourceInputs["maxIncompleteIcmpLimit"] = args?.maxIncompleteIcmpLimit; resourceInputs["maxIncompleteTcpLimit"] = args?.maxIncompleteTcpLimit; resourceInputs["maxIncompleteUdpLimit"] = args?.maxIncompleteUdpLimit; resourceInputs["mode"] = args?.mode; resourceInputs["name"] = args?.name; resourceInputs["sessionReclassifyAllow"] = args?.sessionReclassifyAllow; resourceInputs["tcpSynFloodLimit"] = args?.tcpSynFloodLimit; resourceInputs["unifiedLogging"] = args?.unifiedLogging; resourceInputs["useCase"] = args?.useCase; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SecurityPolicy.__pulumiType, name, resourceInputs, opts); } } exports.SecurityPolicy = SecurityPolicy; /** @internal */ SecurityPolicy.__pulumiType = 'sdwan:index/securityPolicy:SecurityPolicy'; //# sourceMappingURL=securityPolicy.js.map