UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

93 lines 3.65 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.SecretSshkey = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for creating an ssh key type secret. * * ## Import * * The `pulumi import` command can be used, for example: * * Import account level secret sshkey * * ```sh * $ pulumi import harness:platform/secretSshkey:SecretSshkey example <secret_sshkey_id> * ``` * * Import org level secret sshkey * * ```sh * $ pulumi import harness:platform/secretSshkey:SecretSshkey example <ord_id>/<secret_sshkey_id> * ``` * * Import project level secret sshkey * * ```sh * $ pulumi import harness:platform/secretSshkey:SecretSshkey example <org_id>/<project_id>/<secret_sshkey_id> * ``` */ class SecretSshkey extends pulumi.CustomResource { /** * Get an existing SecretSshkey 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 SecretSshkey(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of SecretSshkey. 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'] === SecretSshkey.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["description"] = state?.description; resourceInputs["identifier"] = state?.identifier; resourceInputs["kerberos"] = state?.kerberos; resourceInputs["name"] = state?.name; resourceInputs["orgId"] = state?.orgId; resourceInputs["port"] = state?.port; resourceInputs["projectId"] = state?.projectId; resourceInputs["ssh"] = state?.ssh; resourceInputs["tags"] = state?.tags; } else { const args = argsOrState; if (args?.identifier === undefined && !opts.urn) { throw new Error("Missing required property 'identifier'"); } resourceInputs["description"] = args?.description; resourceInputs["identifier"] = args?.identifier; resourceInputs["kerberos"] = args?.kerberos; resourceInputs["name"] = args?.name; resourceInputs["orgId"] = args?.orgId; resourceInputs["port"] = args?.port; resourceInputs["projectId"] = args?.projectId; resourceInputs["ssh"] = args?.ssh; resourceInputs["tags"] = args?.tags; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SecretSshkey.__pulumiType, name, resourceInputs, opts); } } exports.SecretSshkey = SecretSshkey; /** @internal */ SecretSshkey.__pulumiType = 'harness:platform/secretSshkey:SecretSshkey'; //# sourceMappingURL=secretSshkey.js.map