@aws-sdk/client-servicediscovery 3.986.0 → 3.988.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceDiscoveryServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class ServiceDiscoveryServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, ServiceDiscoveryServiceException.prototype);
10
+ }
11
+ }
12
+ exports.ServiceDiscoveryServiceException = ServiceDiscoveryServiceException;
@@ -0,0 +1,243 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceAttributesLimitExceededException = exports.ResourceNotFoundException = exports.OperationNotFound = exports.RequestLimitExceeded = exports.InstanceNotFound = exports.ServiceNotFound = exports.ResourceInUse = exports.CustomHealthNotFound = exports.ServiceAlreadyExists = exports.NamespaceNotFound = exports.TooManyTagsException = exports.ResourceLimitExceeded = exports.NamespaceAlreadyExists = exports.InvalidInput = exports.DuplicateRequest = void 0;
4
+ const ServiceDiscoveryServiceException_1 = require("./ServiceDiscoveryServiceException");
5
+ class DuplicateRequest extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
6
+ name = "DuplicateRequest";
7
+ $fault = "client";
8
+ Message;
9
+ DuplicateOperationId;
10
+ constructor(opts) {
11
+ super({
12
+ name: "DuplicateRequest",
13
+ $fault: "client",
14
+ ...opts,
15
+ });
16
+ Object.setPrototypeOf(this, DuplicateRequest.prototype);
17
+ this.Message = opts.Message;
18
+ this.DuplicateOperationId = opts.DuplicateOperationId;
19
+ }
20
+ }
21
+ exports.DuplicateRequest = DuplicateRequest;
22
+ class InvalidInput extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
23
+ name = "InvalidInput";
24
+ $fault = "client";
25
+ Message;
26
+ constructor(opts) {
27
+ super({
28
+ name: "InvalidInput",
29
+ $fault: "client",
30
+ ...opts,
31
+ });
32
+ Object.setPrototypeOf(this, InvalidInput.prototype);
33
+ this.Message = opts.Message;
34
+ }
35
+ }
36
+ exports.InvalidInput = InvalidInput;
37
+ class NamespaceAlreadyExists extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
38
+ name = "NamespaceAlreadyExists";
39
+ $fault = "client";
40
+ Message;
41
+ CreatorRequestId;
42
+ NamespaceId;
43
+ constructor(opts) {
44
+ super({
45
+ name: "NamespaceAlreadyExists",
46
+ $fault: "client",
47
+ ...opts,
48
+ });
49
+ Object.setPrototypeOf(this, NamespaceAlreadyExists.prototype);
50
+ this.Message = opts.Message;
51
+ this.CreatorRequestId = opts.CreatorRequestId;
52
+ this.NamespaceId = opts.NamespaceId;
53
+ }
54
+ }
55
+ exports.NamespaceAlreadyExists = NamespaceAlreadyExists;
56
+ class ResourceLimitExceeded extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
57
+ name = "ResourceLimitExceeded";
58
+ $fault = "client";
59
+ Message;
60
+ constructor(opts) {
61
+ super({
62
+ name: "ResourceLimitExceeded",
63
+ $fault: "client",
64
+ ...opts,
65
+ });
66
+ Object.setPrototypeOf(this, ResourceLimitExceeded.prototype);
67
+ this.Message = opts.Message;
68
+ }
69
+ }
70
+ exports.ResourceLimitExceeded = ResourceLimitExceeded;
71
+ class TooManyTagsException extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
72
+ name = "TooManyTagsException";
73
+ $fault = "client";
74
+ Message;
75
+ ResourceName;
76
+ constructor(opts) {
77
+ super({
78
+ name: "TooManyTagsException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
83
+ this.Message = opts.Message;
84
+ this.ResourceName = opts.ResourceName;
85
+ }
86
+ }
87
+ exports.TooManyTagsException = TooManyTagsException;
88
+ class NamespaceNotFound extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
89
+ name = "NamespaceNotFound";
90
+ $fault = "client";
91
+ Message;
92
+ constructor(opts) {
93
+ super({
94
+ name: "NamespaceNotFound",
95
+ $fault: "client",
96
+ ...opts,
97
+ });
98
+ Object.setPrototypeOf(this, NamespaceNotFound.prototype);
99
+ this.Message = opts.Message;
100
+ }
101
+ }
102
+ exports.NamespaceNotFound = NamespaceNotFound;
103
+ class ServiceAlreadyExists extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
104
+ name = "ServiceAlreadyExists";
105
+ $fault = "client";
106
+ Message;
107
+ CreatorRequestId;
108
+ ServiceId;
109
+ ServiceArn;
110
+ constructor(opts) {
111
+ super({
112
+ name: "ServiceAlreadyExists",
113
+ $fault: "client",
114
+ ...opts,
115
+ });
116
+ Object.setPrototypeOf(this, ServiceAlreadyExists.prototype);
117
+ this.Message = opts.Message;
118
+ this.CreatorRequestId = opts.CreatorRequestId;
119
+ this.ServiceId = opts.ServiceId;
120
+ this.ServiceArn = opts.ServiceArn;
121
+ }
122
+ }
123
+ exports.ServiceAlreadyExists = ServiceAlreadyExists;
124
+ class CustomHealthNotFound extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
125
+ name = "CustomHealthNotFound";
126
+ $fault = "client";
127
+ Message;
128
+ constructor(opts) {
129
+ super({
130
+ name: "CustomHealthNotFound",
131
+ $fault: "client",
132
+ ...opts,
133
+ });
134
+ Object.setPrototypeOf(this, CustomHealthNotFound.prototype);
135
+ this.Message = opts.Message;
136
+ }
137
+ }
138
+ exports.CustomHealthNotFound = CustomHealthNotFound;
139
+ class ResourceInUse extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
140
+ name = "ResourceInUse";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "ResourceInUse",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, ResourceInUse.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ exports.ResourceInUse = ResourceInUse;
154
+ class ServiceNotFound extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
155
+ name = "ServiceNotFound";
156
+ $fault = "client";
157
+ Message;
158
+ constructor(opts) {
159
+ super({
160
+ name: "ServiceNotFound",
161
+ $fault: "client",
162
+ ...opts,
163
+ });
164
+ Object.setPrototypeOf(this, ServiceNotFound.prototype);
165
+ this.Message = opts.Message;
166
+ }
167
+ }
168
+ exports.ServiceNotFound = ServiceNotFound;
169
+ class InstanceNotFound extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
170
+ name = "InstanceNotFound";
171
+ $fault = "client";
172
+ Message;
173
+ constructor(opts) {
174
+ super({
175
+ name: "InstanceNotFound",
176
+ $fault: "client",
177
+ ...opts,
178
+ });
179
+ Object.setPrototypeOf(this, InstanceNotFound.prototype);
180
+ this.Message = opts.Message;
181
+ }
182
+ }
183
+ exports.InstanceNotFound = InstanceNotFound;
184
+ class RequestLimitExceeded extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
185
+ name = "RequestLimitExceeded";
186
+ $fault = "client";
187
+ Message;
188
+ constructor(opts) {
189
+ super({
190
+ name: "RequestLimitExceeded",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
195
+ this.Message = opts.Message;
196
+ }
197
+ }
198
+ exports.RequestLimitExceeded = RequestLimitExceeded;
199
+ class OperationNotFound extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
200
+ name = "OperationNotFound";
201
+ $fault = "client";
202
+ Message;
203
+ constructor(opts) {
204
+ super({
205
+ name: "OperationNotFound",
206
+ $fault: "client",
207
+ ...opts,
208
+ });
209
+ Object.setPrototypeOf(this, OperationNotFound.prototype);
210
+ this.Message = opts.Message;
211
+ }
212
+ }
213
+ exports.OperationNotFound = OperationNotFound;
214
+ class ResourceNotFoundException extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
215
+ name = "ResourceNotFoundException";
216
+ $fault = "client";
217
+ Message;
218
+ constructor(opts) {
219
+ super({
220
+ name: "ResourceNotFoundException",
221
+ $fault: "client",
222
+ ...opts,
223
+ });
224
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
225
+ this.Message = opts.Message;
226
+ }
227
+ }
228
+ exports.ResourceNotFoundException = ResourceNotFoundException;
229
+ class ServiceAttributesLimitExceededException extends ServiceDiscoveryServiceException_1.ServiceDiscoveryServiceException {
230
+ name = "ServiceAttributesLimitExceededException";
231
+ $fault = "client";
232
+ Message;
233
+ constructor(opts) {
234
+ super({
235
+ name: "ServiceAttributesLimitExceededException",
236
+ $fault: "client",
237
+ ...opts,
238
+ });
239
+ Object.setPrototypeOf(this, ServiceAttributesLimitExceededException.prototype);
240
+ this.Message = opts.Message;
241
+ }
242
+ }
243
+ exports.ServiceAttributesLimitExceededException = ServiceAttributesLimitExceededException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2017-03-14",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsJson1_1Protocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.servicediscovery",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2017-03-14",
33
35
  serviceTarget: "Route53AutoNaming_v20170314",
34
36
  },