Add bucket:delete operation to AWS S3 Node (#1936)

This commit is contained in:
Iván Ovejero
2021-06-24 22:21:13 +02:00
committed by GitHub
parent 69a013d719
commit 9f94984926
2 changed files with 37 additions and 0 deletions

View File

@@ -163,6 +163,15 @@ export class AwsS3 implements INodeType {
returnData.push({ success: true });
}
// https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteBucket.html
if (operation === 'delete') {
const name = this.getNodeParameter('name', i) as string;
responseData = await awsApiRequestSOAP.call(this, `${name}.s3`, 'DELETE', '', '', {}, headers);
returnData.push({ success: true });
}
//https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListBuckets.html
if (operation === 'getAll') {
const returnAll = this.getNodeParameter('returnAll', 0) as boolean;