Package org.apache.beam.sdk.io.aws2.s3
Class S3FileSystemConfiguration
- java.lang.Object
-
- org.apache.beam.sdk.io.aws2.s3.S3FileSystemConfiguration
-
@Experimental(FILESYSTEM) public abstract class S3FileSystemConfiguration extends java.lang.ObjectObject used to configureS3FileSystem.- See Also:
S3Options,S3FileSystemSchemeRegistrar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classS3FileSystemConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static intMINIMUM_UPLOAD_BUFFER_SIZE_BYTES
-
Constructor Summary
Constructors Constructor Description S3FileSystemConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static S3FileSystemConfiguration.Builderbuilder()Creates a new uninitializedS3FileSystemConfiguration.Builder.static S3FileSystemConfiguration.BuilderbuilderFrom(S3Options s3Options)Creates a newS3FileSystemConfiguration.Builderwith values initialized by the properties ofs3Options.static S3FileSystemConfigurationfromS3Options(S3Options s3Options)abstract booleangetBucketKeyEnabled()Whether to use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS) or not.abstract software.amazon.awssdk.services.s3.S3ClientBuildergetS3ClientBuilder()Builder used to create theS3Client.abstract java.lang.StringgetS3StorageClass()The AWS S3 storage class used for creating S3 objects.abstract intgetS3ThreadPoolSize()Thread pool size, limiting the max concurrent S3 operations.abstract intgetS3UploadBufferSizeBytes()Size of S3 upload chnks.abstract java.lang.StringgetScheme()The uri scheme used by resources on this filesystem.abstract @Nullable java.lang.StringgetSSEAlgorithm()Algorithm for SSE-S3 encryption, e.g.abstract SSECustomerKeygetSSECustomerKey()SSE key for SSE-C encryption, e.g.abstract @Nullable java.lang.StringgetSSEKMSKeyId()KMS key id for SSE-KMS encyrption, e.g.abstract S3FileSystemConfiguration.BuildertoBuilder()Creates a newS3FileSystemConfiguration.Builderwith values initialized by this instance's properties.
-
-
-
Field Detail
-
MINIMUM_UPLOAD_BUFFER_SIZE_BYTES
public static final int MINIMUM_UPLOAD_BUFFER_SIZE_BYTES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getScheme
public abstract java.lang.String getScheme()
The uri scheme used by resources on this filesystem.
-
getS3StorageClass
public abstract java.lang.String getS3StorageClass()
The AWS S3 storage class used for creating S3 objects.
-
getS3UploadBufferSizeBytes
public abstract int getS3UploadBufferSizeBytes()
Size of S3 upload chnks.
-
getS3ThreadPoolSize
public abstract int getS3ThreadPoolSize()
Thread pool size, limiting the max concurrent S3 operations.
-
getSSEAlgorithm
public abstract @Nullable java.lang.String getSSEAlgorithm()
Algorithm for SSE-S3 encryption, e.g. AES256.
-
getSSECustomerKey
public abstract SSECustomerKey getSSECustomerKey()
SSE key for SSE-C encryption, e.g. a base64 encoded key and the algorithm.
-
getSSEKMSKeyId
public abstract @Nullable java.lang.String getSSEKMSKeyId()
KMS key id for SSE-KMS encyrption, e.g. "arn:aws:kms:..."
-
getBucketKeyEnabled
public abstract boolean getBucketKeyEnabled()
Whether to use an S3 Bucket Key for object encryption with server-side encryption using AWS KMS (SSE-KMS) or not.
-
getS3ClientBuilder
public abstract software.amazon.awssdk.services.s3.S3ClientBuilder getS3ClientBuilder()
Builder used to create theS3Client.
-
builder
public static S3FileSystemConfiguration.Builder builder()
Creates a new uninitializedS3FileSystemConfiguration.Builder.
-
toBuilder
public abstract S3FileSystemConfiguration.Builder toBuilder()
Creates a newS3FileSystemConfiguration.Builderwith values initialized by this instance's properties.
-
builderFrom
public static S3FileSystemConfiguration.Builder builderFrom(S3Options s3Options)
Creates a newS3FileSystemConfiguration.Builderwith values initialized by the properties ofs3Options.
-
fromS3Options
public static S3FileSystemConfiguration fromS3Options(S3Options s3Options)
-
-