Package com.jcabi.dynamo
Class Region.Prefixed
- java.lang.Object
-
- com.jcabi.dynamo.Region.Prefixed
-
- All Implemented Interfaces:
Region
- Enclosing interface:
- Region
@Immutable @Loggable(1) public static final class Region.Prefixed extends Object implements Region
All tables have a prefix in front of their names.The region has to be used in combination with another region, for example
Region.Simple
:Region region = new Region.Prefixed( new Region.Simple(creds), "foo-" );
Now,
region.table("test")
will return aTable
instance pointing to the Dynamo DB table named"foo-test"
. Could be a convenient mechanism when you have many tables for different projects in the same region.- Since:
- 0.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.dynamo.Region
Region.Prefixed, Region.Simple
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.amazonaws.services.dynamodbv2.AmazonDynamoDB
aws()
Get DynamoDB client.Table
table(String name)
Get one table.
-
-
-
Method Detail
-
aws
public com.amazonaws.services.dynamodbv2.AmazonDynamoDB aws()
Description copied from interface:Region
Get DynamoDB client.
-
-