UNPKG

@upcloud/pulumi-upcloud

Version:

A Pulumi package for creating and managing UpCloud resources.

72 lines 3.24 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.FileStorageShareAcl = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This resource represents a File Storage Share ACL entry. */ class FileStorageShareAcl extends pulumi.CustomResource { /** * Get an existing FileStorageShareAcl 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 FileStorageShareAcl(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of FileStorageShareAcl. 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'] === FileStorageShareAcl.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["fileStorage"] = state?.fileStorage; resourceInputs["name"] = state?.name; resourceInputs["permission"] = state?.permission; resourceInputs["shareName"] = state?.shareName; resourceInputs["target"] = state?.target; } else { const args = argsOrState; if (args?.fileStorage === undefined && !opts.urn) { throw new Error("Missing required property 'fileStorage'"); } if (args?.permission === undefined && !opts.urn) { throw new Error("Missing required property 'permission'"); } if (args?.shareName === undefined && !opts.urn) { throw new Error("Missing required property 'shareName'"); } if (args?.target === undefined && !opts.urn) { throw new Error("Missing required property 'target'"); } resourceInputs["fileStorage"] = args?.fileStorage; resourceInputs["name"] = args?.name; resourceInputs["permission"] = args?.permission; resourceInputs["shareName"] = args?.shareName; resourceInputs["target"] = args?.target; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FileStorageShareAcl.__pulumiType, name, resourceInputs, opts); } } exports.FileStorageShareAcl = FileStorageShareAcl; /** @internal */ FileStorageShareAcl.__pulumiType = 'upcloud:index/fileStorageShareAcl:FileStorageShareAcl'; //# sourceMappingURL=fileStorageShareAcl.js.map