UNPKG

@pulumi/harness

Version:

A Pulumi package for creating and managing Harness resources.

144 lines 7.28 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.InfrastructureV2 = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing Harness Chaos Infrastructure V2. * * ## Import * * The `pulumi import` command can be used, for example: * * Import Project level Chaos Infrastructure v2 * * ```sh * $ pulumi import harness:chaos/infrastructureV2:InfrastructureV2 example <org_id>/<project_id>/<environment_id>/<infra_id> * ``` */ class InfrastructureV2 extends pulumi.CustomResource { /** * Get an existing InfrastructureV2 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 InfrastructureV2(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of InfrastructureV2. 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'] === InfrastructureV2.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["aiEnabled"] = state?.aiEnabled; resourceInputs["annotation"] = state?.annotation; resourceInputs["containers"] = state?.containers; resourceInputs["correlationId"] = state?.correlationId; resourceInputs["createdAt"] = state?.createdAt; resourceInputs["description"] = state?.description; resourceInputs["discoveryAgentId"] = state?.discoveryAgentId; resourceInputs["environmentId"] = state?.environmentId; resourceInputs["envs"] = state?.envs; resourceInputs["identifiers"] = state?.identifiers; resourceInputs["identity"] = state?.identity; resourceInputs["imageRegistries"] = state?.imageRegistries; resourceInputs["infraId"] = state?.infraId; resourceInputs["infraNamespace"] = state?.infraNamespace; resourceInputs["infraScope"] = state?.infraScope; resourceInputs["infraType"] = state?.infraType; resourceInputs["insecureSkipVerify"] = state?.insecureSkipVerify; resourceInputs["installCommand"] = state?.installCommand; resourceInputs["k8sConnectorId"] = state?.k8sConnectorId; resourceInputs["label"] = state?.label; resourceInputs["mtls"] = state?.mtls; resourceInputs["name"] = state?.name; resourceInputs["namespace"] = state?.namespace; resourceInputs["nodeSelector"] = state?.nodeSelector; resourceInputs["orgId"] = state?.orgId; resourceInputs["projectId"] = state?.projectId; resourceInputs["proxy"] = state?.proxy; resourceInputs["runAsGroup"] = state?.runAsGroup; resourceInputs["runAsUser"] = state?.runAsUser; resourceInputs["serviceAccount"] = state?.serviceAccount; resourceInputs["status"] = state?.status; resourceInputs["tags"] = state?.tags; resourceInputs["tolerations"] = state?.tolerations; resourceInputs["updatedAt"] = state?.updatedAt; resourceInputs["volumeMounts"] = state?.volumeMounts; resourceInputs["volumes"] = state?.volumes; } else { const args = argsOrState; if (args?.environmentId === undefined && !opts.urn) { throw new Error("Missing required property 'environmentId'"); } if (args?.infraId === undefined && !opts.urn) { throw new Error("Missing required property 'infraId'"); } if (args?.orgId === undefined && !opts.urn) { throw new Error("Missing required property 'orgId'"); } if (args?.projectId === undefined && !opts.urn) { throw new Error("Missing required property 'projectId'"); } resourceInputs["aiEnabled"] = args?.aiEnabled; resourceInputs["annotation"] = args?.annotation; resourceInputs["containers"] = args?.containers; resourceInputs["correlationId"] = args?.correlationId; resourceInputs["description"] = args?.description; resourceInputs["discoveryAgentId"] = args?.discoveryAgentId; resourceInputs["environmentId"] = args?.environmentId; resourceInputs["envs"] = args?.envs; resourceInputs["imageRegistries"] = args?.imageRegistries; resourceInputs["infraId"] = args?.infraId; resourceInputs["infraScope"] = args?.infraScope; resourceInputs["infraType"] = args?.infraType; resourceInputs["insecureSkipVerify"] = args?.insecureSkipVerify; resourceInputs["label"] = args?.label; resourceInputs["mtls"] = args?.mtls; resourceInputs["name"] = args?.name; resourceInputs["namespace"] = args?.namespace; resourceInputs["nodeSelector"] = args?.nodeSelector; resourceInputs["orgId"] = args?.orgId; resourceInputs["projectId"] = args?.projectId; resourceInputs["proxy"] = args?.proxy; resourceInputs["runAsGroup"] = args?.runAsGroup; resourceInputs["runAsUser"] = args?.runAsUser; resourceInputs["serviceAccount"] = args?.serviceAccount; resourceInputs["tags"] = args?.tags; resourceInputs["tolerations"] = args?.tolerations; resourceInputs["volumeMounts"] = args?.volumeMounts; resourceInputs["volumes"] = args?.volumes; resourceInputs["createdAt"] = undefined /*out*/; resourceInputs["identifiers"] = undefined /*out*/; resourceInputs["identity"] = undefined /*out*/; resourceInputs["infraNamespace"] = undefined /*out*/; resourceInputs["installCommand"] = undefined /*out*/; resourceInputs["k8sConnectorId"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; resourceInputs["updatedAt"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(InfrastructureV2.__pulumiType, name, resourceInputs, opts); } } exports.InfrastructureV2 = InfrastructureV2; /** @internal */ InfrastructureV2.__pulumiType = 'harness:chaos/infrastructureV2:InfrastructureV2'; //# sourceMappingURL=infrastructureV2.js.map