@maienm/pulumi-prowlarr
Version:
A Pulumi package for creating and managing Prowlarr resources. Based on terraform-provider-prowlarr: version v2.3.0
152 lines (151 loc) • 4.1 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* <!-- subcategory:Applications -->Application Whisparr resource.
* For more information refer to [Application](https://wiki.servarr.com/prowlarr/settings#applications) and [Whisparr](https://wiki.servarr.com/prowlarr/supported#whisparr).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as prowlarr from "@maienm/pulumi-prowlarr";
*
* const example = new prowlarr.applications.Whisparr("example", {
* apiKey: "APIKey",
* baseUrl: "http://localhost:6969",
* prowlarrUrl: "http://localhost:9696",
* syncCategories: [
* 6000,
* 6010,
* 6030,
* ],
* syncLevel: "addOnly",
* });
* ```
*
* ## Import
*
* import using the API/UI ID
*
* ```sh
* $ pulumi import prowlarr:Applications/whisparr:Whisparr example 1
* ```
*/
export declare class Whisparr extends pulumi.CustomResource {
/**
* Get an existing Whisparr 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?: WhisparrState, opts?: pulumi.CustomResourceOptions): Whisparr;
/**
* Returns true if the given object is an instance of Whisparr. 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 Whisparr;
/**
* API key.
*/
readonly apiKey: pulumi.Output<string>;
/**
* Base URL.
*/
readonly baseUrl: pulumi.Output<string>;
/**
* Application name.
*/
readonly name: pulumi.Output<string>;
/**
* Prowlarr URL.
*/
readonly prowlarrUrl: pulumi.Output<string>;
/**
* Sync categories.
*/
readonly syncCategories: pulumi.Output<number[]>;
/**
* Sync level.
*/
readonly syncLevel: pulumi.Output<string>;
/**
* List of associated tags.
*/
readonly tags: pulumi.Output<number[]>;
/**
* Create a Whisparr 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: WhisparrArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Whisparr resources.
*/
export interface WhisparrState {
/**
* API key.
*/
apiKey?: pulumi.Input<string>;
/**
* Base URL.
*/
baseUrl?: pulumi.Input<string>;
/**
* Application name.
*/
name?: pulumi.Input<string>;
/**
* Prowlarr URL.
*/
prowlarrUrl?: pulumi.Input<string>;
/**
* Sync categories.
*/
syncCategories?: pulumi.Input<pulumi.Input<number>[]>;
/**
* Sync level.
*/
syncLevel?: pulumi.Input<string>;
/**
* List of associated tags.
*/
tags?: pulumi.Input<pulumi.Input<number>[]>;
}
/**
* The set of arguments for constructing a Whisparr resource.
*/
export interface WhisparrArgs {
/**
* API key.
*/
apiKey: pulumi.Input<string>;
/**
* Base URL.
*/
baseUrl: pulumi.Input<string>;
/**
* Application name.
*/
name?: pulumi.Input<string>;
/**
* Prowlarr URL.
*/
prowlarrUrl: pulumi.Input<string>;
/**
* Sync categories.
*/
syncCategories?: pulumi.Input<pulumi.Input<number>[]>;
/**
* Sync level.
*/
syncLevel: pulumi.Input<string>;
/**
* List of associated tags.
*/
tags?: pulumi.Input<pulumi.Input<number>[]>;
}