@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.
@@ -1,310 +1 @@
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 const RecordType = {
81
- A: "A",
82
- AAAA: "AAAA",
83
- CNAME: "CNAME",
84
- SRV: "SRV",
85
- };
86
- export const RoutingPolicy = {
87
- MULTIVALUE: "MULTIVALUE",
88
- WEIGHTED: "WEIGHTED",
89
- };
90
- export const HealthCheckType = {
91
- HTTP: "HTTP",
92
- HTTPS: "HTTPS",
93
- TCP: "TCP",
94
- };
95
- export const ServiceTypeOption = {
96
- HTTP: "HTTP",
97
- };
98
- export const ServiceType = {
99
- DNS: "DNS",
100
- DNS_HTTP: "DNS_HTTP",
101
- HTTP: "HTTP",
102
- };
103
- export class NamespaceNotFound extends __BaseException {
104
- name = "NamespaceNotFound";
105
- $fault = "client";
106
- Message;
107
- constructor(opts) {
108
- super({
109
- name: "NamespaceNotFound",
110
- $fault: "client",
111
- ...opts,
112
- });
113
- Object.setPrototypeOf(this, NamespaceNotFound.prototype);
114
- this.Message = opts.Message;
115
- }
116
- }
117
- export class ServiceAlreadyExists extends __BaseException {
118
- name = "ServiceAlreadyExists";
119
- $fault = "client";
120
- Message;
121
- CreatorRequestId;
122
- ServiceId;
123
- ServiceArn;
124
- constructor(opts) {
125
- super({
126
- name: "ServiceAlreadyExists",
127
- $fault: "client",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, ServiceAlreadyExists.prototype);
131
- this.Message = opts.Message;
132
- this.CreatorRequestId = opts.CreatorRequestId;
133
- this.ServiceId = opts.ServiceId;
134
- this.ServiceArn = opts.ServiceArn;
135
- }
136
- }
137
- export class CustomHealthNotFound extends __BaseException {
138
- name = "CustomHealthNotFound";
139
- $fault = "client";
140
- Message;
141
- constructor(opts) {
142
- super({
143
- name: "CustomHealthNotFound",
144
- $fault: "client",
145
- ...opts,
146
- });
147
- Object.setPrototypeOf(this, CustomHealthNotFound.prototype);
148
- this.Message = opts.Message;
149
- }
150
- }
151
- export const CustomHealthStatus = {
152
- HEALTHY: "HEALTHY",
153
- UNHEALTHY: "UNHEALTHY",
154
- };
155
- export class ResourceInUse extends __BaseException {
156
- name = "ResourceInUse";
157
- $fault = "client";
158
- Message;
159
- constructor(opts) {
160
- super({
161
- name: "ResourceInUse",
162
- $fault: "client",
163
- ...opts,
164
- });
165
- Object.setPrototypeOf(this, ResourceInUse.prototype);
166
- this.Message = opts.Message;
167
- }
168
- }
169
- export class ServiceNotFound extends __BaseException {
170
- name = "ServiceNotFound";
171
- $fault = "client";
172
- Message;
173
- constructor(opts) {
174
- super({
175
- name: "ServiceNotFound",
176
- $fault: "client",
177
- ...opts,
178
- });
179
- Object.setPrototypeOf(this, ServiceNotFound.prototype);
180
- this.Message = opts.Message;
181
- }
182
- }
183
- export class InstanceNotFound extends __BaseException {
184
- name = "InstanceNotFound";
185
- $fault = "client";
186
- Message;
187
- constructor(opts) {
188
- super({
189
- name: "InstanceNotFound",
190
- $fault: "client",
191
- ...opts,
192
- });
193
- Object.setPrototypeOf(this, InstanceNotFound.prototype);
194
- this.Message = opts.Message;
195
- }
196
- }
197
- export const HealthStatusFilter = {
198
- ALL: "ALL",
199
- HEALTHY: "HEALTHY",
200
- HEALTHY_OR_ELSE_ALL: "HEALTHY_OR_ELSE_ALL",
201
- UNHEALTHY: "UNHEALTHY",
202
- };
203
- export const HealthStatus = {
204
- HEALTHY: "HEALTHY",
205
- UNHEALTHY: "UNHEALTHY",
206
- UNKNOWN: "UNKNOWN",
207
- };
208
- export class RequestLimitExceeded extends __BaseException {
209
- name = "RequestLimitExceeded";
210
- $fault = "client";
211
- Message;
212
- constructor(opts) {
213
- super({
214
- name: "RequestLimitExceeded",
215
- $fault: "client",
216
- ...opts,
217
- });
218
- Object.setPrototypeOf(this, RequestLimitExceeded.prototype);
219
- this.Message = opts.Message;
220
- }
221
- }
222
- export const FilterCondition = {
223
- BEGINS_WITH: "BEGINS_WITH",
224
- BETWEEN: "BETWEEN",
225
- EQ: "EQ",
226
- IN: "IN",
227
- };
228
- export const NamespaceType = {
229
- DNS_PRIVATE: "DNS_PRIVATE",
230
- DNS_PUBLIC: "DNS_PUBLIC",
231
- HTTP: "HTTP",
232
- };
233
- export const OperationStatus = {
234
- FAIL: "FAIL",
235
- PENDING: "PENDING",
236
- SUBMITTED: "SUBMITTED",
237
- SUCCESS: "SUCCESS",
238
- };
239
- export const OperationTargetType = {
240
- INSTANCE: "INSTANCE",
241
- NAMESPACE: "NAMESPACE",
242
- SERVICE: "SERVICE",
243
- };
244
- export const OperationType = {
245
- CREATE_NAMESPACE: "CREATE_NAMESPACE",
246
- DELETE_NAMESPACE: "DELETE_NAMESPACE",
247
- DEREGISTER_INSTANCE: "DEREGISTER_INSTANCE",
248
- REGISTER_INSTANCE: "REGISTER_INSTANCE",
249
- UPDATE_NAMESPACE: "UPDATE_NAMESPACE",
250
- UPDATE_SERVICE: "UPDATE_SERVICE",
251
- };
252
- export class OperationNotFound extends __BaseException {
253
- name = "OperationNotFound";
254
- $fault = "client";
255
- Message;
256
- constructor(opts) {
257
- super({
258
- name: "OperationNotFound",
259
- $fault: "client",
260
- ...opts,
261
- });
262
- Object.setPrototypeOf(this, OperationNotFound.prototype);
263
- this.Message = opts.Message;
264
- }
265
- }
266
- export const NamespaceFilterName = {
267
- HTTP_NAME: "HTTP_NAME",
268
- NAME: "NAME",
269
- RESOURCE_OWNER: "RESOURCE_OWNER",
270
- TYPE: "TYPE",
271
- };
272
- export const OperationFilterName = {
273
- NAMESPACE_ID: "NAMESPACE_ID",
274
- SERVICE_ID: "SERVICE_ID",
275
- STATUS: "STATUS",
276
- TYPE: "TYPE",
277
- UPDATE_DATE: "UPDATE_DATE",
278
- };
279
- export const ServiceFilterName = {
280
- NAMESPACE_ID: "NAMESPACE_ID",
281
- RESOURCE_OWNER: "RESOURCE_OWNER",
282
- };
283
- export class ResourceNotFoundException extends __BaseException {
284
- name = "ResourceNotFoundException";
285
- $fault = "client";
286
- Message;
287
- constructor(opts) {
288
- super({
289
- name: "ResourceNotFoundException",
290
- $fault: "client",
291
- ...opts,
292
- });
293
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
294
- this.Message = opts.Message;
295
- }
296
- }
297
- export class ServiceAttributesLimitExceededException extends __BaseException {
298
- name = "ServiceAttributesLimitExceededException";
299
- $fault = "client";
300
- Message;
301
- constructor(opts) {
302
- super({
303
- name: "ServiceAttributesLimitExceededException",
304
- $fault: "client",
305
- ...opts,
306
- });
307
- Object.setPrototypeOf(this, ServiceAttributesLimitExceededException.prototype);
308
- this.Message = opts.Message;
309
- }
310
- }
1
+ export {};
@@ -215,7 +215,7 @@ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.servicediscovery";
215
215
  const _xN = "xmlName";
216
216
  const n0 = "com.amazonaws.servicediscovery";
217
217
  import { TypeRegistry } from "@smithy/core/schema";
218
- import { CustomHealthNotFound as __CustomHealthNotFound, DuplicateRequest as __DuplicateRequest, InstanceNotFound as __InstanceNotFound, InvalidInput as __InvalidInput, NamespaceAlreadyExists as __NamespaceAlreadyExists, NamespaceNotFound as __NamespaceNotFound, OperationNotFound as __OperationNotFound, RequestLimitExceeded as __RequestLimitExceeded, ResourceInUse as __ResourceInUse, ResourceLimitExceeded as __ResourceLimitExceeded, ResourceNotFoundException as __ResourceNotFoundException, ServiceAlreadyExists as __ServiceAlreadyExists, ServiceAttributesLimitExceededException as __ServiceAttributesLimitExceededException, ServiceNotFound as __ServiceNotFound, TooManyTagsException as __TooManyTagsException, } from "../models/index";
218
+ import { CustomHealthNotFound as __CustomHealthNotFound, DuplicateRequest as __DuplicateRequest, InstanceNotFound as __InstanceNotFound, InvalidInput as __InvalidInput, NamespaceAlreadyExists as __NamespaceAlreadyExists, NamespaceNotFound as __NamespaceNotFound, OperationNotFound as __OperationNotFound, RequestLimitExceeded as __RequestLimitExceeded, ResourceInUse as __ResourceInUse, ResourceLimitExceeded as __ResourceLimitExceeded, ResourceNotFoundException as __ResourceNotFoundException, ServiceAlreadyExists as __ServiceAlreadyExists, ServiceAttributesLimitExceededException as __ServiceAttributesLimitExceededException, ServiceNotFound as __ServiceNotFound, TooManyTagsException as __TooManyTagsException, } from "../models/errors";
219
219
  import { ServiceDiscoveryServiceException as __ServiceDiscoveryServiceException } from "../models/ServiceDiscoveryServiceException";
220
220
  export var CreateHttpNamespaceRequest = [
221
221
  3,
@@ -16,5 +16,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
16
16
  export type { ServiceDiscoveryExtensionConfiguration } from "./extensionConfiguration";
17
17
  export * from "./commands";
18
18
  export * from "./pagination";
19
- export * from "./models";
19
+ export * from "./models/enums";
20
+ export * from "./models/errors";
21
+ export type * from "./models/models_0";
20
22
  export { ServiceDiscoveryServiceException } from "./models/ServiceDiscoveryServiceException";
@@ -0,0 +1,213 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const RecordType: {
6
+ readonly A: "A";
7
+ readonly AAAA: "AAAA";
8
+ readonly CNAME: "CNAME";
9
+ readonly SRV: "SRV";
10
+ };
11
+ /**
12
+ * @public
13
+ */
14
+ export type RecordType = (typeof RecordType)[keyof typeof RecordType];
15
+ /**
16
+ * @public
17
+ * @enum
18
+ */
19
+ export declare const RoutingPolicy: {
20
+ readonly MULTIVALUE: "MULTIVALUE";
21
+ readonly WEIGHTED: "WEIGHTED";
22
+ };
23
+ /**
24
+ * @public
25
+ */
26
+ export type RoutingPolicy = (typeof RoutingPolicy)[keyof typeof RoutingPolicy];
27
+ /**
28
+ * @public
29
+ * @enum
30
+ */
31
+ export declare const HealthCheckType: {
32
+ readonly HTTP: "HTTP";
33
+ readonly HTTPS: "HTTPS";
34
+ readonly TCP: "TCP";
35
+ };
36
+ /**
37
+ * @public
38
+ */
39
+ export type HealthCheckType = (typeof HealthCheckType)[keyof typeof HealthCheckType];
40
+ /**
41
+ * @public
42
+ * @enum
43
+ */
44
+ export declare const ServiceTypeOption: {
45
+ readonly HTTP: "HTTP";
46
+ };
47
+ /**
48
+ * @public
49
+ */
50
+ export type ServiceTypeOption = (typeof ServiceTypeOption)[keyof typeof ServiceTypeOption];
51
+ /**
52
+ * @public
53
+ * @enum
54
+ */
55
+ export declare const ServiceType: {
56
+ readonly DNS: "DNS";
57
+ readonly DNS_HTTP: "DNS_HTTP";
58
+ readonly HTTP: "HTTP";
59
+ };
60
+ /**
61
+ * @public
62
+ */
63
+ export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
64
+ /**
65
+ * @public
66
+ * @enum
67
+ */
68
+ export declare const CustomHealthStatus: {
69
+ readonly HEALTHY: "HEALTHY";
70
+ readonly UNHEALTHY: "UNHEALTHY";
71
+ };
72
+ /**
73
+ * @public
74
+ */
75
+ export type CustomHealthStatus = (typeof CustomHealthStatus)[keyof typeof CustomHealthStatus];
76
+ /**
77
+ * @public
78
+ * @enum
79
+ */
80
+ export declare const HealthStatusFilter: {
81
+ readonly ALL: "ALL";
82
+ readonly HEALTHY: "HEALTHY";
83
+ readonly HEALTHY_OR_ELSE_ALL: "HEALTHY_OR_ELSE_ALL";
84
+ readonly UNHEALTHY: "UNHEALTHY";
85
+ };
86
+ /**
87
+ * @public
88
+ */
89
+ export type HealthStatusFilter = (typeof HealthStatusFilter)[keyof typeof HealthStatusFilter];
90
+ /**
91
+ * @public
92
+ * @enum
93
+ */
94
+ export declare const HealthStatus: {
95
+ readonly HEALTHY: "HEALTHY";
96
+ readonly UNHEALTHY: "UNHEALTHY";
97
+ readonly UNKNOWN: "UNKNOWN";
98
+ };
99
+ /**
100
+ * @public
101
+ */
102
+ export type HealthStatus = (typeof HealthStatus)[keyof typeof HealthStatus];
103
+ /**
104
+ * @public
105
+ * @enum
106
+ */
107
+ export declare const FilterCondition: {
108
+ readonly BEGINS_WITH: "BEGINS_WITH";
109
+ readonly BETWEEN: "BETWEEN";
110
+ readonly EQ: "EQ";
111
+ readonly IN: "IN";
112
+ };
113
+ /**
114
+ * @public
115
+ */
116
+ export type FilterCondition = (typeof FilterCondition)[keyof typeof FilterCondition];
117
+ /**
118
+ * @public
119
+ * @enum
120
+ */
121
+ export declare const NamespaceType: {
122
+ readonly DNS_PRIVATE: "DNS_PRIVATE";
123
+ readonly DNS_PUBLIC: "DNS_PUBLIC";
124
+ readonly HTTP: "HTTP";
125
+ };
126
+ /**
127
+ * @public
128
+ */
129
+ export type NamespaceType = (typeof NamespaceType)[keyof typeof NamespaceType];
130
+ /**
131
+ * @public
132
+ * @enum
133
+ */
134
+ export declare const OperationStatus: {
135
+ readonly FAIL: "FAIL";
136
+ readonly PENDING: "PENDING";
137
+ readonly SUBMITTED: "SUBMITTED";
138
+ readonly SUCCESS: "SUCCESS";
139
+ };
140
+ /**
141
+ * @public
142
+ */
143
+ export type OperationStatus = (typeof OperationStatus)[keyof typeof OperationStatus];
144
+ /**
145
+ * @public
146
+ * @enum
147
+ */
148
+ export declare const OperationTargetType: {
149
+ readonly INSTANCE: "INSTANCE";
150
+ readonly NAMESPACE: "NAMESPACE";
151
+ readonly SERVICE: "SERVICE";
152
+ };
153
+ /**
154
+ * @public
155
+ */
156
+ export type OperationTargetType = (typeof OperationTargetType)[keyof typeof OperationTargetType];
157
+ /**
158
+ * @public
159
+ * @enum
160
+ */
161
+ export declare const OperationType: {
162
+ readonly CREATE_NAMESPACE: "CREATE_NAMESPACE";
163
+ readonly DELETE_NAMESPACE: "DELETE_NAMESPACE";
164
+ readonly DEREGISTER_INSTANCE: "DEREGISTER_INSTANCE";
165
+ readonly REGISTER_INSTANCE: "REGISTER_INSTANCE";
166
+ readonly UPDATE_NAMESPACE: "UPDATE_NAMESPACE";
167
+ readonly UPDATE_SERVICE: "UPDATE_SERVICE";
168
+ };
169
+ /**
170
+ * @public
171
+ */
172
+ export type OperationType = (typeof OperationType)[keyof typeof OperationType];
173
+ /**
174
+ * @public
175
+ * @enum
176
+ */
177
+ export declare const NamespaceFilterName: {
178
+ readonly HTTP_NAME: "HTTP_NAME";
179
+ readonly NAME: "NAME";
180
+ readonly RESOURCE_OWNER: "RESOURCE_OWNER";
181
+ readonly TYPE: "TYPE";
182
+ };
183
+ /**
184
+ * @public
185
+ */
186
+ export type NamespaceFilterName = (typeof NamespaceFilterName)[keyof typeof NamespaceFilterName];
187
+ /**
188
+ * @public
189
+ * @enum
190
+ */
191
+ export declare const OperationFilterName: {
192
+ readonly NAMESPACE_ID: "NAMESPACE_ID";
193
+ readonly SERVICE_ID: "SERVICE_ID";
194
+ readonly STATUS: "STATUS";
195
+ readonly TYPE: "TYPE";
196
+ readonly UPDATE_DATE: "UPDATE_DATE";
197
+ };
198
+ /**
199
+ * @public
200
+ */
201
+ export type OperationFilterName = (typeof OperationFilterName)[keyof typeof OperationFilterName];
202
+ /**
203
+ * @public
204
+ * @enum
205
+ */
206
+ export declare const ServiceFilterName: {
207
+ readonly NAMESPACE_ID: "NAMESPACE_ID";
208
+ readonly RESOURCE_OWNER: "RESOURCE_OWNER";
209
+ };
210
+ /**
211
+ * @public
212
+ */
213
+ export type ServiceFilterName = (typeof ServiceFilterName)[keyof typeof ServiceFilterName];