UNPKG

@runpod-infra/pulumi

Version:

--- title: Runpod meta_desc: Provides an overview of the Runpod Provider for Pulumi. layout: package ---

126 lines 7.08 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.Pod = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); class Pod extends pulumi.CustomResource { /** * Create a Pod resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { if ((!args || args.gpuCount === undefined) && !opts.urn) { throw new Error("Missing required property 'gpuCount'"); } if ((!args || args.gpuTypeId === undefined) && !opts.urn) { throw new Error("Missing required property 'gpuTypeId'"); } if ((!args || args.imageName === undefined) && !opts.urn) { throw new Error("Missing required property 'imageName'"); } resourceInputs["aiApiId"] = args ? args.aiApiId : undefined; resourceInputs["cloudType"] = args ? args.cloudType : undefined; resourceInputs["containerDiskInGb"] = args ? args.containerDiskInGb : undefined; resourceInputs["countryCode"] = args ? args.countryCode : undefined; resourceInputs["cudaVersion"] = args ? args.cudaVersion : undefined; resourceInputs["dataCenterId"] = args ? args.dataCenterId : undefined; resourceInputs["deployCost"] = args ? args.deployCost : undefined; resourceInputs["dockerArgs"] = args ? args.dockerArgs : undefined; resourceInputs["env"] = args ? args.env : undefined; resourceInputs["gpuCount"] = args ? args.gpuCount : undefined; resourceInputs["gpuTypeId"] = args ? args.gpuTypeId : undefined; resourceInputs["gpuTypeIdList"] = args ? args.gpuTypeIdList : undefined; resourceInputs["imageName"] = args ? args.imageName : undefined; resourceInputs["minDisk"] = args ? args.minDisk : undefined; resourceInputs["minDownload"] = args ? args.minDownload : undefined; resourceInputs["minMemoryInGb"] = args ? args.minMemoryInGb : undefined; resourceInputs["minUpload"] = args ? args.minUpload : undefined; resourceInputs["minVcpuCount"] = args ? args.minVcpuCount : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["networkVolumeId"] = args ? args.networkVolumeId : undefined; resourceInputs["port"] = args ? args.port : undefined; resourceInputs["ports"] = args ? args.ports : undefined; resourceInputs["savingsPlan"] = args ? args.savingsPlan : undefined; resourceInputs["startJupyter"] = args ? args.startJupyter : undefined; resourceInputs["startSsh"] = args ? args.startSsh : undefined; resourceInputs["stopAfter"] = args ? args.stopAfter : undefined; resourceInputs["supportPublicIp"] = args ? args.supportPublicIp : undefined; resourceInputs["templateId"] = args ? args.templateId : undefined; resourceInputs["terminateAfter"] = args ? args.terminateAfter : undefined; resourceInputs["volumeInGb"] = args ? args.volumeInGb : undefined; resourceInputs["volumeKey"] = args ? args.volumeKey : undefined; resourceInputs["volumeMountPath"] = args ? args.volumeMountPath : undefined; resourceInputs["pod"] = undefined /*out*/; } else { resourceInputs["aiApiId"] = undefined /*out*/; resourceInputs["cloudType"] = undefined /*out*/; resourceInputs["containerDiskInGb"] = undefined /*out*/; resourceInputs["countryCode"] = undefined /*out*/; resourceInputs["cudaVersion"] = undefined /*out*/; resourceInputs["dataCenterId"] = undefined /*out*/; resourceInputs["deployCost"] = undefined /*out*/; resourceInputs["dockerArgs"] = undefined /*out*/; resourceInputs["env"] = undefined /*out*/; resourceInputs["gpuCount"] = undefined /*out*/; resourceInputs["gpuTypeId"] = undefined /*out*/; resourceInputs["gpuTypeIdList"] = undefined /*out*/; resourceInputs["imageName"] = undefined /*out*/; resourceInputs["minDisk"] = undefined /*out*/; resourceInputs["minDownload"] = undefined /*out*/; resourceInputs["minMemoryInGb"] = undefined /*out*/; resourceInputs["minUpload"] = undefined /*out*/; resourceInputs["minVcpuCount"] = undefined /*out*/; resourceInputs["name"] = undefined /*out*/; resourceInputs["networkVolumeId"] = undefined /*out*/; resourceInputs["pod"] = undefined /*out*/; resourceInputs["port"] = undefined /*out*/; resourceInputs["ports"] = undefined /*out*/; resourceInputs["savingsPlan"] = undefined /*out*/; resourceInputs["startJupyter"] = undefined /*out*/; resourceInputs["startSsh"] = undefined /*out*/; resourceInputs["stopAfter"] = undefined /*out*/; resourceInputs["supportPublicIp"] = undefined /*out*/; resourceInputs["templateId"] = undefined /*out*/; resourceInputs["terminateAfter"] = undefined /*out*/; resourceInputs["volumeInGb"] = undefined /*out*/; resourceInputs["volumeKey"] = undefined /*out*/; resourceInputs["volumeMountPath"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Pod.__pulumiType, name, resourceInputs, opts); } /** * Get an existing Pod 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, opts) { return new Pod(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Pod. 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'] === Pod.__pulumiType; } } exports.Pod = Pod; /** @internal */ Pod.__pulumiType = 'runpod:index:Pod'; //# sourceMappingURL=pod.js.map