Package com.jcabi.dynamo
Interface Region
- All Known Implementing Classes:
MkRegion,Region.Prefixed,Region.Simple,ReRegion
@Immutable
public interface Region
Amazon DynamoDB region.
It is recommended to use Region.Simple in most cases.
You can use aws() method to get access to Amazon DynamoDB
client directly.
Since version 0.9 it is strongly recommended to wrap your region
in ReRegion before use, for example:
Region region = new ReRegion(new Region.Simple(credentials));
After all operations with the region are finished, it can be optionally
shutdown invoking SdkAutoCloseable.close(). Callers are not expected
to call it, but can if they want to explicitly release any open resources and
forcibly terminate all pending asynchronous service calls. Once a client has
been shutdown, it should not be used to make any more requests.
- Since:
- 0.1
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classAll tables have a prefix in front of their names.static final classSimple region, basic implementation. -
Method Summary
-
Method Details
-
aws
software.amazon.awssdk.services.dynamodb.DynamoDbClient aws()Get DynamoDB client.- Returns:
- The client
-
table
Get one table.- Parameters:
name- Table name- Returns:
- Table
-