@aws-sdk/client-servicediscovery 3.934.0 → 3.936.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.
package/dist-cjs/index.js CHANGED
@@ -195,29 +195,6 @@ let TooManyTagsException$1 = class TooManyTagsException extends ServiceDiscovery
195
195
  this.ResourceName = opts.ResourceName;
196
196
  }
197
197
  };
198
- const RecordType = {
199
- A: "A",
200
- AAAA: "AAAA",
201
- CNAME: "CNAME",
202
- SRV: "SRV",
203
- };
204
- const RoutingPolicy = {
205
- MULTIVALUE: "MULTIVALUE",
206
- WEIGHTED: "WEIGHTED",
207
- };
208
- const HealthCheckType = {
209
- HTTP: "HTTP",
210
- HTTPS: "HTTPS",
211
- TCP: "TCP",
212
- };
213
- const ServiceTypeOption = {
214
- HTTP: "HTTP",
215
- };
216
- const ServiceType = {
217
- DNS: "DNS",
218
- DNS_HTTP: "DNS_HTTP",
219
- HTTP: "HTTP",
220
- };
221
198
  let NamespaceNotFound$1 = class NamespaceNotFound extends ServiceDiscoveryServiceException$1 {
222
199
  name = "NamespaceNotFound";
223
200
  $fault = "client";
@@ -266,10 +243,6 @@ let CustomHealthNotFound$1 = class CustomHealthNotFound extends ServiceDiscovery
266
243
  this.Message = opts.Message;
267
244
  }
268
245
  };
269
- const CustomHealthStatus = {
270
- HEALTHY: "HEALTHY",
271
- UNHEALTHY: "UNHEALTHY",
272
- };
273
246
  let ResourceInUse$1 = class ResourceInUse extends ServiceDiscoveryServiceException$1 {
274
247
  name = "ResourceInUse";
275
248
  $fault = "client";
@@ -312,17 +285,6 @@ let InstanceNotFound$1 = class InstanceNotFound extends ServiceDiscoveryServiceE
312
285
  this.Message = opts.Message;
313
286
  }
314
287
  };
315
- const HealthStatusFilter = {
316
- ALL: "ALL",
317
- HEALTHY: "HEALTHY",
318
- HEALTHY_OR_ELSE_ALL: "HEALTHY_OR_ELSE_ALL",
319
- UNHEALTHY: "UNHEALTHY",
320
- };
321
- const HealthStatus = {
322
- HEALTHY: "HEALTHY",
323
- UNHEALTHY: "UNHEALTHY",
324
- UNKNOWN: "UNKNOWN",
325
- };
326
288
  let RequestLimitExceeded$1 = class RequestLimitExceeded extends ServiceDiscoveryServiceException$1 {
327
289
  name = "RequestLimitExceeded";
328
290
  $fault = "client";
@@ -337,36 +299,6 @@ let RequestLimitExceeded$1 = class RequestLimitExceeded extends ServiceDiscovery
337
299
  this.Message = opts.Message;
338
300
  }
339
301
  };
340
- const FilterCondition = {
341
- BEGINS_WITH: "BEGINS_WITH",
342
- BETWEEN: "BETWEEN",
343
- EQ: "EQ",
344
- IN: "IN",
345
- };
346
- const NamespaceType = {
347
- DNS_PRIVATE: "DNS_PRIVATE",
348
- DNS_PUBLIC: "DNS_PUBLIC",
349
- HTTP: "HTTP",
350
- };
351
- const OperationStatus = {
352
- FAIL: "FAIL",
353
- PENDING: "PENDING",
354
- SUBMITTED: "SUBMITTED",
355
- SUCCESS: "SUCCESS",
356
- };
357
- const OperationTargetType = {
358
- INSTANCE: "INSTANCE",
359
- NAMESPACE: "NAMESPACE",
360
- SERVICE: "SERVICE",
361
- };
362
- const OperationType = {
363
- CREATE_NAMESPACE: "CREATE_NAMESPACE",
364
- DELETE_NAMESPACE: "DELETE_NAMESPACE",
365
- DEREGISTER_INSTANCE: "DEREGISTER_INSTANCE",
366
- REGISTER_INSTANCE: "REGISTER_INSTANCE",
367
- UPDATE_NAMESPACE: "UPDATE_NAMESPACE",
368
- UPDATE_SERVICE: "UPDATE_SERVICE",
369
- };
370
302
  let OperationNotFound$1 = class OperationNotFound extends ServiceDiscoveryServiceException$1 {
371
303
  name = "OperationNotFound";
372
304
  $fault = "client";
@@ -381,23 +313,6 @@ let OperationNotFound$1 = class OperationNotFound extends ServiceDiscoveryServic
381
313
  this.Message = opts.Message;
382
314
  }
383
315
  };
384
- const NamespaceFilterName = {
385
- HTTP_NAME: "HTTP_NAME",
386
- NAME: "NAME",
387
- RESOURCE_OWNER: "RESOURCE_OWNER",
388
- TYPE: "TYPE",
389
- };
390
- const OperationFilterName = {
391
- NAMESPACE_ID: "NAMESPACE_ID",
392
- SERVICE_ID: "SERVICE_ID",
393
- STATUS: "STATUS",
394
- TYPE: "TYPE",
395
- UPDATE_DATE: "UPDATE_DATE",
396
- };
397
- const ServiceFilterName = {
398
- NAMESPACE_ID: "NAMESPACE_ID",
399
- RESOURCE_OWNER: "RESOURCE_OWNER",
400
- };
401
316
  let ResourceNotFoundException$1 = class ResourceNotFoundException extends ServiceDiscoveryServiceException$1 {
402
317
  name = "ResourceNotFoundException";
403
318
  $fault = "client";
@@ -1850,6 +1765,92 @@ const paginateListOperations = core.createPaginator(ServiceDiscoveryClient, List
1850
1765
 
1851
1766
  const paginateListServices = core.createPaginator(ServiceDiscoveryClient, ListServicesCommand, "NextToken", "NextToken", "MaxResults");
1852
1767
 
1768
+ const RecordType = {
1769
+ A: "A",
1770
+ AAAA: "AAAA",
1771
+ CNAME: "CNAME",
1772
+ SRV: "SRV",
1773
+ };
1774
+ const RoutingPolicy = {
1775
+ MULTIVALUE: "MULTIVALUE",
1776
+ WEIGHTED: "WEIGHTED",
1777
+ };
1778
+ const HealthCheckType = {
1779
+ HTTP: "HTTP",
1780
+ HTTPS: "HTTPS",
1781
+ TCP: "TCP",
1782
+ };
1783
+ const ServiceTypeOption = {
1784
+ HTTP: "HTTP",
1785
+ };
1786
+ const ServiceType = {
1787
+ DNS: "DNS",
1788
+ DNS_HTTP: "DNS_HTTP",
1789
+ HTTP: "HTTP",
1790
+ };
1791
+ const CustomHealthStatus = {
1792
+ HEALTHY: "HEALTHY",
1793
+ UNHEALTHY: "UNHEALTHY",
1794
+ };
1795
+ const HealthStatusFilter = {
1796
+ ALL: "ALL",
1797
+ HEALTHY: "HEALTHY",
1798
+ HEALTHY_OR_ELSE_ALL: "HEALTHY_OR_ELSE_ALL",
1799
+ UNHEALTHY: "UNHEALTHY",
1800
+ };
1801
+ const HealthStatus = {
1802
+ HEALTHY: "HEALTHY",
1803
+ UNHEALTHY: "UNHEALTHY",
1804
+ UNKNOWN: "UNKNOWN",
1805
+ };
1806
+ const FilterCondition = {
1807
+ BEGINS_WITH: "BEGINS_WITH",
1808
+ BETWEEN: "BETWEEN",
1809
+ EQ: "EQ",
1810
+ IN: "IN",
1811
+ };
1812
+ const NamespaceType = {
1813
+ DNS_PRIVATE: "DNS_PRIVATE",
1814
+ DNS_PUBLIC: "DNS_PUBLIC",
1815
+ HTTP: "HTTP",
1816
+ };
1817
+ const OperationStatus = {
1818
+ FAIL: "FAIL",
1819
+ PENDING: "PENDING",
1820
+ SUBMITTED: "SUBMITTED",
1821
+ SUCCESS: "SUCCESS",
1822
+ };
1823
+ const OperationTargetType = {
1824
+ INSTANCE: "INSTANCE",
1825
+ NAMESPACE: "NAMESPACE",
1826
+ SERVICE: "SERVICE",
1827
+ };
1828
+ const OperationType = {
1829
+ CREATE_NAMESPACE: "CREATE_NAMESPACE",
1830
+ DELETE_NAMESPACE: "DELETE_NAMESPACE",
1831
+ DEREGISTER_INSTANCE: "DEREGISTER_INSTANCE",
1832
+ REGISTER_INSTANCE: "REGISTER_INSTANCE",
1833
+ UPDATE_NAMESPACE: "UPDATE_NAMESPACE",
1834
+ UPDATE_SERVICE: "UPDATE_SERVICE",
1835
+ };
1836
+ const NamespaceFilterName = {
1837
+ HTTP_NAME: "HTTP_NAME",
1838
+ NAME: "NAME",
1839
+ RESOURCE_OWNER: "RESOURCE_OWNER",
1840
+ TYPE: "TYPE",
1841
+ };
1842
+ const OperationFilterName = {
1843
+ NAMESPACE_ID: "NAMESPACE_ID",
1844
+ SERVICE_ID: "SERVICE_ID",
1845
+ STATUS: "STATUS",
1846
+ TYPE: "TYPE",
1847
+ UPDATE_DATE: "UPDATE_DATE",
1848
+ };
1849
+ const ServiceFilterName = {
1850
+ NAMESPACE_ID: "NAMESPACE_ID",
1851
+ RESOURCE_OWNER: "RESOURCE_OWNER",
1852
+ };
1853
+
1853
1854
  Object.defineProperty(exports, "$Command", {
1854
1855
  enumerable: true,
1855
1856
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./ServiceDiscoveryClient";
2
2
  export * from "./ServiceDiscovery";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { ServiceDiscoveryServiceException } from "./models/ServiceDiscoveryServiceException";
@@ -0,0 +1,85 @@
1
+ export const RecordType = {
2
+ A: "A",
3
+ AAAA: "AAAA",
4
+ CNAME: "CNAME",
5
+ SRV: "SRV",
6
+ };
7
+ export const RoutingPolicy = {
8
+ MULTIVALUE: "MULTIVALUE",
9
+ WEIGHTED: "WEIGHTED",
10
+ };
11
+ export const HealthCheckType = {
12
+ HTTP: "HTTP",
13
+ HTTPS: "HTTPS",
14
+ TCP: "TCP",
15
+ };
16
+ export const ServiceTypeOption = {
17
+ HTTP: "HTTP",
18
+ };
19
+ export const ServiceType = {
20
+ DNS: "DNS",
21
+ DNS_HTTP: "DNS_HTTP",
22
+ HTTP: "HTTP",
23
+ };
24
+ export const CustomHealthStatus = {
25
+ HEALTHY: "HEALTHY",
26
+ UNHEALTHY: "UNHEALTHY",
27
+ };
28
+ export const HealthStatusFilter = {
29
+ ALL: "ALL",
30
+ HEALTHY: "HEALTHY",
31
+ HEALTHY_OR_ELSE_ALL: "HEALTHY_OR_ELSE_ALL",
32
+ UNHEALTHY: "UNHEALTHY",
33
+ };
34
+ export const HealthStatus = {
35
+ HEALTHY: "HEALTHY",
36
+ UNHEALTHY: "UNHEALTHY",
37
+ UNKNOWN: "UNKNOWN",
38
+ };
39
+ export const FilterCondition = {
40
+ BEGINS_WITH: "BEGINS_WITH",
41
+ BETWEEN: "BETWEEN",
42
+ EQ: "EQ",
43
+ IN: "IN",
44
+ };
45
+ export const NamespaceType = {
46
+ DNS_PRIVATE: "DNS_PRIVATE",
47
+ DNS_PUBLIC: "DNS_PUBLIC",
48
+ HTTP: "HTTP",
49
+ };
50
+ export const OperationStatus = {
51
+ FAIL: "FAIL",
52
+ PENDING: "PENDING",
53
+ SUBMITTED: "SUBMITTED",
54
+ SUCCESS: "SUCCESS",
55
+ };
56
+ export const OperationTargetType = {
57
+ INSTANCE: "INSTANCE",
58
+ NAMESPACE: "NAMESPACE",
59
+ SERVICE: "SERVICE",
60
+ };
61
+ export const OperationType = {
62
+ CREATE_NAMESPACE: "CREATE_NAMESPACE",
63
+ DELETE_NAMESPACE: "DELETE_NAMESPACE",
64
+ DEREGISTER_INSTANCE: "DEREGISTER_INSTANCE",
65
+ REGISTER_INSTANCE: "REGISTER_INSTANCE",
66
+ UPDATE_NAMESPACE: "UPDATE_NAMESPACE",
67
+ UPDATE_SERVICE: "UPDATE_SERVICE",
68
+ };
69
+ export const NamespaceFilterName = {
70
+ HTTP_NAME: "HTTP_NAME",
71
+ NAME: "NAME",
72
+ RESOURCE_OWNER: "RESOURCE_OWNER",
73
+ TYPE: "TYPE",
74
+ };
75
+ export const OperationFilterName = {
76
+ NAMESPACE_ID: "NAMESPACE_ID",
77
+ SERVICE_ID: "SERVICE_ID",
78
+ STATUS: "STATUS",
79
+ TYPE: "TYPE",
80
+ UPDATE_DATE: "UPDATE_DATE",
81
+ };
82
+ export const ServiceFilterName = {
83
+ NAMESPACE_ID: "NAMESPACE_ID",
84
+ RESOURCE_OWNER: "RESOURCE_OWNER",
85
+ };
@@ -0,0 +1,225 @@
1
+ import { ServiceDiscoveryServiceException as __BaseException } from "./ServiceDiscoveryServiceException";
2
+ export class DuplicateRequest extends __BaseException {
3
+ name = "DuplicateRequest";
4
+ $fault = "client";
5
+ Message;
6
+ DuplicateOperationId;
7
+ constructor(opts) {
8
+ super({
9
+ name: "DuplicateRequest",
10
+ $fault: "client",
11
+ ...opts,
12
+ });
13
+ Object.setPrototypeOf(this, DuplicateRequest.prototype);
14
+ this.Message = opts.Message;
15
+ this.DuplicateOperationId = opts.DuplicateOperationId;
16
+ }
17
+ }
18
+ export class InvalidInput extends __BaseException {
19
+ name = "InvalidInput";
20
+ $fault = "client";
21
+ Message;
22
+ constructor(opts) {
23
+ super({
24
+ name: "InvalidInput",
25
+ $fault: "client",
26
+ ...opts,
27
+ });
28
+ Object.setPrototypeOf(this, InvalidInput.prototype);
29
+ this.Message = opts.Message;
30
+ }
31
+ }
32
+ export class NamespaceAlreadyExists extends __BaseException {
33
+ name = "NamespaceAlreadyExists";
34
+ $fault = "client";
35
+ Message;
36
+ CreatorRequestId;
37
+ NamespaceId;
38
+ constructor(opts) {
39
+ super({
40
+ name: "NamespaceAlreadyExists",
41
+ $fault: "client",
42
+ ...opts,
43
+ });
44
+ Object.setPrototypeOf(this, NamespaceAlreadyExists.prototype);
45
+ this.Message = opts.Message;
46
+ this.CreatorRequestId = opts.CreatorRequestId;
47
+ this.NamespaceId = opts.NamespaceId;
48
+ }
49
+ }
50
+ export class ResourceLimitExceeded extends __BaseException {
51
+ name = "ResourceLimitExceeded";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceLimitExceeded",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ResourceLimitExceeded.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ export class TooManyTagsException extends __BaseException {
65
+ name = "TooManyTagsException";
66
+ $fault = "client";
67
+ Message;
68
+ ResourceName;
69
+ constructor(opts) {
70
+ super({
71
+ name: "TooManyTagsException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, TooManyTagsException.prototype);
76
+ this.Message = opts.Message;
77
+ this.ResourceName = opts.ResourceName;
78
+ }
79
+ }
80
+ export class NamespaceNotFound extends __BaseException {
81
+ name = "NamespaceNotFound";
82
+ $fault = "client";
83
+ Message;
84
+ constructor(opts) {
85
+ super({
86
+ name: "NamespaceNotFound",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ Object.setPrototypeOf(this, NamespaceNotFound.prototype);
91
+ this.Message = opts.Message;
92
+ }
93
+ }
94
+ export class ServiceAlreadyExists extends __BaseException {
95
+ name = "ServiceAlreadyExists";
96
+ $fault = "client";
97
+ Message;
98
+ CreatorRequestId;
99
+ ServiceId;
100
+ ServiceArn;
101
+ constructor(opts) {
102
+ super({
103
+ name: "ServiceAlreadyExists",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, ServiceAlreadyExists.prototype);
108
+ this.Message = opts.Message;
109
+ this.CreatorRequestId = opts.CreatorRequestId;
110
+ this.ServiceId = opts.ServiceId;
111
+ this.ServiceArn = opts.ServiceArn;
112
+ }
113
+ }
114
+ export class CustomHealthNotFound extends __BaseException {
115
+ name = "CustomHealthNotFound";
116
+ $fault = "client";
117
+ Message;
118
+ constructor(opts) {
119
+ super({
120
+ name: "CustomHealthNotFound",
121
+ $fault: "client",
122
+ ...opts,
123
+ });
124
+ Object.setPrototypeOf(this, CustomHealthNotFound.prototype);
125
+ this.Message = opts.Message;
126
+ }
127
+ }
128
+ export class ResourceInUse extends __BaseException {
129
+ name = "ResourceInUse";
130
+ $fault = "client";
131
+ Message;
132
+ constructor(opts) {
133
+ super({
134
+ name: "ResourceInUse",
135
+ $fault: "client",
136
+ ...opts,
137
+ });
138
+ Object.setPrototypeOf(this, ResourceInUse.prototype);
139
+ this.Message = opts.Message;
140
+ }
141
+ }
142
+ export class ServiceNotFound extends __BaseException {
143
+ name = "ServiceNotFound";
144
+ $fault = "client";
145
+ Message;
146
+ constructor(opts) {
147
+ super({
148
+ name: "ServiceNotFound",
149
+ $fault: "client",
150
+ ...opts,
151
+ });
152
+ Object.setPrototypeOf(this, ServiceNotFound.prototype);
153
+ this.Message = opts.Message;
154
+ }
155
+ }
156
+ export class InstanceNotFound extends __BaseException {
157
+ name = "InstanceNotFound";
158
+ $fault = "client";
159
+ Message;
160
+ constructor(opts) {
161
+ super({
162
+ name: "InstanceNotFound",
163
+ $fault: "client",
164
+ ...opts,
165
+ });
166
+ Object.setPrototypeOf(this, InstanceNotFound.prototype);
167
+ this.Message = opts.Message;
168
+ }
169
+ }
170
+ export class RequestLimitExceeded extends __BaseException {
171
+ name = "RequestLimitExceeded";
172
+ $fault = "client";
173
+ Message;
174
+ constructor(opts) {
175
+ super({
176
+ name: "RequestLimitExceeded",
177
+ $fault: "client",
178
+ ...opts,
179
+ });
180
+ Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
181
+ this.Message = opts.Message;
182
+ }
183
+ }
184
+ export class OperationNotFound extends __BaseException {
185
+ name = "OperationNotFound";
186
+ $fault = "client";
187
+ Message;
188
+ constructor(opts) {
189
+ super({
190
+ name: "OperationNotFound",
191
+ $fault: "client",
192
+ ...opts,
193
+ });
194
+ Object.setPrototypeOf(this, OperationNotFound.prototype);
195
+ this.Message = opts.Message;
196
+ }
197
+ }
198
+ export class ResourceNotFoundException extends __BaseException {
199
+ name = "ResourceNotFoundException";
200
+ $fault = "client";
201
+ Message;
202
+ constructor(opts) {
203
+ super({
204
+ name: "ResourceNotFoundException",
205
+ $fault: "client",
206
+ ...opts,
207
+ });
208
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
209
+ this.Message = opts.Message;
210
+ }
211
+ }
212
+ export class ServiceAttributesLimitExceededException extends __BaseException {
213
+ name = "ServiceAttributesLimitExceededException";
214
+ $fault = "client";
215
+ Message;
216
+ constructor(opts) {
217
+ super({
218
+ name: "ServiceAttributesLimitExceededException",
219
+ $fault: "client",
220
+ ...opts,
221
+ });
222
+ Object.setPrototypeOf(this, ServiceAttributesLimitExceededException.prototype);
223
+ this.Message = opts.Message;
224
+ }
225
+ }