Static DEF_default bucket name
Static ENV_environ name to use bucket
list objects in bucket
Optional options: { delimiter?: string; limit?: number; nextToken?: string; prefix?: string; throwable?: boolean; unlimited?: boolean }Optional delimiter?: stringuse to group keys
Optional limit?: numbermaximum number of keys returned in single request (default 10, max 1000)
Optional nextsame as NextContinuationToken
Optional prefix?: stringkeys that begin with the specified prefix.
Optional throwable?: boolean(optional) flag to throw error if error, or see .error in result
Optional unlimited?: booleanflag to read all keys (each request contains limit)
upload a file to S3 Bucket
const res = $s3.putObject(JSON.stringify({ message }), 'test.json');
// response would be like
{
"Bucket": "lemon-hello-www",
"ETag": "5e206.....8bd4c",
"Key": "test.json",
"Location": "https://lemon-hello-www.s3.ap-northeast-2.amazonaws.com/test.json",
}
content body
Optional key: string(optional) S3 key to put
Optional metadata: Metadata(optional) metadata to store
Optional tags: TagSet(optional) tag set
Generated using TypeDoc
main service implement.