public class AwsProperties
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_ASSUME_ROLE_ARN
Used by
AssumeRoleAwsClientFactory . |
static java.lang.String |
CLIENT_ASSUME_ROLE_EXTERNAL_ID
Used by
AssumeRoleAwsClientFactory . |
static java.lang.String |
CLIENT_ASSUME_ROLE_REGION
Used by
AssumeRoleAwsClientFactory . |
static java.lang.String |
CLIENT_ASSUME_ROLE_TIMEOUT_SEC
Used by
AssumeRoleAwsClientFactory . |
static int |
CLIENT_ASSUME_ROLE_TIMEOUT_SEC_DEFAULT |
static boolean |
CLIENT_ENABLE_ETAG_CHECK_DEFAULT |
static java.lang.String |
CLIENT_FACTORY
The implementation class of
AwsClientFactory to customize AWS client configurations. |
static java.lang.String |
DYNAMODB_TABLE_NAME
DynamoDB table name for
DynamoDbCatalog |
static java.lang.String |
DYNAMODB_TABLE_NAME_DEFAULT |
static java.lang.String |
GLUE_CATALOG_ID
The ID of the Glue Data Catalog where the tables reside.
|
static java.lang.String |
GLUE_CATALOG_SKIP_ARCHIVE
If Glue should skip archiving an old table version when creating a new version in a commit.
|
static boolean |
GLUE_CATALOG_SKIP_ARCHIVE_DEFAULT |
static java.lang.String |
S3_CHECKSUM_ENABLED
Enables eTag checks for S3 PUT and MULTIPART upload requests.
|
static java.lang.String |
S3FILEIO_ACCESS_KEY_ID
Configure the static access key ID used to access S3FileIO.
|
static java.lang.String |
S3FILEIO_ACL
Used to configure canned access control list (ACL) for S3 client to use during write.
|
static java.lang.String |
S3FILEIO_ENDPOINT
Configure an alternative endpoint of the S3 service for S3FileIO to access.
|
static java.lang.String |
S3FILEIO_MULTIPART_SIZE
The size of a single part for multipart upload requests in bytes (default: 32MB).
|
static int |
S3FILEIO_MULTIPART_SIZE_DEFAULT |
static int |
S3FILEIO_MULTIPART_SIZE_MIN |
static java.lang.String |
S3FILEIO_MULTIPART_THRESHOLD_FACTOR
The threshold expressed as a factor times the multipart size at which to
switch from uploading using a single put object request to uploading using multipart upload
(default: 1.5).
|
static double |
S3FILEIO_MULTIPART_THRESHOLD_FACTOR_DEFAULT |
static java.lang.String |
S3FILEIO_MULTIPART_UPLOAD_THREADS
Number of threads to use for uploading parts to S3 (shared pool across all output streams),
default to
Runtime.availableProcessors() |
static java.lang.String |
S3FILEIO_SECRET_ACCESS_KEY
Configure the static secret access key used to access S3FileIO.
|
static java.lang.String |
S3FILEIO_SESSION_TOKEN
Configure the static session token used to access S3FileIO.
|
static java.lang.String |
S3FILEIO_SSE_KEY
If S3 encryption type is SSE-KMS, input is a KMS Key ID or ARN.
|
static java.lang.String |
S3FILEIO_SSE_MD5
If S3 encryption type is SSE-C, input is the base-64 MD5 digest of the secret key.
|
static java.lang.String |
S3FILEIO_SSE_TYPE
Type of S3 Server side encryption used, default to
S3FILEIO_SSE_TYPE_NONE . |
static java.lang.String |
S3FILEIO_SSE_TYPE_CUSTOM
S3 SSE-C encryption.
|
static java.lang.String |
S3FILEIO_SSE_TYPE_KMS
S3 SSE-KMS encryption.
|
static java.lang.String |
S3FILEIO_SSE_TYPE_NONE
No server side encryption.
|
static java.lang.String |
S3FILEIO_SSE_TYPE_S3
S3 SSE-S3 encryption.
|
static java.lang.String |
S3FILEIO_STAGING_DIRECTORY
Location to put staging files for upload to S3, default to temp directory set in java.io.tmpdir.
|
Constructor and Description |
---|
AwsProperties() |
AwsProperties(java.util.Map<java.lang.String,java.lang.String> properties) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
dynamoDbTableName() |
java.lang.String |
glueCatalogId() |
boolean |
glueCatalogSkipArchive() |
boolean |
isS3ChecksumEnabled() |
software.amazon.awssdk.services.s3.model.ObjectCannedACL |
s3FileIoAcl() |
int |
s3FileIoMultiPartSize() |
double |
s3FileIOMultipartThresholdFactor() |
int |
s3FileIoMultipartUploadThreads() |
java.lang.String |
s3FileIoSseKey() |
java.lang.String |
s3FileIoSseMd5() |
java.lang.String |
s3FileIoSseType() |
java.lang.String |
s3fileIoStagingDirectory() |
void |
setDynamoDbTableName(java.lang.String name) |
void |
setGlueCatalogId(java.lang.String id) |
void |
setGlueCatalogSkipArchive(boolean skipArchive) |
void |
setS3ChecksumEnabled(boolean eTagCheckEnabled) |
void |
setS3FileIoAcl(software.amazon.awssdk.services.s3.model.ObjectCannedACL acl) |
void |
setS3FileIoMultiPartSize(int size) |
void |
setS3FileIoMultipartThresholdFactor(double factor) |
void |
setS3FileIoMultipartUploadThreads(int threads) |
void |
setS3FileIoSseKey(java.lang.String sseKey) |
void |
setS3FileIoSseMd5(java.lang.String sseMd5) |
void |
setS3FileIoSseType(java.lang.String sseType) |
void |
setS3fileIoStagingDirectory(java.lang.String directory) |
public static final java.lang.String S3FILEIO_SSE_TYPE
S3FILEIO_SSE_TYPE_NONE
.
For more details: https://docs.aws.amazon.com/AmazonS3/latest/dev/serv-side-encryption.html
public static final java.lang.String S3FILEIO_SSE_TYPE_NONE
public static final java.lang.String S3FILEIO_SSE_TYPE_KMS
For more details: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingKMSEncryption.html
public static final java.lang.String S3FILEIO_SSE_TYPE_S3
For more details: https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html
public static final java.lang.String S3FILEIO_SSE_TYPE_CUSTOM
For more details: https://docs.aws.amazon.com/AmazonS3/latest/dev/ServerSideEncryptionCustomerKeys.html
public static final java.lang.String S3FILEIO_SSE_KEY
public static final java.lang.String S3FILEIO_SSE_MD5
public static final java.lang.String GLUE_CATALOG_ID
For more details, see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-databases.html
public static final java.lang.String GLUE_CATALOG_SKIP_ARCHIVE
public static final boolean GLUE_CATALOG_SKIP_ARCHIVE_DEFAULT
public static final java.lang.String S3FILEIO_MULTIPART_UPLOAD_THREADS
Runtime.availableProcessors()
public static final java.lang.String S3FILEIO_MULTIPART_SIZE
For more details, see https://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html
public static final int S3FILEIO_MULTIPART_SIZE_DEFAULT
public static final int S3FILEIO_MULTIPART_SIZE_MIN
public static final java.lang.String S3FILEIO_MULTIPART_THRESHOLD_FACTOR
public static final double S3FILEIO_MULTIPART_THRESHOLD_FACTOR_DEFAULT
public static final java.lang.String S3FILEIO_STAGING_DIRECTORY
public static final java.lang.String S3FILEIO_ACL
The input must be one of ObjectCannedACL
,
such as 'public-read-write'
For more details: https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html
public static final java.lang.String S3FILEIO_ENDPOINT
This could be used to use S3FileIO with any s3-compatible object storage service that has a different endpoint, or access a private S3 endpoint in a virtual private cloud.
public static final java.lang.String S3FILEIO_ACCESS_KEY_ID
When set, the default client factory will use the basic or session credentials provided instead of
reading the default credential chain to create S3 access credentials.
If S3FILEIO_SESSION_TOKEN
is set, session credential is used, otherwise basic credential is used.
public static final java.lang.String S3FILEIO_SECRET_ACCESS_KEY
When set, the default client factory will use the basic or session credentials provided instead of
reading the default credential chain to create S3 access credentials.
If S3FILEIO_SESSION_TOKEN
is set, session credential is used, otherwise basic credential is used.
public static final java.lang.String S3FILEIO_SESSION_TOKEN
When set, the default client factory will use the session credentials provided instead of reading the default credential chain to create S3 access credentials.
public static final java.lang.String DYNAMODB_TABLE_NAME
DynamoDbCatalog
public static final java.lang.String DYNAMODB_TABLE_NAME_DEFAULT
public static final java.lang.String CLIENT_FACTORY
AwsClientFactory
to customize AWS client configurations.
If set, all AWS clients will be initialized by the specified factory.
If not set, AwsClientFactories.defaultFactory()
is used as default factory.public static final java.lang.String CLIENT_ASSUME_ROLE_ARN
AssumeRoleAwsClientFactory
.
If set, all AWS clients will assume a role of the given ARN, instead of using the default credential chain.public static final java.lang.String CLIENT_ASSUME_ROLE_TIMEOUT_SEC
AssumeRoleAwsClientFactory
.
The timeout of the assume role session in seconds, default to 1 hour.
At the end of the timeout, a new set of role session credentials will be fetched through a STS client.public static final int CLIENT_ASSUME_ROLE_TIMEOUT_SEC_DEFAULT
public static final java.lang.String CLIENT_ASSUME_ROLE_EXTERNAL_ID
AssumeRoleAwsClientFactory
.
Optional external ID used to assume an IAM role.
For more details, see https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html
public static final java.lang.String CLIENT_ASSUME_ROLE_REGION
AssumeRoleAwsClientFactory
.
If set, all AWS clients except STS client will use the given region instead of the default region chain.
The value must be one of Region
, such as 'us-east-1'.
For more details, see https://docs.aws.amazon.com/general/latest/gr/rande.html
public static final java.lang.String S3_CHECKSUM_ENABLED
public static final boolean CLIENT_ENABLE_ETAG_CHECK_DEFAULT
public AwsProperties()
public AwsProperties(java.util.Map<java.lang.String,java.lang.String> properties)
public java.lang.String s3FileIoSseType()
public void setS3FileIoSseType(java.lang.String sseType)
public java.lang.String s3FileIoSseKey()
public void setS3FileIoSseKey(java.lang.String sseKey)
public java.lang.String s3FileIoSseMd5()
public void setS3FileIoSseMd5(java.lang.String sseMd5)
public java.lang.String glueCatalogId()
public void setGlueCatalogId(java.lang.String id)
public boolean glueCatalogSkipArchive()
public void setGlueCatalogSkipArchive(boolean skipArchive)
public int s3FileIoMultipartUploadThreads()
public void setS3FileIoMultipartUploadThreads(int threads)
public int s3FileIoMultiPartSize()
public void setS3FileIoMultiPartSize(int size)
public double s3FileIOMultipartThresholdFactor()
public void setS3FileIoMultipartThresholdFactor(double factor)
public java.lang.String s3fileIoStagingDirectory()
public void setS3fileIoStagingDirectory(java.lang.String directory)
public software.amazon.awssdk.services.s3.model.ObjectCannedACL s3FileIoAcl()
public void setS3FileIoAcl(software.amazon.awssdk.services.s3.model.ObjectCannedACL acl)
public java.lang.String dynamoDbTableName()
public void setDynamoDbTableName(java.lang.String name)
public boolean isS3ChecksumEnabled()
public void setS3ChecksumEnabled(boolean eTagCheckEnabled)