UNPKG

@maienm/pulumi-readarr

Version:

A Pulumi package for creating and managing Readarr resources. Based on terraform-provider-readarr: version v2.1.0

84 lines 4.09 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.Naming = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * <!-- subcategory:Media Management -->Naming resource. * For more information refer to [Naming](https://wiki.servarr.com/readarr/settings#community-naming-suggestions) documentation. * * ## Import * * import does not need parameters * * ```sh * $ pulumi import readarr:MediaManagement/naming:Naming example "" * ``` */ class Naming extends pulumi.CustomResource { /** * Get an existing Naming 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 Naming(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of Naming. 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'] === Naming.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["authorFolderFormat"] = state ? state.authorFolderFormat : undefined; resourceInputs["colonReplacementFormat"] = state ? state.colonReplacementFormat : undefined; resourceInputs["renameBooks"] = state ? state.renameBooks : undefined; resourceInputs["replaceIllegalCharacters"] = state ? state.replaceIllegalCharacters : undefined; resourceInputs["standardBookFormat"] = state ? state.standardBookFormat : undefined; } else { const args = argsOrState; if ((!args || args.authorFolderFormat === undefined) && !opts.urn) { throw new Error("Missing required property 'authorFolderFormat'"); } if ((!args || args.colonReplacementFormat === undefined) && !opts.urn) { throw new Error("Missing required property 'colonReplacementFormat'"); } if ((!args || args.renameBooks === undefined) && !opts.urn) { throw new Error("Missing required property 'renameBooks'"); } if ((!args || args.replaceIllegalCharacters === undefined) && !opts.urn) { throw new Error("Missing required property 'replaceIllegalCharacters'"); } if ((!args || args.standardBookFormat === undefined) && !opts.urn) { throw new Error("Missing required property 'standardBookFormat'"); } resourceInputs["authorFolderFormat"] = args ? args.authorFolderFormat : undefined; resourceInputs["colonReplacementFormat"] = args ? args.colonReplacementFormat : undefined; resourceInputs["renameBooks"] = args ? args.renameBooks : undefined; resourceInputs["replaceIllegalCharacters"] = args ? args.replaceIllegalCharacters : undefined; resourceInputs["standardBookFormat"] = args ? args.standardBookFormat : undefined; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(Naming.__pulumiType, name, resourceInputs, opts); } } exports.Naming = Naming; /** @internal */ Naming.__pulumiType = 'readarr:MediaManagement/naming:Naming'; //# sourceMappingURL=naming.js.map