UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

91 lines 4.61 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.ConnectorCustomSecretManager = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for creating a Custom Secrets Manager (CSM) connector. */ class ConnectorCustomSecretManager extends pulumi.CustomResource { /** * Get an existing ConnectorCustomSecretManager 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 ConnectorCustomSecretManager(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of ConnectorCustomSecretManager. 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'] === ConnectorCustomSecretManager.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["delegateSelectors"] = state?.delegateSelectors; resourceInputs["description"] = state?.description; resourceInputs["identifier"] = state?.identifier; resourceInputs["name"] = state?.name; resourceInputs["onDelegate"] = state?.onDelegate; resourceInputs["orgId"] = state?.orgId; resourceInputs["projectId"] = state?.projectId; resourceInputs["sshSecretRef"] = state?.sshSecretRef; resourceInputs["tags"] = state?.tags; resourceInputs["targetHost"] = state?.targetHost; resourceInputs["templateInputs"] = state?.templateInputs; resourceInputs["templateRef"] = state?.templateRef; resourceInputs["timeout"] = state?.timeout; resourceInputs["type"] = state?.type; resourceInputs["versionLabel"] = state?.versionLabel; resourceInputs["workingDirectory"] = state?.workingDirectory; } else { const args = argsOrState; if (args?.identifier === undefined && !opts.urn) { throw new Error("Missing required property 'identifier'"); } if (args?.templateRef === undefined && !opts.urn) { throw new Error("Missing required property 'templateRef'"); } if (args?.versionLabel === undefined && !opts.urn) { throw new Error("Missing required property 'versionLabel'"); } resourceInputs["delegateSelectors"] = args?.delegateSelectors; resourceInputs["description"] = args?.description; resourceInputs["identifier"] = args?.identifier; resourceInputs["name"] = args?.name; resourceInputs["onDelegate"] = args?.onDelegate; resourceInputs["orgId"] = args?.orgId; resourceInputs["projectId"] = args?.projectId; resourceInputs["sshSecretRef"] = args?.sshSecretRef; resourceInputs["tags"] = args?.tags; resourceInputs["targetHost"] = args?.targetHost; resourceInputs["templateInputs"] = args?.templateInputs; resourceInputs["templateRef"] = args?.templateRef; resourceInputs["timeout"] = args?.timeout; resourceInputs["type"] = args?.type; resourceInputs["versionLabel"] = args?.versionLabel; resourceInputs["workingDirectory"] = args?.workingDirectory; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ConnectorCustomSecretManager.__pulumiType, name, resourceInputs, opts); } } exports.ConnectorCustomSecretManager = ConnectorCustomSecretManager; /** @internal */ ConnectorCustomSecretManager.__pulumiType = 'harness:platform/connectorCustomSecretManager:ConnectorCustomSecretManager'; //# sourceMappingURL=connectorCustomSecretManager.js.map