@aws-sdk/client-servicediscovery 3.699.0 → 3.712.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 (27) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/index.js +142 -2
  3. package/dist-es/ServiceDiscovery.js +6 -0
  4. package/dist-es/commands/DeleteServiceAttributesCommand.js +22 -0
  5. package/dist-es/commands/GetServiceAttributesCommand.js +22 -0
  6. package/dist-es/commands/UpdateServiceAttributesCommand.js +22 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +13 -0
  9. package/dist-es/protocols/Aws_json1_1.js +70 -1
  10. package/dist-types/ServiceDiscovery.d.ts +21 -0
  11. package/dist-types/ServiceDiscoveryClient.d.ts +5 -2
  12. package/dist-types/commands/DeleteServiceAttributesCommand.d.ts +79 -0
  13. package/dist-types/commands/DeleteServiceCommand.d.ts +1 -1
  14. package/dist-types/commands/GetServiceAttributesCommand.d.ts +83 -0
  15. package/dist-types/commands/UpdateServiceAttributesCommand.d.ts +82 -0
  16. package/dist-types/commands/index.d.ts +3 -0
  17. package/dist-types/models/models_0.d.ts +104 -5
  18. package/dist-types/protocols/Aws_json1_1.d.ts +27 -0
  19. package/dist-types/ts3.4/ServiceDiscovery.d.ts +51 -0
  20. package/dist-types/ts3.4/ServiceDiscoveryClient.d.ts +18 -0
  21. package/dist-types/ts3.4/commands/DeleteServiceAttributesCommand.d.ts +51 -0
  22. package/dist-types/ts3.4/commands/GetServiceAttributesCommand.d.ts +51 -0
  23. package/dist-types/ts3.4/commands/UpdateServiceAttributesCommand.d.ts +51 -0
  24. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  25. package/dist-types/ts3.4/models/models_0.d.ts +31 -0
  26. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
  27. package/package.json +35 -35
package/README.md CHANGED
@@ -256,6 +256,14 @@ DeleteService
256
256
 
257
257
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/servicediscovery/command/DeleteServiceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/DeleteServiceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/DeleteServiceCommandOutput/)
258
258
 
259
+ </details>
260
+ <details>
261
+ <summary>
262
+ DeleteServiceAttributes
263
+ </summary>
264
+
265
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/servicediscovery/command/DeleteServiceAttributesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/DeleteServiceAttributesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/DeleteServiceAttributesCommandOutput/)
266
+
259
267
  </details>
260
268
  <details>
261
269
  <summary>
@@ -320,6 +328,14 @@ GetService
320
328
 
321
329
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/servicediscovery/command/GetServiceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/GetServiceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/GetServiceCommandOutput/)
322
330
 
331
+ </details>
332
+ <details>
333
+ <summary>
334
+ GetServiceAttributes
335
+ </summary>
336
+
337
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/servicediscovery/command/GetServiceAttributesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/GetServiceAttributesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/GetServiceAttributesCommandOutput/)
338
+
323
339
  </details>
324
340
  <details>
325
341
  <summary>
@@ -425,3 +441,11 @@ UpdateService
425
441
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/servicediscovery/command/UpdateServiceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/UpdateServiceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/UpdateServiceCommandOutput/)
426
442
 
427
443
  </details>
444
+ <details>
445
+ <summary>
446
+ UpdateServiceAttributes
447
+ </summary>
448
+
449
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/servicediscovery/command/UpdateServiceAttributesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/UpdateServiceAttributesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-servicediscovery/Interface/UpdateServiceAttributesCommandOutput/)
450
+
451
+ </details>
package/dist-cjs/index.js CHANGED
@@ -28,6 +28,7 @@ __export(src_exports, {
28
28
  CustomHealthNotFound: () => CustomHealthNotFound,
29
29
  CustomHealthStatus: () => CustomHealthStatus,
30
30
  DeleteNamespaceCommand: () => DeleteNamespaceCommand,
31
+ DeleteServiceAttributesCommand: () => DeleteServiceAttributesCommand,
31
32
  DeleteServiceCommand: () => DeleteServiceCommand,
32
33
  DeregisterInstanceCommand: () => DeregisterInstanceCommand,
33
34
  DiscoverInstancesCommand: () => DiscoverInstancesCommand,
@@ -38,6 +39,7 @@ __export(src_exports, {
38
39
  GetInstancesHealthStatusCommand: () => GetInstancesHealthStatusCommand,
39
40
  GetNamespaceCommand: () => GetNamespaceCommand,
40
41
  GetOperationCommand: () => GetOperationCommand,
42
+ GetServiceAttributesCommand: () => GetServiceAttributesCommand,
41
43
  GetServiceCommand: () => GetServiceCommand,
42
44
  HealthCheckType: () => HealthCheckType,
43
45
  HealthStatus: () => HealthStatus,
@@ -66,6 +68,7 @@ __export(src_exports, {
66
68
  ResourceNotFoundException: () => ResourceNotFoundException,
67
69
  RoutingPolicy: () => RoutingPolicy,
68
70
  ServiceAlreadyExists: () => ServiceAlreadyExists,
71
+ ServiceAttributesLimitExceededException: () => ServiceAttributesLimitExceededException,
69
72
  ServiceDiscovery: () => ServiceDiscovery,
70
73
  ServiceDiscoveryClient: () => ServiceDiscoveryClient,
71
74
  ServiceDiscoveryServiceException: () => ServiceDiscoveryServiceException,
@@ -80,6 +83,7 @@ __export(src_exports, {
80
83
  UpdateInstanceCustomHealthStatusCommand: () => UpdateInstanceCustomHealthStatusCommand,
81
84
  UpdatePrivateDnsNamespaceCommand: () => UpdatePrivateDnsNamespaceCommand,
82
85
  UpdatePublicDnsNamespaceCommand: () => UpdatePublicDnsNamespaceCommand,
86
+ UpdateServiceAttributesCommand: () => UpdateServiceAttributesCommand,
83
87
  UpdateServiceCommand: () => UpdateServiceCommand,
84
88
  __Client: () => import_smithy_client.Client,
85
89
  paginateGetInstancesHealthStatus: () => paginateGetInstancesHealthStatus,
@@ -597,6 +601,24 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Servic
597
601
  };
598
602
  __name(_ResourceNotFoundException, "ResourceNotFoundException");
599
603
  var ResourceNotFoundException = _ResourceNotFoundException;
604
+ var _ServiceAttributesLimitExceededException = class _ServiceAttributesLimitExceededException extends ServiceDiscoveryServiceException {
605
+ /**
606
+ * @internal
607
+ */
608
+ constructor(opts) {
609
+ super({
610
+ name: "ServiceAttributesLimitExceededException",
611
+ $fault: "client",
612
+ ...opts
613
+ });
614
+ this.name = "ServiceAttributesLimitExceededException";
615
+ this.$fault = "client";
616
+ Object.setPrototypeOf(this, _ServiceAttributesLimitExceededException.prototype);
617
+ this.Message = opts.Message;
618
+ }
619
+ };
620
+ __name(_ServiceAttributesLimitExceededException, "ServiceAttributesLimitExceededException");
621
+ var ServiceAttributesLimitExceededException = _ServiceAttributesLimitExceededException;
600
622
 
601
623
  // src/protocols/Aws_json1_1.ts
602
624
  var se_CreateHttpNamespaceCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -635,6 +657,12 @@ var se_DeleteServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
635
657
  body = JSON.stringify((0, import_smithy_client._json)(input));
636
658
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
637
659
  }, "se_DeleteServiceCommand");
660
+ var se_DeleteServiceAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
661
+ const headers = sharedHeaders("DeleteServiceAttributes");
662
+ let body;
663
+ body = JSON.stringify((0, import_smithy_client._json)(input));
664
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
665
+ }, "se_DeleteServiceAttributesCommand");
638
666
  var se_DeregisterInstanceCommand = /* @__PURE__ */ __name(async (input, context) => {
639
667
  const headers = sharedHeaders("DeregisterInstance");
640
668
  let body;
@@ -697,6 +725,12 @@ var se_GetServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
697
725
  body = JSON.stringify((0, import_smithy_client._json)(input));
698
726
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
699
727
  }, "se_GetServiceCommand");
728
+ var se_GetServiceAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
729
+ const headers = sharedHeaders("GetServiceAttributes");
730
+ let body;
731
+ body = JSON.stringify((0, import_smithy_client._json)(input));
732
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
733
+ }, "se_GetServiceAttributesCommand");
700
734
  var se_ListInstancesCommand = /* @__PURE__ */ __name(async (input, context) => {
701
735
  const headers = sharedHeaders("ListInstances");
702
736
  let body;
@@ -775,6 +809,12 @@ var se_UpdateServiceCommand = /* @__PURE__ */ __name(async (input, context) => {
775
809
  body = JSON.stringify((0, import_smithy_client._json)(input));
776
810
  return buildHttpRpcRequest(context, headers, "/", void 0, body);
777
811
  }, "se_UpdateServiceCommand");
812
+ var se_UpdateServiceAttributesCommand = /* @__PURE__ */ __name(async (input, context) => {
813
+ const headers = sharedHeaders("UpdateServiceAttributes");
814
+ let body;
815
+ body = JSON.stringify((0, import_smithy_client._json)(input));
816
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
817
+ }, "se_UpdateServiceAttributesCommand");
778
818
  var de_CreateHttpNamespaceCommand = /* @__PURE__ */ __name(async (output, context) => {
779
819
  if (output.statusCode >= 300) {
780
820
  return de_CommandError(output, context);
@@ -853,6 +893,19 @@ var de_DeleteServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
853
893
  };
854
894
  return response;
855
895
  }, "de_DeleteServiceCommand");
896
+ var de_DeleteServiceAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
897
+ if (output.statusCode >= 300) {
898
+ return de_CommandError(output, context);
899
+ }
900
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
901
+ let contents = {};
902
+ contents = (0, import_smithy_client._json)(data);
903
+ const response = {
904
+ $metadata: deserializeMetadata(output),
905
+ ...contents
906
+ };
907
+ return response;
908
+ }, "de_DeleteServiceAttributesCommand");
856
909
  var de_DeregisterInstanceCommand = /* @__PURE__ */ __name(async (output, context) => {
857
910
  if (output.statusCode >= 300) {
858
911
  return de_CommandError(output, context);
@@ -957,6 +1010,19 @@ var de_GetServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
957
1010
  };
958
1011
  return response;
959
1012
  }, "de_GetServiceCommand");
1013
+ var de_GetServiceAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
+ if (output.statusCode >= 300) {
1015
+ return de_CommandError(output, context);
1016
+ }
1017
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1018
+ let contents = {};
1019
+ contents = (0, import_smithy_client._json)(data);
1020
+ const response = {
1021
+ $metadata: deserializeMetadata(output),
1022
+ ...contents
1023
+ };
1024
+ return response;
1025
+ }, "de_GetServiceAttributesCommand");
960
1026
  var de_ListInstancesCommand = /* @__PURE__ */ __name(async (output, context) => {
961
1027
  if (output.statusCode >= 300) {
962
1028
  return de_CommandError(output, context);
@@ -1123,6 +1189,19 @@ var de_UpdateServiceCommand = /* @__PURE__ */ __name(async (output, context) =>
1123
1189
  };
1124
1190
  return response;
1125
1191
  }, "de_UpdateServiceCommand");
1192
+ var de_UpdateServiceAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1193
+ if (output.statusCode >= 300) {
1194
+ return de_CommandError(output, context);
1195
+ }
1196
+ const data = await (0, import_core2.parseJsonBody)(output.body, context);
1197
+ let contents = {};
1198
+ contents = (0, import_smithy_client._json)(data);
1199
+ const response = {
1200
+ $metadata: deserializeMetadata(output),
1201
+ ...contents
1202
+ };
1203
+ return response;
1204
+ }, "de_UpdateServiceAttributesCommand");
1126
1205
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1127
1206
  const parsedOutput = {
1128
1207
  ...output,
@@ -1172,6 +1251,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1172
1251
  case "CustomHealthNotFound":
1173
1252
  case "com.amazonaws.servicediscovery#CustomHealthNotFound":
1174
1253
  throw await de_CustomHealthNotFoundRes(parsedOutput, context);
1254
+ case "ServiceAttributesLimitExceededException":
1255
+ case "com.amazonaws.servicediscovery#ServiceAttributesLimitExceededException":
1256
+ throw await de_ServiceAttributesLimitExceededExceptionRes(parsedOutput, context);
1175
1257
  default:
1176
1258
  const parsedBody = parsedOutput.body;
1177
1259
  return throwDefaultError({
@@ -1289,6 +1371,15 @@ var de_ServiceAlreadyExistsRes = /* @__PURE__ */ __name(async (parsedOutput, con
1289
1371
  });
1290
1372
  return (0, import_smithy_client.decorateServiceException)(exception, body);
1291
1373
  }, "de_ServiceAlreadyExistsRes");
1374
+ var de_ServiceAttributesLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1375
+ const body = parsedOutput.body;
1376
+ const deserialized = (0, import_smithy_client._json)(body);
1377
+ const exception = new ServiceAttributesLimitExceededException({
1378
+ $metadata: deserializeMetadata(parsedOutput),
1379
+ ...deserialized
1380
+ });
1381
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1382
+ }, "de_ServiceAttributesLimitExceededExceptionRes");
1292
1383
  var de_ServiceNotFoundRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1293
1384
  const body = parsedOutput.body;
1294
1385
  const deserialized = (0, import_smithy_client._json)(body);
@@ -1587,6 +1678,20 @@ var _DeleteNamespaceCommand = class _DeleteNamespaceCommand extends import_smith
1587
1678
  __name(_DeleteNamespaceCommand, "DeleteNamespaceCommand");
1588
1679
  var DeleteNamespaceCommand = _DeleteNamespaceCommand;
1589
1680
 
1681
+ // src/commands/DeleteServiceAttributesCommand.ts
1682
+
1683
+
1684
+
1685
+ var _DeleteServiceAttributesCommand = class _DeleteServiceAttributesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1686
+ return [
1687
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1688
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1689
+ ];
1690
+ }).s("Route53AutoNaming_v20170314", "DeleteServiceAttributes", {}).n("ServiceDiscoveryClient", "DeleteServiceAttributesCommand").f(void 0, void 0).ser(se_DeleteServiceAttributesCommand).de(de_DeleteServiceAttributesCommand).build() {
1691
+ };
1692
+ __name(_DeleteServiceAttributesCommand, "DeleteServiceAttributesCommand");
1693
+ var DeleteServiceAttributesCommand = _DeleteServiceAttributesCommand;
1694
+
1590
1695
  // src/commands/DeleteServiceCommand.ts
1591
1696
 
1592
1697
 
@@ -1699,6 +1804,20 @@ var _GetOperationCommand = class _GetOperationCommand extends import_smithy_clie
1699
1804
  __name(_GetOperationCommand, "GetOperationCommand");
1700
1805
  var GetOperationCommand = _GetOperationCommand;
1701
1806
 
1807
+ // src/commands/GetServiceAttributesCommand.ts
1808
+
1809
+
1810
+
1811
+ var _GetServiceAttributesCommand = class _GetServiceAttributesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
1812
+ return [
1813
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1814
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1815
+ ];
1816
+ }).s("Route53AutoNaming_v20170314", "GetServiceAttributes", {}).n("ServiceDiscoveryClient", "GetServiceAttributesCommand").f(void 0, void 0).ser(se_GetServiceAttributesCommand).de(de_GetServiceAttributesCommand).build() {
1817
+ };
1818
+ __name(_GetServiceAttributesCommand, "GetServiceAttributesCommand");
1819
+ var GetServiceAttributesCommand = _GetServiceAttributesCommand;
1820
+
1702
1821
  // src/commands/GetServiceCommand.ts
1703
1822
 
1704
1823
 
@@ -1881,6 +2000,20 @@ var _UpdatePublicDnsNamespaceCommand = class _UpdatePublicDnsNamespaceCommand ex
1881
2000
  __name(_UpdatePublicDnsNamespaceCommand, "UpdatePublicDnsNamespaceCommand");
1882
2001
  var UpdatePublicDnsNamespaceCommand = _UpdatePublicDnsNamespaceCommand;
1883
2002
 
2003
+ // src/commands/UpdateServiceAttributesCommand.ts
2004
+
2005
+
2006
+
2007
+ var _UpdateServiceAttributesCommand = class _UpdateServiceAttributesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
2008
+ return [
2009
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2010
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2011
+ ];
2012
+ }).s("Route53AutoNaming_v20170314", "UpdateServiceAttributes", {}).n("ServiceDiscoveryClient", "UpdateServiceAttributesCommand").f(void 0, void 0).ser(se_UpdateServiceAttributesCommand).de(de_UpdateServiceAttributesCommand).build() {
2013
+ };
2014
+ __name(_UpdateServiceAttributesCommand, "UpdateServiceAttributesCommand");
2015
+ var UpdateServiceAttributesCommand = _UpdateServiceAttributesCommand;
2016
+
1884
2017
  // src/commands/UpdateServiceCommand.ts
1885
2018
 
1886
2019
 
@@ -1903,6 +2036,7 @@ var commands = {
1903
2036
  CreateServiceCommand,
1904
2037
  DeleteNamespaceCommand,
1905
2038
  DeleteServiceCommand,
2039
+ DeleteServiceAttributesCommand,
1906
2040
  DeregisterInstanceCommand,
1907
2041
  DiscoverInstancesCommand,
1908
2042
  DiscoverInstancesRevisionCommand,
@@ -1911,6 +2045,7 @@ var commands = {
1911
2045
  GetNamespaceCommand,
1912
2046
  GetOperationCommand,
1913
2047
  GetServiceCommand,
2048
+ GetServiceAttributesCommand,
1914
2049
  ListInstancesCommand,
1915
2050
  ListNamespacesCommand,
1916
2051
  ListOperationsCommand,
@@ -1923,7 +2058,8 @@ var commands = {
1923
2058
  UpdateInstanceCustomHealthStatusCommand,
1924
2059
  UpdatePrivateDnsNamespaceCommand,
1925
2060
  UpdatePublicDnsNamespaceCommand,
1926
- UpdateServiceCommand
2061
+ UpdateServiceCommand,
2062
+ UpdateServiceAttributesCommand
1927
2063
  };
1928
2064
  var _ServiceDiscovery = class _ServiceDiscovery extends ServiceDiscoveryClient {
1929
2065
  };
@@ -1963,6 +2099,7 @@ var paginateListServices = (0, import_core.createPaginator)(ServiceDiscoveryClie
1963
2099
  CreatePublicDnsNamespaceCommand,
1964
2100
  CreateServiceCommand,
1965
2101
  DeleteNamespaceCommand,
2102
+ DeleteServiceAttributesCommand,
1966
2103
  DeleteServiceCommand,
1967
2104
  DeregisterInstanceCommand,
1968
2105
  DiscoverInstancesCommand,
@@ -1971,6 +2108,7 @@ var paginateListServices = (0, import_core.createPaginator)(ServiceDiscoveryClie
1971
2108
  GetInstancesHealthStatusCommand,
1972
2109
  GetNamespaceCommand,
1973
2110
  GetOperationCommand,
2111
+ GetServiceAttributesCommand,
1974
2112
  GetServiceCommand,
1975
2113
  ListInstancesCommand,
1976
2114
  ListNamespacesCommand,
@@ -1984,6 +2122,7 @@ var paginateListServices = (0, import_core.createPaginator)(ServiceDiscoveryClie
1984
2122
  UpdateInstanceCustomHealthStatusCommand,
1985
2123
  UpdatePrivateDnsNamespaceCommand,
1986
2124
  UpdatePublicDnsNamespaceCommand,
2125
+ UpdateServiceAttributesCommand,
1987
2126
  UpdateServiceCommand,
1988
2127
  paginateGetInstancesHealthStatus,
1989
2128
  paginateListInstances,
@@ -2019,6 +2158,7 @@ var paginateListServices = (0, import_core.createPaginator)(ServiceDiscoveryClie
2019
2158
  NamespaceFilterName,
2020
2159
  OperationFilterName,
2021
2160
  ServiceFilterName,
2022
- ResourceNotFoundException
2161
+ ResourceNotFoundException,
2162
+ ServiceAttributesLimitExceededException
2023
2163
  });
2024
2164
 
@@ -4,6 +4,7 @@ import { CreatePrivateDnsNamespaceCommand, } from "./commands/CreatePrivateDnsNa
4
4
  import { CreatePublicDnsNamespaceCommand, } from "./commands/CreatePublicDnsNamespaceCommand";
5
5
  import { CreateServiceCommand, } from "./commands/CreateServiceCommand";
6
6
  import { DeleteNamespaceCommand, } from "./commands/DeleteNamespaceCommand";
7
+ import { DeleteServiceAttributesCommand, } from "./commands/DeleteServiceAttributesCommand";
7
8
  import { DeleteServiceCommand, } from "./commands/DeleteServiceCommand";
8
9
  import { DeregisterInstanceCommand, } from "./commands/DeregisterInstanceCommand";
9
10
  import { DiscoverInstancesCommand, } from "./commands/DiscoverInstancesCommand";
@@ -12,6 +13,7 @@ import { GetInstanceCommand } from "./commands/GetInstanceCommand";
12
13
  import { GetInstancesHealthStatusCommand, } from "./commands/GetInstancesHealthStatusCommand";
13
14
  import { GetNamespaceCommand, } from "./commands/GetNamespaceCommand";
14
15
  import { GetOperationCommand, } from "./commands/GetOperationCommand";
16
+ import { GetServiceAttributesCommand, } from "./commands/GetServiceAttributesCommand";
15
17
  import { GetServiceCommand } from "./commands/GetServiceCommand";
16
18
  import { ListInstancesCommand, } from "./commands/ListInstancesCommand";
17
19
  import { ListNamespacesCommand, } from "./commands/ListNamespacesCommand";
@@ -25,6 +27,7 @@ import { UpdateHttpNamespaceCommand, } from "./commands/UpdateHttpNamespaceComma
25
27
  import { UpdateInstanceCustomHealthStatusCommand, } from "./commands/UpdateInstanceCustomHealthStatusCommand";
26
28
  import { UpdatePrivateDnsNamespaceCommand, } from "./commands/UpdatePrivateDnsNamespaceCommand";
27
29
  import { UpdatePublicDnsNamespaceCommand, } from "./commands/UpdatePublicDnsNamespaceCommand";
30
+ import { UpdateServiceAttributesCommand, } from "./commands/UpdateServiceAttributesCommand";
28
31
  import { UpdateServiceCommand, } from "./commands/UpdateServiceCommand";
29
32
  import { ServiceDiscoveryClient } from "./ServiceDiscoveryClient";
30
33
  const commands = {
@@ -34,6 +37,7 @@ const commands = {
34
37
  CreateServiceCommand,
35
38
  DeleteNamespaceCommand,
36
39
  DeleteServiceCommand,
40
+ DeleteServiceAttributesCommand,
37
41
  DeregisterInstanceCommand,
38
42
  DiscoverInstancesCommand,
39
43
  DiscoverInstancesRevisionCommand,
@@ -42,6 +46,7 @@ const commands = {
42
46
  GetNamespaceCommand,
43
47
  GetOperationCommand,
44
48
  GetServiceCommand,
49
+ GetServiceAttributesCommand,
45
50
  ListInstancesCommand,
46
51
  ListNamespacesCommand,
47
52
  ListOperationsCommand,
@@ -55,6 +60,7 @@ const commands = {
55
60
  UpdatePrivateDnsNamespaceCommand,
56
61
  UpdatePublicDnsNamespaceCommand,
57
62
  UpdateServiceCommand,
63
+ UpdateServiceAttributesCommand,
58
64
  };
59
65
  export class ServiceDiscovery extends ServiceDiscoveryClient {
60
66
  }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_DeleteServiceAttributesCommand, se_DeleteServiceAttributesCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class DeleteServiceAttributesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Route53AutoNaming_v20170314", "DeleteServiceAttributes", {})
17
+ .n("ServiceDiscoveryClient", "DeleteServiceAttributesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_DeleteServiceAttributesCommand)
20
+ .de(de_DeleteServiceAttributesCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_GetServiceAttributesCommand, se_GetServiceAttributesCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class GetServiceAttributesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Route53AutoNaming_v20170314", "GetServiceAttributes", {})
17
+ .n("ServiceDiscoveryClient", "GetServiceAttributesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_GetServiceAttributesCommand)
20
+ .de(de_GetServiceAttributesCommand)
21
+ .build() {
22
+ }
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_UpdateServiceAttributesCommand, se_UpdateServiceAttributesCommand } from "../protocols/Aws_json1_1";
6
+ export { $Command };
7
+ export class UpdateServiceAttributesCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("Route53AutoNaming_v20170314", "UpdateServiceAttributes", {})
17
+ .n("ServiceDiscoveryClient", "UpdateServiceAttributesCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_UpdateServiceAttributesCommand)
20
+ .de(de_UpdateServiceAttributesCommand)
21
+ .build() {
22
+ }
@@ -3,6 +3,7 @@ export * from "./CreatePrivateDnsNamespaceCommand";
3
3
  export * from "./CreatePublicDnsNamespaceCommand";
4
4
  export * from "./CreateServiceCommand";
5
5
  export * from "./DeleteNamespaceCommand";
6
+ export * from "./DeleteServiceAttributesCommand";
6
7
  export * from "./DeleteServiceCommand";
7
8
  export * from "./DeregisterInstanceCommand";
8
9
  export * from "./DiscoverInstancesCommand";
@@ -11,6 +12,7 @@ export * from "./GetInstanceCommand";
11
12
  export * from "./GetInstancesHealthStatusCommand";
12
13
  export * from "./GetNamespaceCommand";
13
14
  export * from "./GetOperationCommand";
15
+ export * from "./GetServiceAttributesCommand";
14
16
  export * from "./GetServiceCommand";
15
17
  export * from "./ListInstancesCommand";
16
18
  export * from "./ListNamespacesCommand";
@@ -24,4 +26,5 @@ export * from "./UpdateHttpNamespaceCommand";
24
26
  export * from "./UpdateInstanceCustomHealthStatusCommand";
25
27
  export * from "./UpdatePrivateDnsNamespaceCommand";
26
28
  export * from "./UpdatePublicDnsNamespaceCommand";
29
+ export * from "./UpdateServiceAttributesCommand";
27
30
  export * from "./UpdateServiceCommand";
@@ -270,3 +270,16 @@ export class ResourceNotFoundException extends __BaseException {
270
270
  this.Message = opts.Message;
271
271
  }
272
272
  }
273
+ export class ServiceAttributesLimitExceededException extends __BaseException {
274
+ constructor(opts) {
275
+ super({
276
+ name: "ServiceAttributesLimitExceededException",
277
+ $fault: "client",
278
+ ...opts,
279
+ });
280
+ this.name = "ServiceAttributesLimitExceededException";
281
+ this.$fault = "client";
282
+ Object.setPrototypeOf(this, ServiceAttributesLimitExceededException.prototype);
283
+ this.Message = opts.Message;
284
+ }
285
+ }
@@ -2,7 +2,7 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { v4 as generateIdempotencyToken } from "uuid";
5
- import { CustomHealthNotFound, DuplicateRequest, InstanceNotFound, InvalidInput, NamespaceAlreadyExists, NamespaceNotFound, OperationNotFound, RequestLimitExceeded, ResourceInUse, ResourceLimitExceeded, ResourceNotFoundException, ServiceAlreadyExists, ServiceNotFound, TooManyTagsException, } from "../models/models_0";
5
+ import { CustomHealthNotFound, DuplicateRequest, InstanceNotFound, InvalidInput, NamespaceAlreadyExists, NamespaceNotFound, OperationNotFound, RequestLimitExceeded, ResourceInUse, ResourceLimitExceeded, ResourceNotFoundException, ServiceAlreadyExists, ServiceAttributesLimitExceededException, ServiceNotFound, TooManyTagsException, } from "../models/models_0";
6
6
  import { ServiceDiscoveryServiceException as __BaseException } from "../models/ServiceDiscoveryServiceException";
7
7
  export const se_CreateHttpNamespaceCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("CreateHttpNamespace");
@@ -40,6 +40,12 @@ export const se_DeleteServiceCommand = async (input, context) => {
40
40
  body = JSON.stringify(_json(input));
41
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
42
  };
43
+ export const se_DeleteServiceAttributesCommand = async (input, context) => {
44
+ const headers = sharedHeaders("DeleteServiceAttributes");
45
+ let body;
46
+ body = JSON.stringify(_json(input));
47
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
48
+ };
43
49
  export const se_DeregisterInstanceCommand = async (input, context) => {
44
50
  const headers = sharedHeaders("DeregisterInstance");
45
51
  let body;
@@ -102,6 +108,12 @@ export const se_GetServiceCommand = async (input, context) => {
102
108
  body = JSON.stringify(_json(input));
103
109
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
104
110
  };
111
+ export const se_GetServiceAttributesCommand = async (input, context) => {
112
+ const headers = sharedHeaders("GetServiceAttributes");
113
+ let body;
114
+ body = JSON.stringify(_json(input));
115
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
116
+ };
105
117
  export const se_ListInstancesCommand = async (input, context) => {
106
118
  const headers = sharedHeaders("ListInstances");
107
119
  let body;
@@ -180,6 +192,12 @@ export const se_UpdateServiceCommand = async (input, context) => {
180
192
  body = JSON.stringify(_json(input));
181
193
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
194
  };
195
+ export const se_UpdateServiceAttributesCommand = async (input, context) => {
196
+ const headers = sharedHeaders("UpdateServiceAttributes");
197
+ let body;
198
+ body = JSON.stringify(_json(input));
199
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
200
+ };
183
201
  export const de_CreateHttpNamespaceCommand = async (output, context) => {
184
202
  if (output.statusCode >= 300) {
185
203
  return de_CommandError(output, context);
@@ -258,6 +276,19 @@ export const de_DeleteServiceCommand = async (output, context) => {
258
276
  };
259
277
  return response;
260
278
  };
279
+ export const de_DeleteServiceAttributesCommand = async (output, context) => {
280
+ if (output.statusCode >= 300) {
281
+ return de_CommandError(output, context);
282
+ }
283
+ const data = await parseBody(output.body, context);
284
+ let contents = {};
285
+ contents = _json(data);
286
+ const response = {
287
+ $metadata: deserializeMetadata(output),
288
+ ...contents,
289
+ };
290
+ return response;
291
+ };
261
292
  export const de_DeregisterInstanceCommand = async (output, context) => {
262
293
  if (output.statusCode >= 300) {
263
294
  return de_CommandError(output, context);
@@ -362,6 +393,19 @@ export const de_GetServiceCommand = async (output, context) => {
362
393
  };
363
394
  return response;
364
395
  };
396
+ export const de_GetServiceAttributesCommand = async (output, context) => {
397
+ if (output.statusCode >= 300) {
398
+ return de_CommandError(output, context);
399
+ }
400
+ const data = await parseBody(output.body, context);
401
+ let contents = {};
402
+ contents = _json(data);
403
+ const response = {
404
+ $metadata: deserializeMetadata(output),
405
+ ...contents,
406
+ };
407
+ return response;
408
+ };
365
409
  export const de_ListInstancesCommand = async (output, context) => {
366
410
  if (output.statusCode >= 300) {
367
411
  return de_CommandError(output, context);
@@ -528,6 +572,19 @@ export const de_UpdateServiceCommand = async (output, context) => {
528
572
  };
529
573
  return response;
530
574
  };
575
+ export const de_UpdateServiceAttributesCommand = async (output, context) => {
576
+ if (output.statusCode >= 300) {
577
+ return de_CommandError(output, context);
578
+ }
579
+ const data = await parseBody(output.body, context);
580
+ let contents = {};
581
+ contents = _json(data);
582
+ const response = {
583
+ $metadata: deserializeMetadata(output),
584
+ ...contents,
585
+ };
586
+ return response;
587
+ };
531
588
  const de_CommandError = async (output, context) => {
532
589
  const parsedOutput = {
533
590
  ...output,
@@ -577,6 +634,9 @@ const de_CommandError = async (output, context) => {
577
634
  case "CustomHealthNotFound":
578
635
  case "com.amazonaws.servicediscovery#CustomHealthNotFound":
579
636
  throw await de_CustomHealthNotFoundRes(parsedOutput, context);
637
+ case "ServiceAttributesLimitExceededException":
638
+ case "com.amazonaws.servicediscovery#ServiceAttributesLimitExceededException":
639
+ throw await de_ServiceAttributesLimitExceededExceptionRes(parsedOutput, context);
580
640
  default:
581
641
  const parsedBody = parsedOutput.body;
582
642
  return throwDefaultError({
@@ -694,6 +754,15 @@ const de_ServiceAlreadyExistsRes = async (parsedOutput, context) => {
694
754
  });
695
755
  return __decorateServiceException(exception, body);
696
756
  };
757
+ const de_ServiceAttributesLimitExceededExceptionRes = async (parsedOutput, context) => {
758
+ const body = parsedOutput.body;
759
+ const deserialized = _json(body);
760
+ const exception = new ServiceAttributesLimitExceededException({
761
+ $metadata: deserializeMetadata(parsedOutput),
762
+ ...deserialized,
763
+ });
764
+ return __decorateServiceException(exception, body);
765
+ };
697
766
  const de_ServiceNotFoundRes = async (parsedOutput, context) => {
698
767
  const body = parsedOutput.body;
699
768
  const deserialized = _json(body);