public static async Task <DeleteObjectResponse> DeleteObjectAsync(this IS3ObjectClient client, string bucketName, string resource, string versionId = null, MfaAuthenticationBuilder mfa = null, CancellationToken token = default) { Validator.RequireNotNull(client); Validator.RequireNotNull(bucketName); Validator.RequireNotNull(resource); DeleteObjectResponse resp = await client.DeleteObjectAsync(bucketName, resource, req => { req.VersionId = versionId; req.Mfa = mfa; }, token).ConfigureAwait(false); return(resp); }
public Task <DeleteObjectResponse> DeleteObjectAsync(string bucketName, string resource, Action <DeleteObjectRequest> config = null, CancellationToken token = default) { return(_objectClient.DeleteObjectAsync(bucketName, resource, config, token)); }