Class DiscoveryClient

java.lang.Object
software.amazon.awssdk.iot.discovery.DiscoveryClient
All Implemented Interfaces:
AutoCloseable

public class DiscoveryClient extends Object implements AutoCloseable
Class for performing network-based discovery of the connectivity properties of registered greengrass cores associated with an AWS account and region.
  • Field Details

  • Constructor Details

    • DiscoveryClient

      public DiscoveryClient(DiscoveryClientConfig config)
      Parameters:
      config - Greengrass discovery client configuration
  • Method Details

    • discover

      public CompletableFuture<DiscoverResponse> discover(String thingName)
      Based on configuration, make an http request to query connectivity information about available Greengrass cores
      Parameters:
      thingName - name of the thing/device making the greengrass core query
      Returns:
      future holding connectivity information about greengrass cores available to the device/thing
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable