import * as pulumi from "@pulumi/pulumi"; /** * This data source provides details about metadata of a specific Object resource in Oracle Cloud Infrastructure Object Storage service. * * Gets the metadata of an object. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testObjectHead = oci.objectstorage.getObjectHead({ * bucket: objectBucket, * namespace: objectNamespace, * object: objectObject, * }); * ``` */ export declare function getObjectHead(args: GetObjectHeadArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getObjectHead. */ export interface GetObjectHeadArgs { /** * The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` */ bucket: string; /** * The top-level namespace used for the request. */ namespace: string; /** * The name of the object. Avoid entering confidential information. Example: `test/object1.log` */ object: string; } /** * A collection of values returned by getObjectHead. */ export interface GetObjectHeadResult { readonly archivalState: string; readonly bucket: string; /** * The content-length of the object */ readonly contentLength: number; /** * The content-type of the object */ readonly contentType: string; /** * The etag of the object */ readonly etag: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The metadata of the object */ readonly metadata: { [key: string]: string; }; readonly namespace: string; readonly object: string; /** * The storage tier that the object is stored in. * * `archival-state` - Archival state of an object. This field is set only for objects in Archive tier. */ readonly storageTier: string; } /** * This data source provides details about metadata of a specific Object resource in Oracle Cloud Infrastructure Object Storage service. * * Gets the metadata of an object. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testObjectHead = oci.objectstorage.getObjectHead({ * bucket: objectBucket, * namespace: objectNamespace, * object: objectObject, * }); * ``` */ export declare function getObjectHeadOutput(args: GetObjectHeadOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getObjectHead. */ export interface GetObjectHeadOutputArgs { /** * The name of the bucket. Avoid entering confidential information. Example: `my-new-bucket1` */ bucket: pulumi.Input; /** * The top-level namespace used for the request. */ namespace: pulumi.Input; /** * The name of the object. Avoid entering confidential information. Example: `test/object1.log` */ object: pulumi.Input; } //# sourceMappingURL=getObjectHead.d.ts.map