lib/aws-sdk-servicediscovery/client.rb in aws-sdk-servicediscovery-1.57.0 vs lib/aws-sdk-servicediscovery/client.rb in aws-sdk-servicediscovery-1.58.0
- old
+ new
@@ -1042,12 +1042,14 @@
req.send_request(options)
end
# Discovers registered instances for a specified namespace and service.
# You can use `DiscoverInstances` to discover instances for any type of
- # namespace. For public and private DNS namespaces, you can also use DNS
- # queries to discover instances.
+ # namespace. `DiscoverInstances` returns a randomized list of instances
+ # allowing customers to distribute traffic evenly across instances. For
+ # public and private DNS namespaces, you can also use DNS queries to
+ # discover instances.
#
# @option params [required, String] :namespace_name
# The `HttpName` name of the namespace. It's found in the
# `HttpProperties` member of the `Properties` member of the namespace.
#
@@ -1097,10 +1099,11 @@
# failing open.
#
# @return [Types::DiscoverInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
#
# * {Types::DiscoverInstancesResponse#instances #instances} => Array<Types::HttpInstanceSummary>
+ # * {Types::DiscoverInstancesResponse#instances_revision #instances_revision} => Integer
#
#
# @example Example: Example: Discover registered instances
#
# # Example: Discover registered instances
@@ -1150,20 +1153,55 @@
# resp.instances[0].namespace_name #=> String
# resp.instances[0].service_name #=> String
# resp.instances[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
# resp.instances[0].attributes #=> Hash
# resp.instances[0].attributes["AttrKey"] #=> String
+ # resp.instances_revision #=> Integer
#
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstances AWS API Documentation
#
# @overload discover_instances(params = {})
# @param [Hash] params ({})
def discover_instances(params = {}, options = {})
req = build_request(:discover_instances, params)
req.send_request(options)
end
+ # Discovers the increasing revision associated with an instance.
+ #
+ # @option params [required, String] :namespace_name
+ # The `HttpName` name of the namespace. It's found in the
+ # `HttpProperties` member of the `Properties` member of the namespace.
+ #
+ # @option params [required, String] :service_name
+ # The name of the service that you specified when you registered the
+ # instance.
+ #
+ # @return [Types::DiscoverInstancesRevisionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
+ #
+ # * {Types::DiscoverInstancesRevisionResponse#instances_revision #instances_revision} => Integer
+ #
+ # @example Request syntax with placeholder values
+ #
+ # resp = client.discover_instances_revision({
+ # namespace_name: "NamespaceName", # required
+ # service_name: "ServiceName", # required
+ # })
+ #
+ # @example Response structure
+ #
+ # resp.instances_revision #=> Integer
+ #
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstancesRevision AWS API Documentation
+ #
+ # @overload discover_instances_revision(params = {})
+ # @param [Hash] params ({})
+ def discover_instances_revision(params = {}, options = {})
+ req = build_request(:discover_instances_revision, params)
+ req.send_request(options)
+ end
+
# Gets information about a specified instance.
#
# @option params [required, String] :service_id
# The ID of the service that the instance is associated with.
#
@@ -1376,11 +1414,11 @@
req = build_request(:get_namespace, params)
req.send_request(options)
end
# Gets information about any operation that returns an operation ID in
- # the response, such as a `CreateService` request.
+ # the response, such as a `CreateHttpNamespace` request.
#
# <note markdown="1"> To get a list of operations that match specified criteria, see
# [ListOperations][1].
#
# </note>
@@ -2118,11 +2156,11 @@
# * If the service that's specified by `ServiceId` includes
# `HealthCheckConfig` settings, Cloud Map will create the RouteĀ 53
# health check, but it doesn't associate the health check with the
# alias record.
#
- # * Auto naming currently doesn't support creating alias records that
+ # * Cloud Map currently doesn't support creating alias records that
# route traffic to Amazon Web Services resources other than Elastic
# Load Balancing load balancers.
#
# * If you specify a value for `AWS_ALIAS_DNS_NAME`, don't specify
# values for any of the `AWS_INSTANCE` attributes.
@@ -2659,10 +2697,10 @@
operation: config.api.operation(operation_name),
client: self,
params: params,
config: config)
context[:gem_name] = 'aws-sdk-servicediscovery'
- context[:gem_version] = '1.57.0'
+ context[:gem_version] = '1.58.0'
Seahorse::Client::Request.new(handlers, context)
end
# @api private
# @deprecated