aws-sdk-servicediscovery 1.57.0 → 1.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-servicediscovery/client.rb +43 -5
- data/lib/aws-sdk-servicediscovery/client_api.rb +26 -0
- data/lib/aws-sdk-servicediscovery/endpoints.rb +14 -0
- data/lib/aws-sdk-servicediscovery/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-servicediscovery/types.rb +45 -3
- data/lib/aws-sdk-servicediscovery.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38034cb58cb3e0261c14270a30b11bfcad2739c6a69076bc4a7efb2ff6978c4d
|
4
|
+
data.tar.gz: d6a40ee70c6f06295bd26d448b21d5f2349efe851562b78005bd34cd76d8dca4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 255dd99060735ad78cd339608b5413c1dec0b85bae4a1e41e5c8624911538778165e0feee023027b5bd8f6a3c26df13e8d85b361bece11d077c3be5ba8e3b972
|
7
|
+
data.tar.gz: 3379141af91d61b3a988e1c3bf0f60e46f1fd461e24ad1e735f2d00c061a731c766956ddaa6c3f5d4f6bedfcf84175470e6f9d34e5b75fe6011fca854f39de46
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.59.0 (2023-09-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.58.0 (2023-09-20)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Adds a new DiscoverInstancesRevision API and also adds InstanceRevision field to the DiscoverInstances API response.
|
13
|
+
|
4
14
|
1.57.0 (2023-09-19)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.59.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.
|
1048
|
-
#
|
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 `
|
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
|
-
# *
|
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.
|
2702
|
+
context[:gem_version] = '1.59.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
|
-
# *
|
2498
|
-
#
|
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
|
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.
|
4
|
+
version: 1.59.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-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.184.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.184.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|