Class Credentials.Direct

  • All Implemented Interfaces:
    Credentials
    Enclosing interface:
    Credentials

    @Immutable
    @Loggable(1)
    public static final class Credentials.Direct
    extends Object
    implements Credentials
    With explicitly specified endpoint.
    Since:
    0.1
    • Constructor Detail

      • Direct

        public Direct​(Credentials.Simple creds,
                      String pnt)
        Public ctor.
        Parameters:
        creds - Original credentials
        pnt - Endpoint
      • Direct

        public Direct​(Credentials.Simple creds,
                      int port)
        Public ctor.
        Parameters:
        creds - Original credentials
        port - Port number for localhost
    • 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