Search in sources :

Example 6 with AWSS3StoragePluginConfiguration

use of com.amplifyframework.storage.s3.configuration.AWSS3StoragePluginConfiguration 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;
}
Also used : AWSS3StorageRemoveRequest(com.amplifyframework.storage.s3.request.AWSS3StorageRemoveRequest) AWSS3StorageRemoveOperation(com.amplifyframework.storage.s3.operation.AWSS3StorageRemoveOperation) NonNull(androidx.annotation.NonNull)

Aggregations

NonNull (androidx.annotation.NonNull)6 AWSS3StorageUploadRequest (com.amplifyframework.storage.s3.request.AWSS3StorageUploadRequest)2 AWSS3StorageDownloadFileOperation (com.amplifyframework.storage.s3.operation.AWSS3StorageDownloadFileOperation)1 AWSS3StorageGetPresignedUrlOperation (com.amplifyframework.storage.s3.operation.AWSS3StorageGetPresignedUrlOperation)1 AWSS3StorageListOperation (com.amplifyframework.storage.s3.operation.AWSS3StorageListOperation)1 AWSS3StorageRemoveOperation (com.amplifyframework.storage.s3.operation.AWSS3StorageRemoveOperation)1 AWSS3StorageUploadFileOperation (com.amplifyframework.storage.s3.operation.AWSS3StorageUploadFileOperation)1 AWSS3StorageUploadInputStreamOperation (com.amplifyframework.storage.s3.operation.AWSS3StorageUploadInputStreamOperation)1 AWSS3StorageUploadFileOptions (com.amplifyframework.storage.s3.options.AWSS3StorageUploadFileOptions)1 AWSS3StorageUploadInputStreamOptions (com.amplifyframework.storage.s3.options.AWSS3StorageUploadInputStreamOptions)1 AWSS3StorageDownloadFileRequest (com.amplifyframework.storage.s3.request.AWSS3StorageDownloadFileRequest)1 AWSS3StorageGetPresignedUrlRequest (com.amplifyframework.storage.s3.request.AWSS3StorageGetPresignedUrlRequest)1 AWSS3StorageListRequest (com.amplifyframework.storage.s3.request.AWSS3StorageListRequest)1 AWSS3StorageRemoveRequest (com.amplifyframework.storage.s3.request.AWSS3StorageRemoveRequest)1 File (java.io.File)1 InputStream (java.io.InputStream)1