@maienm/pulumi-prowlarr
Version:
A Pulumi package for creating and managing Prowlarr resources. Based on terraform-provider-prowlarr: version v2.3.0
157 lines (156 loc) • 4.62 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* <!-- subcategory:Download Clients -->Download Client Torrent Blackhole resource.
* For more information refer to [Download Client](https://wiki.servarr.com/prowlarr/settings#download-clients) and [TorrentBlackhole](https://wiki.servarr.com/prowlarr/supported#torrentblackhole).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as prowlarr from "@maienm/pulumi-prowlarr";
*
* const example = new prowlarr.downloadclients.TorrentBlackhole("example", {
* enable: true,
* magnetFileExtension: ".magnet",
* priority: 1,
* torrentFolder: "/torrent/",
* });
* ```
*
* ## Import
*
* import using the API/UI ID
*
* ```sh
* $ pulumi import prowlarr:DownloadClients/torrentBlackhole:TorrentBlackhole example 1
* ```
*/
export declare class TorrentBlackhole extends pulumi.CustomResource {
/**
* Get an existing TorrentBlackhole 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: string, id: pulumi.Input<pulumi.ID>, state?: TorrentBlackholeState, opts?: pulumi.CustomResourceOptions): TorrentBlackhole;
/**
* Returns true if the given object is an instance of TorrentBlackhole. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is TorrentBlackhole;
/**
* List of categories.
*/
readonly categories: pulumi.Output<outputs.DownloadClients.TorrentBlackholeCategory[]>;
/**
* Enable flag.
*/
readonly enable: pulumi.Output<boolean>;
/**
* Magnet file extension.
*/
readonly magnetFileExtension: pulumi.Output<string>;
/**
* Name of client category.
*/
readonly name: pulumi.Output<string>;
/**
* Priority.
*/
readonly priority: pulumi.Output<number>;
/**
* Save magnet files flag.
*/
readonly saveMagnetFiles: pulumi.Output<boolean>;
/**
* List of associated tags.
*/
readonly tags: pulumi.Output<number[]>;
/**
* Torrent folder.
*/
readonly torrentFolder: pulumi.Output<string>;
/**
* Create a TorrentBlackhole 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: string, args: TorrentBlackholeArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering TorrentBlackhole resources.
*/
export interface TorrentBlackholeState {
/**
* List of categories.
*/
categories?: pulumi.Input<pulumi.Input<inputs.DownloadClients.TorrentBlackholeCategory>[]>;
/**
* Enable flag.
*/
enable?: pulumi.Input<boolean>;
/**
* Magnet file extension.
*/
magnetFileExtension?: pulumi.Input<string>;
/**
* Name of client category.
*/
name?: pulumi.Input<string>;
/**
* Priority.
*/
priority?: pulumi.Input<number>;
/**
* Save magnet files flag.
*/
saveMagnetFiles?: pulumi.Input<boolean>;
/**
* List of associated tags.
*/
tags?: pulumi.Input<pulumi.Input<number>[]>;
/**
* Torrent folder.
*/
torrentFolder?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a TorrentBlackhole resource.
*/
export interface TorrentBlackholeArgs {
/**
* Enable flag.
*/
enable?: pulumi.Input<boolean>;
/**
* Magnet file extension.
*/
magnetFileExtension?: pulumi.Input<string>;
/**
* Name of client category.
*/
name?: pulumi.Input<string>;
/**
* Priority.
*/
priority?: pulumi.Input<number>;
/**
* Save magnet files flag.
*/
saveMagnetFiles?: pulumi.Input<boolean>;
/**
* List of associated tags.
*/
tags?: pulumi.Input<pulumi.Input<number>[]>;
/**
* Torrent folder.
*/
torrentFolder: pulumi.Input<string>;
}