TypeScript API / laikacms/storage/s3 / S3Commands
Interface: S3Commands
Constructors imported from @aws-sdk/client-s3. Pass them in so we don't take a hard dependency on the AWS SDK:
import { HeadObjectCommand, GetObjectCommand, PutObjectCommand, DeleteObjectCommand, ListObjectsV2Command, } from '@aws-sdk/client-s3';
createS3Bucket({ client, bucketName, commands: { HeadObjectCommand, GetObjectCommand, PutObjectCommand, DeleteObjectCommand, ListObjectsV2Command, }});
Properties
DeleteObjectCommand
ts
DeleteObjectCommand: (input) => object;Parameters
| Parameter | Type |
|---|---|
input | S3DeleteCommand |
Returns
object
input
ts
input: S3DeleteCommand;GetObjectCommand
ts
GetObjectCommand: (input) => object;Parameters
| Parameter | Type |
|---|---|
input | S3GetCommand |
Returns
object
input
ts
input: S3GetCommand;HeadObjectCommand
ts
HeadObjectCommand: (input) => object;Parameters
| Parameter | Type |
|---|---|
input | S3HeadCommand |
Returns
object
input
ts
input: S3HeadCommand;ListObjectsV2Command
ts
ListObjectsV2Command: (input) => object;Parameters
| Parameter | Type |
|---|---|
input | S3ListCommand |
Returns
object
input
ts
input: S3ListCommand;PutObjectCommand
ts
PutObjectCommand: (input) => object;Parameters
| Parameter | Type |
|---|---|
input | S3PutCommand |
Returns
object
input
ts
input: S3PutCommand;