@aws-sdk/client-servicediscovery 3.36.0 → 3.36.1

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 (74) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/ServiceDiscovery.js +0 -8
  3. package/dist-cjs/ServiceDiscoveryClient.js +0 -13
  4. package/dist-cjs/commands/CreateHttpNamespaceCommand.js +0 -28
  5. package/dist-cjs/commands/CreatePrivateDnsNamespaceCommand.js +0 -30
  6. package/dist-cjs/commands/CreatePublicDnsNamespaceCommand.js +0 -29
  7. package/dist-cjs/commands/CreateServiceCommand.js +0 -64
  8. package/dist-cjs/commands/DeleteNamespaceCommand.js +0 -25
  9. package/dist-cjs/commands/DeleteServiceCommand.js +0 -25
  10. package/dist-cjs/commands/DeregisterInstanceCommand.js +0 -25
  11. package/dist-cjs/commands/DiscoverInstancesCommand.js +0 -26
  12. package/dist-cjs/commands/GetInstanceCommand.js +0 -24
  13. package/dist-cjs/commands/GetInstancesHealthStatusCommand.js +0 -29
  14. package/dist-cjs/commands/GetNamespaceCommand.js +0 -24
  15. package/dist-cjs/commands/GetOperationCommand.js +0 -28
  16. package/dist-cjs/commands/GetServiceCommand.js +0 -24
  17. package/dist-cjs/commands/ListInstancesCommand.js +0 -24
  18. package/dist-cjs/commands/ListNamespacesCommand.js +0 -24
  19. package/dist-cjs/commands/ListOperationsCommand.js +0 -24
  20. package/dist-cjs/commands/ListServicesCommand.js +0 -24
  21. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -24
  22. package/dist-cjs/commands/RegisterInstanceCommand.js +0 -63
  23. package/dist-cjs/commands/TagResourceCommand.js +0 -24
  24. package/dist-cjs/commands/UntagResourceCommand.js +0 -24
  25. package/dist-cjs/commands/UpdateHttpNamespaceCommand.js +0 -25
  26. package/dist-cjs/commands/UpdateInstanceCustomHealthStatusCommand.js +0 -28
  27. package/dist-cjs/commands/UpdatePrivateDnsNamespaceCommand.js +0 -25
  28. package/dist-cjs/commands/UpdatePublicDnsNamespaceCommand.js +0 -25
  29. package/dist-cjs/commands/UpdateServiceCommand.js +0 -48
  30. package/dist-cjs/models/models_0.js +0 -300
  31. package/dist-cjs/pagination/GetInstancesHealthStatusPaginator.js +0 -10
  32. package/dist-cjs/pagination/ListInstancesPaginator.js +0 -10
  33. package/dist-cjs/pagination/ListNamespacesPaginator.js +0 -10
  34. package/dist-cjs/pagination/ListOperationsPaginator.js +0 -10
  35. package/dist-cjs/pagination/ListServicesPaginator.js +0 -10
  36. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  37. package/dist-cjs/runtimeConfig.browser.js +1 -5
  38. package/dist-cjs/runtimeConfig.js +1 -5
  39. package/dist-cjs/runtimeConfig.native.js +0 -3
  40. package/dist-cjs/runtimeConfig.shared.js +0 -3
  41. package/dist-types/ts3.4/ServiceDiscovery.d.ts +27 -225
  42. package/dist-types/ts3.4/ServiceDiscoveryClient.d.ts +24 -94
  43. package/dist-types/ts3.4/commands/CreateHttpNamespaceCommand.d.ts +2 -24
  44. package/dist-types/ts3.4/commands/CreatePrivateDnsNamespaceCommand.d.ts +2 -26
  45. package/dist-types/ts3.4/commands/CreatePublicDnsNamespaceCommand.d.ts +2 -25
  46. package/dist-types/ts3.4/commands/CreateServiceCommand.d.ts +2 -60
  47. package/dist-types/ts3.4/commands/DeleteNamespaceCommand.d.ts +2 -21
  48. package/dist-types/ts3.4/commands/DeleteServiceCommand.d.ts +2 -21
  49. package/dist-types/ts3.4/commands/DeregisterInstanceCommand.d.ts +2 -21
  50. package/dist-types/ts3.4/commands/DiscoverInstancesCommand.d.ts +2 -22
  51. package/dist-types/ts3.4/commands/GetInstanceCommand.d.ts +2 -20
  52. package/dist-types/ts3.4/commands/GetInstancesHealthStatusCommand.d.ts +2 -25
  53. package/dist-types/ts3.4/commands/GetNamespaceCommand.d.ts +2 -20
  54. package/dist-types/ts3.4/commands/GetOperationCommand.d.ts +2 -24
  55. package/dist-types/ts3.4/commands/GetServiceCommand.d.ts +2 -20
  56. package/dist-types/ts3.4/commands/ListInstancesCommand.d.ts +2 -20
  57. package/dist-types/ts3.4/commands/ListNamespacesCommand.d.ts +2 -20
  58. package/dist-types/ts3.4/commands/ListOperationsCommand.d.ts +2 -20
  59. package/dist-types/ts3.4/commands/ListServicesCommand.d.ts +2 -20
  60. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -20
  61. package/dist-types/ts3.4/commands/RegisterInstanceCommand.d.ts +2 -59
  62. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -20
  63. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -20
  64. package/dist-types/ts3.4/commands/UpdateHttpNamespaceCommand.d.ts +2 -21
  65. package/dist-types/ts3.4/commands/UpdateInstanceCustomHealthStatusCommand.d.ts +2 -24
  66. package/dist-types/ts3.4/commands/UpdatePrivateDnsNamespaceCommand.d.ts +2 -21
  67. package/dist-types/ts3.4/commands/UpdatePublicDnsNamespaceCommand.d.ts +2 -21
  68. package/dist-types/ts3.4/commands/UpdateServiceCommand.d.ts +2 -44
  69. package/dist-types/ts3.4/models/models_0.d.ts +363 -2229
  70. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  71. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  72. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  73. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  74. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.36.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.36.0...v3.36.1) (2021-10-12)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **clients:** emitDeclarationOnly in tsconfig.types.json ([#2893](https://github.com/aws/aws-sdk-js-v3/issues/2893)) ([6dc3d56](https://github.com/aws/aws-sdk-js-v3/commit/6dc3d56c20809c90cbdc4dd48627eeebc64af99d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.36.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.35.0...v3.36.0) (2021-10-08)
7
18
 
8
19
 
@@ -28,14 +28,6 @@ const UpdatePrivateDnsNamespaceCommand_1 = require("./commands/UpdatePrivateDnsN
28
28
  const UpdatePublicDnsNamespaceCommand_1 = require("./commands/UpdatePublicDnsNamespaceCommand");
29
29
  const UpdateServiceCommand_1 = require("./commands/UpdateServiceCommand");
30
30
  const ServiceDiscoveryClient_1 = require("./ServiceDiscoveryClient");
31
- /**
32
- * <fullname>Cloud Map</fullname>
33
- * <p>With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your microservice
34
- * applications run in. When an instance becomes available, you can call the Cloud Map API to register the instance
35
- * with Cloud Map. For public or private DNS namespaces, Cloud Map automatically creates DNS records and an optional
36
- * health check. Clients that submit public or private DNS queries, or HTTP requests, for the service receive an answer
37
- * that contains up to eight healthy records. </p>
38
- */
39
31
  class ServiceDiscovery extends ServiceDiscoveryClient_1.ServiceDiscoveryClient {
40
32
  createHttpNamespace(args, optionsOrCb, cb) {
41
33
  const command = new CreateHttpNamespaceCommand_1.CreateHttpNamespaceCommand(args);
@@ -10,14 +10,6 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
10
10
  const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent");
11
11
  const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
- /**
14
- * <fullname>Cloud Map</fullname>
15
- * <p>With Cloud Map, you can configure public DNS, private DNS, or HTTP namespaces that your microservice
16
- * applications run in. When an instance becomes available, you can call the Cloud Map API to register the instance
17
- * with Cloud Map. For public or private DNS namespaces, Cloud Map automatically creates DNS records and an optional
18
- * health check. Clients that submit public or private DNS queries, or HTTP requests, for the service receive an answer
19
- * that contains up to eight healthy records. </p>
20
- */
21
13
  class ServiceDiscoveryClient extends smithy_client_1.Client {
22
14
  constructor(configuration) {
23
15
  const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
@@ -36,11 +28,6 @@ class ServiceDiscoveryClient extends smithy_client_1.Client {
36
28
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
37
29
  this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
38
30
  }
39
- /**
40
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
41
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
42
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
43
- */
44
31
  destroy() {
45
32
  super.destroy();
46
33
  }
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates an HTTP namespace. Service instances registered using an HTTP namespace can be discovered using a
10
- * <code>DiscoverInstances</code> request but can't be discovered using DNS.</p>
11
- * <p>For the current quota on the number of namespaces that you can create using the same account,
12
- * see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
13
- * <i>Cloud Map Developer Guide</i>.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { ServiceDiscoveryClient, CreateHttpNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
18
- * // const { ServiceDiscoveryClient, CreateHttpNamespaceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
19
- * const client = new ServiceDiscoveryClient(config);
20
- * const command = new CreateHttpNamespaceCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link CreateHttpNamespaceCommandInput} for command's `input` shape.
25
- * @see {@link CreateHttpNamespaceCommandOutput} for command's `response` shape.
26
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class CreateHttpNamespaceCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,41 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates a private namespace based on DNS, which is visible only inside a specified Amazon VPC. The namespace
10
- * defines your service naming scheme. For example, if you name your namespace <code>example.com</code> and name your
11
- * service <code>backend</code>, the resulting DNS name for the service is <code>backend.example.com</code>. Service
12
- * instances that are registered using a private DNS namespace can be discovered using either a
13
- * <code>DiscoverInstances</code> request or using DNS. For the current quota on the number of namespaces that you can
14
- * create using the same account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map quotas</a> in the
15
- * <i>Cloud Map Developer Guide</i>.</p>
16
- * @example
17
- * Use a bare-bones client and the command you need to make an API call.
18
- * ```javascript
19
- * import { ServiceDiscoveryClient, CreatePrivateDnsNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
20
- * // const { ServiceDiscoveryClient, CreatePrivateDnsNamespaceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
21
- * const client = new ServiceDiscoveryClient(config);
22
- * const command = new CreatePrivateDnsNamespaceCommand(input);
23
- * const response = await client.send(command);
24
- * ```
25
- *
26
- * @see {@link CreatePrivateDnsNamespaceCommandInput} for command's `input` shape.
27
- * @see {@link CreatePrivateDnsNamespaceCommandOutput} for command's `response` shape.
28
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
29
- *
30
- */
31
8
  class CreatePrivateDnsNamespaceCommand extends smithy_client_1.Command {
32
- // Start section: command_properties
33
- // End section: command_properties
34
9
  constructor(input) {
35
- // Start section: command_constructor
36
10
  super();
37
11
  this.input = input;
38
- // End section: command_constructor
39
12
  }
40
- /**
41
- * @internal
42
- */
43
13
  resolveMiddleware(clientStack, configuration, options) {
44
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
45
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates a public namespace based on DNS, which is visible on the internet. The namespace defines your service
10
- * naming scheme. For example, if you name your namespace <code>example.com</code> and name your service
11
- * <code>backend</code>, the resulting DNS name for the service is <code>backend.example.com</code>. You can discover
12
- * instances that were registered with a public DNS namespace by using either a <code>DiscoverInstances</code> request
13
- * or using DNS. For the current quota on the number of namespaces that you can create using the same account, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map
14
- * quotas</a> in the <i>Cloud Map Developer Guide</i>.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { ServiceDiscoveryClient, CreatePublicDnsNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
19
- * // const { ServiceDiscoveryClient, CreatePublicDnsNamespaceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
20
- * const client = new ServiceDiscoveryClient(config);
21
- * const command = new CreatePublicDnsNamespaceCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link CreatePublicDnsNamespaceCommandInput} for command's `input` shape.
26
- * @see {@link CreatePublicDnsNamespaceCommandOutput} for command's `response` shape.
27
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class CreatePublicDnsNamespaceCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,75 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Creates a service. This action defines the configuration for the following entities:</p>
10
- * <ul>
11
- * <li>
12
- * <p>For public and private DNS namespaces, one of the following combinations of DNS records in Amazon Route 53:</p>
13
- * <ul>
14
- * <li>
15
- * <p>
16
- * <code>A</code>
17
- * </p>
18
- * </li>
19
- * <li>
20
- * <p>
21
- * <code>AAAA</code>
22
- * </p>
23
- * </li>
24
- * <li>
25
- * <p>
26
- * <code>A</code> and <code>AAAA</code>
27
- * </p>
28
- * </li>
29
- * <li>
30
- * <p>
31
- * <code>SRV</code>
32
- * </p>
33
- * </li>
34
- * <li>
35
- * <p>
36
- * <code>CNAME</code>
37
- * </p>
38
- * </li>
39
- * </ul>
40
- * </li>
41
- * <li>
42
- * <p>Optionally, a health check</p>
43
- * </li>
44
- * </ul>
45
- * <p>After you create the service, you can submit a <a href="https://docs.aws.amazon.com/cloud-map/latest/api/API_RegisterInstance.html">RegisterInstance</a> request, and Cloud Map uses the
46
- * values in the configuration to create the specified entities.</p>
47
- * <p>For the current quota on the number of instances that you can register using the same namespace and using the
48
- * same service, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/cloud-map-limits.html">Cloud Map
49
- * quotas</a> in the <i>Cloud Map Developer Guide</i>.</p>
50
- * @example
51
- * Use a bare-bones client and the command you need to make an API call.
52
- * ```javascript
53
- * import { ServiceDiscoveryClient, CreateServiceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
54
- * // const { ServiceDiscoveryClient, CreateServiceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
55
- * const client = new ServiceDiscoveryClient(config);
56
- * const command = new CreateServiceCommand(input);
57
- * const response = await client.send(command);
58
- * ```
59
- *
60
- * @see {@link CreateServiceCommandInput} for command's `input` shape.
61
- * @see {@link CreateServiceCommandOutput} for command's `response` shape.
62
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
63
- *
64
- */
65
8
  class CreateServiceCommand extends smithy_client_1.Command {
66
- // Start section: command_properties
67
- // End section: command_properties
68
9
  constructor(input) {
69
- // Start section: command_constructor
70
10
  super();
71
11
  this.input = input;
72
- // End section: command_constructor
73
12
  }
74
- /**
75
- * @internal
76
- */
77
13
  resolveMiddleware(clientStack, configuration, options) {
78
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
79
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Deletes a namespace from the current account. If the namespace still contains one or more services, the request
10
- * fails.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ServiceDiscoveryClient, DeleteNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
15
- * // const { ServiceDiscoveryClient, DeleteNamespaceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
16
- * const client = new ServiceDiscoveryClient(config);
17
- * const command = new DeleteNamespaceCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DeleteNamespaceCommandInput} for command's `input` shape.
22
- * @see {@link DeleteNamespaceCommandOutput} for command's `response` shape.
23
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DeleteNamespaceCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Deletes a specified service. If the service still contains one or more registered instances, the request
10
- * fails.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ServiceDiscoveryClient, DeleteServiceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
15
- * // const { ServiceDiscoveryClient, DeleteServiceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
16
- * const client = new ServiceDiscoveryClient(config);
17
- * const command = new DeleteServiceCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DeleteServiceCommandInput} for command's `input` shape.
22
- * @see {@link DeleteServiceCommandOutput} for command's `response` shape.
23
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DeleteServiceCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Deletes the Amazon Route 53 DNS records and health check, if any, that Cloud Map created for the specified
10
- * instance.</p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { ServiceDiscoveryClient, DeregisterInstanceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
15
- * // const { ServiceDiscoveryClient, DeregisterInstanceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
16
- * const client = new ServiceDiscoveryClient(config);
17
- * const command = new DeregisterInstanceCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link DeregisterInstanceCommandInput} for command's `input` shape.
22
- * @see {@link DeregisterInstanceCommandOutput} for command's `response` shape.
23
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class DeregisterInstanceCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Discovers registered instances for a specified namespace and service. You can use <code>DiscoverInstances</code>
10
- * to discover instances for any type of namespace. For public and private DNS namespaces, you can also use DNS queries
11
- * to discover instances.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { ServiceDiscoveryClient, DiscoverInstancesCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
16
- * // const { ServiceDiscoveryClient, DiscoverInstancesCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
17
- * const client = new ServiceDiscoveryClient(config);
18
- * const command = new DiscoverInstancesCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link DiscoverInstancesCommandInput} for command's `input` shape.
23
- * @see {@link DiscoverInstancesCommandOutput} for command's `response` shape.
24
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class DiscoverInstancesCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets information about a specified instance.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { ServiceDiscoveryClient, GetInstanceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
14
- * // const { ServiceDiscoveryClient, GetInstanceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
15
- * const client = new ServiceDiscoveryClient(config);
16
- * const command = new GetInstanceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetInstanceCommandInput} for command's `input` shape.
21
- * @see {@link GetInstanceCommandOutput} for command's `response` shape.
22
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetInstanceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,40 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the current health status (<code>Healthy</code>, <code>Unhealthy</code>, or <code>Unknown</code>) of one or
10
- * more instances that are associated with a specified service.</p>
11
- * <note>
12
- * <p>There's a brief delay between when you register an instance and when the health status for the instance is
13
- * available. </p>
14
- * </note>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { ServiceDiscoveryClient, GetInstancesHealthStatusCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
19
- * // const { ServiceDiscoveryClient, GetInstancesHealthStatusCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
20
- * const client = new ServiceDiscoveryClient(config);
21
- * const command = new GetInstancesHealthStatusCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link GetInstancesHealthStatusCommandInput} for command's `input` shape.
26
- * @see {@link GetInstancesHealthStatusCommandOutput} for command's `response` shape.
27
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
8
  class GetInstancesHealthStatusCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
9
  constructor(input) {
34
- // Start section: command_constructor
35
10
  super();
36
11
  this.input = input;
37
- // End section: command_constructor
38
12
  }
39
- /**
40
- * @internal
41
- */
42
13
  resolveMiddleware(clientStack, configuration, options) {
43
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets information about a namespace.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { ServiceDiscoveryClient, GetNamespaceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
14
- * // const { ServiceDiscoveryClient, GetNamespaceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
15
- * const client = new ServiceDiscoveryClient(config);
16
- * const command = new GetNamespaceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetNamespaceCommandInput} for command's `input` shape.
21
- * @see {@link GetNamespaceCommandOutput} for command's `response` shape.
22
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetNamespaceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets information about any operation that returns an operation ID in the response, such as a
10
- * <code>CreateService</code> request.</p>
11
- * <note>
12
- * <p>To get a list of operations that match specified criteria, see <a href="https://docs.aws.amazon.com/cloud-map/latest/api/API_ListOperations.html">ListOperations</a>.</p>
13
- * </note>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { ServiceDiscoveryClient, GetOperationCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
18
- * // const { ServiceDiscoveryClient, GetOperationCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
19
- * const client = new ServiceDiscoveryClient(config);
20
- * const command = new GetOperationCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link GetOperationCommandInput} for command's `input` shape.
25
- * @see {@link GetOperationCommandOutput} for command's `response` shape.
26
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class GetOperationCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Gets the settings for a specified service.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { ServiceDiscoveryClient, GetServiceCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
14
- * // const { ServiceDiscoveryClient, GetServiceCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
15
- * const client = new ServiceDiscoveryClient(config);
16
- * const command = new GetServiceCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link GetServiceCommandInput} for command's `input` shape.
21
- * @see {@link GetServiceCommandOutput} for command's `response` shape.
22
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class GetServiceCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Lists summary information about the instances that you registered by using a specified service.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { ServiceDiscoveryClient, ListInstancesCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
14
- * // const { ServiceDiscoveryClient, ListInstancesCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
15
- * const client = new ServiceDiscoveryClient(config);
16
- * const command = new ListInstancesCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListInstancesCommandInput} for command's `input` shape.
21
- * @see {@link ListInstancesCommandOutput} for command's `response` shape.
22
- * @see {@link ServiceDiscoveryClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListInstancesCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);