Skip to main content
The S3ResourceClient allows you to perform operations on S3 buckets, such as listing objects, uploading files, and generating presigned URLs.
S3 connectors support identity-based authentication via Assume Role Identities for secure cross-account access.
The credentials (or assumed role) used to configure an S3 connector must include the s3:ListAllMyBuckets permission so that available buckets can be enumerated when setting up the resource.

Usage

Inputs

The invoke method accepts the following arguments:
string
required
The S3 command to execute. Supported commands include "ListObjectsV2", "HeadObject", "GetObjectTagging", "PutObjectTagging", "DeleteObject", "DeleteObjects", "CopyObject", "ListBuckets", "GetBucketLocation", "GeneratePresignedUrl".
Record<string, unknown>
required
The parameters for the command, matching the AWS SDK input shape (e.g., Bucket, Key, Prefix).
string
required
A unique identifier for this operation.
object
Optional configuration object.

Outputs

On success (ok: true), the result object structure depends on the command.

Standard Commands

For most commands (e.g., ListObjectsV2, HeadObject):
"storage"
Discriminator for the response type.
string
The command that was executed.
unknown
The result data from S3.

GeneratePresignedUrl

For the GeneratePresignedUrl command:
"storage"
Discriminator for the response type.
string
The generated presigned URL.
string
The expiration timestamp of the URL.