aws-sdk-servicediscovery 1.56.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: 9257f8e383b65b93e8c3b37051c1f46aa33468ee880dc0571cd0c3c663199656
4
- data.tar.gz: 7de8428a72693ef610104e2f8e1ff91775b74feed93b42f62ab0cb86400f6a3e
3
+ metadata.gz: ae1d1594837bbff76d7c677c28bd18939beb0f522d9d21b14931ad93a152148c
4
+ data.tar.gz: 43303667288d9c438d008e81e3e6eddbdd1ea00705714198f6c9b28f3eb0b3ae
5
5
  SHA512:
6
- metadata.gz: eb74408dbd3a2acacabc4962f90e19ad012f1447e62fbda8d088cc5a4a76ed265597b5f6b30b7d7dd59d0d247939ef71f2c311254007f6d4e77c4dc7642ca86c
7
- data.tar.gz: 836afaab94dbe2c1f0abb76c604b884e4d0569506ce9bb3924d0878f5a5b3e42bfa0fa46a862eb43b8a9478da48fe7cb09e52ffb19e2097c56db58d245fda0cc
6
+ metadata.gz: 56fbd130d1f165b0e2f96a85f0d1238e1ea3865254b46f332de28b1aae5acae1007b820177fa8d9fd25718947c7c569f52056a035a10476661950ee077e755d4
7
+ data.tar.gz: eef8fa8b4f77363601a3cbdcd6264ba9026e62cf356e7ca29908df0d8a6471070a918d5f0989ef8852d42b516b65a1f79023f21b11c2ef4f1aa3e976857f1fef
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
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
+
9
+ 1.57.0 (2023-09-19)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.56.0 (2023-07-11)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.56.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.56.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"
@@ -39,6 +39,15 @@ module Aws::ServiceDiscovery
39
39
  end
40
40
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
41
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
43
+ return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{region}.amazonaws.com", headers: {}, properties: {})
44
+ end
45
+ if Aws::Endpoints::Matchers.string_equals?("aws-cn", Aws::Endpoints::Matchers.attr(partition_result, "name"))
46
+ return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{region}.amazonaws.com.cn", headers: {}, properties: {})
47
+ end
48
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
49
+ return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{region}.amazonaws.com", headers: {}, properties: {})
50
+ end
42
51
  return Aws::Endpoints::Endpoint.new(url: "https://servicediscovery.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
52
  end
44
53
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
@@ -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.56.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.56.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-07-11 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