Class NeptuneGremlinSigV4Example


  • public final class NeptuneGremlinSigV4Example
    extends Object
    An example client code to demonstrate the process of making auth enabled Gremlin calls to Neptune Server. If auth is enabled on the server side then the neptune db region should be set either as a system property of as an environment variable. For instance, set the region as system property: -DSERVICE_REGION=us-east-1

    The request signing logic requires IAM credentials to sign the requests. Two of the methods to provide the IAM credentials:

    1. Setting environment variables AWS_ACCESS_KEY_ID=[your-access-key-id] and AWS_SECRET_KEY=[your-access-secret].
    2. Passing as JVM arg: -Daws.accessKeyId=[your-access-key-id] and -Daws.secretKey=[your-access-secret].
    See Also:
    DefaultAWSCredentialsProviderChain" for more information and additional methods for providing IAM credentials.
    • Method Detail

      • main

        public static void main​(String[] args)
        Test code to make gremlin java calls.
        Parameters:
        args - program args.