@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
108 lines • 6.63 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.SecurityPolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Security Policy .
*
* ## 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, Object.assign(Object.assign({}, 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 ? state.auditTrail : undefined;
resourceInputs["definitions"] = state ? state.definitions : undefined;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["directInternetApplications"] = state ? state.directInternetApplications : undefined;
resourceInputs["failureMode"] = state ? state.failureMode : undefined;
resourceInputs["highSpeedLoggingServerIp"] = state ? state.highSpeedLoggingServerIp : undefined;
resourceInputs["highSpeedLoggingServerPort"] = state ? state.highSpeedLoggingServerPort : undefined;
resourceInputs["highSpeedLoggingServerSourceInterface"] = state ? state.highSpeedLoggingServerSourceInterface : undefined;
resourceInputs["highSpeedLoggingVpn"] = state ? state.highSpeedLoggingVpn : undefined;
resourceInputs["imcpUnreachableAllow"] = state ? state.imcpUnreachableAllow : undefined;
resourceInputs["loggings"] = state ? state.loggings : undefined;
resourceInputs["matchStatisticsPerFilter"] = state ? state.matchStatisticsPerFilter : undefined;
resourceInputs["maxIncompleteIcmpLimit"] = state ? state.maxIncompleteIcmpLimit : undefined;
resourceInputs["maxIncompleteTcpLimit"] = state ? state.maxIncompleteTcpLimit : undefined;
resourceInputs["maxIncompleteUdpLimit"] = state ? state.maxIncompleteUdpLimit : undefined;
resourceInputs["mode"] = state ? state.mode : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["sessionReclassifyAllow"] = state ? state.sessionReclassifyAllow : undefined;
resourceInputs["tcpSynFloodLimit"] = state ? state.tcpSynFloodLimit : undefined;
resourceInputs["unifiedLogging"] = state ? state.unifiedLogging : undefined;
resourceInputs["useCase"] = state ? state.useCase : undefined;
resourceInputs["version"] = state ? state.version : undefined;
}
else {
const args = argsOrState;
if ((!args || args.definitions === undefined) && !opts.urn) {
throw new Error("Missing required property 'definitions'");
}
if ((!args || args.description === undefined) && !opts.urn) {
throw new Error("Missing required property 'description'");
}
resourceInputs["auditTrail"] = args ? args.auditTrail : undefined;
resourceInputs["definitions"] = args ? args.definitions : undefined;
resourceInputs["description"] = args ? args.description : undefined;
resourceInputs["directInternetApplications"] = args ? args.directInternetApplications : undefined;
resourceInputs["failureMode"] = args ? args.failureMode : undefined;
resourceInputs["highSpeedLoggingServerIp"] = args ? args.highSpeedLoggingServerIp : undefined;
resourceInputs["highSpeedLoggingServerPort"] = args ? args.highSpeedLoggingServerPort : undefined;
resourceInputs["highSpeedLoggingServerSourceInterface"] = args ? args.highSpeedLoggingServerSourceInterface : undefined;
resourceInputs["highSpeedLoggingVpn"] = args ? args.highSpeedLoggingVpn : undefined;
resourceInputs["imcpUnreachableAllow"] = args ? args.imcpUnreachableAllow : undefined;
resourceInputs["loggings"] = args ? args.loggings : undefined;
resourceInputs["matchStatisticsPerFilter"] = args ? args.matchStatisticsPerFilter : undefined;
resourceInputs["maxIncompleteIcmpLimit"] = args ? args.maxIncompleteIcmpLimit : undefined;
resourceInputs["maxIncompleteTcpLimit"] = args ? args.maxIncompleteTcpLimit : undefined;
resourceInputs["maxIncompleteUdpLimit"] = args ? args.maxIncompleteUdpLimit : undefined;
resourceInputs["mode"] = args ? args.mode : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["sessionReclassifyAllow"] = args ? args.sessionReclassifyAllow : undefined;
resourceInputs["tcpSynFloodLimit"] = args ? args.tcpSynFloodLimit : undefined;
resourceInputs["unifiedLogging"] = args ? args.unifiedLogging : undefined;
resourceInputs["useCase"] = args ? args.useCase : undefined;
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