aws-sdk-servicediscovery 1.21.0 → 1.26.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: 4e64ff7ce50ce56d23b15d666811fc167ea242e18c89c9a74514d1405f9d746e
4
- data.tar.gz: 5cf8488e8935bc78f98ed8ddf44e0247bfa70bb7d35d881514bbc3a4cb19d8e2
3
+ metadata.gz: ba0f0c9d82125cb5267c5ca9c248a901f64ba2c1dac13be0631b3dbd9de9a827
4
+ data.tar.gz: e859879cb185def6b8c189f742deb8a929e97764670f85f23a8625aef6239b9b
5
5
  SHA512:
6
- metadata.gz: b4450d7cb912a3a16406c392052bff114878644d998a6145ccf30b0699e611c461a114136f31c03268a796b3f2d3d8eab47ef8d9bc4f9057d625ac9a7c1704db
7
- data.tar.gz: dfd907bed860d514c492732e031d6a2cafb930bee0aed93891d78c567d4aac5301795b7065b2173a2954ab9b3962f2bad90281ddeea58767cd52210e525286a3
6
+ metadata.gz: 3489c4c9a017239c54626b5d7073c505b5315fb510dd82385c904e18b136b823889cca72efcc16a2afad7f35a86b9af4c2b2fe5022b30a66b1df2080e4d052b5
7
+ data.tar.gz: 0ee1513d2c9ad5b2117b2a77f666c4c6d0d40bad541f67376b39a58e1e8c980699132b9bf8585d679a17d233302d94a08d4fe6b6a866cfd00cbd542116bb0442
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-servicediscovery/customizations'
45
47
  # @service
46
48
  module Aws::ServiceDiscovery
47
49
 
48
- GEM_VERSION = '1.21.0'
50
+ GEM_VERSION = '1.26.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::ServiceDiscovery
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -105,7 +109,7 @@ module Aws::ServiceDiscovery
105
109
  # @option options [required, String] :region
106
110
  # The AWS region to connect to. The configured `:region` is
107
111
  # used to determine the service `:endpoint`. When not passed,
108
- # a default `:region` is search for in the following locations:
112
+ # a default `:region` is searched for in the following locations:
109
113
  #
110
114
  # * `Aws.config[:region]`
111
115
  # * `ENV['AWS_REGION']`
@@ -161,7 +165,7 @@ module Aws::ServiceDiscovery
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be avalid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -176,7 +180,7 @@ module Aws::ServiceDiscovery
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -345,16 +349,44 @@ module Aws::ServiceDiscovery
345
349
  # @option params [String] :description
346
350
  # A description for the namespace.
347
351
  #
352
+ # @option params [Array<Types::Tag>] :tags
353
+ # The tags to add to the namespace. Each tag consists of a key and an
354
+ # optional value, both of which you define. Tag keys can have a maximum
355
+ # character length of 128 characters, and tag values can have a maximum
356
+ # length of 256 characters.
357
+ #
348
358
  # @return [Types::CreateHttpNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
349
359
  #
350
360
  # * {Types::CreateHttpNamespaceResponse#operation_id #operation_id} => String
351
361
  #
362
+ #
363
+ # @example Example: CreateHttpNamespace example
364
+ #
365
+ # # This example creates an HTTP namespace.
366
+ #
367
+ # resp = client.create_http_namespace({
368
+ # creator_request_id: "example-creator-request-id-0001",
369
+ # description: "Example.com AWS Cloud Map HTTP Namespace",
370
+ # name: "example-http.com",
371
+ # })
372
+ #
373
+ # resp.to_h outputs the following:
374
+ # {
375
+ # operation_id: "httpvoqozuhfet5kzxoxg-a-response-example",
376
+ # }
377
+ #
352
378
  # @example Request syntax with placeholder values
353
379
  #
354
380
  # resp = client.create_http_namespace({
355
381
  # name: "NamespaceName", # required
356
382
  # creator_request_id: "ResourceId",
357
383
  # description: "ResourceDescription",
384
+ # tags: [
385
+ # {
386
+ # key: "TagKey", # required
387
+ # value: "TagValue", # required
388
+ # },
389
+ # ],
358
390
  # })
359
391
  #
360
392
  # @example Response structure
@@ -403,6 +435,12 @@ module Aws::ServiceDiscovery
403
435
  # The ID of the Amazon VPC that you want to associate the namespace
404
436
  # with.
405
437
  #
438
+ # @option params [Array<Types::Tag>] :tags
439
+ # The tags to add to the namespace. Each tag consists of a key and an
440
+ # optional value, both of which you define. Tag keys can have a maximum
441
+ # character length of 128 characters, and tag values can have a maximum
442
+ # length of 256 characters.
443
+ #
406
444
  # @return [Types::CreatePrivateDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
407
445
  #
408
446
  # * {Types::CreatePrivateDnsNamespaceResponse#operation_id #operation_id} => String
@@ -430,6 +468,12 @@ module Aws::ServiceDiscovery
430
468
  # creator_request_id: "ResourceId",
431
469
  # description: "ResourceDescription",
432
470
  # vpc: "ResourceId", # required
471
+ # tags: [
472
+ # {
473
+ # key: "TagKey", # required
474
+ # value: "TagValue", # required
475
+ # },
476
+ # ],
433
477
  # })
434
478
  #
435
479
  # @example Response structure
@@ -472,16 +516,44 @@ module Aws::ServiceDiscovery
472
516
  # @option params [String] :description
473
517
  # A description for the namespace.
474
518
  #
519
+ # @option params [Array<Types::Tag>] :tags
520
+ # The tags to add to the namespace. Each tag consists of a key and an
521
+ # optional value, both of which you define. Tag keys can have a maximum
522
+ # character length of 128 characters, and tag values can have a maximum
523
+ # length of 256 characters.
524
+ #
475
525
  # @return [Types::CreatePublicDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
476
526
  #
477
527
  # * {Types::CreatePublicDnsNamespaceResponse#operation_id #operation_id} => String
478
528
  #
529
+ #
530
+ # @example Example: CreatePublicDnsNamespace example
531
+ #
532
+ # # This example creates a public namespace based on DNS.
533
+ #
534
+ # resp = client.create_public_dns_namespace({
535
+ # creator_request_id: "example-creator-request-id-0003",
536
+ # description: "Example.com AWS Cloud Map Public DNS Namespace",
537
+ # name: "example-public-dns.com",
538
+ # })
539
+ #
540
+ # resp.to_h outputs the following:
541
+ # {
542
+ # operation_id: "dns2voqozuhfet5kzxoxg-a-response-example",
543
+ # }
544
+ #
479
545
  # @example Request syntax with placeholder values
480
546
  #
481
547
  # resp = client.create_public_dns_namespace({
482
548
  # name: "NamespaceName", # required
483
549
  # creator_request_id: "ResourceId",
484
550
  # description: "ResourceDescription",
551
+ # tags: [
552
+ # {
553
+ # key: "TagKey", # required
554
+ # value: "TagValue", # required
555
+ # },
556
+ # ],
485
557
  # })
486
558
  #
487
559
  # @example Response structure
@@ -595,6 +667,12 @@ module Aws::ServiceDiscovery
595
667
  # You can't add, update, or delete a `HealthCheckCustomConfig`
596
668
  # configuration from an existing service.
597
669
  #
670
+ # @option params [Array<Types::Tag>] :tags
671
+ # The tags to add to the service. Each tag consists of a key and an
672
+ # optional value, both of which you define. Tag keys can have a maximum
673
+ # character length of 128 characters, and tag values can have a maximum
674
+ # length of 256 characters.
675
+ #
598
676
  # @return [Types::CreateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
599
677
  #
600
678
  # * {Types::CreateServiceResponse#service #service} => Types::Service
@@ -667,6 +745,12 @@ module Aws::ServiceDiscovery
667
745
  # health_check_custom_config: {
668
746
  # failure_threshold: 1,
669
747
  # },
748
+ # tags: [
749
+ # {
750
+ # key: "TagKey", # required
751
+ # value: "TagValue", # required
752
+ # },
753
+ # ],
670
754
  # })
671
755
  #
672
756
  # @example Response structure
@@ -933,6 +1017,30 @@ module Aws::ServiceDiscovery
933
1017
  #
934
1018
  # * {Types::GetInstanceResponse#instance #instance} => Types::Instance
935
1019
  #
1020
+ #
1021
+ # @example Example: GetInstance example
1022
+ #
1023
+ # # This example gets information about a specified instance.
1024
+ #
1025
+ # resp = client.get_instance({
1026
+ # instance_id: "i-abcd1234",
1027
+ # service_id: "srv-e4anhexample0004",
1028
+ # })
1029
+ #
1030
+ # resp.to_h outputs the following:
1031
+ # {
1032
+ # instance: {
1033
+ # attributes: {
1034
+ # "AWS_INSTANCE_IPV4" => "192.0.2.44",
1035
+ # "AWS_INSTANCE_PORT" => "80",
1036
+ # "color" => "green",
1037
+ # "region" => "us-west-2",
1038
+ # "stage" => "beta",
1039
+ # },
1040
+ # id: "i-abcd1234",
1041
+ # },
1042
+ # }
1043
+ #
936
1044
  # @example Request syntax with placeholder values
937
1045
  #
938
1046
  # resp = client.get_instance({
@@ -1004,6 +1112,23 @@ module Aws::ServiceDiscovery
1004
1112
  #
1005
1113
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1006
1114
  #
1115
+ #
1116
+ # @example Example: GetInstancesHealthStatus example
1117
+ #
1118
+ # # This example gets the current health status of one or more instances that are associate with a specified service.
1119
+ #
1120
+ # resp = client.get_instances_health_status({
1121
+ # service_id: "srv-e4anhexample0004",
1122
+ # })
1123
+ #
1124
+ # resp.to_h outputs the following:
1125
+ # {
1126
+ # status: {
1127
+ # "i-abcd1234" => "HEALTHY",
1128
+ # "i-abcd1235" => "UNHEALTHY",
1129
+ # },
1130
+ # }
1131
+ #
1007
1132
  # @example Request syntax with placeholder values
1008
1133
  #
1009
1134
  # resp = client.get_instances_health_status({
@@ -1037,6 +1162,35 @@ module Aws::ServiceDiscovery
1037
1162
  #
1038
1163
  # * {Types::GetNamespaceResponse#namespace #namespace} => Types::Namespace
1039
1164
  #
1165
+ #
1166
+ # @example Example: GetNamespace example
1167
+ #
1168
+ # # This example gets information about a specified namespace.
1169
+ #
1170
+ # resp = client.get_namespace({
1171
+ # id: "ns-e4anhexample0004",
1172
+ # })
1173
+ #
1174
+ # resp.to_h outputs the following:
1175
+ # {
1176
+ # namespace: {
1177
+ # arn: "arn:aws:servicediscovery:us-west-2: 123456789120:namespace/ns-e1tpmexample0001",
1178
+ # create_date: Time.parse("20181118T211712Z"),
1179
+ # creator_request_id: "example-creator-request-id-0001",
1180
+ # description: "Example.com AWS Cloud Map HTTP Namespace",
1181
+ # id: "ns-e1tpmexample0001",
1182
+ # name: "example-http.com",
1183
+ # properties: {
1184
+ # dns_properties: {
1185
+ # },
1186
+ # http_properties: {
1187
+ # http_name: "example-http.com",
1188
+ # },
1189
+ # },
1190
+ # type: "HTTP",
1191
+ # },
1192
+ # }
1193
+ #
1040
1194
  # @example Request syntax with placeholder values
1041
1195
  #
1042
1196
  # resp = client.get_namespace({
@@ -1143,6 +1297,33 @@ module Aws::ServiceDiscovery
1143
1297
  #
1144
1298
  # * {Types::GetServiceResponse#service #service} => Types::Service
1145
1299
  #
1300
+ #
1301
+ # @example Example: GetService Example
1302
+ #
1303
+ # # This example gets the settings for a specified service.
1304
+ #
1305
+ # resp = client.get_service({
1306
+ # id: "srv-e4anhexample0004",
1307
+ # })
1308
+ #
1309
+ # resp.to_h outputs the following:
1310
+ # {
1311
+ # service: {
1312
+ # arn: "arn:aws:servicediscovery:us-west-2:123456789120:service/srv-e4anhexample0004",
1313
+ # create_date: Time.parse("20181118T211707Z"),
1314
+ # creator_request_id: "example-creator-request-id-0004",
1315
+ # description: "Example.com AWS Cloud Map HTTP Service",
1316
+ # health_check_config: {
1317
+ # failure_threshold: 3,
1318
+ # resource_path: "/",
1319
+ # type: "HTTPS",
1320
+ # },
1321
+ # id: "srv-e4anhexample0004",
1322
+ # name: "example-http-service",
1323
+ # namespace_id: "ns-e4anhexample0004",
1324
+ # },
1325
+ # }
1326
+ #
1146
1327
  # @example Request syntax with placeholder values
1147
1328
  #
1148
1329
  # resp = client.get_service({
@@ -1421,6 +1602,42 @@ module Aws::ServiceDiscovery
1421
1602
  #
1422
1603
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
1423
1604
  #
1605
+ #
1606
+ # @example Example: ListOperations Example
1607
+ #
1608
+ # # This example gets the operations that have a STATUS of either PENDING or SUCCESS.
1609
+ #
1610
+ # resp = client.list_operations({
1611
+ # filters: [
1612
+ # {
1613
+ # condition: "IN",
1614
+ # name: "STATUS",
1615
+ # values: [
1616
+ # "PENDING",
1617
+ # "SUCCESS",
1618
+ # ],
1619
+ # },
1620
+ # ],
1621
+ # })
1622
+ #
1623
+ # resp.to_h outputs the following:
1624
+ # {
1625
+ # operations: [
1626
+ # {
1627
+ # id: "76yy8ovhpdz0plmjzbsnqgnrqvpv2qdt-kexample",
1628
+ # status: "SUCCESS",
1629
+ # },
1630
+ # {
1631
+ # id: "prysnyzpji3u2ciy45nke83x2zanl7yk-dexample",
1632
+ # status: "SUCCESS",
1633
+ # },
1634
+ # {
1635
+ # id: "ko4ekftir7kzlbechsh7xvcdgcpk66gh-7example",
1636
+ # status: "PENDING",
1637
+ # },
1638
+ # ],
1639
+ # }
1640
+ #
1424
1641
  # @example Request syntax with placeholder values
1425
1642
  #
1426
1643
  # resp = client.list_operations({
@@ -1560,6 +1777,60 @@ module Aws::ServiceDiscovery
1560
1777
  req.send_request(options)
1561
1778
  end
1562
1779
 
1780
+ # Lists tags for the specified resource.
1781
+ #
1782
+ # @option params [required, String] :resource_arn
1783
+ # The Amazon Resource Name (ARN) of the resource that you want to
1784
+ # retrieve tags for.
1785
+ #
1786
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1787
+ #
1788
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
1789
+ #
1790
+ #
1791
+ # @example Example: ListTagsForResource example
1792
+ #
1793
+ # # This example lists the tags of a resource.
1794
+ #
1795
+ # resp = client.list_tags_for_resource({
1796
+ # resource_arn: "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm",
1797
+ # })
1798
+ #
1799
+ # resp.to_h outputs the following:
1800
+ # {
1801
+ # tags: [
1802
+ # {
1803
+ # key: "Project",
1804
+ # value: "Zeta",
1805
+ # },
1806
+ # {
1807
+ # key: "Department",
1808
+ # value: "Engineering",
1809
+ # },
1810
+ # ],
1811
+ # }
1812
+ #
1813
+ # @example Request syntax with placeholder values
1814
+ #
1815
+ # resp = client.list_tags_for_resource({
1816
+ # resource_arn: "AmazonResourceName", # required
1817
+ # })
1818
+ #
1819
+ # @example Response structure
1820
+ #
1821
+ # resp.tags #=> Array
1822
+ # resp.tags[0].key #=> String
1823
+ # resp.tags[0].value #=> String
1824
+ #
1825
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/ListTagsForResource AWS API Documentation
1826
+ #
1827
+ # @overload list_tags_for_resource(params = {})
1828
+ # @param [Hash] params ({})
1829
+ def list_tags_for_resource(params = {}, options = {})
1830
+ req = build_request(:list_tags_for_resource, params)
1831
+ req.send_request(options)
1832
+ end
1833
+
1563
1834
  # Creates or updates one or more records and, optionally, creates a
1564
1835
  # health check based on the settings in a specified service. When you
1565
1836
  # submit a `RegisterInstance` request, the following occurs:
@@ -1737,7 +2008,9 @@ module Aws::ServiceDiscovery
1737
2008
  #
1738
2009
  # You can add up to 30 custom attributes. For each key-value pair, the
1739
2010
  # maximum length of the attribute name is 255 characters, and the
1740
- # maximum length of the attribute value is 1,024 characters.
2011
+ # maximum length of the attribute value is 1,024 characters. Total size
2012
+ # of all provided attributes (sum of all keys and values) must not
2013
+ # exceed 5,000 characters.
1741
2014
  #
1742
2015
  #
1743
2016
  #
@@ -1791,6 +2064,107 @@ module Aws::ServiceDiscovery
1791
2064
  req.send_request(options)
1792
2065
  end
1793
2066
 
2067
+ # Adds one or more tags to the specified resource.
2068
+ #
2069
+ # @option params [required, String] :resource_arn
2070
+ # The Amazon Resource Name (ARN) of the resource that you want to
2071
+ # retrieve tags for.
2072
+ #
2073
+ # @option params [required, Array<Types::Tag>] :tags
2074
+ # The tags to add to the specified resource. Specifying the tag key is
2075
+ # required. You can set the value of a tag to an empty string, but you
2076
+ # can't set the value of a tag to null.
2077
+ #
2078
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2079
+ #
2080
+ #
2081
+ # @example Example: TagResource example
2082
+ #
2083
+ # # This example adds "Department" and "Project" tags to a resource.
2084
+ #
2085
+ # resp = client.tag_resource({
2086
+ # resource_arn: "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm",
2087
+ # tags: [
2088
+ # {
2089
+ # key: "Department",
2090
+ # value: "Engineering",
2091
+ # },
2092
+ # {
2093
+ # key: "Project",
2094
+ # value: "Zeta",
2095
+ # },
2096
+ # ],
2097
+ # })
2098
+ #
2099
+ # resp.to_h outputs the following:
2100
+ # {
2101
+ # }
2102
+ #
2103
+ # @example Request syntax with placeholder values
2104
+ #
2105
+ # resp = client.tag_resource({
2106
+ # resource_arn: "AmazonResourceName", # required
2107
+ # tags: [ # required
2108
+ # {
2109
+ # key: "TagKey", # required
2110
+ # value: "TagValue", # required
2111
+ # },
2112
+ # ],
2113
+ # })
2114
+ #
2115
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/TagResource AWS API Documentation
2116
+ #
2117
+ # @overload tag_resource(params = {})
2118
+ # @param [Hash] params ({})
2119
+ def tag_resource(params = {}, options = {})
2120
+ req = build_request(:tag_resource, params)
2121
+ req.send_request(options)
2122
+ end
2123
+
2124
+ # Removes one or more tags from the specified resource.
2125
+ #
2126
+ # @option params [required, String] :resource_arn
2127
+ # The Amazon Resource Name (ARN) of the resource that you want to
2128
+ # retrieve tags for.
2129
+ #
2130
+ # @option params [required, Array<String>] :tag_keys
2131
+ # The tag keys to remove from the specified resource.
2132
+ #
2133
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2134
+ #
2135
+ #
2136
+ # @example Example: UntagResource example
2137
+ #
2138
+ # # This example removes the "Department" and "Project" tags from a resource.
2139
+ #
2140
+ # resp = client.untag_resource({
2141
+ # resource_arn: "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm",
2142
+ # tag_keys: [
2143
+ # "Project",
2144
+ # "Department",
2145
+ # ],
2146
+ # })
2147
+ #
2148
+ # resp.to_h outputs the following:
2149
+ # {
2150
+ # }
2151
+ #
2152
+ # @example Request syntax with placeholder values
2153
+ #
2154
+ # resp = client.untag_resource({
2155
+ # resource_arn: "AmazonResourceName", # required
2156
+ # tag_keys: ["TagKey"], # required
2157
+ # })
2158
+ #
2159
+ # @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UntagResource AWS API Documentation
2160
+ #
2161
+ # @overload untag_resource(params = {})
2162
+ # @param [Hash] params ({})
2163
+ def untag_resource(params = {}, options = {})
2164
+ req = build_request(:untag_resource, params)
2165
+ req.send_request(options)
2166
+ end
2167
+
1794
2168
  # Submits a request to change the health status of a custom health check
1795
2169
  # to healthy or unhealthy.
1796
2170
  #
@@ -1818,6 +2192,18 @@ module Aws::ServiceDiscovery
1818
2192
  #
1819
2193
  # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1820
2194
  #
2195
+ #
2196
+ # @example Example: UpdateInstanceCustomHealthStatus Example
2197
+ #
2198
+ # # This example submits a request to change the health status of an instance associated with a service with a custom health
2199
+ # # check to HEALTHY.
2200
+ #
2201
+ # resp = client.update_instance_custom_health_status({
2202
+ # instance_id: "i-abcd1234",
2203
+ # service_id: "srv-e4anhexample0004",
2204
+ # status: "HEALTHY",
2205
+ # })
2206
+ #
1821
2207
  # @example Request syntax with placeholder values
1822
2208
  #
1823
2209
  # resp = client.update_instance_custom_health_status({
@@ -1870,13 +2256,42 @@ module Aws::ServiceDiscovery
1870
2256
  #
1871
2257
  # * {Types::UpdateServiceResponse#operation_id #operation_id} => String
1872
2258
  #
2259
+ #
2260
+ # @example Example: UpdateService Example
2261
+ #
2262
+ # # This example submits a request to replace the DnsConfig and HealthCheckConfig settings of a specified service.
2263
+ #
2264
+ # resp = client.update_service({
2265
+ # id: "srv-e4anhexample0004",
2266
+ # service: {
2267
+ # dns_config: {
2268
+ # dns_records: [
2269
+ # {
2270
+ # ttl: 60,
2271
+ # type: "A",
2272
+ # },
2273
+ # ],
2274
+ # },
2275
+ # health_check_config: {
2276
+ # failure_threshold: 2,
2277
+ # resource_path: "/",
2278
+ # type: "HTTP",
2279
+ # },
2280
+ # },
2281
+ # })
2282
+ #
2283
+ # resp.to_h outputs the following:
2284
+ # {
2285
+ # operation_id: "m35hsdrkxwjffm3xef4bxyy6vc3ewakx-jdn3y5g5",
2286
+ # }
2287
+ #
1873
2288
  # @example Request syntax with placeholder values
1874
2289
  #
1875
2290
  # resp = client.update_service({
1876
2291
  # id: "ResourceId", # required
1877
2292
  # service: { # required
1878
2293
  # description: "ResourceDescription",
1879
- # dns_config: { # required
2294
+ # dns_config: {
1880
2295
  # dns_records: [ # required
1881
2296
  # {
1882
2297
  # type: "SRV", # required, accepts SRV, A, AAAA, CNAME
@@ -1918,7 +2333,7 @@ module Aws::ServiceDiscovery
1918
2333
  params: params,
1919
2334
  config: config)
1920
2335
  context[:gem_name] = 'aws-sdk-servicediscovery'
1921
- context[:gem_version] = '1.21.0'
2336
+ context[:gem_version] = '1.26.0'
1922
2337
  Seahorse::Client::Request.new(handlers, context)
1923
2338
  end
1924
2339