Paws::ServiceDiscovery::DiscoverInstances - Arguments for method DiscoverInstances on Paws::ServiceDiscovery


This class represents the parameters used for calling the method DiscoverInstances on the AWS Cloud Map service. Use the attributes of this class as arguments to method DiscoverInstances.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DiscoverInstances.


    my $servicediscovery = Paws->service('ServiceDiscovery');
    my $DiscoverInstancesResponse = $servicediscovery->DiscoverInstances(
      NamespaceName   => 'MyNamespaceName',
      ServiceName     => 'MyServiceName',
      HealthStatus    => 'HEALTHY',           # OPTIONAL
      MaxResults      => 1,                   # OPTIONAL
      QueryParameters => {
        'MyAttrKey' => 'MyAttrValue',         # key: max: 255, value: max: 1024
      },    # OPTIONAL

    # Results:
    my $Instances = $DiscoverInstancesResponse->Instances;

    # Returns a L<Paws::ServiceDiscovery::DiscoverInstancesResponse> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


HealthStatus => Str

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

Valid values are: "HEALTHY", "UNHEALTHY", "ALL"

MaxResults => Int

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

REQUIRED NamespaceName => Str

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

QueryParameters => Paws::ServiceDiscovery::Attributes

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.

REQUIRED ServiceName => Str

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


This class forms part of Paws, documenting arguments for method DiscoverInstances in Paws::ServiceDiscovery


The source code is located here:

Please report bugs to: