Class AwsProperties
- All Implemented Interfaces:
- Serializable
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringUsed byAssumeRoleAwsClientFactory.static final StringUsed byAssumeRoleAwsClientFactory.static final StringUsed byAssumeRoleAwsClientFactory.static final StringUsed byAssumeRoleAwsClientFactory.static final StringUsed byAssumeRoleAwsClientFactoryto pass a list of sessions.static final StringUsed byAssumeRoleAwsClientFactory.static final intstatic final StringThe implementation class ofAwsClientFactoryto customize AWS client configurations.static final StringConfigure an alternative endpoint of the DynamoDB service to access.static final StringDynamoDB table name forDynamoDbCatalogstatic final Stringstatic final StringThe account ID used in a Glue resource ARN, e.g.static final StringConfigure an alternative endpoint of the Glue service for GlueCatalog to access.static final StringThe ID of the Glue Data Catalog where the tables reside.static final StringIf Glue should skip archiving an old table version when creating a new version in a commit.static final booleanstatic final StringIf 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 final booleanstatic final StringIf set, GlueCatalog will use Lake Formation for access control.static final booleanstatic final StringLength of data key generated by KMSstatic final software.amazon.awssdk.services.kms.model.DataKeySpecstatic final StringEncryption algorithm used to encrypt/decrypt master table keysstatic final software.amazon.awssdk.services.kms.model.EncryptionAlgorithmSpecstatic final StringUsed byLakeFormationAwsClientFactory.static final StringUsed byLakeFormationAwsClientFactory.static final StringConfigure the static access key ID used for SigV4 signing.static final StringConfigure the static secret access key used for SigV4 signing.static final StringConfigure the static session token used for SigV4.static final StringRegion to be used by the SigV4 protocol for signing requests.static final StringThe service name to be used by the SigV4 protocol for signing requests.static final StringThe default service name (API Gateway and lambda) used during SigV4 signing.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<T extends software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder>
 voidapplyDynamoDbEndpointConfigurations(T builder) Override the endpoint for a dynamoDb client.<T extends software.amazon.awssdk.services.glue.GlueClientBuilder>
 voidapplyGlueEndpointConfigurations(T builder) Override the endpoint for a glue client.intbooleanbooleanbooleansoftware.amazon.awssdk.services.kms.model.DataKeySpecsoftware.amazon.awssdk.services.kms.model.EncryptionAlgorithmSpecsoftware.amazon.awssdk.auth.credentials.AwsCredentialsProvidersoftware.amazon.awssdk.regions.RegionvoidsetDynamoDbTableName(String name) voidvoidsetGlueCatalogSkipArchive(boolean skipArchive) voidsetGlueCatalogSkipNameValidation(boolean glueCatalogSkipNameValidation) voidsetGlueLakeFormationEnabled(boolean glueLakeFormationEnabled) Set<software.amazon.awssdk.services.sts.model.Tag> 
- 
Field Details- 
GLUE_CATALOG_IDThe ID of the Glue Data Catalog where the tables reside. If none is provided, Glue automatically uses the caller's AWS account ID by default.For more details, see https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-databases.html - See Also:
 
- 
GLUE_ACCOUNT_IDThe account ID used in a Glue resource ARN, e.g. arn:aws:glue:us-east-1:1000000000000:table/db1/table1- See Also:
 
- 
GLUE_CATALOG_SKIP_ARCHIVEIf Glue should skip archiving an old table version when creating a new version in a commit. By default Glue archives all old table versions after an UpdateTable call, but Glue has a default max number of archived table versions (can be increased). So for streaming use case with lots of commits, it is recommended to set this value to true.- See Also:
 
- 
GLUE_CATALOG_SKIP_ARCHIVE_DEFAULTpublic static final boolean GLUE_CATALOG_SKIP_ARCHIVE_DEFAULT- See Also:
 
- 
GLUE_CATALOG_SKIP_NAME_VALIDATIONIf 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. This is only added for users that have existing conventions using non-standard characters. When database name and table name validation are skipped, there is no guarantee that downstream systems would all support the names.- See Also:
 
- 
GLUE_CATALOG_SKIP_NAME_VALIDATION_DEFAULTpublic static final boolean GLUE_CATALOG_SKIP_NAME_VALIDATION_DEFAULT- See Also:
 
- 
GLUE_LAKEFORMATION_ENABLEDIf set, GlueCatalog will use Lake Formation for access control. For more credential vending details, see: https://docs.aws.amazon.com/lake-formation/latest/dg/api-overview.html. If enabled, theAwsClientFactoryimplementation must beLakeFormationAwsClientFactoryor any class that extends it.- See Also:
 
- 
GLUE_LAKEFORMATION_ENABLED_DEFAULTpublic static final boolean GLUE_LAKEFORMATION_ENABLED_DEFAULT- See Also:
 
- 
GLUE_CATALOG_ENDPOINTConfigure an alternative endpoint of the Glue service for GlueCatalog to access.This could be used to use GlueCatalog with any glue-compatible metastore service that has a different endpoint - See Also:
 
- 
DYNAMODB_ENDPOINTConfigure an alternative endpoint of the DynamoDB service to access.- See Also:
 
- 
DYNAMODB_TABLE_NAMEDynamoDB table name forDynamoDbCatalog- See Also:
 
- 
DYNAMODB_TABLE_NAME_DEFAULT- See Also:
 
- 
CLIENT_FACTORYThe implementation class ofAwsClientFactoryto 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.- See Also:
 
- 
CLIENT_ASSUME_ROLE_ARNUsed byAssumeRoleAwsClientFactory. If set, all AWS clients will assume a role of the given ARN, instead of using the default credential chain.- See Also:
 
- 
CLIENT_ASSUME_ROLE_TAGS_PREFIXUsed byAssumeRoleAwsClientFactoryto pass a list of sessions. Each session tag consists of a key name and an associated value.- See Also:
 
- 
CLIENT_ASSUME_ROLE_TIMEOUT_SECUsed byAssumeRoleAwsClientFactory. 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.- See Also:
 
- 
CLIENT_ASSUME_ROLE_TIMEOUT_SEC_DEFAULTpublic static final int CLIENT_ASSUME_ROLE_TIMEOUT_SEC_DEFAULT- See Also:
 
- 
CLIENT_ASSUME_ROLE_EXTERNAL_IDUsed byAssumeRoleAwsClientFactory. 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 - See Also:
 
- 
CLIENT_ASSUME_ROLE_REGIONUsed byAssumeRoleAwsClientFactory. 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- See Also:
 
- 
CLIENT_ASSUME_ROLE_SESSION_NAMEUsed byAssumeRoleAwsClientFactory. 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 - See Also:
 
- 
LAKE_FORMATION_TABLE_NAMEUsed byLakeFormationAwsClientFactory. The table name used as part of lake formation credentials request.- See Also:
 
- 
LAKE_FORMATION_DB_NAMEUsed byLakeFormationAwsClientFactory. The database name used as part of lake formation credentials request.- See Also:
 
- 
REST_SIGNER_REGIONRegion to be used by the SigV4 protocol for signing requests.- See Also:
 
- 
REST_SIGNING_NAMEThe service name to be used by the SigV4 protocol for signing requests.- See Also:
 
- 
REST_SIGNING_NAME_DEFAULTThe default service name (API Gateway and lambda) used during SigV4 signing.- See Also:
 
- 
REST_ACCESS_KEY_IDConfigure the static access key ID used for SigV4 signing.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_TOKENis set, session credential is used, otherwise basic credential is used.- See Also:
 
- 
REST_SECRET_ACCESS_KEYConfigure the static secret access key used for SigV4 signing.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_TOKENis set, session credential is used, otherwise basic credential is used.- See Also:
 
- 
REST_SESSION_TOKENConfigure the static session token used for SigV4.When set, the default client factory will use the session credentials provided instead of reading the default credential chain to create access credentials. - See Also:
 
- 
KMS_ENCRYPTION_ALGORITHM_SPECEncryption algorithm used to encrypt/decrypt master table keys- See Also:
 
- 
KMS_ENCRYPTION_ALGORITHM_SPEC_DEFAULTpublic static final software.amazon.awssdk.services.kms.model.EncryptionAlgorithmSpec KMS_ENCRYPTION_ALGORITHM_SPEC_DEFAULT
- 
KMS_DATA_KEY_SPECLength of data key generated by KMS- See Also:
 
- 
KMS_DATA_KEY_SPEC_DEFAULTpublic static final software.amazon.awssdk.services.kms.model.DataKeySpec KMS_DATA_KEY_SPEC_DEFAULT
 
- 
- 
Constructor Details- 
AwsPropertiespublic AwsProperties()
- 
AwsProperties
 
- 
- 
Method Details- 
stsClientAssumeRoleTags
- 
clientAssumeRoleArn
- 
clientAssumeRoleTimeoutSecpublic int clientAssumeRoleTimeoutSec()
- 
clientAssumeRoleExternalId
- 
clientAssumeRoleRegion
- 
clientAssumeRoleSessionName
- 
glueCatalogId
- 
setGlueCatalogId
- 
glueCatalogSkipArchivepublic boolean glueCatalogSkipArchive()
- 
setGlueCatalogSkipArchivepublic void setGlueCatalogSkipArchive(boolean skipArchive) 
- 
glueCatalogSkipNameValidationpublic boolean glueCatalogSkipNameValidation()
- 
setGlueCatalogSkipNameValidationpublic void setGlueCatalogSkipNameValidation(boolean glueCatalogSkipNameValidation) 
- 
glueLakeFormationEnabledpublic boolean glueLakeFormationEnabled()
- 
setGlueLakeFormationEnabledpublic void setGlueLakeFormationEnabled(boolean glueLakeFormationEnabled) 
- 
dynamoDbTableName
- 
setDynamoDbTableName
- 
applyGlueEndpointConfigurationspublic <T extends software.amazon.awssdk.services.glue.GlueClientBuilder> void applyGlueEndpointConfigurations(T builder) Override the endpoint for a glue client.Sample usage: GlueClient.builder().applyMutation(awsProperties::applyS3EndpointConfigurations)
- 
applyDynamoDbEndpointConfigurationspublic <T extends software.amazon.awssdk.services.dynamodb.DynamoDbClientBuilder> void applyDynamoDbEndpointConfigurations(T builder) Override the endpoint for a dynamoDb client.Sample usage: DynamoDbClient.builder().applyMutation(awsProperties::applyDynamoDbEndpointConfigurations)
- 
restSigningRegionpublic software.amazon.awssdk.regions.Region restSigningRegion()
- 
restSigningName
- 
restCredentialsProviderpublic software.amazon.awssdk.auth.credentials.AwsCredentialsProvider restCredentialsProvider()
- 
kmsEncryptionAlgorithmSpecpublic software.amazon.awssdk.services.kms.model.EncryptionAlgorithmSpec kmsEncryptionAlgorithmSpec()
- 
kmsDataKeySpecpublic software.amazon.awssdk.services.kms.model.DataKeySpec kmsDataKeySpec()
 
-