@pulumi/sdwan
Version:
A Pulumi package for managing resources on Cisco Catalyst SD-WAN.. Based on terraform-provider-sdwan: version v0.4.1
154 lines • 8 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.PolicyObjectUnifiedTlsSslDecryption = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This resource can manage a Policy Object Unified TLS SSL Decryption Policy_object.
* - Minimum SD-WAN Manager version: `20.12.0`
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as sdwan from "@pulumi/sdwan";
*
* const example = new sdwan.PolicyObjectUnifiedTlsSslDecryption("example", {
* name: "Example",
* description: "My Example",
* featureProfileId: "f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac",
* expiredCertificate: "drop",
* untrustedCertificate: "drop",
* certificateRevocationStatus: "none",
* unsupportedProtocolVersions: "drop",
* unsupportedCipherSuites: "drop",
* failureMode: "close",
* defaultCaCertificateBundle: true,
* rsaKeypairModules: "2048",
* ecKeyType: "P256",
* certificateLifetime: "1",
* minimalTlsVer: "TLSv1",
* });
* ```
*
* ## Import
*
* The `pulumi import` command can be used, for example:
*
* Expected import identifier with the format: "policy_object_unified_tls_ssl_decryption_id,feature_profile_id"
*
* ```sh
* $ pulumi import sdwan:index/policyObjectUnifiedTlsSslDecryption:PolicyObjectUnifiedTlsSslDecryption example "f6b2c44c-693c-4763-b010-895aa3d236bd,f6dd22c8-0b4f-496c-9a0b-6813d1f8b8ac"
* ```
*/
class PolicyObjectUnifiedTlsSslDecryption extends pulumi.CustomResource {
/**
* Get an existing PolicyObjectUnifiedTlsSslDecryption 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 PolicyObjectUnifiedTlsSslDecryption(name, state, { ...opts, id: id });
}
/**
* Returns true if the given object is an instance of PolicyObjectUnifiedTlsSslDecryption. 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'] === PolicyObjectUnifiedTlsSslDecryption.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["bundleString"] = state?.bundleString;
resourceInputs["certificateLifetime"] = state?.certificateLifetime;
resourceInputs["certificateRevocationStatus"] = state?.certificateRevocationStatus;
resourceInputs["defaultCaCertificateBundle"] = state?.defaultCaCertificateBundle;
resourceInputs["description"] = state?.description;
resourceInputs["ecKeyType"] = state?.ecKeyType;
resourceInputs["expiredCertificate"] = state?.expiredCertificate;
resourceInputs["failureMode"] = state?.failureMode;
resourceInputs["featureProfileId"] = state?.featureProfileId;
resourceInputs["fileName"] = state?.fileName;
resourceInputs["minimalTlsVer"] = state?.minimalTlsVer;
resourceInputs["name"] = state?.name;
resourceInputs["rsaKeypairModules"] = state?.rsaKeypairModules;
resourceInputs["unknownRevocationStatus"] = state?.unknownRevocationStatus;
resourceInputs["unsupportedCipherSuites"] = state?.unsupportedCipherSuites;
resourceInputs["unsupportedProtocolVersions"] = state?.unsupportedProtocolVersions;
resourceInputs["untrustedCertificate"] = state?.untrustedCertificate;
resourceInputs["version"] = state?.version;
}
else {
const args = argsOrState;
if (args?.certificateLifetime === undefined && !opts.urn) {
throw new Error("Missing required property 'certificateLifetime'");
}
if (args?.certificateRevocationStatus === undefined && !opts.urn) {
throw new Error("Missing required property 'certificateRevocationStatus'");
}
if (args?.ecKeyType === undefined && !opts.urn) {
throw new Error("Missing required property 'ecKeyType'");
}
if (args?.expiredCertificate === undefined && !opts.urn) {
throw new Error("Missing required property 'expiredCertificate'");
}
if (args?.failureMode === undefined && !opts.urn) {
throw new Error("Missing required property 'failureMode'");
}
if (args?.featureProfileId === undefined && !opts.urn) {
throw new Error("Missing required property 'featureProfileId'");
}
if (args?.minimalTlsVer === undefined && !opts.urn) {
throw new Error("Missing required property 'minimalTlsVer'");
}
if (args?.rsaKeypairModules === undefined && !opts.urn) {
throw new Error("Missing required property 'rsaKeypairModules'");
}
if (args?.unsupportedCipherSuites === undefined && !opts.urn) {
throw new Error("Missing required property 'unsupportedCipherSuites'");
}
if (args?.unsupportedProtocolVersions === undefined && !opts.urn) {
throw new Error("Missing required property 'unsupportedProtocolVersions'");
}
if (args?.untrustedCertificate === undefined && !opts.urn) {
throw new Error("Missing required property 'untrustedCertificate'");
}
resourceInputs["bundleString"] = args?.bundleString;
resourceInputs["certificateLifetime"] = args?.certificateLifetime;
resourceInputs["certificateRevocationStatus"] = args?.certificateRevocationStatus;
resourceInputs["defaultCaCertificateBundle"] = args?.defaultCaCertificateBundle;
resourceInputs["description"] = args?.description;
resourceInputs["ecKeyType"] = args?.ecKeyType;
resourceInputs["expiredCertificate"] = args?.expiredCertificate;
resourceInputs["failureMode"] = args?.failureMode;
resourceInputs["featureProfileId"] = args?.featureProfileId;
resourceInputs["fileName"] = args?.fileName;
resourceInputs["minimalTlsVer"] = args?.minimalTlsVer;
resourceInputs["name"] = args?.name;
resourceInputs["rsaKeypairModules"] = args?.rsaKeypairModules;
resourceInputs["unknownRevocationStatus"] = args?.unknownRevocationStatus;
resourceInputs["unsupportedCipherSuites"] = args?.unsupportedCipherSuites;
resourceInputs["unsupportedProtocolVersions"] = args?.unsupportedProtocolVersions;
resourceInputs["untrustedCertificate"] = args?.untrustedCertificate;
resourceInputs["version"] = undefined /*out*/;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(PolicyObjectUnifiedTlsSslDecryption.__pulumiType, name, resourceInputs, opts);
}
}
exports.PolicyObjectUnifiedTlsSslDecryption = PolicyObjectUnifiedTlsSslDecryption;
/** @internal */
PolicyObjectUnifiedTlsSslDecryption.__pulumiType = 'sdwan:index/policyObjectUnifiedTlsSslDecryption:PolicyObjectUnifiedTlsSslDecryption';
//# sourceMappingURL=policyObjectUnifiedTlsSslDecryption.js.map