UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

118 lines 5.21 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.CertificateProfile = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * CertificateProfile resource * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * const scmCp1 = new scm.CertificateProfile("scm_cp_1", { * folder: "Shared", * name: "scm_cp_1", * domain: "test", * useCrl: true, * useOcsp: true, * blockUnknownCert: true, * blockTimeoutCert: true, * blockUnauthenticatedCert: true, * blockExpiredCert: true, * crlReceiveTimeout: "5", * ocspReceiveTimeout: "5", * certStatusTimeout: "5", * caCertificates: [{ * name: "Forward-Trust-CA", * defaultOcspUrl: "http://test.com", * ocspVerifyCert: "Forward-Trust-CA-ECDSA", * templateName: "something", * }], * usernameField: { * subject: "common-name", * }, * }); * ``` */ class CertificateProfile extends pulumi.CustomResource { /** * Get an existing CertificateProfile 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 CertificateProfile(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of CertificateProfile. 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'] === CertificateProfile.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["blockExpiredCert"] = state?.blockExpiredCert; resourceInputs["blockTimeoutCert"] = state?.blockTimeoutCert; resourceInputs["blockUnauthenticatedCert"] = state?.blockUnauthenticatedCert; resourceInputs["blockUnknownCert"] = state?.blockUnknownCert; resourceInputs["caCertificates"] = state?.caCertificates; resourceInputs["certStatusTimeout"] = state?.certStatusTimeout; resourceInputs["crlReceiveTimeout"] = state?.crlReceiveTimeout; resourceInputs["device"] = state?.device; resourceInputs["domain"] = state?.domain; resourceInputs["folder"] = state?.folder; resourceInputs["name"] = state?.name; resourceInputs["ocspReceiveTimeout"] = state?.ocspReceiveTimeout; resourceInputs["snippet"] = state?.snippet; resourceInputs["tfid"] = state?.tfid; resourceInputs["useCrl"] = state?.useCrl; resourceInputs["useOcsp"] = state?.useOcsp; resourceInputs["usernameField"] = state?.usernameField; } else { const args = argsOrState; if (args?.caCertificates === undefined && !opts.urn) { throw new Error("Missing required property 'caCertificates'"); } resourceInputs["blockExpiredCert"] = args?.blockExpiredCert; resourceInputs["blockTimeoutCert"] = args?.blockTimeoutCert; resourceInputs["blockUnauthenticatedCert"] = args?.blockUnauthenticatedCert; resourceInputs["blockUnknownCert"] = args?.blockUnknownCert; resourceInputs["caCertificates"] = args?.caCertificates; resourceInputs["certStatusTimeout"] = args?.certStatusTimeout; resourceInputs["crlReceiveTimeout"] = args?.crlReceiveTimeout; resourceInputs["device"] = args?.device; resourceInputs["domain"] = args?.domain; resourceInputs["folder"] = args?.folder; resourceInputs["name"] = args?.name; resourceInputs["ocspReceiveTimeout"] = args?.ocspReceiveTimeout; resourceInputs["snippet"] = args?.snippet; resourceInputs["useCrl"] = args?.useCrl; resourceInputs["useOcsp"] = args?.useOcsp; resourceInputs["usernameField"] = args?.usernameField; resourceInputs["tfid"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(CertificateProfile.__pulumiType, name, resourceInputs, opts); } } exports.CertificateProfile = CertificateProfile; /** @internal */ CertificateProfile.__pulumiType = 'scm:index/certificateProfile:CertificateProfile'; //# sourceMappingURL=certificateProfile.js.map