UNPKG

@maienm/pulumi-lidarr

Version:

A Pulumi package for creating and managing Lidarr resources. Based on terraform-provider-lidarr: version v1.11.0

87 lines 3.67 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.RemotePathMapping = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * <!-- subcategory:Download Clients -->Remote Path Mapping resource. * For more information refer to [Remote Path Mapping](https://wiki.servarr.com/lidarr/settings#remote-path-mappings) documentation. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as lidarr from "@maienm/pulumi-lidarr"; * * const example = new lidarr.downloadclients.RemotePathMapping("example", { * host: "www.transmission.com", * localPath: "/transmission-download/", * remotePath: "/download/", * }); * ``` * * ## Import * * import using the API/UI ID * * ```sh * $ pulumi import lidarr:DownloadClients/remotePathMapping:RemotePathMapping example 10 * ``` */ class RemotePathMapping extends pulumi.CustomResource { /** * Get an existing RemotePathMapping 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 RemotePathMapping(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of RemotePathMapping. 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'] === RemotePathMapping.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["host"] = state ? state.host : undefined; resourceInputs["localPath"] = state ? state.localPath : undefined; resourceInputs["remotePath"] = state ? state.remotePath : undefined; } else { const args = argsOrState; if ((!args || args.host === undefined) && !opts.urn) { throw new Error("Missing required property 'host'"); } if ((!args || args.localPath === undefined) && !opts.urn) { throw new Error("Missing required property 'localPath'"); } if ((!args || args.remotePath === undefined) && !opts.urn) { throw new Error("Missing required property 'remotePath'"); } resourceInputs["host"] = args ? args.host : undefined; resourceInputs["localPath"] = args ? args.localPath : undefined; resourceInputs["remotePath"] = args ? args.remotePath : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(RemotePathMapping.__pulumiType, name, resourceInputs, opts); } } exports.RemotePathMapping = RemotePathMapping; /** @internal */ RemotePathMapping.__pulumiType = 'lidarr:DownloadClients/remotePathMapping:RemotePathMapping'; //# sourceMappingURL=remotePathMapping.js.map