aws-sdk-servicediscovery 1.32.0 → 1.37.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 +198 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-servicediscovery.rb +2 -2
- data/lib/aws-sdk-servicediscovery/client.rb +406 -197
- data/lib/aws-sdk-servicediscovery/client_api.rb +139 -7
- data/lib/aws-sdk-servicediscovery/errors.rb +1 -1
- data/lib/aws-sdk-servicediscovery/resource.rb +1 -1
- data/lib/aws-sdk-servicediscovery/types.rb +1267 -769
- metadata +9 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fe562674dd2e14e2655049770d2ae3358f0ee7c208eaff9143fd6341bfa648a
|
4
|
+
data.tar.gz: bc442ceae1788da9cd0f1ea783736db3ad9eaa7f0c9a2eee693367578d2d57f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9860fc66e551ae180bfc9b059b4d9b428a096e55a89ef5d9f237ff1dc9b60f5d1226560cd726a11876deba14323ee5fe5b238ca5a397817fc731a5da7201b44
|
7
|
+
data.tar.gz: 76917c467a32722b0955f711b3a774655e3278f67f7f867e5b5d3d5d5c660624a92442e474a389f83abad578404af6f4821fd7e9da2625ee04aaa86a14421047
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,198 @@
|
|
1
|
+
Unreleased Changes
|
2
|
+
------------------
|
3
|
+
|
4
|
+
1.37.0 (2021-06-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - AWS Cloud Map now allows configuring the TTL of the SOA record for a hosted zone to control the negative caching for new services.
|
8
|
+
|
9
|
+
1.36.0 (2021-06-01)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Bugfixes - The DiscoverInstances API operation now provides an option to return all instances for health-checked services when there are no healthy instances available.
|
13
|
+
|
14
|
+
1.35.0 (2021-05-06)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Bugfix: Improved input validation for RegisterInstance action, InstanceId field
|
18
|
+
|
19
|
+
1.34.0 (2021-03-10)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
24
|
+
1.33.0 (2021-03-04)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Supports creating API-only services under DNS namespace. Add namespace syntax validation.
|
28
|
+
|
29
|
+
1.32.0 (2021-02-02)
|
30
|
+
------------------
|
31
|
+
|
32
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
33
|
+
|
34
|
+
1.31.0 (2020-10-02)
|
35
|
+
------------------
|
36
|
+
|
37
|
+
* Feature - Added support for optional parameters for DiscoverInstances API in AWS Cloud Map
|
38
|
+
|
39
|
+
1.30.0 (2020-09-30)
|
40
|
+
------------------
|
41
|
+
|
42
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
43
|
+
|
44
|
+
1.29.0 (2020-09-15)
|
45
|
+
------------------
|
46
|
+
|
47
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
48
|
+
|
49
|
+
1.28.0 (2020-08-25)
|
50
|
+
------------------
|
51
|
+
|
52
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
53
|
+
|
54
|
+
1.27.0 (2020-07-29)
|
55
|
+
------------------
|
56
|
+
|
57
|
+
* Feature - Added new attribute AWS_EC2_INSTANCE_ID for RegisterInstance API
|
58
|
+
|
59
|
+
1.26.0 (2020-06-23)
|
60
|
+
------------------
|
61
|
+
|
62
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
63
|
+
|
64
|
+
1.25.1 (2020-06-11)
|
65
|
+
------------------
|
66
|
+
|
67
|
+
* Issue - Republish previous version with correct dependency on `aws-sdk-core`.
|
68
|
+
|
69
|
+
1.25.0 (2020-06-10)
|
70
|
+
------------------
|
71
|
+
|
72
|
+
* Issue - This version has been yanked. (#2327).
|
73
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
74
|
+
|
75
|
+
1.24.0 (2020-06-08)
|
76
|
+
------------------
|
77
|
+
|
78
|
+
* Feature - Added support for tagging Service and Namespace type resources in Cloud Map
|
79
|
+
|
80
|
+
1.23.0 (2020-05-28)
|
81
|
+
------------------
|
82
|
+
|
83
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
84
|
+
|
85
|
+
1.22.0 (2020-05-07)
|
86
|
+
------------------
|
87
|
+
|
88
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
89
|
+
|
90
|
+
1.21.0 (2020-04-29)
|
91
|
+
------------------
|
92
|
+
|
93
|
+
* Feature - Documentation updates for servicediscovery
|
94
|
+
|
95
|
+
1.20.0 (2020-03-09)
|
96
|
+
------------------
|
97
|
+
|
98
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
99
|
+
|
100
|
+
1.19.0 (2019-10-23)
|
101
|
+
------------------
|
102
|
+
|
103
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
104
|
+
|
105
|
+
1.18.0 (2019-07-25)
|
106
|
+
------------------
|
107
|
+
|
108
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
109
|
+
|
110
|
+
1.17.0 (2019-07-01)
|
111
|
+
------------------
|
112
|
+
|
113
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
114
|
+
|
115
|
+
1.16.0 (2019-06-17)
|
116
|
+
------------------
|
117
|
+
|
118
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
119
|
+
|
120
|
+
1.15.0 (2019-05-21)
|
121
|
+
------------------
|
122
|
+
|
123
|
+
* Feature - API update.
|
124
|
+
|
125
|
+
1.14.0 (2019-05-15)
|
126
|
+
------------------
|
127
|
+
|
128
|
+
* Feature - API update.
|
129
|
+
|
130
|
+
1.13.0 (2019-05-14)
|
131
|
+
------------------
|
132
|
+
|
133
|
+
* Feature - API update.
|
134
|
+
|
135
|
+
1.12.0 (2019-03-21)
|
136
|
+
------------------
|
137
|
+
|
138
|
+
* Feature - API update.
|
139
|
+
|
140
|
+
1.11.0 (2019-03-18)
|
141
|
+
------------------
|
142
|
+
|
143
|
+
* Feature - API update.
|
144
|
+
|
145
|
+
1.10.0 (2019-03-14)
|
146
|
+
------------------
|
147
|
+
|
148
|
+
* Feature - API update.
|
149
|
+
|
150
|
+
1.9.0 (2018-11-29)
|
151
|
+
------------------
|
152
|
+
|
153
|
+
* Feature - API update.
|
154
|
+
|
155
|
+
1.8.0 (2018-11-20)
|
156
|
+
------------------
|
157
|
+
|
158
|
+
* Feature - API update.
|
159
|
+
|
160
|
+
1.7.0 (2018-10-24)
|
161
|
+
------------------
|
162
|
+
|
163
|
+
* Feature - API update.
|
164
|
+
|
165
|
+
1.6.0 (2018-10-23)
|
166
|
+
------------------
|
167
|
+
|
168
|
+
* Feature - API update.
|
169
|
+
|
170
|
+
1.5.0 (2018-09-06)
|
171
|
+
------------------
|
172
|
+
|
173
|
+
* Feature - Adds code paths and plugins for future SDK instrumentation and telemetry.
|
174
|
+
|
175
|
+
1.4.0 (2018-09-05)
|
176
|
+
------------------
|
177
|
+
|
178
|
+
* Feature - API update.
|
179
|
+
|
180
|
+
1.3.0 (2018-06-26)
|
181
|
+
------------------
|
182
|
+
|
183
|
+
* Feature - API update.
|
184
|
+
|
185
|
+
1.2.0 (2018-03-13)
|
186
|
+
------------------
|
187
|
+
|
188
|
+
* Feature - API update.
|
189
|
+
|
190
|
+
1.1.0 (2018-02-06)
|
191
|
+
------------------
|
192
|
+
|
193
|
+
* Feature - API update.
|
194
|
+
|
195
|
+
1.0.0 (2017-12-05)
|
196
|
+
------------------
|
197
|
+
|
198
|
+
* Feature - Initial release of `aws-sdk-servicediscovery`.
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,202 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
178
|
+
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
180
|
+
|
181
|
+
To apply the Apache License to your work, attach the following
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
+
replaced with your own identifying information. (Don't include
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
185
|
+
comment syntax for the file format. We also recommend that a
|
186
|
+
file or class name and description of purpose be included on the
|
187
|
+
same "printed page" as the copyright notice for easier
|
188
|
+
identification within third-party archives.
|
189
|
+
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
191
|
+
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
+
you may not use this file except in compliance with the License.
|
194
|
+
You may obtain a copy of the License at
|
195
|
+
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
+
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
+
See the License for the specific language governing permissions and
|
202
|
+
limitations under the License.
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.37.0
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -48,6 +48,6 @@ require_relative 'aws-sdk-servicediscovery/customizations'
|
|
48
48
|
# @!group service
|
49
49
|
module Aws::ServiceDiscovery
|
50
50
|
|
51
|
-
GEM_VERSION = '1.
|
51
|
+
GEM_VERSION = '1.37.0'
|
52
52
|
|
53
53
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -337,13 +337,13 @@ module Aws::ServiceDiscovery
|
|
337
337
|
|
338
338
|
# @!group API Operations
|
339
339
|
|
340
|
-
# Creates an HTTP namespace. Service instances
|
341
|
-
#
|
342
|
-
#
|
340
|
+
# Creates an HTTP namespace. Service instances registered using an HTTP
|
341
|
+
# namespace can be discovered using a `DiscoverInstances` request but
|
342
|
+
# can't be discovered using DNS.
|
343
343
|
#
|
344
344
|
# For the current quota on the number of namespaces that you can create
|
345
|
-
# using the same
|
346
|
-
#
|
345
|
+
# using the same account, see [Cloud Map quotas][1] in the *Cloud Map
|
346
|
+
# Developer Guide*.
|
347
347
|
#
|
348
348
|
#
|
349
349
|
#
|
@@ -355,8 +355,8 @@ module Aws::ServiceDiscovery
|
|
355
355
|
# @option params [String] :creator_request_id
|
356
356
|
# A unique string that identifies the request and that allows failed
|
357
357
|
# `CreateHttpNamespace` requests to be retried without the risk of
|
358
|
-
#
|
359
|
-
# string
|
358
|
+
# running the operation twice. `CreatorRequestId` can be any unique
|
359
|
+
# string (for example, a date/time stamp).
|
360
360
|
#
|
361
361
|
# **A suitable default value is auto-generated.** You should normally
|
362
362
|
# not need to pass this option.**
|
@@ -366,9 +366,8 @@ module Aws::ServiceDiscovery
|
|
366
366
|
#
|
367
367
|
# @option params [Array<Types::Tag>] :tags
|
368
368
|
# The tags to add to the namespace. Each tag consists of a key and an
|
369
|
-
# optional value
|
370
|
-
#
|
371
|
-
# length of 256 characters.
|
369
|
+
# optional value that you define. Tags keys can be up to 128 characters
|
370
|
+
# in length, and tag values can be up to 256 characters in length.
|
372
371
|
#
|
373
372
|
# @return [Types::CreateHttpNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
374
373
|
#
|
@@ -393,7 +392,7 @@ module Aws::ServiceDiscovery
|
|
393
392
|
# @example Request syntax with placeholder values
|
394
393
|
#
|
395
394
|
# resp = client.create_http_namespace({
|
396
|
-
# name: "
|
395
|
+
# name: "NamespaceNameHttp", # required
|
397
396
|
# creator_request_id: "ResourceId",
|
398
397
|
# description: "ResourceDescription",
|
399
398
|
# tags: [
|
@@ -417,13 +416,15 @@ module Aws::ServiceDiscovery
|
|
417
416
|
req.send_request(options)
|
418
417
|
end
|
419
418
|
|
420
|
-
# Creates a private namespace based on DNS, which
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
#
|
419
|
+
# Creates a private namespace based on DNS, which is visible only inside
|
420
|
+
# a specified Amazon VPC. The namespace defines your service naming
|
421
|
+
# scheme. For example, if you name your namespace `example.com` and name
|
422
|
+
# your service `backend`, the resulting DNS name for the service is
|
423
|
+
# `backend.example.com`. Service instances that are registered using a
|
424
|
+
# private DNS namespace can be discovered using either a
|
425
|
+
# `DiscoverInstances` request or using DNS. For the current quota on the
|
426
|
+
# number of namespaces that you can create using the same account, see
|
427
|
+
# [Cloud Map quotas][1] in the *Cloud Map Developer Guide*.
|
427
428
|
#
|
428
429
|
#
|
429
430
|
#
|
@@ -431,14 +432,14 @@ module Aws::ServiceDiscovery
|
|
431
432
|
#
|
432
433
|
# @option params [required, String] :name
|
433
434
|
# The name that you want to assign to this namespace. When you create a
|
434
|
-
# private DNS namespace,
|
435
|
-
#
|
435
|
+
# private DNS namespace, Cloud Map automatically creates an Amazon Route
|
436
|
+
# 53 private hosted zone that has the same name as the namespace.
|
436
437
|
#
|
437
438
|
# @option params [String] :creator_request_id
|
438
439
|
# A unique string that identifies the request and that allows failed
|
439
440
|
# `CreatePrivateDnsNamespace` requests to be retried without the risk of
|
440
|
-
#
|
441
|
-
# string
|
441
|
+
# running the operation twice. `CreatorRequestId` can be any unique
|
442
|
+
# string (for example, a date/timestamp).
|
442
443
|
#
|
443
444
|
# **A suitable default value is auto-generated.** You should normally
|
444
445
|
# not need to pass this option.**
|
@@ -452,9 +453,11 @@ module Aws::ServiceDiscovery
|
|
452
453
|
#
|
453
454
|
# @option params [Array<Types::Tag>] :tags
|
454
455
|
# The tags to add to the namespace. Each tag consists of a key and an
|
455
|
-
# optional value
|
456
|
-
#
|
457
|
-
#
|
456
|
+
# optional value that you define. Tags keys can be up to 128 characters
|
457
|
+
# in length, and tag values can be up to 256 characters in length.
|
458
|
+
#
|
459
|
+
# @option params [Types::PrivateDnsNamespaceProperties] :properties
|
460
|
+
# Properties for the private DNS namespace.
|
458
461
|
#
|
459
462
|
# @return [Types::CreatePrivateDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
460
463
|
#
|
@@ -479,7 +482,7 @@ module Aws::ServiceDiscovery
|
|
479
482
|
# @example Request syntax with placeholder values
|
480
483
|
#
|
481
484
|
# resp = client.create_private_dns_namespace({
|
482
|
-
# name: "
|
485
|
+
# name: "NamespaceNamePrivate", # required
|
483
486
|
# creator_request_id: "ResourceId",
|
484
487
|
# description: "ResourceDescription",
|
485
488
|
# vpc: "ResourceId", # required
|
@@ -489,6 +492,13 @@ module Aws::ServiceDiscovery
|
|
489
492
|
# value: "TagValue", # required
|
490
493
|
# },
|
491
494
|
# ],
|
495
|
+
# properties: {
|
496
|
+
# dns_properties: { # required
|
497
|
+
# soa: { # required
|
498
|
+
# ttl: 1, # required
|
499
|
+
# },
|
500
|
+
# },
|
501
|
+
# },
|
492
502
|
# })
|
493
503
|
#
|
494
504
|
# @example Response structure
|
@@ -504,13 +514,15 @@ module Aws::ServiceDiscovery
|
|
504
514
|
req.send_request(options)
|
505
515
|
end
|
506
516
|
|
507
|
-
# Creates a public namespace based on DNS, which
|
517
|
+
# Creates a public namespace based on DNS, which is visible on the
|
508
518
|
# internet. The namespace defines your service naming scheme. For
|
509
519
|
# example, if you name your namespace `example.com` and name your
|
510
|
-
# service `backend`, the resulting DNS name for the service
|
511
|
-
# `backend.example.com`.
|
512
|
-
#
|
513
|
-
#
|
520
|
+
# service `backend`, the resulting DNS name for the service is
|
521
|
+
# `backend.example.com`. You can discover instances that were registered
|
522
|
+
# with a public DNS namespace by using either a `DiscoverInstances`
|
523
|
+
# request or using DNS. For the current quota on the number of
|
524
|
+
# namespaces that you can create using the same account, see [Cloud Map
|
525
|
+
# quotas][1] in the *Cloud Map Developer Guide*.
|
514
526
|
#
|
515
527
|
#
|
516
528
|
#
|
@@ -522,8 +534,8 @@ module Aws::ServiceDiscovery
|
|
522
534
|
# @option params [String] :creator_request_id
|
523
535
|
# A unique string that identifies the request and that allows failed
|
524
536
|
# `CreatePublicDnsNamespace` requests to be retried without the risk of
|
525
|
-
#
|
526
|
-
# string
|
537
|
+
# running the operation twice. `CreatorRequestId` can be any unique
|
538
|
+
# string (for example, a date/timestamp).
|
527
539
|
#
|
528
540
|
# **A suitable default value is auto-generated.** You should normally
|
529
541
|
# not need to pass this option.**
|
@@ -533,9 +545,11 @@ module Aws::ServiceDiscovery
|
|
533
545
|
#
|
534
546
|
# @option params [Array<Types::Tag>] :tags
|
535
547
|
# The tags to add to the namespace. Each tag consists of a key and an
|
536
|
-
# optional value
|
537
|
-
#
|
538
|
-
#
|
548
|
+
# optional value that you define. Tags keys can be up to 128 characters
|
549
|
+
# in length, and tag values can be up to 256 characters in length.
|
550
|
+
#
|
551
|
+
# @option params [Types::PublicDnsNamespaceProperties] :properties
|
552
|
+
# Properties for the public DNS namespace.
|
539
553
|
#
|
540
554
|
# @return [Types::CreatePublicDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
541
555
|
#
|
@@ -560,7 +574,7 @@ module Aws::ServiceDiscovery
|
|
560
574
|
# @example Request syntax with placeholder values
|
561
575
|
#
|
562
576
|
# resp = client.create_public_dns_namespace({
|
563
|
-
# name: "
|
577
|
+
# name: "NamespaceNamePublic", # required
|
564
578
|
# creator_request_id: "ResourceId",
|
565
579
|
# description: "ResourceDescription",
|
566
580
|
# tags: [
|
@@ -569,6 +583,13 @@ module Aws::ServiceDiscovery
|
|
569
583
|
# value: "TagValue", # required
|
570
584
|
# },
|
571
585
|
# ],
|
586
|
+
# properties: {
|
587
|
+
# dns_properties: { # required
|
588
|
+
# soa: { # required
|
589
|
+
# ttl: 1, # required
|
590
|
+
# },
|
591
|
+
# },
|
592
|
+
# },
|
572
593
|
# })
|
573
594
|
#
|
574
595
|
# @example Response structure
|
@@ -584,11 +605,11 @@ module Aws::ServiceDiscovery
|
|
584
605
|
req.send_request(options)
|
585
606
|
end
|
586
607
|
|
587
|
-
# Creates a service
|
588
|
-
# entities:
|
608
|
+
# Creates a service. This action defines the configuration for the
|
609
|
+
# following entities:
|
589
610
|
#
|
590
611
|
# * For public and private DNS namespaces, one of the following
|
591
|
-
# combinations of DNS records in Amazon Route
|
612
|
+
# combinations of DNS records in Amazon Route 53:
|
592
613
|
#
|
593
614
|
# * `A`
|
594
615
|
#
|
@@ -603,12 +624,12 @@ module Aws::ServiceDiscovery
|
|
603
624
|
# * Optionally, a health check
|
604
625
|
#
|
605
626
|
# After you create the service, you can submit a [RegisterInstance][1]
|
606
|
-
# request, and
|
607
|
-
#
|
627
|
+
# request, and Cloud Map uses the values in the configuration to create
|
628
|
+
# the specified entities.
|
608
629
|
#
|
609
630
|
# For the current quota on the number of instances that you can register
|
610
|
-
# using the same namespace and using the same service, see [
|
611
|
-
#
|
631
|
+
# using the same namespace and using the same service, see [Cloud Map
|
632
|
+
# quotas][2] in the *Cloud Map Developer Guide*.
|
612
633
|
#
|
613
634
|
#
|
614
635
|
#
|
@@ -618,19 +639,28 @@ module Aws::ServiceDiscovery
|
|
618
639
|
# @option params [required, String] :name
|
619
640
|
# The name that you want to assign to the service.
|
620
641
|
#
|
621
|
-
# If you want
|
622
|
-
#
|
623
|
-
#
|
642
|
+
# If you want Cloud Map to create an `SRV` record when you register an
|
643
|
+
# instance and you're using a system that requires a specific `SRV`
|
644
|
+
# format, such as [HAProxy][1], specify the following for `Name`\:
|
624
645
|
#
|
625
|
-
# * Start the name with an underscore (\_), such as `_exampleservice
|
646
|
+
# * Start the name with an underscore (\_), such as `_exampleservice`.
|
626
647
|
#
|
627
|
-
# * End the name with *.\_protocol*, such as `._tcp
|
648
|
+
# * End the name with *.\_protocol*, such as `._tcp`.
|
628
649
|
#
|
629
|
-
# When you register an instance,
|
630
|
-
#
|
631
|
-
#
|
650
|
+
# When you register an instance, Cloud Map creates an `SRV` record and
|
651
|
+
# assigns a name to the record by concatenating the service name and the
|
652
|
+
# namespace name (for example,
|
632
653
|
#
|
633
|
-
# `_exampleservice._tcp.example.com`
|
654
|
+
# `_exampleservice._tcp.example.com`).
|
655
|
+
#
|
656
|
+
# <note markdown="1"> For services that are accessible by DNS queries, you can't create
|
657
|
+
# multiple services with names that differ only by case (such as EXAMPLE
|
658
|
+
# and example). Otherwise, these services have the same DNS name and
|
659
|
+
# can't be distinguished. However, if you use a namespace that's only
|
660
|
+
# accessible by API calls, then you can create services that with names
|
661
|
+
# that differ only by case.
|
662
|
+
#
|
663
|
+
# </note>
|
634
664
|
#
|
635
665
|
#
|
636
666
|
#
|
@@ -638,12 +668,14 @@ module Aws::ServiceDiscovery
|
|
638
668
|
#
|
639
669
|
# @option params [String] :namespace_id
|
640
670
|
# The ID of the namespace that you want to use to create the service.
|
671
|
+
# The namespace ID must be specified, but it can be specified either
|
672
|
+
# here or in the `DnsConfig` object.
|
641
673
|
#
|
642
674
|
# @option params [String] :creator_request_id
|
643
675
|
# A unique string that identifies the request and that allows failed
|
644
|
-
# `CreateService` requests to be retried without the risk of
|
645
|
-
#
|
646
|
-
# example, a date/
|
676
|
+
# `CreateService` requests to be retried without the risk of running the
|
677
|
+
# operation twice. `CreatorRequestId` can be any unique string (for
|
678
|
+
# example, a date/timestamp).
|
647
679
|
#
|
648
680
|
# **A suitable default value is auto-generated.** You should normally
|
649
681
|
# not need to pass this option.**
|
@@ -652,21 +684,21 @@ module Aws::ServiceDiscovery
|
|
652
684
|
# A description for the service.
|
653
685
|
#
|
654
686
|
# @option params [Types::DnsConfig] :dns_config
|
655
|
-
# A complex type that contains information about the Amazon Route
|
656
|
-
# records that you want
|
687
|
+
# A complex type that contains information about the Amazon Route 53
|
688
|
+
# records that you want Cloud Map to create when you register an
|
657
689
|
# instance.
|
658
690
|
#
|
659
691
|
# @option params [Types::HealthCheckConfig] :health_check_config
|
660
692
|
# *Public DNS and HTTP namespaces only.* A complex type that contains
|
661
|
-
# settings for an optional Route
|
662
|
-
# settings for a health check,
|
663
|
-
# with all the Route
|
693
|
+
# settings for an optional Route 53 health check. If you specify
|
694
|
+
# settings for a health check, Cloud Map associates the health check
|
695
|
+
# with all the Route 53 DNS records that you specify in `DnsConfig`.
|
664
696
|
#
|
665
697
|
# If you specify a health check configuration, you can specify either
|
666
698
|
# `HealthCheckCustomConfig` or `HealthCheckConfig` but not both.
|
667
699
|
#
|
668
|
-
# For information about the charges for health checks, see [
|
669
|
-
#
|
700
|
+
# For information about the charges for health checks, see [Cloud Map
|
701
|
+
# Pricing][1].
|
670
702
|
#
|
671
703
|
#
|
672
704
|
#
|
@@ -684,9 +716,13 @@ module Aws::ServiceDiscovery
|
|
684
716
|
#
|
685
717
|
# @option params [Array<Types::Tag>] :tags
|
686
718
|
# The tags to add to the service. Each tag consists of a key and an
|
687
|
-
# optional value
|
688
|
-
#
|
689
|
-
#
|
719
|
+
# optional value that you define. Tags keys can be up to 128 characters
|
720
|
+
# in length, and tag values can be up to 256 characters in length.
|
721
|
+
#
|
722
|
+
# @option params [String] :type
|
723
|
+
# If present, specifies that the service instances are only discoverable
|
724
|
+
# using the `DiscoverInstances` API operation. No DNS records is
|
725
|
+
# registered for the service instances. The only valid value is `HTTP`.
|
690
726
|
#
|
691
727
|
# @return [Types::CreateServiceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
692
728
|
#
|
@@ -766,6 +802,7 @@ module Aws::ServiceDiscovery
|
|
766
802
|
# value: "TagValue", # required
|
767
803
|
# },
|
768
804
|
# ],
|
805
|
+
# type: "HTTP", # accepts HTTP
|
769
806
|
# })
|
770
807
|
#
|
771
808
|
# @example Response structure
|
@@ -781,6 +818,7 @@ module Aws::ServiceDiscovery
|
|
781
818
|
# resp.service.dns_config.dns_records #=> Array
|
782
819
|
# resp.service.dns_config.dns_records[0].type #=> String, one of "SRV", "A", "AAAA", "CNAME"
|
783
820
|
# resp.service.dns_config.dns_records[0].ttl #=> Integer
|
821
|
+
# resp.service.type #=> String, one of "HTTP", "DNS_HTTP", "DNS"
|
784
822
|
# resp.service.health_check_config.type #=> String, one of "HTTP", "HTTPS", "TCP"
|
785
823
|
# resp.service.health_check_config.resource_path #=> String
|
786
824
|
# resp.service.health_check_config.failure_threshold #=> Integer
|
@@ -876,8 +914,8 @@ module Aws::ServiceDiscovery
|
|
876
914
|
req.send_request(options)
|
877
915
|
end
|
878
916
|
|
879
|
-
# Deletes the Amazon Route
|
880
|
-
#
|
917
|
+
# Deletes the Amazon Route 53 DNS records and health check, if any, that
|
918
|
+
# Cloud Map created for the specified instance.
|
881
919
|
#
|
882
920
|
# @option params [required, String] :service_id
|
883
921
|
# The ID of the service that the instance is associated with.
|
@@ -935,33 +973,53 @@ module Aws::ServiceDiscovery
|
|
935
973
|
# queries to discover instances.
|
936
974
|
#
|
937
975
|
# @option params [required, String] :namespace_name
|
938
|
-
# The name of the namespace
|
939
|
-
#
|
976
|
+
# The `HttpName` name of the namespace. It's found in the
|
977
|
+
# `HttpProperties` member of the `Properties` member of the namespace.
|
940
978
|
#
|
941
979
|
# @option params [required, String] :service_name
|
942
980
|
# The name of the service that you specified when you registered the
|
943
981
|
# instance.
|
944
982
|
#
|
945
983
|
# @option params [Integer] :max_results
|
946
|
-
# The maximum number of instances that you want
|
947
|
-
#
|
948
|
-
#
|
949
|
-
# instances.
|
984
|
+
# The maximum number of instances that you want Cloud Map to return in
|
985
|
+
# the response to a `DiscoverInstances` request. If you don't specify a
|
986
|
+
# value for `MaxResults`, Cloud Map returns up to 100 instances.
|
950
987
|
#
|
951
988
|
# @option params [Hash<String,String>] :query_parameters
|
952
989
|
# Filters to scope the results based on custom attributes for the
|
953
|
-
# instance
|
954
|
-
# match all the specified key-value pairs
|
990
|
+
# instance (for example, `\{version=v1, az=1a\}`). Only instances that
|
991
|
+
# match all the specified key-value pairs are returned.
|
955
992
|
#
|
956
993
|
# @option params [Hash<String,String>] :optional_parameters
|
957
994
|
# Opportunistic filters to scope the results based on custom attributes.
|
958
995
|
# If there are instances that match both the filters specified in both
|
959
|
-
# the `QueryParameters` parameter and this parameter,
|
960
|
-
# Otherwise,
|
961
|
-
#
|
996
|
+
# the `QueryParameters` parameter and this parameter, all of these
|
997
|
+
# instances are returned. Otherwise, the filters are ignored, and only
|
998
|
+
# instances that match the filters that are specified in the
|
999
|
+
# `QueryParameters` parameter are returned.
|
962
1000
|
#
|
963
1001
|
# @option params [String] :health_status
|
964
|
-
# The health status of the instances that you want to discover.
|
1002
|
+
# The health status of the instances that you want to discover. This
|
1003
|
+
# parameter is ignored for services that don't have a health check
|
1004
|
+
# configured, and all instances are returned.
|
1005
|
+
#
|
1006
|
+
# HEALTHY
|
1007
|
+
#
|
1008
|
+
# : Returns healthy instances.
|
1009
|
+
#
|
1010
|
+
# UNHEALTHY
|
1011
|
+
#
|
1012
|
+
# : Returns unhealthy instances.
|
1013
|
+
#
|
1014
|
+
# ALL
|
1015
|
+
#
|
1016
|
+
# : Returns all instances.
|
1017
|
+
#
|
1018
|
+
# HEALTHY\_OR\_ELSE\_ALL
|
1019
|
+
#
|
1020
|
+
# : Returns healthy instances, unless none are reporting a healthy
|
1021
|
+
# state. In that case, return all instances. This is also called
|
1022
|
+
# failing open.
|
965
1023
|
#
|
966
1024
|
# @return [Types::DiscoverInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
967
1025
|
#
|
@@ -1007,7 +1065,7 @@ module Aws::ServiceDiscovery
|
|
1007
1065
|
# optional_parameters: {
|
1008
1066
|
# "AttrKey" => "AttrValue",
|
1009
1067
|
# },
|
1010
|
-
# health_status: "HEALTHY", # accepts HEALTHY, UNHEALTHY, ALL
|
1068
|
+
# health_status: "HEALTHY", # accepts HEALTHY, UNHEALTHY, ALL, HEALTHY_OR_ELSE_ALL
|
1011
1069
|
# })
|
1012
1070
|
#
|
1013
1071
|
# @example Response structure
|
@@ -1091,7 +1149,7 @@ module Aws::ServiceDiscovery
|
|
1091
1149
|
# Gets the current health status (`Healthy`, `Unhealthy`, or `Unknown`)
|
1092
1150
|
# of one or more instances that are associated with a specified service.
|
1093
1151
|
#
|
1094
|
-
# <note markdown="1"> There
|
1152
|
+
# <note markdown="1"> There's a brief delay between when you register an instance and when
|
1095
1153
|
# the health status for the instance is available.
|
1096
1154
|
#
|
1097
1155
|
# </note>
|
@@ -1103,8 +1161,8 @@ module Aws::ServiceDiscovery
|
|
1103
1161
|
# An array that contains the IDs of all the instances that you want to
|
1104
1162
|
# get the health status for.
|
1105
1163
|
#
|
1106
|
-
# If you omit `Instances`,
|
1107
|
-
#
|
1164
|
+
# If you omit `Instances`, Cloud Map returns the health status for all
|
1165
|
+
# the instances that are associated with the specified service.
|
1108
1166
|
#
|
1109
1167
|
# <note markdown="1"> To get the IDs for the instances that you've registered by using a
|
1110
1168
|
# specified service, submit a [ListInstances][1] request.
|
@@ -1116,9 +1174,9 @@ module Aws::ServiceDiscovery
|
|
1116
1174
|
# [1]: https://docs.aws.amazon.com/cloud-map/latest/api/API_ListInstances.html
|
1117
1175
|
#
|
1118
1176
|
# @option params [Integer] :max_results
|
1119
|
-
# The maximum number of instances that you want
|
1120
|
-
#
|
1121
|
-
# specify a value for `MaxResults`,
|
1177
|
+
# The maximum number of instances that you want Cloud Map to return in
|
1178
|
+
# the response to a `GetInstancesHealthStatus` request. If you don't
|
1179
|
+
# specify a value for `MaxResults`, Cloud Map returns up to 100
|
1122
1180
|
# instances.
|
1123
1181
|
#
|
1124
1182
|
# @option params [String] :next_token
|
@@ -1230,6 +1288,7 @@ module Aws::ServiceDiscovery
|
|
1230
1288
|
# resp.namespace.description #=> String
|
1231
1289
|
# resp.namespace.service_count #=> Integer
|
1232
1290
|
# resp.namespace.properties.dns_properties.hosted_zone_id #=> String
|
1291
|
+
# resp.namespace.properties.dns_properties.soa.ttl #=> Integer
|
1233
1292
|
# resp.namespace.properties.http_properties.http_name #=> String
|
1234
1293
|
# resp.namespace.create_date #=> Time
|
1235
1294
|
# resp.namespace.creator_request_id #=> String
|
@@ -1294,7 +1353,7 @@ module Aws::ServiceDiscovery
|
|
1294
1353
|
# @example Response structure
|
1295
1354
|
#
|
1296
1355
|
# resp.operation.id #=> String
|
1297
|
-
# resp.operation.type #=> String, one of "CREATE_NAMESPACE", "DELETE_NAMESPACE", "UPDATE_SERVICE", "REGISTER_INSTANCE", "DEREGISTER_INSTANCE"
|
1356
|
+
# resp.operation.type #=> String, one of "CREATE_NAMESPACE", "DELETE_NAMESPACE", "UPDATE_NAMESPACE", "UPDATE_SERVICE", "REGISTER_INSTANCE", "DEREGISTER_INSTANCE"
|
1298
1357
|
# resp.operation.status #=> String, one of "SUBMITTED", "PENDING", "SUCCESS", "FAIL"
|
1299
1358
|
# resp.operation.error_message #=> String
|
1300
1359
|
# resp.operation.error_code #=> String
|
@@ -1367,6 +1426,7 @@ module Aws::ServiceDiscovery
|
|
1367
1426
|
# resp.service.dns_config.dns_records #=> Array
|
1368
1427
|
# resp.service.dns_config.dns_records[0].type #=> String, one of "SRV", "A", "AAAA", "CNAME"
|
1369
1428
|
# resp.service.dns_config.dns_records[0].ttl #=> Integer
|
1429
|
+
# resp.service.type #=> String, one of "HTTP", "DNS_HTTP", "DNS"
|
1370
1430
|
# resp.service.health_check_config.type #=> String, one of "HTTP", "HTTPS", "TCP"
|
1371
1431
|
# resp.service.health_check_config.resource_path #=> String
|
1372
1432
|
# resp.service.health_check_config.failure_threshold #=> Integer
|
@@ -1398,9 +1458,9 @@ module Aws::ServiceDiscovery
|
|
1398
1458
|
# in the next request.
|
1399
1459
|
#
|
1400
1460
|
# @option params [Integer] :max_results
|
1401
|
-
# The maximum number of instances that you want
|
1402
|
-
#
|
1403
|
-
# value for `MaxResults`,
|
1461
|
+
# The maximum number of instances that you want Cloud Map to return in
|
1462
|
+
# the response to a `ListInstances` request. If you don't specify a
|
1463
|
+
# value for `MaxResults`, Cloud Map returns up to 100 instances.
|
1404
1464
|
#
|
1405
1465
|
# @return [Types::ListInstancesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1406
1466
|
#
|
@@ -1457,7 +1517,7 @@ module Aws::ServiceDiscovery
|
|
1457
1517
|
end
|
1458
1518
|
|
1459
1519
|
# Lists summary information about the namespaces that were created by
|
1460
|
-
# the current
|
1520
|
+
# the current account.
|
1461
1521
|
#
|
1462
1522
|
# @option params [String] :next_token
|
1463
1523
|
# For the first `ListNamespaces` request, omit this value.
|
@@ -1466,18 +1526,18 @@ module Aws::ServiceDiscovery
|
|
1466
1526
|
# request to get the next group of results. Specify the value of
|
1467
1527
|
# `NextToken` from the previous response in the next request.
|
1468
1528
|
#
|
1469
|
-
# <note markdown="1">
|
1470
|
-
#
|
1471
|
-
#
|
1529
|
+
# <note markdown="1"> Cloud Map gets `MaxResults` namespaces and then filters them based on
|
1530
|
+
# the specified criteria. It's possible that no namespaces in the first
|
1531
|
+
# `MaxResults` namespaces matched the specified criteria but that
|
1472
1532
|
# subsequent groups of `MaxResults` namespaces do contain namespaces
|
1473
1533
|
# that match the criteria.
|
1474
1534
|
#
|
1475
1535
|
# </note>
|
1476
1536
|
#
|
1477
1537
|
# @option params [Integer] :max_results
|
1478
|
-
# The maximum number of namespaces that you want
|
1479
|
-
#
|
1480
|
-
# value for `MaxResults`,
|
1538
|
+
# The maximum number of namespaces that you want Cloud Map to return in
|
1539
|
+
# the response to a `ListNamespaces` request. If you don't specify a
|
1540
|
+
# value for `MaxResults`, Cloud Map returns up to 100 namespaces.
|
1481
1541
|
#
|
1482
1542
|
# @option params [Array<Types::NamespaceFilter>] :filters
|
1483
1543
|
# A complex type that contains specifications for the namespaces that
|
@@ -1576,6 +1636,7 @@ module Aws::ServiceDiscovery
|
|
1576
1636
|
# resp.namespaces[0].description #=> String
|
1577
1637
|
# resp.namespaces[0].service_count #=> Integer
|
1578
1638
|
# resp.namespaces[0].properties.dns_properties.hosted_zone_id #=> String
|
1639
|
+
# resp.namespaces[0].properties.dns_properties.soa.ttl #=> Integer
|
1579
1640
|
# resp.namespaces[0].properties.http_properties.http_name #=> String
|
1580
1641
|
# resp.namespaces[0].create_date #=> Time
|
1581
1642
|
# resp.next_token #=> String
|
@@ -1598,18 +1659,18 @@ module Aws::ServiceDiscovery
|
|
1598
1659
|
# request to get the next group of results. Specify the value of
|
1599
1660
|
# `NextToken` from the previous response in the next request.
|
1600
1661
|
#
|
1601
|
-
# <note markdown="1">
|
1602
|
-
#
|
1603
|
-
#
|
1662
|
+
# <note markdown="1"> Cloud Map gets `MaxResults` operations and then filters them based on
|
1663
|
+
# the specified criteria. It's possible that no operations in the first
|
1664
|
+
# `MaxResults` operations matched the specified criteria but that
|
1604
1665
|
# subsequent groups of `MaxResults` operations do contain operations
|
1605
1666
|
# that match the criteria.
|
1606
1667
|
#
|
1607
1668
|
# </note>
|
1608
1669
|
#
|
1609
1670
|
# @option params [Integer] :max_results
|
1610
|
-
# The maximum number of items that you want
|
1611
|
-
#
|
1612
|
-
#
|
1671
|
+
# The maximum number of items that you want Cloud Map to return in the
|
1672
|
+
# response to a `ListOperations` request. If you don't specify a value
|
1673
|
+
# for `MaxResults`, Cloud Map returns up to 100 operations.
|
1613
1674
|
#
|
1614
1675
|
# @option params [Array<Types::OperationFilter>] :filters
|
1615
1676
|
# A complex type that contains specifications for the operations that
|
@@ -1702,18 +1763,18 @@ module Aws::ServiceDiscovery
|
|
1702
1763
|
# request to get the next group of results. Specify the value of
|
1703
1764
|
# `NextToken` from the previous response in the next request.
|
1704
1765
|
#
|
1705
|
-
# <note markdown="1">
|
1706
|
-
#
|
1707
|
-
#
|
1766
|
+
# <note markdown="1"> Cloud Map gets `MaxResults` services and then filters them based on
|
1767
|
+
# the specified criteria. It's possible that no services in the first
|
1768
|
+
# `MaxResults` services matched the specified criteria but that
|
1708
1769
|
# subsequent groups of `MaxResults` services do contain services that
|
1709
1770
|
# match the criteria.
|
1710
1771
|
#
|
1711
1772
|
# </note>
|
1712
1773
|
#
|
1713
1774
|
# @option params [Integer] :max_results
|
1714
|
-
# The maximum number of services that you want
|
1715
|
-
#
|
1716
|
-
# value for `MaxResults`,
|
1775
|
+
# The maximum number of services that you want Cloud Map to return in
|
1776
|
+
# the response to a `ListServices` request. If you don't specify a
|
1777
|
+
# value for `MaxResults`, Cloud Map returns up to 100 services.
|
1717
1778
|
#
|
1718
1779
|
# @option params [Array<Types::ServiceFilter>] :filters
|
1719
1780
|
# A complex type that contains specifications for the namespaces that
|
@@ -1778,6 +1839,7 @@ module Aws::ServiceDiscovery
|
|
1778
1839
|
# resp.services[0].id #=> String
|
1779
1840
|
# resp.services[0].arn #=> String
|
1780
1841
|
# resp.services[0].name #=> String
|
1842
|
+
# resp.services[0].type #=> String, one of "HTTP", "DNS_HTTP", "DNS"
|
1781
1843
|
# resp.services[0].description #=> String
|
1782
1844
|
# resp.services[0].instance_count #=> Integer
|
1783
1845
|
# resp.services[0].dns_config.namespace_id #=> String
|
@@ -1859,9 +1921,9 @@ module Aws::ServiceDiscovery
|
|
1859
1921
|
# health check based on the settings in a specified service. When you
|
1860
1922
|
# submit a `RegisterInstance` request, the following occurs:
|
1861
1923
|
#
|
1862
|
-
# * For each DNS record that you define in the service that
|
1924
|
+
# * For each DNS record that you define in the service that's specified
|
1863
1925
|
# by `ServiceId`, a record is created or updated in the hosted zone
|
1864
|
-
# that
|
1926
|
+
# that's associated with the corresponding namespace.
|
1865
1927
|
#
|
1866
1928
|
# * If the service includes `HealthCheckConfig`, a health check is
|
1867
1929
|
# created based on the settings in the health check configuration.
|
@@ -1874,7 +1936,7 @@ module Aws::ServiceDiscovery
|
|
1874
1936
|
#
|
1875
1937
|
# For more information, see [CreateService][1].
|
1876
1938
|
#
|
1877
|
-
# When
|
1939
|
+
# When Cloud Map receives a DNS query for the specified DNS name, it
|
1878
1940
|
# returns the applicable value:
|
1879
1941
|
#
|
1880
1942
|
# * **If the health check is healthy**\: returns all the records
|
@@ -1886,8 +1948,8 @@ module Aws::ServiceDiscovery
|
|
1886
1948
|
# all the records
|
1887
1949
|
#
|
1888
1950
|
# For the current quota on the number of instances that you can register
|
1889
|
-
# using the same namespace and using the same service, see [
|
1890
|
-
#
|
1951
|
+
# using the same namespace and using the same service, see [Cloud Map
|
1952
|
+
# quotas][2] in the *Cloud Map Developer Guide*.
|
1891
1953
|
#
|
1892
1954
|
#
|
1893
1955
|
#
|
@@ -1902,20 +1964,20 @@ module Aws::ServiceDiscovery
|
|
1902
1964
|
# An identifier that you want to associate with the instance. Note the
|
1903
1965
|
# following:
|
1904
1966
|
#
|
1905
|
-
# * If the service that
|
1967
|
+
# * If the service that's specified by `ServiceId` includes settings
|
1906
1968
|
# for an `SRV` record, the value of `InstanceId` is automatically
|
1907
1969
|
# included as part of the value for the `SRV` record. For more
|
1908
1970
|
# information, see [DnsRecord > Type][1].
|
1909
1971
|
#
|
1910
1972
|
# * You can use this value to update an existing instance.
|
1911
1973
|
#
|
1912
|
-
# * To register a new instance, you must specify a value that
|
1974
|
+
# * To register a new instance, you must specify a value that's unique
|
1913
1975
|
# among instances that you register by using the same service.
|
1914
1976
|
#
|
1915
|
-
# * If you specify an existing `InstanceId` and `ServiceId`,
|
1916
|
-
#
|
1917
|
-
# existing health check,
|
1918
|
-
#
|
1977
|
+
# * If you specify an existing `InstanceId` and `ServiceId`, Cloud Map
|
1978
|
+
# updates the existing DNS records, if any. If there's also an
|
1979
|
+
# existing health check, Cloud Map deletes the old health check and
|
1980
|
+
# creates a new one.
|
1919
1981
|
#
|
1920
1982
|
# <note markdown="1"> The health check isn't deleted immediately, so it will still appear
|
1921
1983
|
# for a while if you submit a `ListHealthChecks` request, for example.
|
@@ -1932,8 +1994,8 @@ module Aws::ServiceDiscovery
|
|
1932
1994
|
# executing the operation twice. You must use a unique
|
1933
1995
|
# `CreatorRequestId` string every time you submit a `RegisterInstance`
|
1934
1996
|
# request if you're registering additional instances for the same
|
1935
|
-
# namespace and service. `CreatorRequestId` can be any unique string
|
1936
|
-
# for example, a date/time stamp.
|
1997
|
+
# namespace and service. `CreatorRequestId` can be any unique string
|
1998
|
+
# (for example, a date/time stamp).
|
1937
1999
|
#
|
1938
2000
|
# **A suitable default value is auto-generated.** You should normally
|
1939
2001
|
# not need to pass this option.**
|
@@ -1949,100 +2011,101 @@ module Aws::ServiceDiscovery
|
|
1949
2011
|
#
|
1950
2012
|
# Supported attribute keys include the following:
|
1951
2013
|
#
|
1952
|
-
#
|
2014
|
+
# AWS\_ALIAS\_DNS\_NAME
|
1953
2015
|
#
|
1954
|
-
# If you want
|
1955
|
-
#
|
1956
|
-
#
|
1957
|
-
#
|
1958
|
-
#
|
2016
|
+
# : If you want Cloud Map to create an Amazon Route 53 alias record that
|
2017
|
+
# routes traffic to an Elastic Load Balancing load balancer, specify
|
2018
|
+
# the DNS name that's associated with the load balancer. For
|
2019
|
+
# information about how to get the DNS name, see "DNSName" in the
|
2020
|
+
# topic [AliasTarget][1] in the *Route 53 API Reference*.
|
1959
2021
|
#
|
1960
|
-
#
|
2022
|
+
# Note the following:
|
1961
2023
|
#
|
1962
|
-
#
|
1963
|
-
#
|
2024
|
+
# * The configuration for the service that's specified by `ServiceId`
|
2025
|
+
# must include settings for an `A` record, an `AAAA` record, or
|
2026
|
+
# both.
|
1964
2027
|
#
|
1965
|
-
#
|
1966
|
-
#
|
2028
|
+
# * In the service that's specified by `ServiceId`, the value of
|
2029
|
+
# `RoutingPolicy` must be `WEIGHTED`.
|
1967
2030
|
#
|
1968
|
-
#
|
1969
|
-
#
|
1970
|
-
#
|
1971
|
-
#
|
2031
|
+
# * If the service that's specified by `ServiceId` includes
|
2032
|
+
# `HealthCheckConfig` settings, Cloud Map will create the Route 53
|
2033
|
+
# health check, but it doesn't associate the health check with the
|
2034
|
+
# alias record.
|
1972
2035
|
#
|
1973
|
-
#
|
1974
|
-
#
|
1975
|
-
#
|
2036
|
+
# * Auto naming currently doesn't support creating alias records that
|
2037
|
+
# route traffic to Amazon Web Services resources other than Elastic
|
2038
|
+
# Load Balancing load balancers.
|
1976
2039
|
#
|
1977
|
-
#
|
1978
|
-
#
|
2040
|
+
# * If you specify a value for `AWS_ALIAS_DNS_NAME`, don't specify
|
2041
|
+
# values for any of the `AWS_INSTANCE` attributes.
|
1979
2042
|
#
|
1980
|
-
#
|
2043
|
+
# AWS\_EC2\_INSTANCE\_ID
|
1981
2044
|
#
|
1982
|
-
# *HTTP namespaces only.* The Amazon EC2 instance ID for the instance.
|
1983
|
-
#
|
1984
|
-
#
|
1985
|
-
#
|
1986
|
-
#
|
1987
|
-
#
|
2045
|
+
# : *HTTP namespaces only.* The Amazon EC2 instance ID for the instance.
|
2046
|
+
# If the `AWS_EC2_INSTANCE_ID` attribute is specified, then the only
|
2047
|
+
# other attribute that can be specified is `AWS_INIT_HEALTH_STATUS`.
|
2048
|
+
# When the `AWS_EC2_INSTANCE_ID` attribute is specified, then the
|
2049
|
+
# `AWS_INSTANCE_IPV4` attribute will be filled out with the primary
|
2050
|
+
# private IPv4 address.
|
1988
2051
|
#
|
1989
|
-
#
|
2052
|
+
# AWS\_INIT\_HEALTH\_STATUS
|
1990
2053
|
#
|
1991
|
-
# If the service configuration includes `HealthCheckCustomConfig`, you
|
1992
|
-
#
|
1993
|
-
#
|
1994
|
-
#
|
1995
|
-
#
|
2054
|
+
# : If the service configuration includes `HealthCheckCustomConfig`, you
|
2055
|
+
# can optionally use `AWS_INIT_HEALTH_STATUS` to specify the initial
|
2056
|
+
# status of the custom health check, `HEALTHY` or `UNHEALTHY`. If you
|
2057
|
+
# don't specify a value for `AWS_INIT_HEALTH_STATUS`, the initial
|
2058
|
+
# status is `HEALTHY`.
|
1996
2059
|
#
|
1997
|
-
#
|
2060
|
+
# AWS\_INSTANCE\_CNAME
|
1998
2061
|
#
|
1999
|
-
# If the service configuration includes a `CNAME` record, the domain
|
2000
|
-
#
|
2001
|
-
#
|
2062
|
+
# : If the service configuration includes a `CNAME` record, the domain
|
2063
|
+
# name that you want Route 53 to return in response to DNS queries
|
2064
|
+
# (for example, `example.com`).
|
2002
2065
|
#
|
2003
|
-
#
|
2004
|
-
#
|
2066
|
+
# This value is required if the service specified by `ServiceId`
|
2067
|
+
# includes settings for an `CNAME` record.
|
2005
2068
|
#
|
2006
|
-
#
|
2069
|
+
# AWS\_INSTANCE\_IPV4
|
2007
2070
|
#
|
2008
|
-
# If the service configuration includes an `A` record, the IPv4
|
2009
|
-
#
|
2010
|
-
#
|
2071
|
+
# : If the service configuration includes an `A` record, the IPv4
|
2072
|
+
# address that you want Route 53 to return in response to DNS queries
|
2073
|
+
# (for example, `192.0.2.44`).
|
2011
2074
|
#
|
2012
|
-
#
|
2013
|
-
#
|
2014
|
-
#
|
2015
|
-
#
|
2075
|
+
# This value is required if the service specified by `ServiceId`
|
2076
|
+
# includes settings for an `A` record. If the service includes
|
2077
|
+
# settings for an `SRV` record, you must specify a value for
|
2078
|
+
# `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
|
2016
2079
|
#
|
2017
|
-
#
|
2080
|
+
# AWS\_INSTANCE\_IPV6
|
2018
2081
|
#
|
2019
|
-
# If the service configuration includes an `AAAA` record, the IPv6
|
2020
|
-
#
|
2021
|
-
#
|
2082
|
+
# : If the service configuration includes an `AAAA` record, the IPv6
|
2083
|
+
# address that you want Route 53 to return in response to DNS queries
|
2084
|
+
# (for example, `2001:0db8:85a3:0000:0000:abcd:0001:2345`).
|
2022
2085
|
#
|
2023
|
-
#
|
2024
|
-
#
|
2025
|
-
#
|
2026
|
-
#
|
2086
|
+
# This value is required if the service specified by `ServiceId`
|
2087
|
+
# includes settings for an `AAAA` record. If the service includes
|
2088
|
+
# settings for an `SRV` record, you must specify a value for
|
2089
|
+
# `AWS_INSTANCE_IPV4`, `AWS_INSTANCE_IPV6`, or both.
|
2027
2090
|
#
|
2028
|
-
#
|
2091
|
+
# AWS\_INSTANCE\_PORT
|
2029
2092
|
#
|
2030
|
-
# If the service includes an `SRV` record, the value that you want
|
2031
|
-
#
|
2093
|
+
# : If the service includes an `SRV` record, the value that you want
|
2094
|
+
# Route 53 to return for the port.
|
2032
2095
|
#
|
2033
|
-
#
|
2034
|
-
#
|
2096
|
+
# If the service includes `HealthCheckConfig`, the port on the
|
2097
|
+
# endpoint that you want Route 53 to send requests to.
|
2035
2098
|
#
|
2036
|
-
#
|
2037
|
-
#
|
2099
|
+
# This value is required if you specified settings for an `SRV` record
|
2100
|
+
# or a Route 53 health check when you created the service.
|
2038
2101
|
#
|
2039
|
-
#
|
2102
|
+
# Custom attributes
|
2040
2103
|
#
|
2041
|
-
# You can add up to 30 custom attributes. For each key-value pair, the
|
2042
|
-
#
|
2043
|
-
#
|
2044
|
-
#
|
2045
|
-
#
|
2104
|
+
# : You can add up to 30 custom attributes. For each key-value pair, the
|
2105
|
+
# maximum length of the attribute name is 255 characters, and the
|
2106
|
+
# maximum length of the attribute value is 1,024 characters. The total
|
2107
|
+
# size of all provided attributes (sum of all keys and values) must
|
2108
|
+
# not exceed 5,000 characters.
|
2046
2109
|
#
|
2047
2110
|
#
|
2048
2111
|
#
|
@@ -2076,7 +2139,7 @@ module Aws::ServiceDiscovery
|
|
2076
2139
|
#
|
2077
2140
|
# resp = client.register_instance({
|
2078
2141
|
# service_id: "ResourceId", # required
|
2079
|
-
# instance_id: "
|
2142
|
+
# instance_id: "InstanceId", # required
|
2080
2143
|
# creator_request_id: "ResourceId",
|
2081
2144
|
# attributes: { # required
|
2082
2145
|
# "AttrKey" => "AttrValue",
|
@@ -2197,13 +2260,57 @@ module Aws::ServiceDiscovery
|
|
2197
2260
|
req.send_request(options)
|
2198
2261
|
end
|
2199
2262
|
|
2263
|
+
# Updates an HTTP namespace.
|
2264
|
+
#
|
2265
|
+
# @option params [required, String] :id
|
2266
|
+
# The ID of the namespace that you want to update.
|
2267
|
+
#
|
2268
|
+
# @option params [String] :updater_request_id
|
2269
|
+
# A unique string that identifies the request and that allows failed
|
2270
|
+
# `UpdateHttpNamespace` requests to be retried without the risk of
|
2271
|
+
# running the operation twice. `UpdaterRequestId` can be any unique
|
2272
|
+
# string (for example, a date/timestamp).
|
2273
|
+
#
|
2274
|
+
# **A suitable default value is auto-generated.** You should normally
|
2275
|
+
# not need to pass this option.**
|
2276
|
+
#
|
2277
|
+
# @option params [required, Types::HttpNamespaceChange] :namespace
|
2278
|
+
# Updated properties for the the HTTP namespace.
|
2279
|
+
#
|
2280
|
+
# @return [Types::UpdateHttpNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2281
|
+
#
|
2282
|
+
# * {Types::UpdateHttpNamespaceResponse#operation_id #operation_id} => String
|
2283
|
+
#
|
2284
|
+
# @example Request syntax with placeholder values
|
2285
|
+
#
|
2286
|
+
# resp = client.update_http_namespace({
|
2287
|
+
# id: "ResourceId", # required
|
2288
|
+
# updater_request_id: "ResourceId",
|
2289
|
+
# namespace: { # required
|
2290
|
+
# description: "ResourceDescription", # required
|
2291
|
+
# },
|
2292
|
+
# })
|
2293
|
+
#
|
2294
|
+
# @example Response structure
|
2295
|
+
#
|
2296
|
+
# resp.operation_id #=> String
|
2297
|
+
#
|
2298
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdateHttpNamespace AWS API Documentation
|
2299
|
+
#
|
2300
|
+
# @overload update_http_namespace(params = {})
|
2301
|
+
# @param [Hash] params ({})
|
2302
|
+
def update_http_namespace(params = {}, options = {})
|
2303
|
+
req = build_request(:update_http_namespace, params)
|
2304
|
+
req.send_request(options)
|
2305
|
+
end
|
2306
|
+
|
2200
2307
|
# Submits a request to change the health status of a custom health check
|
2201
2308
|
# to healthy or unhealthy.
|
2202
2309
|
#
|
2203
2310
|
# You can use `UpdateInstanceCustomHealthStatus` to change the status
|
2204
2311
|
# only for custom health checks, which you define using
|
2205
2312
|
# `HealthCheckCustomConfig` when you create a service. You can't use it
|
2206
|
-
# to change the status for Route
|
2313
|
+
# to change the status for Route 53 health checks, which you define
|
2207
2314
|
# using `HealthCheckConfig`.
|
2208
2315
|
#
|
2209
2316
|
# For more information, see [HealthCheckCustomConfig][1].
|
@@ -2253,6 +2360,108 @@ module Aws::ServiceDiscovery
|
|
2253
2360
|
req.send_request(options)
|
2254
2361
|
end
|
2255
2362
|
|
2363
|
+
# Updates a private DNS namespace.
|
2364
|
+
#
|
2365
|
+
# @option params [required, String] :id
|
2366
|
+
# The ID of the namespace that you want to update.
|
2367
|
+
#
|
2368
|
+
# @option params [String] :updater_request_id
|
2369
|
+
# A unique string that identifies the request and that allows failed
|
2370
|
+
# `UpdatePrivateDnsNamespace` requests to be retried without the risk of
|
2371
|
+
# running the operation twice. `UpdaterRequestId` can be any unique
|
2372
|
+
# string (for example, a date/timestamp).
|
2373
|
+
#
|
2374
|
+
# **A suitable default value is auto-generated.** You should normally
|
2375
|
+
# not need to pass this option.**
|
2376
|
+
#
|
2377
|
+
# @option params [required, Types::PrivateDnsNamespaceChange] :namespace
|
2378
|
+
# Updated properties for the private DNS namespace.
|
2379
|
+
#
|
2380
|
+
# @return [Types::UpdatePrivateDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2381
|
+
#
|
2382
|
+
# * {Types::UpdatePrivateDnsNamespaceResponse#operation_id #operation_id} => String
|
2383
|
+
#
|
2384
|
+
# @example Request syntax with placeholder values
|
2385
|
+
#
|
2386
|
+
# resp = client.update_private_dns_namespace({
|
2387
|
+
# id: "ResourceId", # required
|
2388
|
+
# updater_request_id: "ResourceId",
|
2389
|
+
# namespace: { # required
|
2390
|
+
# description: "ResourceDescription",
|
2391
|
+
# properties: {
|
2392
|
+
# dns_properties: { # required
|
2393
|
+
# soa: { # required
|
2394
|
+
# ttl: 1, # required
|
2395
|
+
# },
|
2396
|
+
# },
|
2397
|
+
# },
|
2398
|
+
# },
|
2399
|
+
# })
|
2400
|
+
#
|
2401
|
+
# @example Response structure
|
2402
|
+
#
|
2403
|
+
# resp.operation_id #=> String
|
2404
|
+
#
|
2405
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdatePrivateDnsNamespace AWS API Documentation
|
2406
|
+
#
|
2407
|
+
# @overload update_private_dns_namespace(params = {})
|
2408
|
+
# @param [Hash] params ({})
|
2409
|
+
def update_private_dns_namespace(params = {}, options = {})
|
2410
|
+
req = build_request(:update_private_dns_namespace, params)
|
2411
|
+
req.send_request(options)
|
2412
|
+
end
|
2413
|
+
|
2414
|
+
# Updates a public DNS namespace.
|
2415
|
+
#
|
2416
|
+
# @option params [required, String] :id
|
2417
|
+
# The ID of the namespace being updated.
|
2418
|
+
#
|
2419
|
+
# @option params [String] :updater_request_id
|
2420
|
+
# A unique string that identifies the request and that allows failed
|
2421
|
+
# `UpdatePublicDnsNamespace` requests to be retried without the risk of
|
2422
|
+
# running the operation twice. `UpdaterRequestId` can be any unique
|
2423
|
+
# string (for example, a date/timestamp).
|
2424
|
+
#
|
2425
|
+
# **A suitable default value is auto-generated.** You should normally
|
2426
|
+
# not need to pass this option.**
|
2427
|
+
#
|
2428
|
+
# @option params [required, Types::PublicDnsNamespaceChange] :namespace
|
2429
|
+
# Updated properties for the public DNS namespace.
|
2430
|
+
#
|
2431
|
+
# @return [Types::UpdatePublicDnsNamespaceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
2432
|
+
#
|
2433
|
+
# * {Types::UpdatePublicDnsNamespaceResponse#operation_id #operation_id} => String
|
2434
|
+
#
|
2435
|
+
# @example Request syntax with placeholder values
|
2436
|
+
#
|
2437
|
+
# resp = client.update_public_dns_namespace({
|
2438
|
+
# id: "ResourceId", # required
|
2439
|
+
# updater_request_id: "ResourceId",
|
2440
|
+
# namespace: { # required
|
2441
|
+
# description: "ResourceDescription",
|
2442
|
+
# properties: {
|
2443
|
+
# dns_properties: { # required
|
2444
|
+
# soa: { # required
|
2445
|
+
# ttl: 1, # required
|
2446
|
+
# },
|
2447
|
+
# },
|
2448
|
+
# },
|
2449
|
+
# },
|
2450
|
+
# })
|
2451
|
+
#
|
2452
|
+
# @example Response structure
|
2453
|
+
#
|
2454
|
+
# resp.operation_id #=> String
|
2455
|
+
#
|
2456
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdatePublicDnsNamespace AWS API Documentation
|
2457
|
+
#
|
2458
|
+
# @overload update_public_dns_namespace(params = {})
|
2459
|
+
# @param [Hash] params ({})
|
2460
|
+
def update_public_dns_namespace(params = {}, options = {})
|
2461
|
+
req = build_request(:update_public_dns_namespace, params)
|
2462
|
+
req.send_request(options)
|
2463
|
+
end
|
2464
|
+
|
2256
2465
|
# Submits a request to perform the following operations:
|
2257
2466
|
#
|
2258
2467
|
# * Update the TTL setting for existing `DnsRecords` configurations
|
@@ -2271,10 +2480,10 @@ module Aws::ServiceDiscovery
|
|
2271
2480
|
# are deleted from the service.
|
2272
2481
|
#
|
2273
2482
|
# * If you omit an existing `HealthCheckCustomConfig` configuration from
|
2274
|
-
# an `UpdateService` request, the configuration
|
2483
|
+
# an `UpdateService` request, the configuration isn't deleted from
|
2275
2484
|
# the service.
|
2276
2485
|
#
|
2277
|
-
# When you update settings for a service,
|
2486
|
+
# When you update settings for a service, Cloud Map also updates the
|
2278
2487
|
# corresponding settings in all the records and health checks that were
|
2279
2488
|
# created by using the specified service.
|
2280
2489
|
#
|
@@ -2365,7 +2574,7 @@ module Aws::ServiceDiscovery
|
|
2365
2574
|
params: params,
|
2366
2575
|
config: config)
|
2367
2576
|
context[:gem_name] = 'aws-sdk-servicediscovery'
|
2368
|
-
context[:gem_version] = '1.
|
2577
|
+
context[:gem_version] = '1.37.0'
|
2369
2578
|
Seahorse::Client::Request.new(handlers, context)
|
2370
2579
|
end
|
2371
2580
|
|