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 Classes
    Modifier and Type
    Interface
    Description
    static final class 
    All tables have a prefix in front of their names.
    static final class 
    Simple region, basic implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    software.amazon.awssdk.services.dynamodb.DynamoDbClient
    aws()
    Get DynamoDB client.
    table(String name)
    Get one table.
  • Method Details

    • aws

      software.amazon.awssdk.services.dynamodb.DynamoDbClient aws()
      Get DynamoDB client.
      Returns:
      The client
    • table

      Table table(String name)
      Get one table.
      Parameters:
      name - Table name
      Returns:
      Table