@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
112 lines • 5.82 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.Ocsp = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `f5bigip.sys.Ocsp` Manages F5 BIG-IP OCSP responder using iControl REST.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
*
* const test_ocsp = new f5bigip.sys.Ocsp("test-ocsp", {
* name: "/Uncommon/test-ocsp",
* proxyServerPool: "/Common/test-poolxyz",
* signerKey: "/Common/le-ssl",
* signerCert: "/Common/le-ssl",
* passphrase: "testabcdef",
* });
* ```
*
* ## Importing
*
* An existing OCSP can be imported into this resource by supplying the full path name ex : `/partition/name`
* An example is below:
* ```sh
* $ terraform import bigip_sys_ocsp.test-ocsp /Common/test-ocsp
* ```
*/
class Ocsp extends pulumi.CustomResource {
/**
* Get an existing Ocsp 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 Ocsp(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of Ocsp. 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'] === Ocsp.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["cacheErrorTimeout"] = state ? state.cacheErrorTimeout : undefined;
resourceInputs["cacheTimeout"] = state ? state.cacheTimeout : undefined;
resourceInputs["clockSkew"] = state ? state.clockSkew : undefined;
resourceInputs["concurrentConnectionsLimit"] = state ? state.concurrentConnectionsLimit : undefined;
resourceInputs["connectionTimeout"] = state ? state.connectionTimeout : undefined;
resourceInputs["dnsResolver"] = state ? state.dnsResolver : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["passphrase"] = state ? state.passphrase : undefined;
resourceInputs["proxyServerPool"] = state ? state.proxyServerPool : undefined;
resourceInputs["responderUrl"] = state ? state.responderUrl : undefined;
resourceInputs["routeDomain"] = state ? state.routeDomain : undefined;
resourceInputs["signHash"] = state ? state.signHash : undefined;
resourceInputs["signerCert"] = state ? state.signerCert : undefined;
resourceInputs["signerKey"] = state ? state.signerKey : undefined;
resourceInputs["statusAge"] = state ? state.statusAge : undefined;
resourceInputs["strictRespCertCheck"] = state ? state.strictRespCertCheck : undefined;
resourceInputs["trustedResponders"] = state ? state.trustedResponders : undefined;
}
else {
const args = argsOrState;
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["cacheErrorTimeout"] = args ? args.cacheErrorTimeout : undefined;
resourceInputs["cacheTimeout"] = args ? args.cacheTimeout : undefined;
resourceInputs["clockSkew"] = args ? args.clockSkew : undefined;
resourceInputs["concurrentConnectionsLimit"] = args ? args.concurrentConnectionsLimit : undefined;
resourceInputs["connectionTimeout"] = args ? args.connectionTimeout : undefined;
resourceInputs["dnsResolver"] = args ? args.dnsResolver : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["passphrase"] = (args === null || args === void 0 ? void 0 : args.passphrase) ? pulumi.secret(args.passphrase) : undefined;
resourceInputs["proxyServerPool"] = args ? args.proxyServerPool : undefined;
resourceInputs["responderUrl"] = args ? args.responderUrl : undefined;
resourceInputs["routeDomain"] = args ? args.routeDomain : undefined;
resourceInputs["signHash"] = args ? args.signHash : undefined;
resourceInputs["signerCert"] = args ? args.signerCert : undefined;
resourceInputs["signerKey"] = args ? args.signerKey : undefined;
resourceInputs["statusAge"] = args ? args.statusAge : undefined;
resourceInputs["strictRespCertCheck"] = args ? args.strictRespCertCheck : undefined;
resourceInputs["trustedResponders"] = args ? args.trustedResponders : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["passphrase"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(Ocsp.__pulumiType, name, resourceInputs, opts);
}
}
exports.Ocsp = Ocsp;
/** @internal */
Ocsp.__pulumiType = 'f5bigip:sys/ocsp:Ocsp';
//# sourceMappingURL=ocsp.js.map