Code Monkey home page Code Monkey logo

vinyldns-java's Introduction

Travis build GitHub

vinyldns-java

Java client for working with VinylDNS

Add to your maven project

Dependency

To pull the latest version from Sonatype, add a dependency to the pom.xml file corresponding to the Sonatype version you want to use:

<dependency>
  <groupId>vinyldns</groupId>
  <artifactId>vinyldns-java</artifactId>
  <version>0.7.1</version> <!-- Replace with the latest release version -->
</dependency>

To pull in a local package of vinyldns-java as a Maven dependency, the project needs to be published to your local Maven repository by running the following command from the project root folder:

mvn clean install

Usage

AWSCredentials credentials = new BasicAWSCredentials("my-key", "my-secret");
VinylDNSClientConfig config = new VinylDNSClientConfig("https://my-vinyldns-api.com", credentials);

VinylDNSClient client = new VinylDNSClientImpl(config);

VinylDNSResponse<ListZonesResponse> listZonesResponse = client.listZones(new ListZonesRequest());

Use with VINYLDNS_* environment variables

Alternatively, a VinylDNSClient can be instantiated via VINYLDNS_API_URL, VINYLDNS_ACCESS_KEY_ID, and VINYLDNS_SECRET_ACCESS_KEY environment variables. For example:

export VINYLDNS_API_URL=https://my-vinyldns-api.com
export VINYLDNS_ACCESS_KEY_ID="my-key"
export VINYLDNS_SECRET_ACCESS_KEY="my-secret"

Instantiate a client using the VINYLDNS_* environment variables:

VinylDNSClient client = new VinylDNSClientImpl();

VinylDNSResponse<ListZonesResponse> listZonesResponse = client.listZones(new ListZonesRequest());

See VinylDNSClient interface to get more methods

Testing

vinyldns-java has a suite of unit tests to run to test expected behavior. To run the suite of tests, run the following command from the project root folder:

mvn test

vinyldns-java's People

Contributors

britneywright avatar enikulesku avatar harrythehat1975 avatar iamjarvo avatar kristakhare avatar mdb avatar mitruly avatar nimaeskandary avatar pauljamescleary avatar vaish1707 avatar varsharun avatar vishnyakova avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.