@maienm/pulumi-readarr
Version:
A Pulumi package for creating and managing Readarr resources. Based on terraform-provider-readarr: version v2.1.0
392 lines (391 loc) • 9.47 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* <!-- subcategory:Import Lists -->Generic Import List resource. When possible use a specific resource instead.
* For more information refer to [Import List](https://wiki.servarr.com/readarr/settings#import-lists).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as readarr from "@maienm/pulumi-readarr";
*
* const example = new readarr.importlists.ImportList("example", {
* enableAutomaticAdd: false,
* shouldMonitor: "entireAuthor",
* shouldSearch: false,
* listType: "program",
* monitorNewItems: "all",
* rootFolderPath: readarr_root_folder.example.path,
* qualityProfileId: readarr_quality_profile.example.id,
* metadataProfileId: readarr_metadata_profile.example.id,
* implementation: "ReadarrImport",
* configContract: "ReadarrSettings",
* tags: [
* 1,
* 2,
* ],
* tagIds: [
* 1,
* 2,
* ],
* profileIds: [1],
* baseUrl: "http://127.0.0.1:8686",
* apiKey: "APIKey",
* });
* ```
*
* ## Import
*
* import using the API/UI ID
*
* ```sh
* $ pulumi import readarr:ImportLists/importList:ImportList example 1
* ```
*/
export declare class ImportList extends pulumi.CustomResource {
/**
* Get an existing ImportList 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?: ImportListState, opts?: pulumi.CustomResourceOptions): ImportList;
/**
* Returns true if the given object is an instance of ImportList. 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 ImportList;
/**
* Access token.
*/
readonly accessToken: pulumi.Output<string>;
/**
* Access token secret.
*/
readonly accessTokenSecret: pulumi.Output<string>;
/**
* API key.
*/
readonly apiKey: pulumi.Output<string>;
/**
* Base URL.
*/
readonly baseUrl: pulumi.Output<string>;
/**
* Bookshelf IDs.
*/
readonly bookshelfIds: pulumi.Output<string[]>;
/**
* ImportList configuration template.
*/
readonly configContract: pulumi.Output<string>;
/**
* Enable automatic add flag.
*/
readonly enableAutomaticAdd: pulumi.Output<boolean>;
/**
* ImportList implementation name.
*/
readonly implementation: pulumi.Output<string>;
/**
* List ID.
*/
readonly listId: pulumi.Output<number>;
/**
* List order.
*/
readonly listOrder: pulumi.Output<number>;
/**
* List type.
*/
readonly listType: pulumi.Output<string>;
/**
* Metadata profile ID.
*/
readonly metadataProfileId: pulumi.Output<number>;
/**
* Monitor new items.
*/
readonly monitorNewItems: pulumi.Output<string>;
/**
* Import List name.
*/
readonly name: pulumi.Output<string>;
/**
* Profile IDs.
*/
readonly profileIds: pulumi.Output<number[]>;
/**
* Quality profile ID.
*/
readonly qualityProfileId: pulumi.Output<number>;
/**
* Request token secret.
*/
readonly requestTokenSecret: pulumi.Output<string>;
/**
* Root folder path.
*/
readonly rootFolderPath: pulumi.Output<string>;
/**
* Series ID.
*/
readonly seriesId: pulumi.Output<number>;
/**
* Should monitor.
*/
readonly shouldMonitor: pulumi.Output<string>;
/**
* Should monitor existing flag.
*/
readonly shouldMonitorExisting: pulumi.Output<boolean>;
/**
* Should search flag.
*/
readonly shouldSearch: pulumi.Output<boolean>;
/**
* Tag IDs.
*/
readonly tagIds: pulumi.Output<number[]>;
/**
* List of associated tags.
*/
readonly tags: pulumi.Output<number[]>;
/**
* User ID.
*/
readonly userId: pulumi.Output<string>;
/**
* Username.
*/
readonly username: pulumi.Output<string>;
/**
* Create a ImportList 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: ImportListArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ImportList resources.
*/
export interface ImportListState {
/**
* Access token.
*/
accessToken?: pulumi.Input<string>;
/**
* Access token secret.
*/
accessTokenSecret?: pulumi.Input<string>;
/**
* API key.
*/
apiKey?: pulumi.Input<string>;
/**
* Base URL.
*/
baseUrl?: pulumi.Input<string>;
/**
* Bookshelf IDs.
*/
bookshelfIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* ImportList configuration template.
*/
configContract?: pulumi.Input<string>;
/**
* Enable automatic add flag.
*/
enableAutomaticAdd?: pulumi.Input<boolean>;
/**
* ImportList implementation name.
*/
implementation?: pulumi.Input<string>;
/**
* List ID.
*/
listId?: pulumi.Input<number>;
/**
* List order.
*/
listOrder?: pulumi.Input<number>;
/**
* List type.
*/
listType?: pulumi.Input<string>;
/**
* Metadata profile ID.
*/
metadataProfileId?: pulumi.Input<number>;
/**
* Monitor new items.
*/
monitorNewItems?: pulumi.Input<string>;
/**
* Import List name.
*/
name?: pulumi.Input<string>;
/**
* Profile IDs.
*/
profileIds?: pulumi.Input<pulumi.Input<number>[]>;
/**
* Quality profile ID.
*/
qualityProfileId?: pulumi.Input<number>;
/**
* Request token secret.
*/
requestTokenSecret?: pulumi.Input<string>;
/**
* Root folder path.
*/
rootFolderPath?: pulumi.Input<string>;
/**
* Series ID.
*/
seriesId?: pulumi.Input<number>;
/**
* Should monitor.
*/
shouldMonitor?: pulumi.Input<string>;
/**
* Should monitor existing flag.
*/
shouldMonitorExisting?: pulumi.Input<boolean>;
/**
* Should search flag.
*/
shouldSearch?: pulumi.Input<boolean>;
/**
* Tag IDs.
*/
tagIds?: pulumi.Input<pulumi.Input<number>[]>;
/**
* List of associated tags.
*/
tags?: pulumi.Input<pulumi.Input<number>[]>;
/**
* User ID.
*/
userId?: pulumi.Input<string>;
/**
* Username.
*/
username?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ImportList resource.
*/
export interface ImportListArgs {
/**
* Access token.
*/
accessToken?: pulumi.Input<string>;
/**
* Access token secret.
*/
accessTokenSecret?: pulumi.Input<string>;
/**
* API key.
*/
apiKey?: pulumi.Input<string>;
/**
* Base URL.
*/
baseUrl?: pulumi.Input<string>;
/**
* Bookshelf IDs.
*/
bookshelfIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* ImportList configuration template.
*/
configContract: pulumi.Input<string>;
/**
* Enable automatic add flag.
*/
enableAutomaticAdd?: pulumi.Input<boolean>;
/**
* ImportList implementation name.
*/
implementation?: pulumi.Input<string>;
/**
* List ID.
*/
listId?: pulumi.Input<number>;
/**
* List order.
*/
listOrder?: pulumi.Input<number>;
/**
* List type.
*/
listType: pulumi.Input<string>;
/**
* Metadata profile ID.
*/
metadataProfileId?: pulumi.Input<number>;
/**
* Monitor new items.
*/
monitorNewItems?: pulumi.Input<string>;
/**
* Import List name.
*/
name?: pulumi.Input<string>;
/**
* Profile IDs.
*/
profileIds?: pulumi.Input<pulumi.Input<number>[]>;
/**
* Quality profile ID.
*/
qualityProfileId?: pulumi.Input<number>;
/**
* Request token secret.
*/
requestTokenSecret?: pulumi.Input<string>;
/**
* Root folder path.
*/
rootFolderPath?: pulumi.Input<string>;
/**
* Series ID.
*/
seriesId?: pulumi.Input<number>;
/**
* Should monitor.
*/
shouldMonitor?: pulumi.Input<string>;
/**
* Should monitor existing flag.
*/
shouldMonitorExisting?: pulumi.Input<boolean>;
/**
* Should search flag.
*/
shouldSearch?: pulumi.Input<boolean>;
/**
* Tag IDs.
*/
tagIds?: pulumi.Input<pulumi.Input<number>[]>;
/**
* List of associated tags.
*/
tags?: pulumi.Input<pulumi.Input<number>[]>;
/**
* User ID.
*/
userId?: pulumi.Input<string>;
/**
* Username.
*/
username?: pulumi.Input<string>;
}