Skip to content

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 ​

ParameterType
inputS3DeleteCommand

Returns ​

object

input ​
ts
input: S3DeleteCommand;

GetObjectCommand ​

ts
GetObjectCommand: (input) => object;

Parameters ​

ParameterType
inputS3GetCommand

Returns ​

object

input ​
ts
input: S3GetCommand;

HeadObjectCommand ​

ts
HeadObjectCommand: (input) => object;

Parameters ​

ParameterType
inputS3HeadCommand

Returns ​

object

input ​
ts
input: S3HeadCommand;

ListObjectsV2Command ​

ts
ListObjectsV2Command: (input) => object;

Parameters ​

ParameterType
inputS3ListCommand

Returns ​

object

input ​
ts
input: S3ListCommand;

PutObjectCommand ​

ts
PutObjectCommand: (input) => object;

Parameters ​

ParameterType
inputS3PutCommand

Returns ​

object

input ​
ts
input: S3PutCommand;

Released under the MIT License.