Class Credentials.Simple

  • All Implemented Interfaces:
    Credentials
    Enclosing interface:
    Credentials

    @Immutable
    @Loggable(1)
    public static final class Credentials.Simple
    extends Object
    implements Credentials
    Simple implementation.
    Since:
    0.1
    • Constructor Detail

      • Simple

        public Simple​(String akey,
                      String scrt)
        Public ctor, with "us-east-1" region.
        Parameters:
        akey - AWS key
        scrt - Secret
      • Simple

        public Simple​(String akey,
                      String scrt,
                      String reg)
        Public ctor.
        Parameters:
        akey - AWS key
        scrt - Secret
        reg - Region
    • Method Detail

      • aws

        public com.amazonaws.services.dynamodbv2.AmazonDynamoDB aws()
        Description copied from interface: Credentials
        Build AWS client.

        Don't forget to shut it down after use, using AmazonDynamoDB.shutdown().

        Specified by:
        aws in interface Credentials
        Returns:
        Amazon Dynamo DB client