aws-sdk-servicediscovery 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-servicediscovery.rb +1 -1
- data/lib/aws-sdk-servicediscovery/client.rb +230 -114
- data/lib/aws-sdk-servicediscovery/client_api.rb +4 -1
- data/lib/aws-sdk-servicediscovery/types.rb +695 -274
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0735231ab6d9f6e22aaf313e08c3806f9c98b990
|
4
|
+
data.tar.gz: e68fd1dcb414b0326b81f670b8319a41ceca365c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e67ddfb5d7d3a888067b1dc1802565789e8d12518d550463699c226e61d3e015ba861c8d4475afd22226ac5988b7e0d389e5d727068d9d6a4227e0905f125962
|
7
|
+
data.tar.gz: a0189f283cc472b56abee04da43f3b271be4f2aa23d4b2348fa2cafb8cf4c73f29bc56ac0df5fc7c3310013181c83a956d27706e04c24a707226e89fcd53ab0d
|
@@ -168,9 +168,10 @@ module Aws::ServiceDiscovery
|
|
168
168
|
# has the same name as the namespace.
|
169
169
|
#
|
170
170
|
# @option params [String] :creator_request_id
|
171
|
-
#
|
172
|
-
#
|
173
|
-
#
|
171
|
+
# A unique string that identifies the request and that allows failed
|
172
|
+
# `CreatePrivateDnsNamespace` requests to be retried without the risk of
|
173
|
+
# executing the operation twice. `CreatorRequestId` can be any unique
|
174
|
+
# string, for example, a date/time stamp.
|
174
175
|
#
|
175
176
|
# **A suitable default value is auto-generated.** You should normally
|
176
177
|
# not need to pass this option.**
|
@@ -219,9 +220,10 @@ module Aws::ServiceDiscovery
|
|
219
220
|
# The name that you want to assign to this namespace.
|
220
221
|
#
|
221
222
|
# @option params [String] :creator_request_id
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
223
|
+
# A unique string that identifies the request and that allows failed
|
224
|
+
# `CreatePublicDnsNamespace` requests to be retried without the risk of
|
225
|
+
# executing the operation twice. `CreatorRequestId` can be any unique
|
226
|
+
# string, for example, a date/time stamp.
|
225
227
|
#
|
226
228
|
# **A suitable default value is auto-generated.** You should normally
|
227
229
|
# not need to pass this option.**
|
@@ -254,24 +256,25 @@ module Aws::ServiceDiscovery
|
|
254
256
|
req.send_request(options)
|
255
257
|
end
|
256
258
|
|
257
|
-
# Creates a service, which defines
|
259
|
+
# Creates a service, which defines the configuration for the following
|
258
260
|
# entities:
|
259
261
|
#
|
260
|
-
# *
|
262
|
+
# * Up to three records (A, AAAA, and SRV) or one CNAME record
|
261
263
|
#
|
262
264
|
# * Optionally, a health check
|
263
265
|
#
|
264
266
|
# After you create the service, you can submit a RegisterInstance
|
265
|
-
# request, and Amazon Route 53 uses the values in the
|
266
|
-
# the specified entities.
|
267
|
+
# request, and Amazon Route 53 uses the values in the configuration to
|
268
|
+
# create the specified entities.
|
267
269
|
#
|
268
270
|
# @option params [required, String] :name
|
269
271
|
# The name that you want to assign to the service.
|
270
272
|
#
|
271
273
|
# @option params [String] :creator_request_id
|
272
|
-
#
|
273
|
-
#
|
274
|
-
#
|
274
|
+
# A unique string that identifies the request and that allows failed
|
275
|
+
# `CreateService` requests to be retried without the risk of executing
|
276
|
+
# the operation twice. `CreatorRequestId` can be any unique string, for
|
277
|
+
# example, a date/time stamp.
|
275
278
|
#
|
276
279
|
# **A suitable default value is auto-generated.** You should normally
|
277
280
|
# not need to pass this option.**
|
@@ -280,31 +283,17 @@ module Aws::ServiceDiscovery
|
|
280
283
|
# A description for the service.
|
281
284
|
#
|
282
285
|
# @option params [required, Types::DnsConfig] :dns_config
|
283
|
-
# A complex type that contains information about the
|
284
|
-
#
|
285
|
-
# instance.
|
286
|
+
# A complex type that contains information about the records that you
|
287
|
+
# want Route 53 to create when you register an instance.
|
286
288
|
#
|
287
289
|
# @option params [Types::HealthCheckConfig] :health_check_config
|
288
290
|
# *Public DNS namespaces only.* A complex type that contains settings
|
289
291
|
# for an optional health check. If you specify settings for a health
|
290
|
-
# check,
|
291
|
-
#
|
292
|
-
#
|
293
|
-
# <note markdown="1"> The health check uses 30 seconds as the request interval. This is the
|
294
|
-
# number of seconds between the time that each Amazon Route 53 health
|
295
|
-
# checker gets a response from your endpoint and the time that it sends
|
296
|
-
# the next health check request. A health checker in each data center
|
297
|
-
# around the world sends your endpoint a health check request every 30
|
298
|
-
# seconds. On average, your endpoint receives a health check request
|
299
|
-
# about every two seconds. Health checkers in different data centers
|
300
|
-
# don't coordinate with one another, so you'll sometimes see several
|
301
|
-
# requests per second followed by a few seconds with no health checks at
|
302
|
-
# all.
|
292
|
+
# check, Route 53 associates the health check with all the records that
|
293
|
+
# you specify in `DnsConfig`.
|
303
294
|
#
|
304
|
-
#
|
305
|
-
#
|
306
|
-
# For information about the charges for health checks, see [Amazon Route
|
307
|
-
# 53 Pricing][1].
|
295
|
+
# For information about the charges for health checks, see [Route 53
|
296
|
+
# Pricing][1].
|
308
297
|
#
|
309
298
|
#
|
310
299
|
#
|
@@ -322,15 +311,16 @@ module Aws::ServiceDiscovery
|
|
322
311
|
# description: "ResourceDescription",
|
323
312
|
# dns_config: { # required
|
324
313
|
# namespace_id: "ResourceId", # required
|
314
|
+
# routing_policy: "MULTIVALUE", # accepts MULTIVALUE, WEIGHTED
|
325
315
|
# dns_records: [ # required
|
326
316
|
# {
|
327
|
-
# type: "SRV", # required, accepts SRV, A, AAAA
|
317
|
+
# type: "SRV", # required, accepts SRV, A, AAAA, CNAME
|
328
318
|
# ttl: 1, # required
|
329
319
|
# },
|
330
320
|
# ],
|
331
321
|
# },
|
332
322
|
# health_check_config: {
|
333
|
-
# type: "HTTP", # accepts HTTP, HTTPS, TCP
|
323
|
+
# type: "HTTP", # required, accepts HTTP, HTTPS, TCP
|
334
324
|
# resource_path: "ResourcePath",
|
335
325
|
# failure_threshold: 1,
|
336
326
|
# },
|
@@ -344,8 +334,9 @@ module Aws::ServiceDiscovery
|
|
344
334
|
# resp.service.description #=> String
|
345
335
|
# resp.service.instance_count #=> Integer
|
346
336
|
# resp.service.dns_config.namespace_id #=> String
|
337
|
+
# resp.service.dns_config.routing_policy #=> String, one of "MULTIVALUE", "WEIGHTED"
|
347
338
|
# resp.service.dns_config.dns_records #=> Array
|
348
|
-
# resp.service.dns_config.dns_records[0].type #=> String, one of "SRV", "A", "AAAA"
|
339
|
+
# resp.service.dns_config.dns_records[0].type #=> String, one of "SRV", "A", "AAAA", "CNAME"
|
349
340
|
# resp.service.dns_config.dns_records[0].ttl #=> Integer
|
350
341
|
# resp.service.health_check_config.type #=> String, one of "HTTP", "HTTPS", "TCP"
|
351
342
|
# resp.service.health_check_config.resource_path #=> String
|
@@ -414,8 +405,8 @@ module Aws::ServiceDiscovery
|
|
414
405
|
req.send_request(options)
|
415
406
|
end
|
416
407
|
|
417
|
-
# Deletes the
|
418
|
-
#
|
408
|
+
# Deletes the records and the health check, if any, that Amazon Route 53
|
409
|
+
# created for the specified instance.
|
419
410
|
#
|
420
411
|
# @option params [required, String] :service_id
|
421
412
|
# The ID of the service that the instance is associated with.
|
@@ -485,23 +476,31 @@ module Aws::ServiceDiscovery
|
|
485
476
|
# Gets the current health status (`Healthy`, `Unhealthy`, or `Unknown`)
|
486
477
|
# of one or more instances that are associated with a specified service.
|
487
478
|
#
|
479
|
+
# <note markdown="1"> There is a brief delay between when you register an instance and when
|
480
|
+
# the health status for the instance is available.
|
481
|
+
#
|
482
|
+
# </note>
|
483
|
+
#
|
488
484
|
# @option params [required, String] :service_id
|
489
485
|
# The ID of the service that the instance is associated with.
|
490
486
|
#
|
491
487
|
# @option params [Array<String>] :instances
|
492
488
|
# An array that contains the IDs of all the instances that you want to
|
493
|
-
# get the health status for.
|
494
|
-
# you've created by using a specified service, submit a ListInstances
|
495
|
-
# request.
|
489
|
+
# get the health status for.
|
496
490
|
#
|
497
491
|
# If you omit `Instances`, Amazon Route 53 returns the health status for
|
498
492
|
# all the instances that are associated with the specified service.
|
499
493
|
#
|
494
|
+
# <note markdown="1"> To get the IDs for the instances that you've registered by using a
|
495
|
+
# specified service, submit a ListInstances request.
|
496
|
+
#
|
497
|
+
# </note>
|
498
|
+
#
|
500
499
|
# @option params [Integer] :max_results
|
501
|
-
# The maximum number of instances that you want
|
502
|
-
#
|
503
|
-
#
|
504
|
-
#
|
500
|
+
# The maximum number of instances that you want Route 53 to return in
|
501
|
+
# the response to a `GetInstancesHealthStatus` request. If you don't
|
502
|
+
# specify a value for `MaxResults`, Route 53 returns up to 100
|
503
|
+
# instances.
|
505
504
|
#
|
506
505
|
# @option params [String] :next_token
|
507
506
|
# For the first `GetInstancesHealthStatus` request, omit this value.
|
@@ -577,8 +576,12 @@ module Aws::ServiceDiscovery
|
|
577
576
|
end
|
578
577
|
|
579
578
|
# Gets information about any operation that returns an operation ID in
|
580
|
-
# the response, such as a `CreateService` request.
|
581
|
-
#
|
579
|
+
# the response, such as a `CreateService` request.
|
580
|
+
#
|
581
|
+
# <note markdown="1"> To get a list of operations that match specified criteria, see
|
582
|
+
# ListOperations.
|
583
|
+
#
|
584
|
+
# </note>
|
582
585
|
#
|
583
586
|
# @option params [required, String] :operation_id
|
584
587
|
# The ID of the operation that you want to get more information about.
|
@@ -637,8 +640,9 @@ module Aws::ServiceDiscovery
|
|
637
640
|
# resp.service.description #=> String
|
638
641
|
# resp.service.instance_count #=> Integer
|
639
642
|
# resp.service.dns_config.namespace_id #=> String
|
643
|
+
# resp.service.dns_config.routing_policy #=> String, one of "MULTIVALUE", "WEIGHTED"
|
640
644
|
# resp.service.dns_config.dns_records #=> Array
|
641
|
-
# resp.service.dns_config.dns_records[0].type #=> String, one of "SRV", "A", "AAAA"
|
645
|
+
# resp.service.dns_config.dns_records[0].type #=> String, one of "SRV", "A", "AAAA", "CNAME"
|
642
646
|
# resp.service.dns_config.dns_records[0].ttl #=> Integer
|
643
647
|
# resp.service.health_check_config.type #=> String, one of "HTTP", "HTTPS", "TCP"
|
644
648
|
# resp.service.health_check_config.resource_path #=> String
|
@@ -655,8 +659,8 @@ module Aws::ServiceDiscovery
|
|
655
659
|
req.send_request(options)
|
656
660
|
end
|
657
661
|
|
658
|
-
#
|
659
|
-
# a specified service.
|
662
|
+
# Lists summary information about the instances that you registered by
|
663
|
+
# using a specified service.
|
660
664
|
#
|
661
665
|
# @option params [required, String] :service_id
|
662
666
|
# The ID of the service that you want to list instances for.
|
@@ -672,7 +676,7 @@ module Aws::ServiceDiscovery
|
|
672
676
|
# @option params [Integer] :max_results
|
673
677
|
# The maximum number of instances that you want Amazon Route 53 to
|
674
678
|
# return in the response to a `ListInstances` request. If you don't
|
675
|
-
# specify a value for `MaxResults`,
|
679
|
+
# specify a value for `MaxResults`, Route 53 returns up to 100
|
676
680
|
# instances.
|
677
681
|
#
|
678
682
|
# @return [Types::ListInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
@@ -705,29 +709,36 @@ module Aws::ServiceDiscovery
|
|
705
709
|
req.send_request(options)
|
706
710
|
end
|
707
711
|
|
708
|
-
#
|
709
|
-
# AWS account.
|
712
|
+
# Lists summary information about the namespaces that were created by
|
713
|
+
# the current AWS account.
|
710
714
|
#
|
711
715
|
# @option params [String] :next_token
|
712
716
|
# For the first `ListNamespaces` request, omit this value.
|
713
717
|
#
|
714
|
-
# If
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
718
|
+
# If the response contains `NextToken`, submit another `ListNamespaces`
|
719
|
+
# request to get the next group of results. Specify the value of
|
720
|
+
# `NextToken` from the previous response in the next request.
|
721
|
+
#
|
722
|
+
# <note markdown="1"> Route 53 gets `MaxResults` namespaces and then filters them based on
|
723
|
+
# the specified criteria. It's possible that no namespaces in the first
|
724
|
+
# `MaxResults` namespaces matched the specified criteria but that
|
725
|
+
# subsequent groups of `MaxResults` namespaces do contain namespaces
|
726
|
+
# that match the criteria.
|
727
|
+
#
|
728
|
+
# </note>
|
718
729
|
#
|
719
730
|
# @option params [Integer] :max_results
|
720
731
|
# The maximum number of namespaces that you want Amazon Route 53 to
|
721
732
|
# return in the response to a `ListNamespaces` request. If you don't
|
722
|
-
# specify a value for `MaxResults`,
|
733
|
+
# specify a value for `MaxResults`, Route 53 returns up to 100
|
723
734
|
# namespaces.
|
724
735
|
#
|
725
736
|
# @option params [Array<Types::NamespaceFilter>] :filters
|
726
737
|
# A complex type that contains specifications for the namespaces that
|
727
738
|
# you want to list.
|
728
739
|
#
|
729
|
-
# If you specify more than one filter,
|
730
|
-
# filters to be returned by ListNamespaces
|
740
|
+
# If you specify more than one filter, a namespace must match all
|
741
|
+
# filters to be returned by `ListNamespaces`.
|
731
742
|
#
|
732
743
|
# @return [Types::ListNamespacesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
733
744
|
#
|
@@ -771,15 +782,22 @@ module Aws::ServiceDiscovery
|
|
771
782
|
# @option params [String] :next_token
|
772
783
|
# For the first `ListOperations` request, omit this value.
|
773
784
|
#
|
774
|
-
# If
|
775
|
-
#
|
776
|
-
#
|
777
|
-
#
|
785
|
+
# If the response contains `NextToken`, submit another `ListOperations`
|
786
|
+
# request to get the next group of results. Specify the value of
|
787
|
+
# `NextToken` from the previous response in the next request.
|
788
|
+
#
|
789
|
+
# <note markdown="1"> Route 53 gets `MaxResults` operations and then filters them based on
|
790
|
+
# the specified criteria. It's possible that no operations in the first
|
791
|
+
# `MaxResults` operations matched the specified criteria but that
|
792
|
+
# subsequent groups of `MaxResults` operations do contain operations
|
793
|
+
# that match the criteria.
|
794
|
+
#
|
795
|
+
# </note>
|
778
796
|
#
|
779
797
|
# @option params [Integer] :max_results
|
780
798
|
# The maximum number of items that you want Amazon Route 53 to return in
|
781
799
|
# the response to a `ListOperations` request. If you don't specify a
|
782
|
-
# value for `MaxResults`,
|
800
|
+
# value for `MaxResults`, Route 53 returns up to 100 operations.
|
783
801
|
#
|
784
802
|
# @option params [Array<Types::OperationFilter>] :filters
|
785
803
|
# A complex type that contains specifications for the operations that
|
@@ -824,21 +842,28 @@ module Aws::ServiceDiscovery
|
|
824
842
|
req.send_request(options)
|
825
843
|
end
|
826
844
|
|
827
|
-
#
|
828
|
-
# more specified namespaces.
|
845
|
+
# Lists summary information for all the services that are associated
|
846
|
+
# with one or more specified namespaces.
|
829
847
|
#
|
830
848
|
# @option params [String] :next_token
|
831
849
|
# For the first `ListServices` request, omit this value.
|
832
850
|
#
|
833
|
-
# If
|
834
|
-
#
|
835
|
-
#
|
836
|
-
#
|
851
|
+
# If the response contains `NextToken`, submit another `ListServices`
|
852
|
+
# request to get the next group of results. Specify the value of
|
853
|
+
# `NextToken` from the previous response in the next request.
|
854
|
+
#
|
855
|
+
# <note markdown="1"> Route 53 gets `MaxResults` services and then filters them based on the
|
856
|
+
# specified criteria. It's possible that no services in the first
|
857
|
+
# `MaxResults` services matched the specified criteria but that
|
858
|
+
# subsequent groups of `MaxResults` services do contain services that
|
859
|
+
# match the criteria.
|
860
|
+
#
|
861
|
+
# </note>
|
837
862
|
#
|
838
863
|
# @option params [Integer] :max_results
|
839
864
|
# The maximum number of services that you want Amazon Route 53 to return
|
840
865
|
# in the response to a `ListServices` request. If you don't specify a
|
841
|
-
# value for `MaxResults`,
|
866
|
+
# value for `MaxResults`, Route 53 returns up to 100 services.
|
842
867
|
#
|
843
868
|
# @option params [Array<Types::ServiceFilter>] :filters
|
844
869
|
# A complex type that contains specifications for the namespaces that
|
@@ -885,75 +910,157 @@ module Aws::ServiceDiscovery
|
|
885
910
|
req.send_request(options)
|
886
911
|
end
|
887
912
|
|
888
|
-
# Creates one or more
|
913
|
+
# Creates or updates one or more records and optionally a health check
|
889
914
|
# based on the settings in a specified service. When you submit a
|
890
915
|
# `RegisterInstance` request, Amazon Route 53 does the following:
|
891
916
|
#
|
892
|
-
# *
|
893
|
-
# in the
|
917
|
+
# * For each DNS record that you define in the service specified by
|
918
|
+
# `ServiceId`, creates or updates a record in the hosted zone that is
|
919
|
+
# associated with the corresponding namespace
|
894
920
|
#
|
895
|
-
# * Creates a health check based on the settings in the
|
896
|
-
#
|
921
|
+
# * Creates or updates a health check based on the settings in the
|
922
|
+
# health check configuration, if any, for the service
|
897
923
|
#
|
898
|
-
# * Associates the health check, if any, with each of the
|
899
|
-
# record sets
|
924
|
+
# * Associates the health check, if any, with each of the records
|
900
925
|
#
|
901
926
|
# One `RegisterInstance` request must complete before you can submit
|
902
|
-
# another request and specify the same service and instance ID.
|
927
|
+
# another request and specify the same service ID and instance ID.
|
903
928
|
#
|
904
929
|
# For more information, see CreateService.
|
905
930
|
#
|
906
|
-
# When
|
907
|
-
#
|
931
|
+
# When Route 53 receives a DNS query for the specified DNS name, it
|
932
|
+
# returns the applicable value:
|
908
933
|
#
|
909
|
-
# * **If the health check is healthy**\: returns all the
|
910
|
-
# sets
|
934
|
+
# * **If the health check is healthy**\: returns all the records
|
911
935
|
#
|
912
936
|
# * **If the health check is unhealthy**\: returns the IP address of the
|
913
937
|
# last healthy instance
|
914
938
|
#
|
915
|
-
# * **If you didn't specify a health check
|
916
|
-
#
|
939
|
+
# * **If you didn't specify a health check configuration**\: returns
|
940
|
+
# all the records
|
917
941
|
#
|
918
942
|
# @option params [required, String] :service_id
|
919
943
|
# The ID of the service that you want to use for settings for the
|
920
|
-
#
|
921
|
-
# create.
|
944
|
+
# records and health check that Route 53 will create.
|
922
945
|
#
|
923
946
|
# @option params [required, String] :instance_id
|
924
947
|
# An identifier that you want to associate with the instance. Note the
|
925
948
|
# following:
|
926
949
|
#
|
950
|
+
# * If the service that is specified by `ServiceId` includes settings
|
951
|
+
# for an SRV record, the value of `InstanceId` is automatically
|
952
|
+
# included as part of the value for the SRV record. For more
|
953
|
+
# information, see DnsRecord$Type.
|
954
|
+
#
|
927
955
|
# * You can use this value to update an existing instance.
|
928
956
|
#
|
929
957
|
# * To register a new instance, you must specify a value that is unique
|
930
958
|
# among instances that you register by using the same service.
|
931
959
|
#
|
960
|
+
# * If you specify an existing `InstanceId` and `ServiceId`, Route 53
|
961
|
+
# updates the existing records. If there's also an existing health
|
962
|
+
# check, Route 53 deletes the old health check and creates a new one.
|
963
|
+
#
|
964
|
+
# <note markdown="1"> The health check isn't deleted immediately, so it will still appear
|
965
|
+
# for a while if you submit a `ListHealthChecks` request, for example.
|
966
|
+
#
|
967
|
+
# </note>
|
968
|
+
#
|
932
969
|
# @option params [String] :creator_request_id
|
933
|
-
#
|
934
|
-
#
|
935
|
-
#
|
970
|
+
# A unique string that identifies the request and that allows failed
|
971
|
+
# `RegisterInstance` requests to be retried without the risk of
|
972
|
+
# executing the operation twice. You must use a unique
|
973
|
+
# `CreatorRequestId` string every time you submit a `RegisterInstance`
|
974
|
+
# request if you're registering additional instances for the same
|
975
|
+
# namespace and service. `CreatorRequestId` can be any unique string,
|
976
|
+
# for example, a date/time stamp.
|
936
977
|
#
|
937
978
|
# **A suitable default value is auto-generated.** You should normally
|
938
979
|
# not need to pass this option.**
|
939
980
|
#
|
940
981
|
# @option params [required, Hash<String,String>] :attributes
|
941
|
-
# A string map that
|
942
|
-
#
|
982
|
+
# A string map that contains the following information for the service
|
983
|
+
# that you specify in `ServiceId`\:
|
943
984
|
#
|
944
|
-
# *
|
945
|
-
#
|
946
|
-
# the port value in an SRV record if the service that you specify
|
947
|
-
# includes an SRV record. For more information, see CreateService.
|
985
|
+
# * The attributes that apply to the records that are defined in the
|
986
|
+
# service.
|
948
987
|
#
|
949
|
-
# *
|
950
|
-
# resource record set template for an A record, the IPv4 address that
|
951
|
-
# you want Amazon Route 53 to use for the value of the A record.
|
988
|
+
# * For each attribute, the applicable value.
|
952
989
|
#
|
953
|
-
#
|
954
|
-
#
|
955
|
-
#
|
956
|
-
#
|
990
|
+
# Supported attribute keys include the following:
|
991
|
+
#
|
992
|
+
# **AWS\_ALIAS\_DNS\_NAME**
|
993
|
+
#
|
994
|
+
# ****
|
995
|
+
#
|
996
|
+
# If you want Route 53 to create an alias record that routes traffic to
|
997
|
+
# an Elastic Load Balancing load balancer, specify the DNS name that is
|
998
|
+
# associated with the load balancer. For information about how to get
|
999
|
+
# the DNS name, see "DNSName" in the topic [AliasTarget][1].
|
1000
|
+
#
|
1001
|
+
# Note the following:
|
1002
|
+
#
|
1003
|
+
# * The configuration for the service that is specified by `ServiceId`
|
1004
|
+
# must include settings for an A record, an AAAA record, or both.
|
1005
|
+
#
|
1006
|
+
# * In the service that is specified by `ServiceId`, the value of
|
1007
|
+
# `RoutingPolicy` must be `WEIGHTED`.
|
1008
|
+
#
|
1009
|
+
# * If the service that is specified by `ServiceId` includes
|
1010
|
+
# `HealthCheckConfig` settings, Route 53 will create the health check,
|
1011
|
+
# but it won't associate the health check with the alias record.
|
1012
|
+
#
|
1013
|
+
# * Auto naming currently doesn't support creating alias records that
|
1014
|
+
# route traffic to AWS resources other than ELB load balancers.
|
1015
|
+
#
|
1016
|
+
# * If you specify a value for `AWS_ALIAS_DNS_NAME`, don't specify
|
1017
|
+
# values for any of the `AWS_INSTANCE` attributes.
|
1018
|
+
#
|
1019
|
+
# **AWS\_INSTANCE\_CNAME**
|
1020
|
+
#
|
1021
|
+
# If the service configuration includes a CNAME record, the domain name
|
1022
|
+
# that you want Route 53 to return in response to DNS queries, for
|
1023
|
+
# example, `example.com`.
|
1024
|
+
#
|
1025
|
+
# This value is required if the service specified by `ServiceId`
|
1026
|
+
# includes settings for an CNAME record.
|
1027
|
+
#
|
1028
|
+
# **AWS\_INSTANCE\_IPV4**
|
1029
|
+
#
|
1030
|
+
# If the service configuration includes an A record, the IPv4 address
|
1031
|
+
# that you want Route 53 to return in response to DNS queries, for
|
1032
|
+
# example, `192.0.2.44`.
|
1033
|
+
#
|
1034
|
+
# This value is required if the service specified by `ServiceId`
|
1035
|
+
# includes settings for an A record. Either `AWS_INSTANCE_IPV4` or
|
1036
|
+
# `AWS_INSTANCE_IPV6` is required if the service includes settings for
|
1037
|
+
# an SRV record.
|
1038
|
+
#
|
1039
|
+
# **AWS\_INSTANCE\_IPV6**
|
1040
|
+
#
|
1041
|
+
# If the service configuration includes an AAAA record, the IPv6 address
|
1042
|
+
# that you want Route 53 to return in response to DNS queries, for
|
1043
|
+
# example, `2001:0db8:85a3:0000:0000:abcd:0001:2345`.
|
1044
|
+
#
|
1045
|
+
# This value is required if the service specified by `ServiceId`
|
1046
|
+
# includes settings for an AAAA record. Either `AWS_INSTANCE_IPV4` or
|
1047
|
+
# `AWS_INSTANCE_IPV6` is required if the service includes settings for
|
1048
|
+
# an SRV record.
|
1049
|
+
#
|
1050
|
+
# **AWS\_INSTANCE\_PORT**
|
1051
|
+
#
|
1052
|
+
# If the service includes an SRV record, the value that you want Route
|
1053
|
+
# 53 to return for the port.
|
1054
|
+
#
|
1055
|
+
# If the service includes `HealthCheckConfig`, the port on the endpoint
|
1056
|
+
# that you want Route 53 to send requests to.
|
1057
|
+
#
|
1058
|
+
# This value is required if you specified settings for an SRV record
|
1059
|
+
# when you created the service.
|
1060
|
+
#
|
1061
|
+
#
|
1062
|
+
#
|
1063
|
+
# [1]: http://docs.aws.amazon.com/http:/docs.aws.amazon.com/Route53/latest/APIReference/API_AliasTarget.html
|
957
1064
|
#
|
958
1065
|
# @return [Types::RegisterInstanceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
959
1066
|
#
|
@@ -983,15 +1090,24 @@ module Aws::ServiceDiscovery
|
|
983
1090
|
req.send_request(options)
|
984
1091
|
end
|
985
1092
|
|
986
|
-
#
|
987
|
-
#
|
988
|
-
#
|
989
|
-
#
|
990
|
-
#
|
1093
|
+
# Submits a request to perform the following operations:
|
1094
|
+
#
|
1095
|
+
# * Add or delete `DnsRecords` configurations
|
1096
|
+
#
|
1097
|
+
# * Update the TTL setting for existing `DnsRecords` configurations
|
1098
|
+
#
|
1099
|
+
# * Add, update, or delete `HealthCheckConfig` for a specified service
|
1100
|
+
#
|
1101
|
+
# *
|
1102
|
+
#
|
1103
|
+
# You must specify all `DnsRecords` configurations (and, optionally,
|
1104
|
+
# `HealthCheckConfig`) that you want to appear in the updated service.
|
1105
|
+
# Any current configurations that don't appear in an `UpdateService`
|
1106
|
+
# request are deleted.
|
991
1107
|
#
|
992
1108
|
# When you update the TTL setting for a service, Amazon Route 53 also
|
993
|
-
# updates the corresponding settings in all the
|
994
|
-
#
|
1109
|
+
# updates the corresponding settings in all the records and health
|
1110
|
+
# checks that were created by using the specified service.
|
995
1111
|
#
|
996
1112
|
# @option params [required, String] :id
|
997
1113
|
# The ID of the service that you want to update.
|
@@ -1012,13 +1128,13 @@ module Aws::ServiceDiscovery
|
|
1012
1128
|
# dns_config: { # required
|
1013
1129
|
# dns_records: [ # required
|
1014
1130
|
# {
|
1015
|
-
# type: "SRV", # required, accepts SRV, A, AAAA
|
1131
|
+
# type: "SRV", # required, accepts SRV, A, AAAA, CNAME
|
1016
1132
|
# ttl: 1, # required
|
1017
1133
|
# },
|
1018
1134
|
# ],
|
1019
1135
|
# },
|
1020
1136
|
# health_check_config: {
|
1021
|
-
# type: "HTTP", # accepts HTTP, HTTPS, TCP
|
1137
|
+
# type: "HTTP", # required, accepts HTTP, HTTPS, TCP
|
1022
1138
|
# resource_path: "ResourcePath",
|
1023
1139
|
# failure_threshold: 1,
|
1024
1140
|
# },
|
@@ -1051,7 +1167,7 @@ module Aws::ServiceDiscovery
|
|
1051
1167
|
params: params,
|
1052
1168
|
config: config)
|
1053
1169
|
context[:gem_name] = 'aws-sdk-servicediscovery'
|
1054
|
-
context[:gem_version] = '1.
|
1170
|
+
context[:gem_version] = '1.1.0'
|
1055
1171
|
Seahorse::Client::Request.new(handlers, context)
|
1056
1172
|
end
|
1057
1173
|
|