aws-sdk-servicediscovery 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a59dfa78c92233150f6f417f35489465a44fd0
|
4
|
+
data.tar.gz: 71669caf70f732f16ba188c117b013647f2b187e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb8f770bb4b08dfbe4a81333747fb6f473a397a07aa0995a86501de837e42eb408b062a93360c7df394ebf1bda6e5ab5db27e7a5466ea66d2cf50462b4019457
|
7
|
+
data.tar.gz: bf2453f4a4f01a179c15a619d39466d35b7d863d8722800af72a146c52e760fc2a8c3927fc8be37a4c3c01bc7dd5c76fad2a40cf76891562e37992fa57f5867b
|
@@ -159,8 +159,13 @@ module Aws::ServiceDiscovery
|
|
159
159
|
# inside a specified Amazon VPC. The namespace defines your service
|
160
160
|
# naming scheme. For example, if you name your namespace `example.com`
|
161
161
|
# and name your service `backend`, the resulting DNS name for the
|
162
|
-
# service will be `backend.example.com`.
|
163
|
-
#
|
162
|
+
# service will be `backend.example.com`. For the current limit on the
|
163
|
+
# number of namespaces that you can create using the same AWS account,
|
164
|
+
# see [Limits on Auto Naming][1] in the *Route 53 Developer Guide*.
|
165
|
+
#
|
166
|
+
#
|
167
|
+
#
|
168
|
+
# [1]: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities-autonaming
|
164
169
|
#
|
165
170
|
# @option params [required, String] :name
|
166
171
|
# The name that you want to assign to this namespace. When you create a
|
@@ -213,8 +218,13 @@ module Aws::ServiceDiscovery
|
|
213
218
|
# internet. The namespace defines your service naming scheme. For
|
214
219
|
# example, if you name your namespace `example.com` and name your
|
215
220
|
# service `backend`, the resulting DNS name for the service will be
|
216
|
-
# `backend.example.com`.
|
217
|
-
# the same
|
221
|
+
# `backend.example.com`. For the current limit on the number of
|
222
|
+
# namespaces that you can create using the same AWS account, see [Limits
|
223
|
+
# on Auto Naming][1] in the *Route 53 Developer Guide*.
|
224
|
+
#
|
225
|
+
#
|
226
|
+
#
|
227
|
+
# [1]: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities-autonaming
|
218
228
|
#
|
219
229
|
# @option params [required, String] :name
|
220
230
|
# The name that you want to assign to this namespace.
|
@@ -267,6 +277,14 @@ module Aws::ServiceDiscovery
|
|
267
277
|
# request, and Amazon Route 53 uses the values in the configuration to
|
268
278
|
# create the specified entities.
|
269
279
|
#
|
280
|
+
# For the current limit on the number of instances that you can register
|
281
|
+
# using the same namespace and using the same service, see [Limits on
|
282
|
+
# Auto Naming][1] in the *Route 53 Developer Guide*.
|
283
|
+
#
|
284
|
+
#
|
285
|
+
#
|
286
|
+
# [1]: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities-autonaming
|
287
|
+
#
|
270
288
|
# @option params [required, String] :name
|
271
289
|
# The name that you want to assign to the service.
|
272
290
|
#
|
@@ -299,6 +317,8 @@ module Aws::ServiceDiscovery
|
|
299
317
|
#
|
300
318
|
# [1]: http://aws.amazon.com/route53/pricing
|
301
319
|
#
|
320
|
+
# @option params [Types::HealthCheckCustomConfig] :health_check_custom_config
|
321
|
+
#
|
302
322
|
# @return [Types::CreateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
303
323
|
#
|
304
324
|
# * {Types::CreateServiceResponse#service #service} => Types::Service
|
@@ -320,10 +340,13 @@ module Aws::ServiceDiscovery
|
|
320
340
|
# ],
|
321
341
|
# },
|
322
342
|
# health_check_config: {
|
323
|
-
# type: "HTTP", #
|
343
|
+
# type: "HTTP", # accepts HTTP, HTTPS, TCP
|
324
344
|
# resource_path: "ResourcePath",
|
325
345
|
# failure_threshold: 1,
|
326
346
|
# },
|
347
|
+
# health_check_custom_config: {
|
348
|
+
# failure_threshold: 1,
|
349
|
+
# },
|
327
350
|
# })
|
328
351
|
#
|
329
352
|
# @example Response structure
|
@@ -341,6 +364,7 @@ module Aws::ServiceDiscovery
|
|
341
364
|
# resp.service.health_check_config.type #=> String, one of "HTTP", "HTTPS", "TCP"
|
342
365
|
# resp.service.health_check_config.resource_path #=> String
|
343
366
|
# resp.service.health_check_config.failure_threshold #=> Integer
|
367
|
+
# resp.service.health_check_custom_config.failure_threshold #=> Integer
|
344
368
|
# resp.service.create_date #=> Time
|
345
369
|
# resp.service.creator_request_id #=> String
|
346
370
|
#
|
@@ -647,6 +671,7 @@ module Aws::ServiceDiscovery
|
|
647
671
|
# resp.service.health_check_config.type #=> String, one of "HTTP", "HTTPS", "TCP"
|
648
672
|
# resp.service.health_check_config.resource_path #=> String
|
649
673
|
# resp.service.health_check_config.failure_threshold #=> Integer
|
674
|
+
# resp.service.health_check_custom_config.failure_threshold #=> Integer
|
650
675
|
# resp.service.create_date #=> Time
|
651
676
|
# resp.service.creator_request_id #=> String
|
652
677
|
#
|
@@ -918,8 +943,8 @@ module Aws::ServiceDiscovery
|
|
918
943
|
# `ServiceId`, creates or updates a record in the hosted zone that is
|
919
944
|
# associated with the corresponding namespace
|
920
945
|
#
|
921
|
-
# *
|
922
|
-
# health check
|
946
|
+
# * If the service includes `HealthCheckConfig`, creates or updates a
|
947
|
+
# health check based on the settings in the health check configuration
|
923
948
|
#
|
924
949
|
# * Associates the health check, if any, with each of the records
|
925
950
|
#
|
@@ -933,12 +958,20 @@ module Aws::ServiceDiscovery
|
|
933
958
|
#
|
934
959
|
# * **If the health check is healthy**\: returns all the records
|
935
960
|
#
|
936
|
-
# * **If the health check is unhealthy**\: returns the
|
937
|
-
# last healthy instance
|
961
|
+
# * **If the health check is unhealthy**\: returns the applicable value
|
962
|
+
# for the last healthy instance
|
938
963
|
#
|
939
964
|
# * **If you didn't specify a health check configuration**\: returns
|
940
965
|
# all the records
|
941
966
|
#
|
967
|
+
# For the current limit on the number of instances that you can register
|
968
|
+
# using the same namespace and using the same service, see [Limits on
|
969
|
+
# Auto Naming][1] in the *Route 53 Developer Guide*.
|
970
|
+
#
|
971
|
+
#
|
972
|
+
#
|
973
|
+
# [1]: http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/DNSLimitations.html#limits-api-entities-autonaming
|
974
|
+
#
|
942
975
|
# @option params [required, String] :service_id
|
943
976
|
# The ID of the service that you want to use for settings for the
|
944
977
|
# records and health check that Route 53 will create.
|
@@ -1032,9 +1065,9 @@ module Aws::ServiceDiscovery
|
|
1032
1065
|
# example, `192.0.2.44`.
|
1033
1066
|
#
|
1034
1067
|
# This value is required if the service specified by `ServiceId`
|
1035
|
-
# includes settings for an A record.
|
1036
|
-
#
|
1037
|
-
#
|
1068
|
+
# includes settings for an A record. If the service includes settings
|
1069
|
+
# for an SRV record, you must specify a value for `AWS_INSTANCE_IPV4`,
|
1070
|
+
# `AWS_INSTANCE_IPV6`, or both.
|
1038
1071
|
#
|
1039
1072
|
# **AWS\_INSTANCE\_IPV6**
|
1040
1073
|
#
|
@@ -1043,9 +1076,9 @@ module Aws::ServiceDiscovery
|
|
1043
1076
|
# example, `2001:0db8:85a3:0000:0000:abcd:0001:2345`.
|
1044
1077
|
#
|
1045
1078
|
# This value is required if the service specified by `ServiceId`
|
1046
|
-
# includes settings for an AAAA record.
|
1047
|
-
#
|
1048
|
-
#
|
1079
|
+
# includes settings for an AAAA record. If the service includes settings
|
1080
|
+
# for an SRV record, you must specify a value for `AWS_INSTANCE_IPV4`,
|
1081
|
+
# `AWS_INSTANCE_IPV6`, or both.
|
1049
1082
|
#
|
1050
1083
|
# **AWS\_INSTANCE\_PORT**
|
1051
1084
|
#
|
@@ -1090,6 +1123,31 @@ module Aws::ServiceDiscovery
|
|
1090
1123
|
req.send_request(options)
|
1091
1124
|
end
|
1092
1125
|
|
1126
|
+
# @option params [required, String] :service_id
|
1127
|
+
#
|
1128
|
+
# @option params [required, String] :instance_id
|
1129
|
+
#
|
1130
|
+
# @option params [required, String] :status
|
1131
|
+
#
|
1132
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1133
|
+
#
|
1134
|
+
# @example Request syntax with placeholder values
|
1135
|
+
#
|
1136
|
+
# resp = client.update_instance_custom_health_status({
|
1137
|
+
# service_id: "ResourceId", # required
|
1138
|
+
# instance_id: "ResourceId", # required
|
1139
|
+
# status: "HEALTHY", # required, accepts HEALTHY, UNHEALTHY
|
1140
|
+
# })
|
1141
|
+
#
|
1142
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateInstanceCustomHealthStatus AWS API Documentation
|
1143
|
+
#
|
1144
|
+
# @overload update_instance_custom_health_status(params = {})
|
1145
|
+
# @param [Hash] params ({})
|
1146
|
+
def update_instance_custom_health_status(params = {}, options = {})
|
1147
|
+
req = build_request(:update_instance_custom_health_status, params)
|
1148
|
+
req.send_request(options)
|
1149
|
+
end
|
1150
|
+
|
1093
1151
|
# Submits a request to perform the following operations:
|
1094
1152
|
#
|
1095
1153
|
# * Add or delete `DnsRecords` configurations
|
@@ -1098,8 +1156,6 @@ module Aws::ServiceDiscovery
|
|
1098
1156
|
#
|
1099
1157
|
# * Add, update, or delete `HealthCheckConfig` for a specified service
|
1100
1158
|
#
|
1101
|
-
# *
|
1102
|
-
#
|
1103
1159
|
# You must specify all `DnsRecords` configurations (and, optionally,
|
1104
1160
|
# `HealthCheckConfig`) that you want to appear in the updated service.
|
1105
1161
|
# Any current configurations that don't appear in an `UpdateService`
|
@@ -1134,7 +1190,7 @@ module Aws::ServiceDiscovery
|
|
1134
1190
|
# ],
|
1135
1191
|
# },
|
1136
1192
|
# health_check_config: {
|
1137
|
-
# type: "HTTP", #
|
1193
|
+
# type: "HTTP", # accepts HTTP, HTTPS, TCP
|
1138
1194
|
# resource_path: "ResourcePath",
|
1139
1195
|
# failure_threshold: 1,
|
1140
1196
|
# },
|
@@ -1167,7 +1223,7 @@ module Aws::ServiceDiscovery
|
|
1167
1223
|
params: params,
|
1168
1224
|
config: config)
|
1169
1225
|
context[:gem_name] = 'aws-sdk-servicediscovery'
|
1170
|
-
context[:gem_version] = '1.
|
1226
|
+
context[:gem_version] = '1.2.0'
|
1171
1227
|
Seahorse::Client::Request.new(handlers, context)
|
1172
1228
|
end
|
1173
1229
|
|
@@ -22,6 +22,8 @@ module Aws::ServiceDiscovery
|
|
22
22
|
CreatePublicDnsNamespaceResponse = Shapes::StructureShape.new(name: 'CreatePublicDnsNamespaceResponse')
|
23
23
|
CreateServiceRequest = Shapes::StructureShape.new(name: 'CreateServiceRequest')
|
24
24
|
CreateServiceResponse = Shapes::StructureShape.new(name: 'CreateServiceResponse')
|
25
|
+
CustomHealthNotFound = Shapes::StructureShape.new(name: 'CustomHealthNotFound')
|
26
|
+
CustomHealthStatus = Shapes::StringShape.new(name: 'CustomHealthStatus')
|
25
27
|
DeleteNamespaceRequest = Shapes::StructureShape.new(name: 'DeleteNamespaceRequest')
|
26
28
|
DeleteNamespaceResponse = Shapes::StructureShape.new(name: 'DeleteNamespaceResponse')
|
27
29
|
DeleteServiceRequest = Shapes::StructureShape.new(name: 'DeleteServiceRequest')
|
@@ -50,6 +52,7 @@ module Aws::ServiceDiscovery
|
|
50
52
|
GetServiceRequest = Shapes::StructureShape.new(name: 'GetServiceRequest')
|
51
53
|
GetServiceResponse = Shapes::StructureShape.new(name: 'GetServiceResponse')
|
52
54
|
HealthCheckConfig = Shapes::StructureShape.new(name: 'HealthCheckConfig')
|
55
|
+
HealthCheckCustomConfig = Shapes::StructureShape.new(name: 'HealthCheckCustomConfig')
|
53
56
|
HealthCheckType = Shapes::StringShape.new(name: 'HealthCheckType')
|
54
57
|
HealthStatus = Shapes::StringShape.new(name: 'HealthStatus')
|
55
58
|
Instance = Shapes::StructureShape.new(name: 'Instance')
|
@@ -115,6 +118,7 @@ module Aws::ServiceDiscovery
|
|
115
118
|
ServiceSummariesList = Shapes::ListShape.new(name: 'ServiceSummariesList')
|
116
119
|
ServiceSummary = Shapes::StructureShape.new(name: 'ServiceSummary')
|
117
120
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
121
|
+
UpdateInstanceCustomHealthStatusRequest = Shapes::StructureShape.new(name: 'UpdateInstanceCustomHealthStatusRequest')
|
118
122
|
UpdateServiceRequest = Shapes::StructureShape.new(name: 'UpdateServiceRequest')
|
119
123
|
UpdateServiceResponse = Shapes::StructureShape.new(name: 'UpdateServiceResponse')
|
120
124
|
|
@@ -143,6 +147,7 @@ module Aws::ServiceDiscovery
|
|
143
147
|
CreateServiceRequest.add_member(:description, Shapes::ShapeRef.new(shape: ResourceDescription, location_name: "Description"))
|
144
148
|
CreateServiceRequest.add_member(:dns_config, Shapes::ShapeRef.new(shape: DnsConfig, required: true, location_name: "DnsConfig"))
|
145
149
|
CreateServiceRequest.add_member(:health_check_config, Shapes::ShapeRef.new(shape: HealthCheckConfig, location_name: "HealthCheckConfig"))
|
150
|
+
CreateServiceRequest.add_member(:health_check_custom_config, Shapes::ShapeRef.new(shape: HealthCheckCustomConfig, location_name: "HealthCheckCustomConfig"))
|
146
151
|
CreateServiceRequest.struct_class = Types::CreateServiceRequest
|
147
152
|
|
148
153
|
CreateServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "Service"))
|
@@ -220,11 +225,14 @@ module Aws::ServiceDiscovery
|
|
220
225
|
GetServiceResponse.add_member(:service, Shapes::ShapeRef.new(shape: Service, location_name: "Service"))
|
221
226
|
GetServiceResponse.struct_class = Types::GetServiceResponse
|
222
227
|
|
223
|
-
HealthCheckConfig.add_member(:type, Shapes::ShapeRef.new(shape: HealthCheckType,
|
228
|
+
HealthCheckConfig.add_member(:type, Shapes::ShapeRef.new(shape: HealthCheckType, location_name: "Type"))
|
224
229
|
HealthCheckConfig.add_member(:resource_path, Shapes::ShapeRef.new(shape: ResourcePath, location_name: "ResourcePath"))
|
225
230
|
HealthCheckConfig.add_member(:failure_threshold, Shapes::ShapeRef.new(shape: FailureThreshold, location_name: "FailureThreshold"))
|
226
231
|
HealthCheckConfig.struct_class = Types::HealthCheckConfig
|
227
232
|
|
233
|
+
HealthCheckCustomConfig.add_member(:failure_threshold, Shapes::ShapeRef.new(shape: FailureThreshold, location_name: "FailureThreshold"))
|
234
|
+
HealthCheckCustomConfig.struct_class = Types::HealthCheckCustomConfig
|
235
|
+
|
228
236
|
Instance.add_member(:id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "Id"))
|
229
237
|
Instance.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "CreatorRequestId"))
|
230
238
|
Instance.add_member(:attributes, Shapes::ShapeRef.new(shape: Attributes, location_name: "Attributes"))
|
@@ -348,6 +356,7 @@ module Aws::ServiceDiscovery
|
|
348
356
|
Service.add_member(:instance_count, Shapes::ShapeRef.new(shape: ResourceCount, location_name: "InstanceCount"))
|
349
357
|
Service.add_member(:dns_config, Shapes::ShapeRef.new(shape: DnsConfig, location_name: "DnsConfig"))
|
350
358
|
Service.add_member(:health_check_config, Shapes::ShapeRef.new(shape: HealthCheckConfig, location_name: "HealthCheckConfig"))
|
359
|
+
Service.add_member(:health_check_custom_config, Shapes::ShapeRef.new(shape: HealthCheckCustomConfig, location_name: "HealthCheckCustomConfig"))
|
351
360
|
Service.add_member(:create_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreateDate"))
|
352
361
|
Service.add_member(:creator_request_id, Shapes::ShapeRef.new(shape: ResourceId, location_name: "CreatorRequestId"))
|
353
362
|
Service.struct_class = Types::Service
|
@@ -373,6 +382,11 @@ module Aws::ServiceDiscovery
|
|
373
382
|
ServiceSummary.add_member(:instance_count, Shapes::ShapeRef.new(shape: ResourceCount, location_name: "InstanceCount"))
|
374
383
|
ServiceSummary.struct_class = Types::ServiceSummary
|
375
384
|
|
385
|
+
UpdateInstanceCustomHealthStatusRequest.add_member(:service_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "ServiceId"))
|
386
|
+
UpdateInstanceCustomHealthStatusRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "InstanceId"))
|
387
|
+
UpdateInstanceCustomHealthStatusRequest.add_member(:status, Shapes::ShapeRef.new(shape: CustomHealthStatus, required: true, location_name: "Status"))
|
388
|
+
UpdateInstanceCustomHealthStatusRequest.struct_class = Types::UpdateInstanceCustomHealthStatusRequest
|
389
|
+
|
376
390
|
UpdateServiceRequest.add_member(:id, Shapes::ShapeRef.new(shape: ResourceId, required: true, location_name: "Id"))
|
377
391
|
UpdateServiceRequest.add_member(:service, Shapes::ShapeRef.new(shape: ServiceChange, required: true, location_name: "Service"))
|
378
392
|
UpdateServiceRequest.struct_class = Types::UpdateServiceRequest
|
@@ -598,6 +612,18 @@ module Aws::ServiceDiscovery
|
|
598
612
|
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
599
613
|
end)
|
600
614
|
|
615
|
+
api.add_operation(:update_instance_custom_health_status, Seahorse::Model::Operation.new.tap do |o|
|
616
|
+
o.name = "UpdateInstanceCustomHealthStatus"
|
617
|
+
o.http_method = "POST"
|
618
|
+
o.http_request_uri = "/"
|
619
|
+
o.input = Shapes::ShapeRef.new(shape: UpdateInstanceCustomHealthStatusRequest)
|
620
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
621
|
+
o.errors << Shapes::ShapeRef.new(shape: InstanceNotFound)
|
622
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceNotFound)
|
623
|
+
o.errors << Shapes::ShapeRef.new(shape: CustomHealthNotFound)
|
624
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidInput)
|
625
|
+
end)
|
626
|
+
|
601
627
|
api.add_operation(:update_service, Seahorse::Model::Operation.new.tap do |o|
|
602
628
|
o.name = "UpdateService"
|
603
629
|
o.http_method = "POST"
|
@@ -131,10 +131,13 @@ module Aws::ServiceDiscovery
|
|
131
131
|
# ],
|
132
132
|
# },
|
133
133
|
# health_check_config: {
|
134
|
-
# type: "HTTP", #
|
134
|
+
# type: "HTTP", # accepts HTTP, HTTPS, TCP
|
135
135
|
# resource_path: "ResourcePath",
|
136
136
|
# failure_threshold: 1,
|
137
137
|
# },
|
138
|
+
# health_check_custom_config: {
|
139
|
+
# failure_threshold: 1,
|
140
|
+
# },
|
138
141
|
# }
|
139
142
|
#
|
140
143
|
# @!attribute [rw] name
|
@@ -174,6 +177,9 @@ module Aws::ServiceDiscovery
|
|
174
177
|
# [1]: http://aws.amazon.com/route53/pricing
|
175
178
|
# @return [Types::HealthCheckConfig]
|
176
179
|
#
|
180
|
+
# @!attribute [rw] health_check_custom_config
|
181
|
+
# @return [Types::HealthCheckCustomConfig]
|
182
|
+
#
|
177
183
|
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/CreateServiceRequest AWS API Documentation
|
178
184
|
#
|
179
185
|
class CreateServiceRequest < Struct.new(
|
@@ -181,7 +187,8 @@ module Aws::ServiceDiscovery
|
|
181
187
|
:creator_request_id,
|
182
188
|
:description,
|
183
189
|
:dns_config,
|
184
|
-
:health_check_config
|
190
|
+
:health_check_config,
|
191
|
+
:health_check_custom_config)
|
185
192
|
include Aws::Structure
|
186
193
|
end
|
187
194
|
|
@@ -801,7 +808,7 @@ module Aws::ServiceDiscovery
|
|
801
808
|
# data as a hash:
|
802
809
|
#
|
803
810
|
# {
|
804
|
-
# type: "HTTP", #
|
811
|
+
# type: "HTTP", # accepts HTTP, HTTPS, TCP
|
805
812
|
# resource_path: "ResourcePath",
|
806
813
|
# failure_threshold: 1,
|
807
814
|
# }
|
@@ -866,6 +873,23 @@ module Aws::ServiceDiscovery
|
|
866
873
|
include Aws::Structure
|
867
874
|
end
|
868
875
|
|
876
|
+
# @note When making an API call, you may pass HealthCheckCustomConfig
|
877
|
+
# data as a hash:
|
878
|
+
#
|
879
|
+
# {
|
880
|
+
# failure_threshold: 1,
|
881
|
+
# }
|
882
|
+
#
|
883
|
+
# @!attribute [rw] failure_threshold
|
884
|
+
# @return [Integer]
|
885
|
+
#
|
886
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/HealthCheckCustomConfig AWS API Documentation
|
887
|
+
#
|
888
|
+
class HealthCheckCustomConfig < Struct.new(
|
889
|
+
:failure_threshold)
|
890
|
+
include Aws::Structure
|
891
|
+
end
|
892
|
+
|
869
893
|
# A complex type that contains information about an instance that Amazon
|
870
894
|
# Route 53 creates when you submit a `RegisterInstance` request.
|
871
895
|
#
|
@@ -917,67 +941,75 @@ module Aws::ServiceDiscovery
|
|
917
941
|
#
|
918
942
|
# Supported attribute keys include the following:
|
919
943
|
#
|
920
|
-
#
|
921
|
-
# record that routes traffic to an Elastic Load Balancing load
|
922
|
-
# balancer, specify the DNS name that is associated with the load
|
923
|
-
# balancer. For information about how to get the DNS name, see
|
924
|
-
# "DNSName" in the topic [AliasTarget][1].
|
944
|
+
# **AWS\_ALIAS\_DNS\_NAME**
|
925
945
|
#
|
926
|
-
#
|
946
|
+
# ****
|
927
947
|
#
|
928
|
-
#
|
929
|
-
#
|
930
|
-
#
|
948
|
+
# If you want Route 53 to create an alias record that routes traffic
|
949
|
+
# to an Elastic Load Balancing load balancer, specify the DNS name
|
950
|
+
# that is associated with the load balancer. For information about how
|
951
|
+
# to get the DNS name, see "DNSName" in the topic [AliasTarget][1].
|
931
952
|
#
|
932
|
-
#
|
933
|
-
# `RoutingPolicy` must be `WEIGHTED`.
|
953
|
+
# Note the following:
|
934
954
|
#
|
935
|
-
#
|
936
|
-
#
|
937
|
-
# check, but it won't associate the health check with the alias
|
938
|
-
# record.
|
955
|
+
# * The configuration for the service that is specified by `ServiceId`
|
956
|
+
# must include settings for an A record, an AAAA record, or both.
|
939
957
|
#
|
940
|
-
#
|
941
|
-
#
|
942
|
-
# balancers.
|
958
|
+
# * In the service that is specified by `ServiceId`, the value of
|
959
|
+
# `RoutingPolicy` must be `WEIGHTED`.
|
943
960
|
#
|
944
|
-
#
|
945
|
-
#
|
961
|
+
# * If the service that is specified by `ServiceId` includes
|
962
|
+
# `HealthCheckConfig` settings, Route 53 will create the health
|
963
|
+
# check, but it won't associate the health check with the alias
|
964
|
+
# record.
|
946
965
|
#
|
947
|
-
# *
|
948
|
-
#
|
949
|
-
# response to DNS queries, for example, `example.com`.
|
966
|
+
# * Auto naming currently doesn't support creating alias records that
|
967
|
+
# route traffic to AWS resources other than ELB load balancers.
|
950
968
|
#
|
951
|
-
#
|
952
|
-
#
|
969
|
+
# * If you specify a value for `AWS_ALIAS_DNS_NAME`, don't specify
|
970
|
+
# values for any of the `AWS_INSTANCE` attributes.
|
953
971
|
#
|
954
|
-
#
|
955
|
-
# record, the IPv4 address that you want Route 53 to return in
|
956
|
-
# response to DNS queries, for example, `192.0.2.44`.
|
972
|
+
# **AWS\_INSTANCE\_CNAME**
|
957
973
|
#
|
958
|
-
#
|
959
|
-
#
|
960
|
-
#
|
961
|
-
# for an SRV record.
|
974
|
+
# If the service configuration includes a CNAME record, the domain
|
975
|
+
# name that you want Route 53 to return in response to DNS queries,
|
976
|
+
# for example, `example.com`.
|
962
977
|
#
|
963
|
-
#
|
964
|
-
#
|
965
|
-
# response to DNS queries, for example,
|
966
|
-
# `2001:0db8:85a3:0000:0000:abcd:0001:2345`.
|
978
|
+
# This value is required if the service specified by `ServiceId`
|
979
|
+
# includes settings for an CNAME record.
|
967
980
|
#
|
968
|
-
#
|
969
|
-
# includes settings for an AAAA record. Either `AWS_INSTANCE_IPV4`
|
970
|
-
# or `AWS_INSTANCE_IPV6` is required if the service includes
|
971
|
-
# settings for an SRV record.
|
981
|
+
# **AWS\_INSTANCE\_IPV4**
|
972
982
|
#
|
973
|
-
#
|
974
|
-
#
|
975
|
-
#
|
976
|
-
#
|
977
|
-
#
|
983
|
+
# If the service configuration includes an A record, the IPv4 address
|
984
|
+
# that you want Route 53 to return in response to DNS queries, for
|
985
|
+
# example, `192.0.2.44`.
|
986
|
+
#
|
987
|
+
# This value is required if the service specified by `ServiceId`
|
988
|
+
# includes settings for an A record. If the service includes settings
|
989
|
+
# for an SRV record, you must specify a value for `AWS_INSTANCE_IPV4`,
|
990
|
+
# `AWS_INSTANCE_IPV6`, or both.
|
991
|
+
#
|
992
|
+
# **AWS\_INSTANCE\_IPV6**
|
978
993
|
#
|
979
|
-
#
|
980
|
-
#
|
994
|
+
# If the service configuration includes an AAAA record, the IPv6
|
995
|
+
# address that you want Route 53 to return in response to DNS queries,
|
996
|
+
# for example, `2001:0db8:85a3:0000:0000:abcd:0001:2345`.
|
997
|
+
#
|
998
|
+
# This value is required if the service specified by `ServiceId`
|
999
|
+
# includes settings for an AAAA record. If the service includes
|
1000
|
+
# settings for an SRV record, you must specify a value for
|
1001
|
+
# `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
|
1002
|
+
#
|
1003
|
+
# **AWS\_INSTANCE\_PORT**
|
1004
|
+
#
|
1005
|
+
# If the service includes an SRV record, the value that you want Route
|
1006
|
+
# 53 to return for the port.
|
1007
|
+
#
|
1008
|
+
# If the service includes `HealthCheckConfig`, the port on the
|
1009
|
+
# endpoint that you want Route 53 to send requests to.
|
1010
|
+
#
|
1011
|
+
# This value is required if you specified settings for an SRV record
|
1012
|
+
# when you created the service.
|
981
1013
|
#
|
982
1014
|
#
|
983
1015
|
#
|
@@ -1812,9 +1844,9 @@ module Aws::ServiceDiscovery
|
|
1812
1844
|
# example, `192.0.2.44`.
|
1813
1845
|
#
|
1814
1846
|
# This value is required if the service specified by `ServiceId`
|
1815
|
-
# includes settings for an A record.
|
1816
|
-
#
|
1817
|
-
#
|
1847
|
+
# includes settings for an A record. If the service includes settings
|
1848
|
+
# for an SRV record, you must specify a value for `AWS_INSTANCE_IPV4`,
|
1849
|
+
# `AWS_INSTANCE_IPV6`, or both.
|
1818
1850
|
#
|
1819
1851
|
# **AWS\_INSTANCE\_IPV6**
|
1820
1852
|
#
|
@@ -1823,9 +1855,9 @@ module Aws::ServiceDiscovery
|
|
1823
1855
|
# for example, `2001:0db8:85a3:0000:0000:abcd:0001:2345`.
|
1824
1856
|
#
|
1825
1857
|
# This value is required if the service specified by `ServiceId`
|
1826
|
-
# includes settings for an AAAA record.
|
1827
|
-
#
|
1828
|
-
#
|
1858
|
+
# includes settings for an AAAA record. If the service includes
|
1859
|
+
# settings for an SRV record, you must specify a value for
|
1860
|
+
# `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
|
1829
1861
|
#
|
1830
1862
|
# **AWS\_INSTANCE\_PORT**
|
1831
1863
|
#
|
@@ -1909,6 +1941,9 @@ module Aws::ServiceDiscovery
|
|
1909
1941
|
# [1]: http://aws.amazon.com/route53/pricing
|
1910
1942
|
# @return [Types::HealthCheckConfig]
|
1911
1943
|
#
|
1944
|
+
# @!attribute [rw] health_check_custom_config
|
1945
|
+
# @return [Types::HealthCheckCustomConfig]
|
1946
|
+
#
|
1912
1947
|
# @!attribute [rw] create_date
|
1913
1948
|
# The date and time that the service was created, in Unix format and
|
1914
1949
|
# Coordinated Universal Time (UTC). The value of `CreateDate` is
|
@@ -1933,6 +1968,7 @@ module Aws::ServiceDiscovery
|
|
1933
1968
|
:instance_count,
|
1934
1969
|
:dns_config,
|
1935
1970
|
:health_check_config,
|
1971
|
+
:health_check_custom_config,
|
1936
1972
|
:create_date,
|
1937
1973
|
:creator_request_id)
|
1938
1974
|
include Aws::Structure
|
@@ -1954,7 +1990,7 @@ module Aws::ServiceDiscovery
|
|
1954
1990
|
# ],
|
1955
1991
|
# },
|
1956
1992
|
# health_check_config: {
|
1957
|
-
# type: "HTTP", #
|
1993
|
+
# type: "HTTP", # accepts HTTP, HTTPS, TCP
|
1958
1994
|
# resource_path: "ResourcePath",
|
1959
1995
|
# failure_threshold: 1,
|
1960
1996
|
# },
|
@@ -2123,6 +2159,33 @@ module Aws::ServiceDiscovery
|
|
2123
2159
|
include Aws::Structure
|
2124
2160
|
end
|
2125
2161
|
|
2162
|
+
# @note When making an API call, you may pass UpdateInstanceCustomHealthStatusRequest
|
2163
|
+
# data as a hash:
|
2164
|
+
#
|
2165
|
+
# {
|
2166
|
+
# service_id: "ResourceId", # required
|
2167
|
+
# instance_id: "ResourceId", # required
|
2168
|
+
# status: "HEALTHY", # required, accepts HEALTHY, UNHEALTHY
|
2169
|
+
# }
|
2170
|
+
#
|
2171
|
+
# @!attribute [rw] service_id
|
2172
|
+
# @return [String]
|
2173
|
+
#
|
2174
|
+
# @!attribute [rw] instance_id
|
2175
|
+
# @return [String]
|
2176
|
+
#
|
2177
|
+
# @!attribute [rw] status
|
2178
|
+
# @return [String]
|
2179
|
+
#
|
2180
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateInstanceCustomHealthStatusRequest AWS API Documentation
|
2181
|
+
#
|
2182
|
+
class UpdateInstanceCustomHealthStatusRequest < Struct.new(
|
2183
|
+
:service_id,
|
2184
|
+
:instance_id,
|
2185
|
+
:status)
|
2186
|
+
include Aws::Structure
|
2187
|
+
end
|
2188
|
+
|
2126
2189
|
# @note When making an API call, you may pass UpdateServiceRequest
|
2127
2190
|
# data as a hash:
|
2128
2191
|
#
|
@@ -2139,7 +2202,7 @@ module Aws::ServiceDiscovery
|
|
2139
2202
|
# ],
|
2140
2203
|
# },
|
2141
2204
|
# health_check_config: {
|
2142
|
-
# type: "HTTP", #
|
2205
|
+
# type: "HTTP", # accepts HTTP, HTTPS, TCP
|
2143
2206
|
# resource_path: "ResourcePath",
|
2144
2207
|
# failure_threshold: 1,
|
2145
2208
|
# },
|
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.2.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: 2018-
|
11
|
+
date: 2018-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.5.
|
78
|
+
rubygems_version: 2.5.2.2
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: AWS SDK for Ruby - ServiceDiscovery
|