import * as pulumi from "@pulumi/pulumi"; /** * The `scaleway.ObjectItem` resource allows you to create and manage objects for [Scaleway Object storage](https://www.scaleway.com/en/docs/storage/object/). * * Refer to the [dedicated documentation](https://www.scaleway.com/en/docs/storage/object/how-to/upload-files-into-a-bucket/) for more information on Object Storage objects. * * ## Import * * Objects can be imported using the `{region}/{bucketName}/{objectKey}` identifier, as shown below: * * bash * * ```sh * $ pulumi import scaleway:index/objectItem:ObjectItem some_object fr-par/some-bucket/some-file * ``` * * ~> **Important:** The `project_id` attribute has a particular behavior with s3 products because the s3 API is scoped by project. * * If you are using a project different from the default one, you have to specify the project ID at the end of the import command. * * bash * * ```sh * $ pulumi import scaleway:index/objectItem:ObjectItem some_object fr-par/some-bucket/some-file@xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx * ``` */ export declare class ObjectItem extends pulumi.CustomResource { /** * Get an existing ObjectItem 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, state?: ObjectItemState, opts?: pulumi.CustomResourceOptions): ObjectItem; /** * Returns true if the given object is an instance of ObjectItem. 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 ObjectItem; /** * The bucket's name or regional ID. */ readonly bucket: pulumi.Output; /** * The content of the file to upload. Only one of `file`, `content` or `contentBase64` can be defined. */ readonly content: pulumi.Output; /** * The base64-encoded content of the file to upload. Only one of `file`, `content` or `contentBase64` can be defined. * * > **Note:** Only one of `file`, `content` or `contentBase64` can be defined. */ readonly contentBase64: pulumi.Output; /** * The name of the file to upload, defaults to an empty file. */ readonly file: pulumi.Output; /** * Hash of the file, used to trigger the upload on file change. */ readonly hash: pulumi.Output; /** * The path to the object. */ readonly key: pulumi.Output; /** * Map of metadata used for the object (keys must be lowercase). */ readonly metadata: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The projectId you want to attach the resource to */ readonly projectId: pulumi.Output; /** * The Scaleway region the bucket resides in. */ readonly region: pulumi.Output; /** * Specifies the Scaleway [storage class](https://www.scaleway.com/en/docs/storage/object/concepts/#storage-class) (`STANDARD`, `GLACIER`, or `ONEZONE_IA`) used to store the object. */ readonly storageClass: pulumi.Output; /** * Map of tags. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Visibility of the object, `public-read` or `private`. */ readonly visibility: pulumi.Output; /** * Create a ObjectItem 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: ObjectItemArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ObjectItem resources. */ export interface ObjectItemState { /** * The bucket's name or regional ID. */ bucket?: pulumi.Input; /** * The content of the file to upload. Only one of `file`, `content` or `contentBase64` can be defined. */ content?: pulumi.Input; /** * The base64-encoded content of the file to upload. Only one of `file`, `content` or `contentBase64` can be defined. * * > **Note:** Only one of `file`, `content` or `contentBase64` can be defined. */ contentBase64?: pulumi.Input; /** * The name of the file to upload, defaults to an empty file. */ file?: pulumi.Input; /** * Hash of the file, used to trigger the upload on file change. */ hash?: pulumi.Input; /** * The path to the object. */ key?: pulumi.Input; /** * Map of metadata used for the object (keys must be lowercase). */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The projectId you want to attach the resource to */ projectId?: pulumi.Input; /** * The Scaleway region the bucket resides in. */ region?: pulumi.Input; /** * Specifies the Scaleway [storage class](https://www.scaleway.com/en/docs/storage/object/concepts/#storage-class) (`STANDARD`, `GLACIER`, or `ONEZONE_IA`) used to store the object. */ storageClass?: pulumi.Input; /** * Map of tags. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Visibility of the object, `public-read` or `private`. */ visibility?: pulumi.Input; } /** * The set of arguments for constructing a ObjectItem resource. */ export interface ObjectItemArgs { /** * The bucket's name or regional ID. */ bucket: pulumi.Input; /** * The content of the file to upload. Only one of `file`, `content` or `contentBase64` can be defined. */ content?: pulumi.Input; /** * The base64-encoded content of the file to upload. Only one of `file`, `content` or `contentBase64` can be defined. * * > **Note:** Only one of `file`, `content` or `contentBase64` can be defined. */ contentBase64?: pulumi.Input; /** * The name of the file to upload, defaults to an empty file. */ file?: pulumi.Input; /** * Hash of the file, used to trigger the upload on file change. */ hash?: pulumi.Input; /** * The path to the object. */ key: pulumi.Input; /** * Map of metadata used for the object (keys must be lowercase). */ metadata?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * The projectId you want to attach the resource to */ projectId?: pulumi.Input; /** * The Scaleway region the bucket resides in. */ region?: pulumi.Input; /** * Specifies the Scaleway [storage class](https://www.scaleway.com/en/docs/storage/object/concepts/#storage-class) (`STANDARD`, `GLACIER`, or `ONEZONE_IA`) used to store the object. */ storageClass?: pulumi.Input; /** * Map of tags. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Visibility of the object, `public-read` or `private`. */ visibility?: pulumi.Input; }