UNPKG

pulumi-bunnynet

Version:

A Pulumi provider for managing Bunny.net CDN and edge computing resources, dynamically bridged from the Terraform Bunnynet provider with support for pull zones, storage, DNS, compute containers, and video streaming.

129 lines 4.66 kB
import * as pulumi from "@pulumi/pulumi"; export declare class StorageFile extends pulumi.CustomResource { /** * Get an existing StorageFile 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?: StorageFileState, opts?: pulumi.CustomResourceOptions): StorageFile; /** * Returns true if the given object is an instance of StorageFile. 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 StorageFile; /** * The SHA-256 hash of the stored file. */ readonly checksum: pulumi.Output<string>; /** * The to be stored in the file. Use <code>source</code> to upload files from the local disk. */ readonly content: pulumi.Output<string | undefined>; /** * Specifies the content type of the file. */ readonly contentType: pulumi.Output<string>; /** * The date and time when the file was created. */ readonly dateCreated: pulumi.Output<string>; /** * The date and time when the file was last modified. */ readonly dateModified: pulumi.Output<string>; /** * The path of the file within the storage zone. */ readonly path: pulumi.Output<string>; /** * The size of the file in bytes. */ readonly size: pulumi.Output<number>; /** * The path in the local disk for the file to be uploaded to the storage zone. Use <code>content</code> to define the content directly. */ readonly source: pulumi.Output<string | undefined>; /** * The ID of the storage zone where the file is stored. */ readonly zone: pulumi.Output<number>; /** * Create a StorageFile 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: StorageFileArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering StorageFile resources. */ export interface StorageFileState { /** * The SHA-256 hash of the stored file. */ checksum?: pulumi.Input<string | undefined>; /** * The to be stored in the file. Use <code>source</code> to upload files from the local disk. */ content?: pulumi.Input<string | undefined>; /** * Specifies the content type of the file. */ contentType?: pulumi.Input<string | undefined>; /** * The date and time when the file was created. */ dateCreated?: pulumi.Input<string | undefined>; /** * The date and time when the file was last modified. */ dateModified?: pulumi.Input<string | undefined>; /** * The path of the file within the storage zone. */ path?: pulumi.Input<string | undefined>; /** * The size of the file in bytes. */ size?: pulumi.Input<number | undefined>; /** * The path in the local disk for the file to be uploaded to the storage zone. Use <code>content</code> to define the content directly. */ source?: pulumi.Input<string | undefined>; /** * The ID of the storage zone where the file is stored. */ zone?: pulumi.Input<number | undefined>; } /** * The set of arguments for constructing a StorageFile resource. */ export interface StorageFileArgs { /** * The to be stored in the file. Use <code>source</code> to upload files from the local disk. */ content?: pulumi.Input<string | undefined>; /** * Specifies the content type of the file. */ contentType?: pulumi.Input<string | undefined>; /** * The path of the file within the storage zone. */ path: pulumi.Input<string>; /** * The path in the local disk for the file to be uploaded to the storage zone. Use <code>content</code> to define the content directly. */ source?: pulumi.Input<string | undefined>; /** * The ID of the storage zone where the file is stored. */ zone: pulumi.Input<number>; } //# sourceMappingURL=storageFile.d.ts.map