public static class DynamoDBPersistenceStore.Builder
extends java.lang.Object
DynamoDBPersistenceStore.DynamoDbClient for further tuning.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DynamoDBPersistenceStore |
build()
|
DynamoDBPersistenceStore.Builder |
withDataAttr(java.lang.String dataAttr)
DynamoDB attribute name for response data (optional), by default "data"
|
DynamoDBPersistenceStore.Builder |
withDynamoDbClient(software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDbClient)
Custom
DynamoDbClient used to query DynamoDB (optional).The default one uses UrlConnectionHttpClient as a http client and
add com.amazonaws.xray.interceptors.TracingInterceptor (X-Ray) if available in the classpath. |
DynamoDBPersistenceStore.Builder |
withExpiryAttr(java.lang.String expiryAttr)
DynamoDB attribute name for expiry timestamp (optional), by default "expiration"
|
DynamoDBPersistenceStore.Builder |
withInProgressExpiryAttr(java.lang.String inProgressExpiryAttr)
DynamoDB attribute name for in progress expiry timestamp (optional), by default "in_progress_expiration"
|
DynamoDBPersistenceStore.Builder |
withKeyAttr(java.lang.String keyAttr)
DynamoDB attribute name for partition key (optional), by default "id"
|
DynamoDBPersistenceStore.Builder |
withSortKeyAttr(java.lang.String sortKeyAttr)
DynamoDB attribute name for the sort key (optional)
|
DynamoDBPersistenceStore.Builder |
withStaticPkValue(java.lang.String staticPkValue)
DynamoDB attribute value for partition key (optional), by default "idempotency#[function-name]".
|
DynamoDBPersistenceStore.Builder |
withStatusAttr(java.lang.String statusAttr)
DynamoDB attribute name for status (optional), by default "status"
|
DynamoDBPersistenceStore.Builder |
withTableName(java.lang.String tableName)
Name of the table to use for storing execution records (mandatory)
|
DynamoDBPersistenceStore.Builder |
withValidationAttr(java.lang.String validationAttr)
DynamoDB attribute name for validation (optional), by default "validation"
|
public DynamoDBPersistenceStore build()
DynamoDBPersistenceStore.
DynamoDBPersistenceStore.builder().withTableName("idempotency_store").build();
DynamoDBPersistenceStorepublic DynamoDBPersistenceStore.Builder withTableName(java.lang.String tableName)
tableName - Name of the DynamoDB tablepublic DynamoDBPersistenceStore.Builder withKeyAttr(java.lang.String keyAttr)
keyAttr - name of the key attribute in the tablepublic DynamoDBPersistenceStore.Builder withStaticPkValue(java.lang.String staticPkValue)
sortKeyAttr is set.staticPkValue - name of the partition key attribute in the tablepublic DynamoDBPersistenceStore.Builder withSortKeyAttr(java.lang.String sortKeyAttr)
sortKeyAttr - name of the sort key attribute in the tablepublic DynamoDBPersistenceStore.Builder withExpiryAttr(java.lang.String expiryAttr)
expiryAttr - name of the expiry attribute in the tablepublic DynamoDBPersistenceStore.Builder withInProgressExpiryAttr(java.lang.String inProgressExpiryAttr)
inProgressExpiryAttr - name of the attribute in the tablepublic DynamoDBPersistenceStore.Builder withStatusAttr(java.lang.String statusAttr)
statusAttr - name of the status attribute in the tablepublic DynamoDBPersistenceStore.Builder withDataAttr(java.lang.String dataAttr)
dataAttr - name of the data attribute in the tablepublic DynamoDBPersistenceStore.Builder withValidationAttr(java.lang.String validationAttr)
validationAttr - name of the validation attribute in the tablepublic DynamoDBPersistenceStore.Builder withDynamoDbClient(software.amazon.awssdk.services.dynamodb.DynamoDbClient dynamoDbClient)
DynamoDbClient used to query DynamoDB (optional).UrlConnectionHttpClient as a http client and
add com.amazonaws.xray.interceptors.TracingInterceptor (X-Ray) if available in the classpath.dynamoDbClient - the DynamoDbClient instance to useCopyright © 2023. All rights reserved.