![]() |
![]()
| ![]() |
![]()
NAMEPaws::ServiceDiscovery::DiscoverInstances - Arguments for method DiscoverInstances on Paws::ServiceDiscovery DESCRIPTIONThis 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. SYNOPSISmy $servicediscovery = Paws->service('ServiceDiscovery'); my $DiscoverInstancesResponse = $servicediscovery->DiscoverInstances( NamespaceName => 'MyNamespaceName', ServiceName => 'MyServiceName', HealthStatus => 'HEALTHY', # OPTIONAL MaxResults => 1, # OPTIONAL OptionalParameters => { 'MyAttrKey' => 'MyAttrValue', # key: max: 255, value: max: 1024 }, # 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 <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery/DiscoverInstances> ATTRIBUTESHealthStatus => StrThe health status of the instances that you want to discover. This parameter is ignored for services that don't have a health check configured, and all instances are returned.
Valid values are: "HEALTHY", "UNHEALTHY", "ALL", "HEALTHY_OR_ELSE_ALL" MaxResults => IntThe 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 => StrThe "HttpName" name of the namespace. It's found in the "HttpProperties" member of the "Properties" member of the namespace. OptionalParameters => Paws::ServiceDiscovery::AttributesOpportunistic filters to scope the results based on custom attributes. If there are instances that match both the filters specified in both the "QueryParameters" parameter and this parameter, all of these instances are returned. Otherwise, the filters are ignored, and only instances that match the filters that are specified in the "QueryParameters" parameter are returned. QueryParameters => Paws::ServiceDiscovery::AttributesFilters to scope the results based on custom attributes for the instance (for example, "{version=v1, az=1a}"). Only instances that match all the specified key-value pairs are returned. REQUIRED ServiceName => StrThe name of the service that you specified when you registered the instance. SEE ALSOThis class forms part of Paws, documenting arguments for method DiscoverInstances in Paws::ServiceDiscovery BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|