UNPKG

@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 5.58 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.TlsSslProfilePolicyDefinition = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource can manage a TLS SSL Profile Policy Definition . * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as sdwan from "@pulumi/sdwan"; * * const example = new sdwan.TlsSslProfilePolicyDefinition("example", { * name: "Example", * description: "My description", * mode: "security", * decryptCategories: ["alcohol-and-tobacco"], * neverDecryptCategories: ["auctions"], * skipDecryptCategories: ["cdns"], * decryptThreshold: "high-risk", * reputation: false, * failDecrypt: true, * }); * ``` * * ## Import * * The `pulumi import` command can be used, for example: * * ```sh * $ pulumi import sdwan:index/tlsSslProfilePolicyDefinition:TlsSslProfilePolicyDefinition example "f6b2c44c-693c-4763-b010-895aa3d236bd" * ``` */ class TlsSslProfilePolicyDefinition extends pulumi.CustomResource { /** * Get an existing TlsSslProfilePolicyDefinition 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 TlsSslProfilePolicyDefinition(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of TlsSslProfilePolicyDefinition. 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'] === TlsSslProfilePolicyDefinition.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["allowUrlListId"] = state ? state.allowUrlListId : undefined; resourceInputs["allowUrlListVersion"] = state ? state.allowUrlListVersion : undefined; resourceInputs["blockUrlListId"] = state ? state.blockUrlListId : undefined; resourceInputs["blockUrlListVersion"] = state ? state.blockUrlListVersion : undefined; resourceInputs["decryptCategories"] = state ? state.decryptCategories : undefined; resourceInputs["decryptThreshold"] = state ? state.decryptThreshold : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["failDecrypt"] = state ? state.failDecrypt : undefined; resourceInputs["mode"] = state ? state.mode : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["neverDecryptCategories"] = state ? state.neverDecryptCategories : undefined; resourceInputs["reputation"] = state ? state.reputation : undefined; resourceInputs["skipDecryptCategories"] = state ? state.skipDecryptCategories : 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'"); } resourceInputs["allowUrlListId"] = args ? args.allowUrlListId : undefined; resourceInputs["allowUrlListVersion"] = args ? args.allowUrlListVersion : undefined; resourceInputs["blockUrlListId"] = args ? args.blockUrlListId : undefined; resourceInputs["blockUrlListVersion"] = args ? args.blockUrlListVersion : undefined; resourceInputs["decryptCategories"] = args ? args.decryptCategories : undefined; resourceInputs["decryptThreshold"] = args ? args.decryptThreshold : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["failDecrypt"] = args ? args.failDecrypt : undefined; resourceInputs["mode"] = args ? args.mode : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["neverDecryptCategories"] = args ? args.neverDecryptCategories : undefined; resourceInputs["reputation"] = args ? args.reputation : undefined; resourceInputs["skipDecryptCategories"] = args ? args.skipDecryptCategories : undefined; resourceInputs["version"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(TlsSslProfilePolicyDefinition.__pulumiType, name, resourceInputs, opts); } } exports.TlsSslProfilePolicyDefinition = TlsSslProfilePolicyDefinition; /** @internal */ TlsSslProfilePolicyDefinition.__pulumiType = 'sdwan:index/tlsSslProfilePolicyDefinition:TlsSslProfilePolicyDefinition'; //# sourceMappingURL=tlsSslProfilePolicyDefinition.js.map