You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ServiceDiscovery::Types::DiscoverInstancesRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing DiscoverInstancesRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  namespace_name: "NamespaceName", # required
  service_name: "ServiceName", # required
  max_results: 1,
  query_parameters: {
    "AttrKey" => "AttrValue",
  },
  health_status: "HEALTHY", # accepts HEALTHY, UNHEALTHY, ALL
}

Instance Attribute Summary collapse

Instance Attribute Details

#health_statusString

The health status of the instances that you want to discover.

Possible values:

  • HEALTHY
  • UNHEALTHY
  • ALL

Returns:

  • (String)

    The health status of the instances that you want to discover.

#max_resultsInteger

The maximum number of instances that you want AWS Cloud Map to return in the response to a DiscoverInstances request. If you don\'t specify a value for MaxResults, AWS Cloud Map returns up to 100 instances.

Returns:

  • (Integer)

    The maximum number of instances that you want AWS Cloud Map to return in the response to a DiscoverInstances request.

#namespace_nameString

The name of the namespace that you specified when you registered the instance.

Returns:

  • (String)

    The name of the namespace that you specified when you registered the instance.

#query_parametersHash<String,String>

A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance. Only instances that match all the specified key/value pairs will be returned.

Returns:

  • (Hash<String,String>)

    A string map that contains attributes with values that you can use to filter instances by any custom attribute that you specified when you registered the instance.

#service_nameString

The name of the service that you specified when you registered the instance.

Returns:

  • (String)

    The name of the service that you specified when you registered the instance.