@aws-sdk/client-servicediscovery 3.1076.0 → 3.1078.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 (110) hide show
  1. package/dist-cjs/index.js +41 -305
  2. package/dist-es/commandBuilder.js +6 -0
  3. package/dist-es/commands/CreateHttpNamespaceCommand.js +2 -14
  4. package/dist-es/commands/CreatePrivateDnsNamespaceCommand.js +2 -14
  5. package/dist-es/commands/CreatePublicDnsNamespaceCommand.js +2 -14
  6. package/dist-es/commands/CreateServiceCommand.js +2 -14
  7. package/dist-es/commands/DeleteNamespaceCommand.js +2 -14
  8. package/dist-es/commands/DeleteServiceAttributesCommand.js +2 -14
  9. package/dist-es/commands/DeleteServiceCommand.js +2 -14
  10. package/dist-es/commands/DeregisterInstanceCommand.js +2 -14
  11. package/dist-es/commands/DiscoverInstancesCommand.js +2 -14
  12. package/dist-es/commands/DiscoverInstancesRevisionCommand.js +2 -14
  13. package/dist-es/commands/GetInstanceCommand.js +2 -14
  14. package/dist-es/commands/GetInstancesHealthStatusCommand.js +2 -14
  15. package/dist-es/commands/GetNamespaceCommand.js +2 -14
  16. package/dist-es/commands/GetOperationCommand.js +2 -14
  17. package/dist-es/commands/GetServiceAttributesCommand.js +2 -14
  18. package/dist-es/commands/GetServiceCommand.js +2 -14
  19. package/dist-es/commands/ListInstancesCommand.js +2 -14
  20. package/dist-es/commands/ListNamespacesCommand.js +2 -14
  21. package/dist-es/commands/ListOperationsCommand.js +2 -14
  22. package/dist-es/commands/ListServicesCommand.js +2 -14
  23. package/dist-es/commands/ListTagsForResourceCommand.js +2 -14
  24. package/dist-es/commands/RegisterInstanceCommand.js +2 -14
  25. package/dist-es/commands/TagResourceCommand.js +2 -14
  26. package/dist-es/commands/UntagResourceCommand.js +2 -14
  27. package/dist-es/commands/UpdateHttpNamespaceCommand.js +2 -14
  28. package/dist-es/commands/UpdateInstanceCustomHealthStatusCommand.js +2 -14
  29. package/dist-es/commands/UpdatePrivateDnsNamespaceCommand.js +2 -14
  30. package/dist-es/commands/UpdatePublicDnsNamespaceCommand.js +2 -14
  31. package/dist-es/commands/UpdateServiceAttributesCommand.js +2 -14
  32. package/dist-es/commands/UpdateServiceCommand.js +2 -14
  33. package/dist-es/index.js +1 -0
  34. package/dist-es/runtimeConfig.browser.js +0 -2
  35. package/dist-es/runtimeConfig.js +1 -2
  36. package/dist-es/runtimeConfig.native.js +0 -2
  37. package/dist-es/runtimeConfig.shared.js +2 -0
  38. package/dist-types/commandBuilder.d.ts +18 -0
  39. package/dist-types/commands/CreateHttpNamespaceCommand.d.ts +3 -8
  40. package/dist-types/commands/CreatePrivateDnsNamespaceCommand.d.ts +3 -8
  41. package/dist-types/commands/CreatePublicDnsNamespaceCommand.d.ts +3 -8
  42. package/dist-types/commands/CreateServiceCommand.d.ts +3 -8
  43. package/dist-types/commands/DeleteNamespaceCommand.d.ts +3 -8
  44. package/dist-types/commands/DeleteServiceAttributesCommand.d.ts +3 -8
  45. package/dist-types/commands/DeleteServiceCommand.d.ts +3 -8
  46. package/dist-types/commands/DeregisterInstanceCommand.d.ts +3 -8
  47. package/dist-types/commands/DiscoverInstancesCommand.d.ts +3 -8
  48. package/dist-types/commands/DiscoverInstancesRevisionCommand.d.ts +3 -8
  49. package/dist-types/commands/GetInstanceCommand.d.ts +3 -8
  50. package/dist-types/commands/GetInstancesHealthStatusCommand.d.ts +3 -8
  51. package/dist-types/commands/GetNamespaceCommand.d.ts +3 -8
  52. package/dist-types/commands/GetOperationCommand.d.ts +3 -8
  53. package/dist-types/commands/GetServiceAttributesCommand.d.ts +3 -8
  54. package/dist-types/commands/GetServiceCommand.d.ts +3 -8
  55. package/dist-types/commands/ListInstancesCommand.d.ts +3 -8
  56. package/dist-types/commands/ListNamespacesCommand.d.ts +3 -8
  57. package/dist-types/commands/ListOperationsCommand.d.ts +3 -8
  58. package/dist-types/commands/ListServicesCommand.d.ts +3 -8
  59. package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -8
  60. package/dist-types/commands/RegisterInstanceCommand.d.ts +3 -8
  61. package/dist-types/commands/TagResourceCommand.d.ts +3 -8
  62. package/dist-types/commands/UntagResourceCommand.d.ts +3 -8
  63. package/dist-types/commands/UpdateHttpNamespaceCommand.d.ts +3 -8
  64. package/dist-types/commands/UpdateInstanceCustomHealthStatusCommand.d.ts +3 -8
  65. package/dist-types/commands/UpdatePrivateDnsNamespaceCommand.d.ts +3 -8
  66. package/dist-types/commands/UpdatePublicDnsNamespaceCommand.d.ts +3 -8
  67. package/dist-types/commands/UpdateServiceAttributesCommand.d.ts +3 -8
  68. package/dist-types/commands/UpdateServiceCommand.d.ts +3 -8
  69. package/dist-types/index.d.ts +1 -0
  70. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  71. package/dist-types/runtimeConfig.d.ts +1 -1
  72. package/dist-types/runtimeConfig.native.d.ts +1 -1
  73. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  74. package/dist-types/ts3.4/commandBuilder.d.ts +46 -0
  75. package/dist-types/ts3.4/commands/CreateHttpNamespaceCommand.d.ts +7 -16
  76. package/dist-types/ts3.4/commands/CreatePrivateDnsNamespaceCommand.d.ts +7 -16
  77. package/dist-types/ts3.4/commands/CreatePublicDnsNamespaceCommand.d.ts +7 -16
  78. package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +7 -16
  79. package/dist-types/ts3.4/commands/DeleteNamespaceCommand.d.ts +7 -16
  80. package/dist-types/ts3.4/commands/DeleteServiceAttributesCommand.d.ts +7 -16
  81. package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +7 -16
  82. package/dist-types/ts3.4/commands/DeregisterInstanceCommand.d.ts +7 -16
  83. package/dist-types/ts3.4/commands/DiscoverInstancesCommand.d.ts +7 -16
  84. package/dist-types/ts3.4/commands/DiscoverInstancesRevisionCommand.d.ts +7 -16
  85. package/dist-types/ts3.4/commands/GetInstanceCommand.d.ts +7 -16
  86. package/dist-types/ts3.4/commands/GetInstancesHealthStatusCommand.d.ts +7 -16
  87. package/dist-types/ts3.4/commands/GetNamespaceCommand.d.ts +7 -16
  88. package/dist-types/ts3.4/commands/GetOperationCommand.d.ts +7 -16
  89. package/dist-types/ts3.4/commands/GetServiceAttributesCommand.d.ts +7 -16
  90. package/dist-types/ts3.4/commands/GetServiceCommand.d.ts +7 -16
  91. package/dist-types/ts3.4/commands/ListInstancesCommand.d.ts +7 -16
  92. package/dist-types/ts3.4/commands/ListNamespacesCommand.d.ts +7 -16
  93. package/dist-types/ts3.4/commands/ListOperationsCommand.d.ts +7 -16
  94. package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +7 -16
  95. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +7 -16
  96. package/dist-types/ts3.4/commands/RegisterInstanceCommand.d.ts +7 -16
  97. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +7 -16
  98. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +7 -16
  99. package/dist-types/ts3.4/commands/UpdateHttpNamespaceCommand.d.ts +7 -16
  100. package/dist-types/ts3.4/commands/UpdateInstanceCustomHealthStatusCommand.d.ts +7 -16
  101. package/dist-types/ts3.4/commands/UpdatePrivateDnsNamespaceCommand.d.ts +7 -16
  102. package/dist-types/ts3.4/commands/UpdatePublicDnsNamespaceCommand.d.ts +7 -16
  103. package/dist-types/ts3.4/commands/UpdateServiceAttributesCommand.d.ts +7 -16
  104. package/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +7 -16
  105. package/dist-types/ts3.4/index.d.ts +1 -0
  106. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  107. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  108. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  109. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  110. package/package.json +8 -10
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetInstance$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetInstanceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "GetInstance", {})
13
- .n("ServiceDiscoveryClient", "GetInstanceCommand")
14
- .sc(GetInstance$)
15
- .build() {
3
+ export class GetInstanceCommand extends command(_ep0, _mw0, "GetInstance", GetInstance$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetInstancesHealthStatus$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetInstancesHealthStatusCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "GetInstancesHealthStatus", {})
13
- .n("ServiceDiscoveryClient", "GetInstancesHealthStatusCommand")
14
- .sc(GetInstancesHealthStatus$)
15
- .build() {
3
+ export class GetInstancesHealthStatusCommand extends command(_ep0, _mw0, "GetInstancesHealthStatus", GetInstancesHealthStatus$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetNamespace$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetNamespaceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "GetNamespace", {})
13
- .n("ServiceDiscoveryClient", "GetNamespaceCommand")
14
- .sc(GetNamespace$)
15
- .build() {
3
+ export class GetNamespaceCommand extends command(_ep0, _mw0, "GetNamespace", GetNamespace$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetOperation$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetOperationCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "GetOperation", {})
13
- .n("ServiceDiscoveryClient", "GetOperationCommand")
14
- .sc(GetOperation$)
15
- .build() {
3
+ export class GetOperationCommand extends command(_ep0, _mw0, "GetOperation", GetOperation$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetServiceAttributes$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetServiceAttributesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "GetServiceAttributes", {})
13
- .n("ServiceDiscoveryClient", "GetServiceAttributesCommand")
14
- .sc(GetServiceAttributes$)
15
- .build() {
3
+ export class GetServiceAttributesCommand extends command(_ep0, _mw0, "GetServiceAttributes", GetServiceAttributes$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { GetService$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class GetServiceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "GetService", {})
13
- .n("ServiceDiscoveryClient", "GetServiceCommand")
14
- .sc(GetService$)
15
- .build() {
3
+ export class GetServiceCommand extends command(_ep0, _mw0, "GetService", GetService$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListInstances$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListInstancesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "ListInstances", {})
13
- .n("ServiceDiscoveryClient", "ListInstancesCommand")
14
- .sc(ListInstances$)
15
- .build() {
3
+ export class ListInstancesCommand extends command(_ep0, _mw0, "ListInstances", ListInstances$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListNamespaces$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListNamespacesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "ListNamespaces", {})
13
- .n("ServiceDiscoveryClient", "ListNamespacesCommand")
14
- .sc(ListNamespaces$)
15
- .build() {
3
+ export class ListNamespacesCommand extends command(_ep0, _mw0, "ListNamespaces", ListNamespaces$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListOperations$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListOperationsCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "ListOperations", {})
13
- .n("ServiceDiscoveryClient", "ListOperationsCommand")
14
- .sc(ListOperations$)
15
- .build() {
3
+ export class ListOperationsCommand extends command(_ep0, _mw0, "ListOperations", ListOperations$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListServices$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListServicesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "ListServices", {})
13
- .n("ServiceDiscoveryClient", "ListServicesCommand")
14
- .sc(ListServices$)
15
- .build() {
3
+ export class ListServicesCommand extends command(_ep0, _mw0, "ListServices", ListServices$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ListTagsForResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "ListTagsForResource", {})
13
- .n("ServiceDiscoveryClient", "ListTagsForResourceCommand")
14
- .sc(ListTagsForResource$)
15
- .build() {
3
+ export class ListTagsForResourceCommand extends command(_ep0, _mw0, "ListTagsForResource", ListTagsForResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { RegisterInstance$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class RegisterInstanceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "RegisterInstance", {})
13
- .n("ServiceDiscoveryClient", "RegisterInstanceCommand")
14
- .sc(RegisterInstance$)
15
- .build() {
3
+ export class RegisterInstanceCommand extends command(_ep0, _mw0, "RegisterInstance", RegisterInstance$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { TagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class TagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "TagResource", {})
13
- .n("ServiceDiscoveryClient", "TagResourceCommand")
14
- .sc(TagResource$)
15
- .build() {
3
+ export class TagResourceCommand extends command(_ep0, _mw0, "TagResource", TagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UntagResource$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UntagResourceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "UntagResource", {})
13
- .n("ServiceDiscoveryClient", "UntagResourceCommand")
14
- .sc(UntagResource$)
15
- .build() {
3
+ export class UntagResourceCommand extends command(_ep0, _mw0, "UntagResource", UntagResource$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateHttpNamespace$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateHttpNamespaceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "UpdateHttpNamespace", {})
13
- .n("ServiceDiscoveryClient", "UpdateHttpNamespaceCommand")
14
- .sc(UpdateHttpNamespace$)
15
- .build() {
3
+ export class UpdateHttpNamespaceCommand extends command(_ep0, _mw0, "UpdateHttpNamespace", UpdateHttpNamespace$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateInstanceCustomHealthStatus$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateInstanceCustomHealthStatusCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "UpdateInstanceCustomHealthStatus", {})
13
- .n("ServiceDiscoveryClient", "UpdateInstanceCustomHealthStatusCommand")
14
- .sc(UpdateInstanceCustomHealthStatus$)
15
- .build() {
3
+ export class UpdateInstanceCustomHealthStatusCommand extends command(_ep0, _mw0, "UpdateInstanceCustomHealthStatus", UpdateInstanceCustomHealthStatus$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdatePrivateDnsNamespace$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdatePrivateDnsNamespaceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "UpdatePrivateDnsNamespace", {})
13
- .n("ServiceDiscoveryClient", "UpdatePrivateDnsNamespaceCommand")
14
- .sc(UpdatePrivateDnsNamespace$)
15
- .build() {
3
+ export class UpdatePrivateDnsNamespaceCommand extends command(_ep0, _mw0, "UpdatePrivateDnsNamespace", UpdatePrivateDnsNamespace$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdatePublicDnsNamespace$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdatePublicDnsNamespaceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "UpdatePublicDnsNamespace", {})
13
- .n("ServiceDiscoveryClient", "UpdatePublicDnsNamespaceCommand")
14
- .sc(UpdatePublicDnsNamespace$)
15
- .build() {
3
+ export class UpdatePublicDnsNamespaceCommand extends command(_ep0, _mw0, "UpdatePublicDnsNamespace", UpdatePublicDnsNamespace$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateServiceAttributes$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateServiceAttributesCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "UpdateServiceAttributes", {})
13
- .n("ServiceDiscoveryClient", "UpdateServiceAttributesCommand")
14
- .sc(UpdateServiceAttributes$)
15
- .build() {
3
+ export class UpdateServiceAttributesCommand extends command(_ep0, _mw0, "UpdateServiceAttributes", UpdateServiceAttributes$) {
16
4
  }
@@ -1,16 +1,4 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
4
2
  import { UpdateService$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class UpdateServiceCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Route53AutoNaming_v20170314", "UpdateService", {})
13
- .n("ServiceDiscoveryClient", "UpdateServiceCommand")
14
- .sc(UpdateService$)
15
- .build() {
3
+ export class UpdateServiceCommand extends command(_ep0, _mw0, "UpdateService", UpdateService$) {
16
4
  }
package/dist-es/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./ServiceDiscoveryClient";
2
2
  export * from "./ServiceDiscovery";
3
3
  export * from "./commands";
4
+ export { Command as $Command } from "@smithy/core/client";
4
5
  export * from "./schemas/schemas_0";
5
6
  export * from "./pagination";
6
7
  export * from "./models/enums";
@@ -1,5 +1,4 @@
1
1
  import packageInfo from "../package.json";
2
- import { Sha256 } from "@aws-crypto/sha256-browser";
3
2
  import { createDefaultUserAgentProvider } from "@aws-sdk/core/client";
4
3
  import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
@@ -23,7 +22,6 @@ export const getRuntimeConfig = (config) => {
23
22
  region: config?.region ?? invalidProvider("Region is missing"),
24
23
  requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
25
24
  retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
26
- sha256: config?.sha256 ?? Sha256,
27
25
  streamCollector: config?.streamCollector ?? streamCollector,
28
26
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
29
27
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
@@ -5,7 +5,7 @@ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credentia
5
5
  import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
6
6
  import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
7
7
  import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
8
- import { calculateBodyLength, Hash } from "@smithy/core/serde";
8
+ import { calculateBodyLength } from "@smithy/core/serde";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
10
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
11
  export const getRuntimeConfig = (config) => {
@@ -35,7 +35,6 @@ export const getRuntimeConfig = (config) => {
35
35
  ...NODE_RETRY_MODE_CONFIG_OPTIONS,
36
36
  default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
37
37
  }, config),
38
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
39
38
  streamCollector: config?.streamCollector ?? streamCollector,
40
39
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
41
40
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
@@ -1,4 +1,3 @@
1
- import { Sha256 } from "@aws-crypto/sha256-js";
2
1
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
3
2
  export const getRuntimeConfig = (config) => {
4
3
  const browserDefaults = getBrowserRuntimeConfig(config);
@@ -6,6 +5,5 @@ export const getRuntimeConfig = (config) => {
6
5
  ...browserDefaults,
7
6
  ...config,
8
7
  runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
8
  };
11
9
  };
@@ -1,5 +1,6 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsJson1_1Protocol } from "@aws-sdk/core/protocols";
3
+ import { Sha256 } from "@smithy/core/checksum";
3
4
  import { NoOpLogger } from "@smithy/core/client";
4
5
  import { parseUrl } from "@smithy/core/protocols";
5
6
  import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
@@ -31,6 +32,7 @@ export const getRuntimeConfig = (config) => {
31
32
  serviceTarget: "Route53AutoNaming_v20170314",
32
33
  },
33
34
  serviceId: config?.serviceId ?? "ServiceDiscovery",
35
+ sha256: config?.sha256 ?? Sha256,
34
36
  urlParser: config?.urlParser ?? parseUrl,
35
37
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
36
38
  utf8Encoder: config?.utf8Encoder ?? toUtf8,
@@ -0,0 +1,18 @@
1
+ import type { EndpointParameterInstructions } from "@smithy/types";
2
+ import type { ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "./ServiceDiscoveryClient";
3
+ /**
4
+ * @internal
5
+ */
6
+ export declare const command: <I extends ServiceInputTypes, O extends ServiceOutputTypes>(added: EndpointParameterInstructions, plugins: (CommandCtor: any, clientStack: any, config: any, options: any) => import("@smithy/types").Pluggable<any, any>[], op: string, $: import("@smithy/types").StaticOperationSchema, smithyContext?: Record<string, unknown>) => {
7
+ new (input: I): import("@smithy/core/client").CommandImpl<I, O, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
8
+ new (...[input]: import("@smithy/types").OptionalParameter<I>): import("@smithy/core/client").CommandImpl<I, O, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
9
+ getEndpointParameterInstructions(): EndpointParameterInstructions;
10
+ };
11
+ /**
12
+ * @internal
13
+ */
14
+ export declare const _ep0: EndpointParameterInstructions;
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const _mw0: (Command: any, cs: any, config: any, o: any) => never[];
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateHttpNamespaceRequest, CreateHttpNamespaceResponse } from "../models/models_0";
4
- import type { ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceDiscoveryClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateHttpNamespaceCommandInput extends CreateHttpNamespaceRequ
22
19
  export interface CreateHttpNamespaceCommandOutput extends CreateHttpNamespaceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateHttpNamespaceCommand_base: {
25
- new (input: CreateHttpNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreateHttpNamespaceCommandInput, CreateHttpNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateHttpNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreateHttpNamespaceCommandInput, CreateHttpNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateHttpNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreateHttpNamespaceCommandInput, CreateHttpNamespaceCommandOutput, import("..").ServiceDiscoveryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateHttpNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreateHttpNamespaceCommandInput, CreateHttpNamespaceCommandOutput, import("..").ServiceDiscoveryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates an HTTP namespace. Service instances registered using an HTTP namespace can be
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreatePrivateDnsNamespaceRequest, CreatePrivateDnsNamespaceResponse } from "../models/models_0";
4
- import type { ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceDiscoveryClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreatePrivateDnsNamespaceCommandInput extends CreatePrivateDnsN
22
19
  export interface CreatePrivateDnsNamespaceCommandOutput extends CreatePrivateDnsNamespaceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreatePrivateDnsNamespaceCommand_base: {
25
- new (input: CreatePrivateDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreatePrivateDnsNamespaceCommandInput, CreatePrivateDnsNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreatePrivateDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreatePrivateDnsNamespaceCommandInput, CreatePrivateDnsNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreatePrivateDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreatePrivateDnsNamespaceCommandInput, CreatePrivateDnsNamespaceCommandOutput, import("..").ServiceDiscoveryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreatePrivateDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreatePrivateDnsNamespaceCommandInput, CreatePrivateDnsNamespaceCommandOutput, import("..").ServiceDiscoveryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a private namespace based on DNS, which is visible only inside a specified Amazon
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreatePublicDnsNamespaceRequest, CreatePublicDnsNamespaceResponse } from "../models/models_0";
4
- import type { ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceDiscoveryClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreatePublicDnsNamespaceCommandInput extends CreatePublicDnsNam
22
19
  export interface CreatePublicDnsNamespaceCommandOutput extends CreatePublicDnsNamespaceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreatePublicDnsNamespaceCommand_base: {
25
- new (input: CreatePublicDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreatePublicDnsNamespaceCommandInput, CreatePublicDnsNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreatePublicDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreatePublicDnsNamespaceCommandInput, CreatePublicDnsNamespaceCommandOutput, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreatePublicDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreatePublicDnsNamespaceCommandInput, CreatePublicDnsNamespaceCommandOutput, import("..").ServiceDiscoveryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreatePublicDnsNamespaceCommandInput): import("@smithy/core/client").CommandImpl<CreatePublicDnsNamespaceCommandInput, CreatePublicDnsNamespaceCommandOutput, import("..").ServiceDiscoveryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a public namespace based on DNS, which is visible on the internet. The namespace
@@ -1,12 +1,9 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
1
  import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
2
  import type { CreateServiceRequest, CreateServiceResponse } from "../models/models_0";
4
- import type { ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceDiscoveryClient";
5
3
  /**
6
4
  * @public
7
5
  */
8
6
  export type { __MetadataBearer };
9
- export { $Command };
10
7
  /**
11
8
  * @public
12
9
  *
@@ -22,11 +19,9 @@ export interface CreateServiceCommandInput extends CreateServiceRequest {
22
19
  export interface CreateServiceCommandOutput extends CreateServiceResponse, __MetadataBearer {
23
20
  }
24
21
  declare const CreateServiceCommand_base: {
25
- new (input: CreateServiceCommandInput): import("@smithy/core/client").CommandImpl<CreateServiceCommandInput, CreateServiceCommandOutput, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: CreateServiceCommandInput): import("@smithy/core/client").CommandImpl<CreateServiceCommandInput, CreateServiceCommandOutput, ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): {
28
- [x: string]: unknown;
29
- };
22
+ new (input: CreateServiceCommandInput): import("@smithy/core/client").CommandImpl<CreateServiceCommandInput, CreateServiceCommandOutput, import("..").ServiceDiscoveryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
23
+ new (input: CreateServiceCommandInput): import("@smithy/core/client").CommandImpl<CreateServiceCommandInput, CreateServiceCommandOutput, import("..").ServiceDiscoveryClientResolvedConfig, import("..").ServiceInputTypes, import("..").ServiceOutputTypes>;
24
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
30
25
  };
31
26
  /**
32
27
  * <p>Creates a service. This action defines the configuration for the following entities:</p>