@pulumi/synced-folder
Version:
A Pulumi component that synchronizes a local folder to Amazon S3, Azure Blob Storage, or Google Cloud Storage.
51 lines • 2.4 kB
JavaScript
;
// *** WARNING: this file was generated by Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.GoogleCloudFolder = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
class GoogleCloudFolder extends pulumi.ComponentResource {
/**
* Returns true if the given object is an instance of GoogleCloudFolder. 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'] === GoogleCloudFolder.__pulumiType;
}
/**
* Create a GoogleCloudFolder 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, args, opts) {
let resourceInputs = {};
opts = opts || {};
if (!opts.id) {
if ((!args || args.bucketName === undefined) && !opts.urn) {
throw new Error("Missing required property 'bucketName'");
}
if ((!args || args.path === undefined) && !opts.urn) {
throw new Error("Missing required property 'path'");
}
resourceInputs["bucketName"] = args ? args.bucketName : undefined;
resourceInputs["disableManagedObjectAliases"] = args ? args.disableManagedObjectAliases : undefined;
resourceInputs["includeHiddenFiles"] = args ? args.includeHiddenFiles : undefined;
resourceInputs["managedObjects"] = args ? args.managedObjects : undefined;
resourceInputs["path"] = args ? args.path : undefined;
}
else {
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(GoogleCloudFolder.__pulumiType, name, resourceInputs, opts, true /*remote*/);
}
}
exports.GoogleCloudFolder = GoogleCloudFolder;
/** @internal */
GoogleCloudFolder.__pulumiType = 'synced-folder:index:GoogleCloudFolder';
//# sourceMappingURL=googleCloudFolder.js.map