@aws-sdk/client-servicediscovery 3.300.0 → 3.303.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.
Files changed (31) hide show
  1. package/dist-cjs/models/models_0.js +83 -99
  2. package/dist-es/models/models_0.js +83 -99
  3. package/dist-types/commands/CreateHttpNamespaceCommand.d.ts +3 -3
  4. package/dist-types/commands/CreatePrivateDnsNamespaceCommand.d.ts +6 -6
  5. package/dist-types/commands/CreatePublicDnsNamespaceCommand.d.ts +6 -6
  6. package/dist-types/commands/CreateServiceCommand.d.ts +8 -8
  7. package/dist-types/commands/DeleteNamespaceCommand.d.ts +1 -1
  8. package/dist-types/commands/DeleteServiceCommand.d.ts +1 -1
  9. package/dist-types/commands/DeregisterInstanceCommand.d.ts +1 -1
  10. package/dist-types/commands/DiscoverInstancesCommand.d.ts +2 -2
  11. package/dist-types/commands/GetInstanceCommand.d.ts +1 -1
  12. package/dist-types/commands/GetInstancesHealthStatusCommand.d.ts +2 -2
  13. package/dist-types/commands/GetNamespaceCommand.d.ts +1 -1
  14. package/dist-types/commands/GetOperationCommand.d.ts +1 -1
  15. package/dist-types/commands/GetServiceCommand.d.ts +1 -1
  16. package/dist-types/commands/ListInstancesCommand.d.ts +1 -1
  17. package/dist-types/commands/ListNamespacesCommand.d.ts +4 -4
  18. package/dist-types/commands/ListOperationsCommand.d.ts +4 -4
  19. package/dist-types/commands/ListServicesCommand.d.ts +4 -4
  20. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  21. package/dist-types/commands/RegisterInstanceCommand.d.ts +2 -2
  22. package/dist-types/commands/TagResourceCommand.d.ts +3 -3
  23. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  24. package/dist-types/commands/UpdateHttpNamespaceCommand.d.ts +2 -2
  25. package/dist-types/commands/UpdateInstanceCustomHealthStatusCommand.d.ts +1 -1
  26. package/dist-types/commands/UpdatePrivateDnsNamespaceCommand.d.ts +5 -5
  27. package/dist-types/commands/UpdatePublicDnsNamespaceCommand.d.ts +5 -5
  28. package/dist-types/commands/UpdateServiceCommand.d.ts +6 -6
  29. package/dist-types/models/models_0.d.ts +163 -83
  30. package/dist-types/ts3.4/models/models_0.d.ts +109 -83
  31. package/package.json +34 -34
@@ -89,30 +89,34 @@ export interface CreatePublicDnsNamespaceRequest {
89
89
  export interface CreatePublicDnsNamespaceResponse {
90
90
  OperationId?: string;
91
91
  }
92
- export declare enum RecordType {
93
- A = "A",
94
- AAAA = "AAAA",
95
- CNAME = "CNAME",
96
- SRV = "SRV",
97
- }
92
+ export declare const RecordType: {
93
+ readonly A: "A";
94
+ readonly AAAA: "AAAA";
95
+ readonly CNAME: "CNAME";
96
+ readonly SRV: "SRV";
97
+ };
98
+ export type RecordType = (typeof RecordType)[keyof typeof RecordType];
98
99
  export interface DnsRecord {
99
100
  Type: RecordType | string | undefined;
100
101
  TTL: number | undefined;
101
102
  }
102
- export declare enum RoutingPolicy {
103
- MULTIVALUE = "MULTIVALUE",
104
- WEIGHTED = "WEIGHTED",
105
- }
103
+ export declare const RoutingPolicy: {
104
+ readonly MULTIVALUE: "MULTIVALUE";
105
+ readonly WEIGHTED: "WEIGHTED";
106
+ };
107
+ export type RoutingPolicy = (typeof RoutingPolicy)[keyof typeof RoutingPolicy];
106
108
  export interface DnsConfig {
107
109
  NamespaceId?: string;
108
110
  RoutingPolicy?: RoutingPolicy | string;
109
111
  DnsRecords: DnsRecord[] | undefined;
110
112
  }
111
- export declare enum HealthCheckType {
112
- HTTP = "HTTP",
113
- HTTPS = "HTTPS",
114
- TCP = "TCP",
115
- }
113
+ export declare const HealthCheckType: {
114
+ readonly HTTP: "HTTP";
115
+ readonly HTTPS: "HTTPS";
116
+ readonly TCP: "TCP";
117
+ };
118
+ export type HealthCheckType =
119
+ (typeof HealthCheckType)[keyof typeof HealthCheckType];
116
120
  export interface HealthCheckConfig {
117
121
  Type: HealthCheckType | string | undefined;
118
122
  ResourcePath?: string;
@@ -121,9 +125,11 @@ export interface HealthCheckConfig {
121
125
  export interface HealthCheckCustomConfig {
122
126
  FailureThreshold?: number;
123
127
  }
124
- export declare enum ServiceTypeOption {
125
- HTTP = "HTTP",
126
- }
128
+ export declare const ServiceTypeOption: {
129
+ readonly HTTP: "HTTP";
130
+ };
131
+ export type ServiceTypeOption =
132
+ (typeof ServiceTypeOption)[keyof typeof ServiceTypeOption];
127
133
  export interface CreateServiceRequest {
128
134
  Name: string | undefined;
129
135
  NamespaceId?: string;
@@ -135,11 +141,12 @@ export interface CreateServiceRequest {
135
141
  Tags?: Tag[];
136
142
  Type?: ServiceTypeOption | string;
137
143
  }
138
- export declare enum ServiceType {
139
- DNS = "DNS",
140
- DNS_HTTP = "DNS_HTTP",
141
- HTTP = "HTTP",
142
- }
144
+ export declare const ServiceType: {
145
+ readonly DNS: "DNS";
146
+ readonly DNS_HTTP: "DNS_HTTP";
147
+ readonly HTTP: "HTTP";
148
+ };
149
+ export type ServiceType = (typeof ServiceType)[keyof typeof ServiceType];
143
150
  export interface Service {
144
151
  Id?: string;
145
152
  Arn?: string;
@@ -181,10 +188,12 @@ export declare class CustomHealthNotFound extends __BaseException {
181
188
  opts: __ExceptionOptionType<CustomHealthNotFound, __BaseException>
182
189
  );
183
190
  }
184
- export declare enum CustomHealthStatus {
185
- HEALTHY = "HEALTHY",
186
- UNHEALTHY = "UNHEALTHY",
187
- }
191
+ export declare const CustomHealthStatus: {
192
+ readonly HEALTHY: "HEALTHY";
193
+ readonly UNHEALTHY: "UNHEALTHY";
194
+ };
195
+ export type CustomHealthStatus =
196
+ (typeof CustomHealthStatus)[keyof typeof CustomHealthStatus];
188
197
  export interface DeleteNamespaceRequest {
189
198
  Id: string | undefined;
190
199
  }
@@ -220,12 +229,14 @@ export declare class InstanceNotFound extends __BaseException {
220
229
  Message?: string;
221
230
  constructor(opts: __ExceptionOptionType<InstanceNotFound, __BaseException>);
222
231
  }
223
- export declare enum HealthStatusFilter {
224
- ALL = "ALL",
225
- HEALTHY = "HEALTHY",
226
- HEALTHY_OR_ELSE_ALL = "HEALTHY_OR_ELSE_ALL",
227
- UNHEALTHY = "UNHEALTHY",
228
- }
232
+ export declare const HealthStatusFilter: {
233
+ readonly ALL: "ALL";
234
+ readonly HEALTHY: "HEALTHY";
235
+ readonly HEALTHY_OR_ELSE_ALL: "HEALTHY_OR_ELSE_ALL";
236
+ readonly UNHEALTHY: "UNHEALTHY";
237
+ };
238
+ export type HealthStatusFilter =
239
+ (typeof HealthStatusFilter)[keyof typeof HealthStatusFilter];
229
240
  export interface DiscoverInstancesRequest {
230
241
  NamespaceName: string | undefined;
231
242
  ServiceName: string | undefined;
@@ -234,11 +245,12 @@ export interface DiscoverInstancesRequest {
234
245
  OptionalParameters?: Record<string, string>;
235
246
  HealthStatus?: HealthStatusFilter | string;
236
247
  }
237
- export declare enum HealthStatus {
238
- HEALTHY = "HEALTHY",
239
- UNHEALTHY = "UNHEALTHY",
240
- UNKNOWN = "UNKNOWN",
241
- }
248
+ export declare const HealthStatus: {
249
+ readonly HEALTHY: "HEALTHY";
250
+ readonly UNHEALTHY: "UNHEALTHY";
251
+ readonly UNKNOWN: "UNKNOWN";
252
+ };
253
+ export type HealthStatus = (typeof HealthStatus)[keyof typeof HealthStatus];
242
254
  export interface HttpInstanceSummary {
243
255
  InstanceId?: string;
244
256
  NamespaceName?: string;
@@ -264,12 +276,14 @@ export interface DnsProperties {
264
276
  HostedZoneId?: string;
265
277
  SOA?: SOA;
266
278
  }
267
- export declare enum FilterCondition {
268
- BEGINS_WITH = "BEGINS_WITH",
269
- BETWEEN = "BETWEEN",
270
- EQ = "EQ",
271
- IN = "IN",
272
- }
279
+ export declare const FilterCondition: {
280
+ readonly BEGINS_WITH: "BEGINS_WITH";
281
+ readonly BETWEEN: "BETWEEN";
282
+ readonly EQ: "EQ";
283
+ readonly IN: "IN";
284
+ };
285
+ export type FilterCondition =
286
+ (typeof FilterCondition)[keyof typeof FilterCondition];
273
287
  export interface GetInstanceRequest {
274
288
  ServiceId: string | undefined;
275
289
  InstanceId: string | undefined;
@@ -302,11 +316,12 @@ export interface NamespaceProperties {
302
316
  DnsProperties?: DnsProperties;
303
317
  HttpProperties?: HttpProperties;
304
318
  }
305
- export declare enum NamespaceType {
306
- DNS_PRIVATE = "DNS_PRIVATE",
307
- DNS_PUBLIC = "DNS_PUBLIC",
308
- HTTP = "HTTP",
309
- }
319
+ export declare const NamespaceType: {
320
+ readonly DNS_PRIVATE: "DNS_PRIVATE";
321
+ readonly DNS_PUBLIC: "DNS_PUBLIC";
322
+ readonly HTTP: "HTTP";
323
+ };
324
+ export type NamespaceType = (typeof NamespaceType)[keyof typeof NamespaceType];
310
325
  export interface Namespace {
311
326
  Id?: string;
312
327
  Arn?: string;
@@ -324,25 +339,30 @@ export interface GetNamespaceResponse {
324
339
  export interface GetOperationRequest {
325
340
  OperationId: string | undefined;
326
341
  }
327
- export declare enum OperationStatus {
328
- FAIL = "FAIL",
329
- PENDING = "PENDING",
330
- SUBMITTED = "SUBMITTED",
331
- SUCCESS = "SUCCESS",
332
- }
333
- export declare enum OperationTargetType {
334
- INSTANCE = "INSTANCE",
335
- NAMESPACE = "NAMESPACE",
336
- SERVICE = "SERVICE",
337
- }
338
- export declare enum OperationType {
339
- CREATE_NAMESPACE = "CREATE_NAMESPACE",
340
- DELETE_NAMESPACE = "DELETE_NAMESPACE",
341
- DEREGISTER_INSTANCE = "DEREGISTER_INSTANCE",
342
- REGISTER_INSTANCE = "REGISTER_INSTANCE",
343
- UPDATE_NAMESPACE = "UPDATE_NAMESPACE",
344
- UPDATE_SERVICE = "UPDATE_SERVICE",
345
- }
342
+ export declare const OperationStatus: {
343
+ readonly FAIL: "FAIL";
344
+ readonly PENDING: "PENDING";
345
+ readonly SUBMITTED: "SUBMITTED";
346
+ readonly SUCCESS: "SUCCESS";
347
+ };
348
+ export type OperationStatus =
349
+ (typeof OperationStatus)[keyof typeof OperationStatus];
350
+ export declare const OperationTargetType: {
351
+ readonly INSTANCE: "INSTANCE";
352
+ readonly NAMESPACE: "NAMESPACE";
353
+ readonly SERVICE: "SERVICE";
354
+ };
355
+ export type OperationTargetType =
356
+ (typeof OperationTargetType)[keyof typeof OperationTargetType];
357
+ export declare const OperationType: {
358
+ readonly CREATE_NAMESPACE: "CREATE_NAMESPACE";
359
+ readonly DELETE_NAMESPACE: "DELETE_NAMESPACE";
360
+ readonly DEREGISTER_INSTANCE: "DEREGISTER_INSTANCE";
361
+ readonly REGISTER_INSTANCE: "REGISTER_INSTANCE";
362
+ readonly UPDATE_NAMESPACE: "UPDATE_NAMESPACE";
363
+ readonly UPDATE_SERVICE: "UPDATE_SERVICE";
364
+ };
365
+ export type OperationType = (typeof OperationType)[keyof typeof OperationType];
346
366
  export interface Operation {
347
367
  Id?: string;
348
368
  Type?: OperationType | string;
@@ -384,11 +404,13 @@ export interface ListInstancesResponse {
384
404
  Instances?: InstanceSummary[];
385
405
  NextToken?: string;
386
406
  }
387
- export declare enum NamespaceFilterName {
388
- HTTP_NAME = "HTTP_NAME",
389
- NAME = "NAME",
390
- TYPE = "TYPE",
391
- }
407
+ export declare const NamespaceFilterName: {
408
+ readonly HTTP_NAME: "HTTP_NAME";
409
+ readonly NAME: "NAME";
410
+ readonly TYPE: "TYPE";
411
+ };
412
+ export type NamespaceFilterName =
413
+ (typeof NamespaceFilterName)[keyof typeof NamespaceFilterName];
392
414
  export interface NamespaceFilter {
393
415
  Name: NamespaceFilterName | string | undefined;
394
416
  Values: string[] | undefined;
@@ -413,13 +435,15 @@ export interface ListNamespacesResponse {
413
435
  Namespaces?: NamespaceSummary[];
414
436
  NextToken?: string;
415
437
  }
416
- export declare enum OperationFilterName {
417
- NAMESPACE_ID = "NAMESPACE_ID",
418
- SERVICE_ID = "SERVICE_ID",
419
- STATUS = "STATUS",
420
- TYPE = "TYPE",
421
- UPDATE_DATE = "UPDATE_DATE",
422
- }
438
+ export declare const OperationFilterName: {
439
+ readonly NAMESPACE_ID: "NAMESPACE_ID";
440
+ readonly SERVICE_ID: "SERVICE_ID";
441
+ readonly STATUS: "STATUS";
442
+ readonly TYPE: "TYPE";
443
+ readonly UPDATE_DATE: "UPDATE_DATE";
444
+ };
445
+ export type OperationFilterName =
446
+ (typeof OperationFilterName)[keyof typeof OperationFilterName];
423
447
  export interface OperationFilter {
424
448
  Name: OperationFilterName | string | undefined;
425
449
  Values: string[] | undefined;
@@ -438,9 +462,11 @@ export interface ListOperationsResponse {
438
462
  Operations?: OperationSummary[];
439
463
  NextToken?: string;
440
464
  }
441
- export declare enum ServiceFilterName {
442
- NAMESPACE_ID = "NAMESPACE_ID",
443
- }
465
+ export declare const ServiceFilterName: {
466
+ readonly NAMESPACE_ID: "NAMESPACE_ID";
467
+ };
468
+ export type ServiceFilterName =
469
+ (typeof ServiceFilterName)[keyof typeof ServiceFilterName];
444
470
  export interface ServiceFilter {
445
471
  Name: ServiceFilterName | string | undefined;
446
472
  Values: string[] | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-servicediscovery",
3
3
  "description": "AWS SDK for JavaScript Servicediscovery Client for Node.js, Browser and React Native",
4
- "version": "3.300.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",