Class AwsUtils
java.lang.Object
org.craftercms.studio.impl.v1.service.aws.AwsUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final long
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyFile
(String sourceBucket, String sourceKey, String destBucket, String destKey, int partSize, Supplier<software.amazon.awssdk.services.s3.S3Client> clientSupplier) static void
copyFolder
(String sourceBucket, String sourcePrefix, String destBucket, String destPrefix, int partSize, Supplier<software.amazon.awssdk.services.s3.S3Client> clientSupplier) static String
static void
uploadStream
(String inputBucket, String inputKey, software.amazon.awssdk.services.s3.S3Client s3Client, int partSize, String filename, InputStream content)
-
Field Details
-
MIN_PART_SIZE
public static final int MIN_PART_SIZE- See Also:
-
COPY_PART_SIZE
public static final int COPY_PART_SIZE- See Also:
-
MAX_COPY_FILE_SIZE
public static final long MAX_COPY_FILE_SIZE- See Also:
-
DELETE_BATCH_SIZE
public static final int DELETE_BATCH_SIZE- See Also:
-
-
Constructor Details
-
AwsUtils
public AwsUtils()
-
-
Method Details
-
uploadStream
public static void uploadStream(String inputBucket, String inputKey, software.amazon.awssdk.services.s3.S3Client s3Client, int partSize, String filename, InputStream content) throws AwsException - Throws:
AwsException
-
copyFolder
-
copyFile
-
getS3Url
-