mirror of https://github.com/jkjoy/sunpeiwen.git
14 lines
418 B
JavaScript
14 lines
418 B
JavaScript
|
const { checkBucketName: _checkBucketName } = require('../utils/checkBucketName');
|
||
|
|
||
|
const proto = exports;
|
||
|
|
||
|
proto.deleteBucketLifecycle = async function deleteBucketLifecycle(name, options) {
|
||
|
_checkBucketName(name);
|
||
|
const params = this._bucketRequestParams('DELETE', name, 'lifecycle', options);
|
||
|
params.successStatuses = [204];
|
||
|
const result = await this.request(params);
|
||
|
return {
|
||
|
res: result.res
|
||
|
};
|
||
|
};
|