@pulumi/f5bigip
Version:
A Pulumi package for creating and managing F5 BigIP resources.
182 lines • 12 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.ProfileServerSsl = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* `f5bigip.ltm.ProfileServerSsl` Manages server SSL profiles on a BIG-IP
*
* Resources should be named with their "full path". The full path is the combination of the partition + name (example: /Common/my-pool ) or partition + directory + name of the resource (example: /Common/test/my-pool )
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as f5bigip from "@pulumi/f5bigip";
*
* const test_ServerSsl = new f5bigip.ltm.ProfileServerSsl("test-ServerSsl", {
* name: "/Common/test-ServerSsl",
* defaultsFrom: "/Common/serverssl",
* authenticate: "always",
* ciphers: "DEFAULT",
* });
* ```
*
* ## Importing
*
* An existing server-ssl profile can be imported into this resource by supplying server-ssl profile Name in `full path` as `id`.
* An example is below:
* ```sh
* $ terraform import bigip_ltm_profile_server_ssl.test-ServerSsl-import /Common/test-ServerSsl
*
* ```
*/
class ProfileServerSsl extends pulumi.CustomResource {
/**
* Get an existing ProfileServerSsl 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 ProfileServerSsl(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of ProfileServerSsl. 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'] === ProfileServerSsl.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["alertTimeout"] = state ? state.alertTimeout : undefined;
resourceInputs["authenticate"] = state ? state.authenticate : undefined;
resourceInputs["authenticateDepth"] = state ? state.authenticateDepth : undefined;
resourceInputs["c3dCaCert"] = state ? state.c3dCaCert : undefined;
resourceInputs["c3dCaKey"] = state ? state.c3dCaKey : undefined;
resourceInputs["c3dCaPassphrase"] = state ? state.c3dCaPassphrase : undefined;
resourceInputs["c3dCertExtensionCustomOids"] = state ? state.c3dCertExtensionCustomOids : undefined;
resourceInputs["c3dCertExtensionIncludes"] = state ? state.c3dCertExtensionIncludes : undefined;
resourceInputs["c3dCertLifespan"] = state ? state.c3dCertLifespan : undefined;
resourceInputs["c3dCertificateExtensions"] = state ? state.c3dCertificateExtensions : undefined;
resourceInputs["caFile"] = state ? state.caFile : undefined;
resourceInputs["cacheSize"] = state ? state.cacheSize : undefined;
resourceInputs["cacheTimeout"] = state ? state.cacheTimeout : undefined;
resourceInputs["cert"] = state ? state.cert : undefined;
resourceInputs["chain"] = state ? state.chain : undefined;
resourceInputs["cipherGroup"] = state ? state.cipherGroup : undefined;
resourceInputs["ciphers"] = state ? state.ciphers : undefined;
resourceInputs["defaultsFrom"] = state ? state.defaultsFrom : undefined;
resourceInputs["expireCertResponseControl"] = state ? state.expireCertResponseControl : undefined;
resourceInputs["fullPath"] = state ? state.fullPath : undefined;
resourceInputs["generation"] = state ? state.generation : undefined;
resourceInputs["genericAlert"] = state ? state.genericAlert : undefined;
resourceInputs["handshakeTimeout"] = state ? state.handshakeTimeout : undefined;
resourceInputs["key"] = state ? state.key : undefined;
resourceInputs["modSslMethods"] = state ? state.modSslMethods : undefined;
resourceInputs["mode"] = state ? state.mode : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["partition"] = state ? state.partition : undefined;
resourceInputs["passphrase"] = state ? state.passphrase : undefined;
resourceInputs["peerCertMode"] = state ? state.peerCertMode : undefined;
resourceInputs["proxyCaCert"] = state ? state.proxyCaCert : undefined;
resourceInputs["proxyCaKey"] = state ? state.proxyCaKey : undefined;
resourceInputs["proxySsl"] = state ? state.proxySsl : undefined;
resourceInputs["renegotiatePeriod"] = state ? state.renegotiatePeriod : undefined;
resourceInputs["renegotiateSize"] = state ? state.renegotiateSize : undefined;
resourceInputs["renegotiation"] = state ? state.renegotiation : undefined;
resourceInputs["retainCertificate"] = state ? state.retainCertificate : undefined;
resourceInputs["secureRenegotiation"] = state ? state.secureRenegotiation : undefined;
resourceInputs["serverName"] = state ? state.serverName : undefined;
resourceInputs["sessionMirroring"] = state ? state.sessionMirroring : undefined;
resourceInputs["sessionTicket"] = state ? state.sessionTicket : undefined;
resourceInputs["sniDefault"] = state ? state.sniDefault : undefined;
resourceInputs["sniRequire"] = state ? state.sniRequire : undefined;
resourceInputs["sslC3d"] = state ? state.sslC3d : undefined;
resourceInputs["sslForwardProxy"] = state ? state.sslForwardProxy : undefined;
resourceInputs["sslForwardProxyBypass"] = state ? state.sslForwardProxyBypass : undefined;
resourceInputs["sslSignHash"] = state ? state.sslSignHash : undefined;
resourceInputs["strictResume"] = state ? state.strictResume : undefined;
resourceInputs["tmOptions"] = state ? state.tmOptions : undefined;
resourceInputs["uncleanShutdown"] = state ? state.uncleanShutdown : undefined;
resourceInputs["untrustedCertResponseControl"] = state ? state.untrustedCertResponseControl : undefined;
}
else {
const args = argsOrState;
if ((!args || args.name === undefined) && !opts.urn) {
throw new Error("Missing required property 'name'");
}
resourceInputs["alertTimeout"] = args ? args.alertTimeout : undefined;
resourceInputs["authenticate"] = args ? args.authenticate : undefined;
resourceInputs["authenticateDepth"] = args ? args.authenticateDepth : undefined;
resourceInputs["c3dCaCert"] = args ? args.c3dCaCert : undefined;
resourceInputs["c3dCaKey"] = args ? args.c3dCaKey : undefined;
resourceInputs["c3dCaPassphrase"] = args ? args.c3dCaPassphrase : undefined;
resourceInputs["c3dCertExtensionCustomOids"] = args ? args.c3dCertExtensionCustomOids : undefined;
resourceInputs["c3dCertExtensionIncludes"] = args ? args.c3dCertExtensionIncludes : undefined;
resourceInputs["c3dCertLifespan"] = args ? args.c3dCertLifespan : undefined;
resourceInputs["c3dCertificateExtensions"] = args ? args.c3dCertificateExtensions : undefined;
resourceInputs["caFile"] = args ? args.caFile : undefined;
resourceInputs["cacheSize"] = args ? args.cacheSize : undefined;
resourceInputs["cacheTimeout"] = args ? args.cacheTimeout : undefined;
resourceInputs["cert"] = args ? args.cert : undefined;
resourceInputs["chain"] = args ? args.chain : undefined;
resourceInputs["cipherGroup"] = args ? args.cipherGroup : undefined;
resourceInputs["ciphers"] = args ? args.ciphers : undefined;
resourceInputs["defaultsFrom"] = args ? args.defaultsFrom : undefined;
resourceInputs["expireCertResponseControl"] = args ? args.expireCertResponseControl : undefined;
resourceInputs["fullPath"] = args ? args.fullPath : undefined;
resourceInputs["generation"] = args ? args.generation : undefined;
resourceInputs["genericAlert"] = args ? args.genericAlert : undefined;
resourceInputs["handshakeTimeout"] = args ? args.handshakeTimeout : undefined;
resourceInputs["key"] = args ? args.key : undefined;
resourceInputs["modSslMethods"] = args ? args.modSslMethods : undefined;
resourceInputs["mode"] = args ? args.mode : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["partition"] = args ? args.partition : undefined;
resourceInputs["passphrase"] = (args === null || args === void 0 ? void 0 : args.passphrase) ? pulumi.secret(args.passphrase) : undefined;
resourceInputs["peerCertMode"] = args ? args.peerCertMode : undefined;
resourceInputs["proxyCaCert"] = args ? args.proxyCaCert : undefined;
resourceInputs["proxyCaKey"] = args ? args.proxyCaKey : undefined;
resourceInputs["proxySsl"] = args ? args.proxySsl : undefined;
resourceInputs["renegotiatePeriod"] = args ? args.renegotiatePeriod : undefined;
resourceInputs["renegotiateSize"] = args ? args.renegotiateSize : undefined;
resourceInputs["renegotiation"] = args ? args.renegotiation : undefined;
resourceInputs["retainCertificate"] = args ? args.retainCertificate : undefined;
resourceInputs["secureRenegotiation"] = args ? args.secureRenegotiation : undefined;
resourceInputs["serverName"] = args ? args.serverName : undefined;
resourceInputs["sessionMirroring"] = args ? args.sessionMirroring : undefined;
resourceInputs["sessionTicket"] = args ? args.sessionTicket : undefined;
resourceInputs["sniDefault"] = args ? args.sniDefault : undefined;
resourceInputs["sniRequire"] = args ? args.sniRequire : undefined;
resourceInputs["sslC3d"] = args ? args.sslC3d : undefined;
resourceInputs["sslForwardProxy"] = args ? args.sslForwardProxy : undefined;
resourceInputs["sslForwardProxyBypass"] = args ? args.sslForwardProxyBypass : undefined;
resourceInputs["sslSignHash"] = args ? args.sslSignHash : undefined;
resourceInputs["strictResume"] = args ? args.strictResume : undefined;
resourceInputs["tmOptions"] = args ? args.tmOptions : undefined;
resourceInputs["uncleanShutdown"] = args ? args.uncleanShutdown : undefined;
resourceInputs["untrustedCertResponseControl"] = args ? args.untrustedCertResponseControl : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
const secretOpts = { additionalSecretOutputs: ["passphrase"] };
opts = pulumi.mergeOptions(opts, secretOpts);
super(ProfileServerSsl.__pulumiType, name, resourceInputs, opts);
}
}
exports.ProfileServerSsl = ProfileServerSsl;
/** @internal */
ProfileServerSsl.__pulumiType = 'f5bigip:ltm/profileServerSsl:ProfileServerSsl';
//# sourceMappingURL=profileServerSsl.js.map