Skip to content

GetObjectAttributes

Source: src/AWS/S3/GetObjectAttributes.ts

Runtime binding for s3:GetObjectAttributes.

Bind this operation to a bucket to get a callable that reads object metadata (size, ETag, checksum, storage class, object parts) without fetching the body — the bucket name is injected automatically and the object-read attribute actions are granted on the bucket’s objects. Provide the implementation with Effect.provide(AWS.S3.GetObjectAttributesHttp).

const getObjectAttributes = yield* AWS.S3.GetObjectAttributes(bucket);
const attrs = yield* getObjectAttributes({
Key: "reports/q3.csv",
ObjectAttributes: ["ObjectSize", "ETag", "StorageClass"],
});