aws-sdk-servicediscovery 1.57.0 → 1.58.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edc9e6808f3dac85b737774a08e261baf09de62d85ef3874dc0dcef3bdf270ba
4
- data.tar.gz: 37b6716d308f5ca9704cfcf83eac6d2804aa57af7941291e0556e89ec8f4531f
3
+ metadata.gz: ae1d1594837bbff76d7c677c28bd18939beb0f522d9d21b14931ad93a152148c
4
+ data.tar.gz: 43303667288d9c438d008e81e3e6eddbdd1ea00705714198f6c9b28f3eb0b3ae
5
5
  SHA512:
6
- metadata.gz: 17254c33244af0b48ccd620a294cc88c5af47ee63d355f3bcff9a15fc7300519b8b7fb8ac93c336fe463eda398c94e75222b4d53da829f1faf019433ae6f501e
7
- data.tar.gz: 957e714bbdad6cb4bae33fa8fe582fd2cde228dd7149e40df8c5356836c5a7681540110c6e85a259b52b182ec7953ceaac6ebe4ef788d7b6b5b47b8484c735d3
6
+ metadata.gz: 56fbd130d1f165b0e2f96a85f0d1238e1ea3865254b46f332de28b1aae5acae1007b820177fa8d9fd25718947c7c569f52056a035a10476661950ee077e755d4
7
+ data.tar.gz: eef8fa8b4f77363601a3cbdcd6264ba9026e62cf356e7ca29908df0d8a6471070a918d5f0989ef8852d42b516b65a1f79023f21b11c2ef4f1aa3e976857f1fef
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.58.0 (2023-09-20)
5
+ ------------------
6
+
7
+ * Feature - Adds a new DiscoverInstancesRevision API and also adds InstanceRevision field to the DiscoverInstances API response.
8
+
4
9
  1.57.0 (2023-09-19)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.57.0
1
+ 1.58.0
@@ -1044,8 +1044,10 @@ module Aws::ServiceDiscovery
1044
1044
 
1045
1045
  # Discovers registered instances for a specified namespace and service.
1046
1046
  # You can use `DiscoverInstances` to discover instances for any type of
1047
- # namespace. For public and private DNS namespaces, you can also use DNS
1048
- # queries to discover instances.
1047
+ # namespace. `DiscoverInstances` returns a randomized list of instances
1048
+ # allowing customers to distribute traffic evenly across instances. For
1049
+ # public and private DNS namespaces, you can also use DNS queries to
1050
+ # discover instances.
1049
1051
  #
1050
1052
  # @option params [required, String] :namespace_name
1051
1053
  # The `HttpName` name of the namespace. It's found in the
@@ -1099,6 +1101,7 @@ module Aws::ServiceDiscovery
1099
1101
  # @return [Types::DiscoverInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1100
1102
  #
1101
1103
  # * {Types::DiscoverInstancesResponse#instances #instances} => Array<Types::HttpInstanceSummary>
1104
+ # * {Types::DiscoverInstancesResponse#instances_revision #instances_revision} => Integer
1102
1105
  #
1103
1106
  #
1104
1107
  # @example Example: Example: Discover registered instances
@@ -1152,6 +1155,7 @@ module Aws::ServiceDiscovery
1152
1155
  # resp.instances[0].health_status #=> String, one of "HEALTHY", "UNHEALTHY", "UNKNOWN"
1153
1156
  # resp.instances[0].attributes #=> Hash
1154
1157
  # resp.instances[0].attributes["AttrKey"] #=> String
1158
+ # resp.instances_revision #=> Integer
1155
1159
  #
1156
1160
  # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstances AWS API Documentation
1157
1161
  #
@@ -1162,6 +1166,40 @@ module Aws::ServiceDiscovery
1162
1166
  req.send_request(options)
1163
1167
  end
1164
1168
 
1169
+ # Discovers the increasing revision associated with an instance.
1170
+ #
1171
+ # @option params [required, String] :namespace_name
1172
+ # The `HttpName` name of the namespace. It's found in the
1173
+ # `HttpProperties` member of the `Properties` member of the namespace.
1174
+ #
1175
+ # @option params [required, String] :service_name
1176
+ # The name of the service that you specified when you registered the
1177
+ # instance.
1178
+ #
1179
+ # @return [Types::DiscoverInstancesRevisionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1180
+ #
1181
+ # * {Types::DiscoverInstancesRevisionResponse#instances_revision #instances_revision} => Integer
1182
+ #
1183
+ # @example Request syntax with placeholder values
1184
+ #
1185
+ # resp = client.discover_instances_revision({
1186
+ # namespace_name: "NamespaceName", # required
1187
+ # service_name: "ServiceName", # required
1188
+ # })
1189
+ #
1190
+ # @example Response structure
1191
+ #
1192
+ # resp.instances_revision #=> Integer
1193
+ #
1194
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstancesRevision AWS API Documentation
1195
+ #
1196
+ # @overload discover_instances_revision(params = {})
1197
+ # @param [Hash] params ({})
1198
+ def discover_instances_revision(params = {}, options = {})
1199
+ req = build_request(:discover_instances_revision, params)
1200
+ req.send_request(options)
1201
+ end
1202
+
1165
1203
  # Gets information about a specified instance.
1166
1204
  #
1167
1205
  # @option params [required, String] :service_id
@@ -1378,7 +1416,7 @@ module Aws::ServiceDiscovery
1378
1416
  end
1379
1417
 
1380
1418
  # Gets information about any operation that returns an operation ID in
1381
- # the response, such as a `CreateService` request.
1419
+ # the response, such as a `CreateHttpNamespace` request.
1382
1420
  #
1383
1421
  # <note markdown="1"> To get a list of operations that match specified criteria, see
1384
1422
  # [ListOperations][1].
@@ -2120,7 +2158,7 @@ module Aws::ServiceDiscovery
2120
2158
  # health check, but it doesn't associate the health check with the
2121
2159
  # alias record.
2122
2160
  #
2123
- # * Auto naming currently doesn't support creating alias records that
2161
+ # * Cloud Map currently doesn't support creating alias records that
2124
2162
  # route traffic to Amazon Web Services resources other than Elastic
2125
2163
  # Load Balancing load balancers.
2126
2164
  #
@@ -2661,7 +2699,7 @@ module Aws::ServiceDiscovery
2661
2699
  params: params,
2662
2700
  config: config)
2663
2701
  context[:gem_name] = 'aws-sdk-servicediscovery'
2664
- context[:gem_version] = '1.57.0'
2702
+ context[:gem_version] = '1.58.0'
2665
2703
  Seahorse::Client::Request.new(handlers, context)
2666
2704
  end
2667
2705
 
@@ -37,6 +37,8 @@ module Aws::ServiceDiscovery
37
37
  DeregisterInstanceResponse = Shapes::StructureShape.new(name: 'DeregisterInstanceResponse')
38
38
  DiscoverInstancesRequest = Shapes::StructureShape.new(name: 'DiscoverInstancesRequest')
39
39
  DiscoverInstancesResponse = Shapes::StructureShape.new(name: 'DiscoverInstancesResponse')
40
+ DiscoverInstancesRevisionRequest = Shapes::StructureShape.new(name: 'DiscoverInstancesRevisionRequest')
41
+ DiscoverInstancesRevisionResponse = Shapes::StructureShape.new(name: 'DiscoverInstancesRevisionResponse')
40
42
  DiscoverMaxResults = Shapes::IntegerShape.new(name: 'DiscoverMaxResults')
41
43
  DnsConfig = Shapes::StructureShape.new(name: 'DnsConfig')
42
44
  DnsConfigChange = Shapes::StructureShape.new(name: 'DnsConfigChange')
@@ -137,6 +139,7 @@ module Aws::ServiceDiscovery
137
139
  ResourceLimitExceeded = Shapes::StructureShape.new(name: 'ResourceLimitExceeded')
138
140
  ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
139
141
  ResourcePath = Shapes::StringShape.new(name: 'ResourcePath')
142
+ Revision = Shapes::IntegerShape.new(name: 'Revision')
140
143
  RoutingPolicy = Shapes::StringShape.new(name: 'RoutingPolicy')
141
144
  SOA = Shapes::StructureShape.new(name: 'SOA')
142
145
  SOAChange = Shapes::StructureShape.new(name: 'SOAChange')
@@ -250,8 +253,16 @@ module Aws::ServiceDiscovery
250
253
  DiscoverInstancesRequest.struct_class = Types::DiscoverInstancesRequest
251
254
 
252
255
  DiscoverInstancesResponse.add_member(:instances, Shapes::ShapeRef.new(shape: HttpInstanceSummaryList, location_name: "Instances"))
256
+ DiscoverInstancesResponse.add_member(:instances_revision, Shapes::ShapeRef.new(shape: Revision, location_name: "InstancesRevision"))
253
257
  DiscoverInstancesResponse.struct_class = Types::DiscoverInstancesResponse
254
258
 
259
+ DiscoverInstancesRevisionRequest.add_member(:namespace_name, Shapes::ShapeRef.new(shape: NamespaceName, required: true, location_name: "NamespaceName"))
260
+ DiscoverInstancesRevisionRequest.add_member(:service_name, Shapes::ShapeRef.new(shape: ServiceName, required: true, location_name: "ServiceName"))
261
+ DiscoverInstancesRevisionRequest.struct_class = Types::DiscoverInstancesRevisionRequest
262
+
263
+ DiscoverInstancesRevisionResponse.add_member(:instances_revision, Shapes::ShapeRef.new(shape: Revision, location_name: "InstancesRevision"))
264
+ DiscoverInstancesRevisionResponse.struct_class = Types::DiscoverInstancesRevisionResponse
265
+
255
266
  DnsConfig.add_member(:namespace_id, Shapes::ShapeRef.new(shape: ResourceId, deprecated: true, location_name: "NamespaceId", metadata: {"deprecatedMessage"=>"Top level attribute in request should be used to reference namespace-id"}))
256
267
  DnsConfig.add_member(:routing_policy, Shapes::ShapeRef.new(shape: RoutingPolicy, location_name: "RoutingPolicy"))
257
268
  DnsConfig.add_member(:dns_records, Shapes::ShapeRef.new(shape: DnsRecordList, required: true, location_name: "DnsRecords"))
@@ -758,6 +769,21 @@ module Aws::ServiceDiscovery
758
769
  o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
759
770
  end)
760
771
 
772
+ api.add_operation(:discover_instances_revision, Seahorse::Model::Operation.new.tap do |o|
773
+ o.name = "DiscoverInstancesRevision"
774
+ o.http_method = "POST"
775
+ o.http_request_uri = "/"
776
+ o.endpoint_pattern = {
777
+ "hostPrefix" => "data-",
778
+ }
779
+ o.input = Shapes::ShapeRef.new(shape: DiscoverInstancesRevisionRequest)
780
+ o.output = Shapes::ShapeRef.new(shape: DiscoverInstancesRevisionResponse)
781
+ o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
782
+ o.errors << Shapes::ShapeRef.new(shape: NamespaceNotFound)
783
+ o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
784
+ o.errors << Shapes::ShapeRef.new(shape: RequestLimitExceeded)
785
+ end)
786
+
761
787
  api.add_operation(:get_instance, Seahorse::Model::Operation.new.tap do |o|
762
788
  o.name = "GetInstance"
763
789
  o.http_method = "POST"
@@ -124,6 +124,20 @@ module Aws::ServiceDiscovery
124
124
  end
125
125
  end
126
126
 
127
+ class DiscoverInstancesRevision
128
+ def self.build(context)
129
+ unless context.config.regional_endpoint
130
+ endpoint = context.config.endpoint.to_s
131
+ end
132
+ Aws::ServiceDiscovery::EndpointParameters.new(
133
+ region: context.config.region,
134
+ use_dual_stack: context.config.use_dualstack_endpoint,
135
+ use_fips: context.config.use_fips_endpoint,
136
+ endpoint: endpoint,
137
+ )
138
+ end
139
+ end
140
+
127
141
  class GetInstance
128
142
  def self.build(context)
129
143
  unless context.config.regional_endpoint
@@ -72,6 +72,8 @@ module Aws::ServiceDiscovery
72
72
  Aws::ServiceDiscovery::Endpoints::DeregisterInstance.build(context)
73
73
  when :discover_instances
74
74
  Aws::ServiceDiscovery::Endpoints::DiscoverInstances.build(context)
75
+ when :discover_instances_revision
76
+ Aws::ServiceDiscovery::Endpoints::DiscoverInstancesRevision.build(context)
75
77
  when :get_instance
76
78
  Aws::ServiceDiscovery::Endpoints::GetInstance.build(context)
77
79
  when :get_instances_health_status
@@ -501,10 +501,52 @@ module Aws::ServiceDiscovery
501
501
  # registered instance.
502
502
  # @return [Array<Types::HttpInstanceSummary>]
503
503
  #
504
+ # @!attribute [rw] instances_revision
505
+ # The increasing revision associated to the response Instances list.
506
+ # If a new instance is registered or deregistered, the
507
+ # `InstancesRevision` updates. The health status updates don't update
508
+ # `InstancesRevision`.
509
+ # @return [Integer]
510
+ #
504
511
  # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstancesResponse AWS API Documentation
505
512
  #
506
513
  class DiscoverInstancesResponse < Struct.new(
507
- :instances)
514
+ :instances,
515
+ :instances_revision)
516
+ SENSITIVE = []
517
+ include Aws::Structure
518
+ end
519
+
520
+ # @!attribute [rw] namespace_name
521
+ # The `HttpName` name of the namespace. It's found in the
522
+ # `HttpProperties` member of the `Properties` member of the namespace.
523
+ # @return [String]
524
+ #
525
+ # @!attribute [rw] service_name
526
+ # The name of the service that you specified when you registered the
527
+ # instance.
528
+ # @return [String]
529
+ #
530
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstancesRevisionRequest AWS API Documentation
531
+ #
532
+ class DiscoverInstancesRevisionRequest < Struct.new(
533
+ :namespace_name,
534
+ :service_name)
535
+ SENSITIVE = []
536
+ include Aws::Structure
537
+ end
538
+
539
+ # @!attribute [rw] instances_revision
540
+ # The increasing revision associated to the response Instances list.
541
+ # If a new instance is registered or deregistered, the
542
+ # `InstancesRevision` updates. The health status updates don't update
543
+ # `InstancesRevision`.
544
+ # @return [Integer]
545
+ #
546
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstancesRevisionResponse AWS API Documentation
547
+ #
548
+ class DiscoverInstancesRevisionResponse < Struct.new(
549
+ :instances_revision)
508
550
  SENSITIVE = []
509
551
  include Aws::Structure
510
552
  end
@@ -2494,8 +2536,8 @@ module Aws::ServiceDiscovery
2494
2536
  # health check, but it doesn't associate the health check with
2495
2537
  # the alias record.
2496
2538
  #
2497
- # * Auto naming currently doesn't support creating alias records
2498
- # that route traffic to Amazon Web Services resources other than
2539
+ # * Cloud Map currently doesn't support creating alias records that
2540
+ # route traffic to Amazon Web Services resources other than
2499
2541
  # Elastic Load Balancing load balancers.
2500
2542
  #
2501
2543
  # * If you specify a value for `AWS_ALIAS_DNS_NAME`, don't specify
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-servicediscovery/customizations'
52
52
  # @!group service
53
53
  module Aws::ServiceDiscovery
54
54
 
55
- GEM_VERSION = '1.57.0'
55
+ GEM_VERSION = '1.58.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-servicediscovery
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.57.0
4
+ version: 1.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-19 00:00:00.000000000 Z
11
+ date: 2023-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core