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_SESSION_NAME
Used by
AssumeRoleAwsClientFactory . |
static java.lang.String |
CLIENT_ASSUME_ROLE_TAGS_PREFIX
Used by
AssumeRoleAwsClientFactory to pass a list of sessions. |
static java.lang.String |
CLIENT_ASSUME_ROLE_TIMEOUT_SEC
Used by
AssumeRoleAwsClientFactory . |
static int |
CLIENT_ASSUME_ROLE_TIMEOUT_SEC_DEFAULT |
static java.lang.String |
CLIENT_FACTORY
The implementation class of
AwsClientFactory to customize AWS client configurations. |
static java.lang.String |
DYNAMODB_ENDPOINT
Configure an alternative endpoint of the DynamoDB service to access.
|
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_ACCOUNT_ID
The account ID used in a Glue resource ARN, e.g.
|
static java.lang.String |
GLUE_CATALOG_ENDPOINT
Configure an alternative endpoint of the Glue service for GlueCatalog to access.
|
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 |
GLUE_CATALOG_SKIP_NAME_VALIDATION
If Glue should skip name validations It is recommended to stick to Glue best practice in
https://docs.aws.amazon.com/athena/latest/ug/glue-best-practices.html to make sure operations
are Hive compatible.
|
static boolean |
GLUE_CATALOG_SKIP_NAME_VALIDATION_DEFAULT |
static java.lang.String |
GLUE_LAKEFORMATION_ENABLED
If set, GlueCatalog will use Lake Formation for access control.
|
static boolean |
GLUE_LAKEFORMATION_ENABLED_DEFAULT |
static java.lang.String |
LAKE_FORMATION_DB_NAME
Used by
LakeFormationAwsClientFactory . |
static java.lang.String |
LAKE_FORMATION_TABLE_NAME
Used by
LakeFormationAwsClientFactory . |
static java.lang.String |
REST_ACCESS_KEY_ID
Configure the static access key ID used for SigV4 signing.
|
static java.lang.String |
REST_SECRET_ACCESS_KEY
Configure the static secret access key used for SigV4 signing.
|
static java.lang.String |
REST_SESSION_TOKEN
Configure the static session token used for SigV4.
|
static java.lang.String |
REST_SIGNER_REGION
Region to be used by the SigV4 protocol for signing requests.
|
static java.lang.String |
REST_SIGNING_NAME
The service name to be used by the SigV4 protocol for signing requests.
|
static java.lang.String |
REST_SIGNING_NAME_DEFAULT
The default service name (API Gateway and lambda) used during SigV4 signing.
|
Constructor and Description |
---|
AwsProperties() |
AwsProperties(java.util.Map<java.lang.String,java.lang.String> properties) |
Modifier and Type | Method and Description |
---|---|
<T extends software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder> |
applyDynamoDbEndpointConfigurations(T builder)
Override the endpoint for a dynamoDb client.
|
<T extends software.amazon.awssdk.services.glue.GlueClientBuilder> |
applyGlueEndpointConfigurations(T builder)
Override the endpoint for a glue client.
|
java.lang.String |
clientAssumeRoleArn() |
java.lang.String |
clientAssumeRoleExternalId() |
java.lang.String |
clientAssumeRoleRegion() |
java.lang.String |
clientAssumeRoleSessionName() |
int |
clientAssumeRoleTimeoutSec() |
java.lang.String |
dynamoDbTableName() |
java.lang.String |
glueCatalogId() |
boolean |
glueCatalogSkipArchive() |
boolean |
glueCatalogSkipNameValidation() |
boolean |
glueLakeFormationEnabled() |
software.amazon.awssdk.auth.credentials.AwsCredentialsProvider |
restCredentialsProvider() |
java.lang.String |
restSigningName() |
software.amazon.awssdk.regions.Region |
restSigningRegion() |
void |
setDynamoDbTableName(java.lang.String name) |
void |
setGlueCatalogId(java.lang.String id) |
void |
setGlueCatalogSkipArchive(boolean skipArchive) |
void |
setGlueCatalogSkipNameValidation(boolean glueCatalogSkipNameValidation) |
void |
setGlueLakeFormationEnabled(boolean glueLakeFormationEnabled) |
java.util.Set<software.amazon.awssdk.services.sts.model.Tag> |
stsClientAssumeRoleTags() |
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_ACCOUNT_ID
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 GLUE_CATALOG_SKIP_NAME_VALIDATION
public static final boolean GLUE_CATALOG_SKIP_NAME_VALIDATION_DEFAULT
public static final java.lang.String GLUE_LAKEFORMATION_ENABLED
AwsClientFactory
implementation must be LakeFormationAwsClientFactory
or any class that extends it.public static final boolean GLUE_LAKEFORMATION_ENABLED_DEFAULT
public static final java.lang.String GLUE_CATALOG_ENDPOINT
This could be used to use GlueCatalog with any glue-compatible metastore service that has a different endpoint
public static final java.lang.String DYNAMODB_ENDPOINT
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_TAGS_PREFIX
AssumeRoleAwsClientFactory
to pass a list of sessions. Each session tag
consists of a key name and an associated value.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 CLIENT_ASSUME_ROLE_SESSION_NAME
AssumeRoleAwsClientFactory
. Optional session name used to assume an IAM role.
For more details, see https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_iam-condition-keys.html#ck_rolesessionname
public static final java.lang.String LAKE_FORMATION_TABLE_NAME
LakeFormationAwsClientFactory
. The table name used as part of lake formation
credentials request.public static final java.lang.String LAKE_FORMATION_DB_NAME
LakeFormationAwsClientFactory
. The database name used as part of lake formation
credentials request.public static final java.lang.String REST_SIGNER_REGION
public static final java.lang.String REST_SIGNING_NAME
public static final java.lang.String REST_SIGNING_NAME_DEFAULT
public static final java.lang.String REST_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 REST_SESSION_TOKEN
is set, session credential is used, otherwise basic credential is used.
public static final java.lang.String REST_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 REST_SESSION_TOKEN
is set, session credential is used, otherwise basic credential is used.
public static final java.lang.String REST_SESSION_TOKEN
When set, the default client factory will use the session credentials provided instead of reading the default credential chain to create access credentials.
public AwsProperties()
public AwsProperties(java.util.Map<java.lang.String,java.lang.String> properties)
public java.util.Set<software.amazon.awssdk.services.sts.model.Tag> stsClientAssumeRoleTags()
public java.lang.String clientAssumeRoleArn()
public int clientAssumeRoleTimeoutSec()
public java.lang.String clientAssumeRoleExternalId()
public java.lang.String clientAssumeRoleRegion()
public java.lang.String clientAssumeRoleSessionName()
public java.lang.String glueCatalogId()
public void setGlueCatalogId(java.lang.String id)
public boolean glueCatalogSkipArchive()
public void setGlueCatalogSkipArchive(boolean skipArchive)
public boolean glueCatalogSkipNameValidation()
public void setGlueCatalogSkipNameValidation(boolean glueCatalogSkipNameValidation)
public boolean glueLakeFormationEnabled()
public void setGlueLakeFormationEnabled(boolean glueLakeFormationEnabled)
public java.lang.String dynamoDbTableName()
public void setDynamoDbTableName(java.lang.String name)
public <T extends software.amazon.awssdk.services.glue.GlueClientBuilder> void applyGlueEndpointConfigurations(T builder)
Sample usage:
GlueClient.builder().applyMutation(awsProperties::applyS3EndpointConfigurations)
public <T extends software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder> void applyDynamoDbEndpointConfigurations(T builder)
Sample usage:
DynamoDbClient.builder().applyMutation(awsProperties::applyDynamoDbEndpointConfigurations)
public software.amazon.awssdk.regions.Region restSigningRegion()
public java.lang.String restSigningName()
public software.amazon.awssdk.auth.credentials.AwsCredentialsProvider restCredentialsProvider()