use of com.amplifyframework.storage.s3.operation.AWSS3StorageRemoveOperation in project amplify-android by aws-amplify.
the class AWSS3StoragePlugin method remove.
@NonNull
@Override
public StorageRemoveOperation<?> remove(@NonNull String key, @NonNull StorageRemoveOptions options, @NonNull Consumer<StorageRemoveResult> onSuccess, @NonNull Consumer<StorageException> onError) {
AWSS3StorageRemoveRequest request = new AWSS3StorageRemoveRequest(key, options.getAccessLevel() != null ? options.getAccessLevel() : defaultAccessLevel, options.getTargetIdentityId());
AWSS3StorageRemoveOperation operation = new AWSS3StorageRemoveOperation(storageService, executorService, cognitoAuthProvider, request, awsS3StoragePluginConfiguration, onSuccess, onError);
operation.start();
return operation;
}
Aggregations