@aws-sdk/client-servicediscovery 3.413.0 → 3.417.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.
- package/README.md +8 -0
- package/dist-cjs/ServiceDiscovery.js +2 -0
- package/dist-cjs/commands/DiscoverInstancesRevisionCommand.js +46 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +58 -2
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/ServiceDiscovery.js +2 -0
- package/dist-es/commands/DiscoverInstancesRevisionCommand.js +42 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +54 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/ServiceDiscovery.d.ts +7 -0
- package/dist-types/ServiceDiscoveryClient.d.ts +3 -2
- package/dist-types/commands/DiscoverInstancesCommand.d.ts +5 -2
- package/dist-types/commands/DiscoverInstancesRevisionCommand.d.ts +90 -0
- package/dist-types/commands/GetOperationCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +57 -18
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/ServiceDiscovery.d.ts +17 -0
- package/dist-types/ts3.4/ServiceDiscoveryClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DiscoverInstancesRevisionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +8 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -273,6 +273,14 @@ DiscoverInstances
|
|
|
273
273
|
|
|
274
274
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/classes/discoverinstancescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/interfaces/discoverinstancescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/interfaces/discoverinstancescommandoutput.html)
|
|
275
275
|
|
|
276
|
+
</details>
|
|
277
|
+
<details>
|
|
278
|
+
<summary>
|
|
279
|
+
DiscoverInstancesRevision
|
|
280
|
+
</summary>
|
|
281
|
+
|
|
282
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/classes/discoverinstancesrevisioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/interfaces/discoverinstancesrevisioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-servicediscovery/interfaces/discoverinstancesrevisioncommandoutput.html)
|
|
283
|
+
|
|
276
284
|
</details>
|
|
277
285
|
<details>
|
|
278
286
|
<summary>
|
|
@@ -10,6 +10,7 @@ const DeleteNamespaceCommand_1 = require("./commands/DeleteNamespaceCommand");
|
|
|
10
10
|
const DeleteServiceCommand_1 = require("./commands/DeleteServiceCommand");
|
|
11
11
|
const DeregisterInstanceCommand_1 = require("./commands/DeregisterInstanceCommand");
|
|
12
12
|
const DiscoverInstancesCommand_1 = require("./commands/DiscoverInstancesCommand");
|
|
13
|
+
const DiscoverInstancesRevisionCommand_1 = require("./commands/DiscoverInstancesRevisionCommand");
|
|
13
14
|
const GetInstanceCommand_1 = require("./commands/GetInstanceCommand");
|
|
14
15
|
const GetInstancesHealthStatusCommand_1 = require("./commands/GetInstancesHealthStatusCommand");
|
|
15
16
|
const GetNamespaceCommand_1 = require("./commands/GetNamespaceCommand");
|
|
@@ -38,6 +39,7 @@ const commands = {
|
|
|
38
39
|
DeleteServiceCommand: DeleteServiceCommand_1.DeleteServiceCommand,
|
|
39
40
|
DeregisterInstanceCommand: DeregisterInstanceCommand_1.DeregisterInstanceCommand,
|
|
40
41
|
DiscoverInstancesCommand: DiscoverInstancesCommand_1.DiscoverInstancesCommand,
|
|
42
|
+
DiscoverInstancesRevisionCommand: DiscoverInstancesRevisionCommand_1.DiscoverInstancesRevisionCommand,
|
|
41
43
|
GetInstanceCommand: GetInstanceCommand_1.GetInstanceCommand,
|
|
42
44
|
GetInstancesHealthStatusCommand: GetInstancesHealthStatusCommand_1.GetInstancesHealthStatusCommand,
|
|
43
45
|
GetNamespaceCommand: GetNamespaceCommand_1.GetNamespaceCommand,
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DiscoverInstancesRevisionCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
9
|
+
class DiscoverInstancesRevisionCommand extends smithy_client_1.Command {
|
|
10
|
+
static getEndpointParameterInstructions() {
|
|
11
|
+
return {
|
|
12
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
13
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
14
|
+
Region: { type: "builtInParams", name: "region" },
|
|
15
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
constructor(input) {
|
|
19
|
+
super();
|
|
20
|
+
this.input = input;
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DiscoverInstancesRevisionCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "ServiceDiscoveryClient";
|
|
28
|
+
const commandName = "DiscoverInstancesRevisionCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: (_) => _,
|
|
34
|
+
outputFilterSensitiveLog: (_) => _,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_json1_1_1.se_DiscoverInstancesRevisionCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_json1_1_1.de_DiscoverInstancesRevisionCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.DiscoverInstancesRevisionCommand = DiscoverInstancesRevisionCommand;
|
|
@@ -9,6 +9,7 @@ tslib_1.__exportStar(require("./DeleteNamespaceCommand"), exports);
|
|
|
9
9
|
tslib_1.__exportStar(require("./DeleteServiceCommand"), exports);
|
|
10
10
|
tslib_1.__exportStar(require("./DeregisterInstanceCommand"), exports);
|
|
11
11
|
tslib_1.__exportStar(require("./DiscoverInstancesCommand"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./DiscoverInstancesRevisionCommand"), exports);
|
|
12
13
|
tslib_1.__exportStar(require("./GetInstanceCommand"), exports);
|
|
13
14
|
tslib_1.__exportStar(require("./GetInstancesHealthStatusCommand"), exports);
|
|
14
15
|
tslib_1.__exportStar(require("./GetNamespaceCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateServiceCommand = exports.de_UpdatePublicDnsNamespaceCommand = void 0;
|
|
3
|
+
exports.de_UpdateHttpNamespaceCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_RegisterInstanceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListServicesCommand = exports.de_ListOperationsCommand = exports.de_ListNamespacesCommand = exports.de_ListInstancesCommand = exports.de_GetServiceCommand = exports.de_GetOperationCommand = exports.de_GetNamespaceCommand = exports.de_GetInstancesHealthStatusCommand = exports.de_GetInstanceCommand = exports.de_DiscoverInstancesRevisionCommand = exports.de_DiscoverInstancesCommand = exports.de_DeregisterInstanceCommand = exports.de_DeleteServiceCommand = exports.de_DeleteNamespaceCommand = exports.de_CreateServiceCommand = exports.de_CreatePublicDnsNamespaceCommand = exports.de_CreatePrivateDnsNamespaceCommand = exports.de_CreateHttpNamespaceCommand = exports.se_UpdateServiceCommand = exports.se_UpdatePublicDnsNamespaceCommand = exports.se_UpdatePrivateDnsNamespaceCommand = exports.se_UpdateInstanceCustomHealthStatusCommand = exports.se_UpdateHttpNamespaceCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_RegisterInstanceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListServicesCommand = exports.se_ListOperationsCommand = exports.se_ListNamespacesCommand = exports.se_ListInstancesCommand = exports.se_GetServiceCommand = exports.se_GetOperationCommand = exports.se_GetNamespaceCommand = exports.se_GetInstancesHealthStatusCommand = exports.se_GetInstanceCommand = exports.se_DiscoverInstancesRevisionCommand = exports.se_DiscoverInstancesCommand = exports.se_DeregisterInstanceCommand = exports.se_DeleteServiceCommand = exports.se_DeleteNamespaceCommand = exports.se_CreateServiceCommand = exports.se_CreatePublicDnsNamespaceCommand = exports.se_CreatePrivateDnsNamespaceCommand = exports.se_CreateHttpNamespaceCommand = void 0;
|
|
4
|
+
exports.de_UpdateServiceCommand = exports.de_UpdatePublicDnsNamespaceCommand = exports.de_UpdatePrivateDnsNamespaceCommand = exports.de_UpdateInstanceCustomHealthStatusCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -70,6 +70,20 @@ const se_DiscoverInstancesCommand = async (input, context) => {
|
|
|
70
70
|
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
71
71
|
};
|
|
72
72
|
exports.se_DiscoverInstancesCommand = se_DiscoverInstancesCommand;
|
|
73
|
+
const se_DiscoverInstancesRevisionCommand = async (input, context) => {
|
|
74
|
+
const headers = sharedHeaders("DiscoverInstancesRevision");
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
78
|
+
if (context.disableHostPrefix !== true) {
|
|
79
|
+
resolvedHostname = "data-" + resolvedHostname;
|
|
80
|
+
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
81
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
85
|
+
};
|
|
86
|
+
exports.se_DiscoverInstancesRevisionCommand = se_DiscoverInstancesRevisionCommand;
|
|
73
87
|
const se_GetInstanceCommand = async (input, context) => {
|
|
74
88
|
const headers = sharedHeaders("GetInstance");
|
|
75
89
|
let body;
|
|
@@ -544,6 +558,48 @@ const de_DiscoverInstancesCommandError = async (output, context) => {
|
|
|
544
558
|
});
|
|
545
559
|
}
|
|
546
560
|
};
|
|
561
|
+
const de_DiscoverInstancesRevisionCommand = async (output, context) => {
|
|
562
|
+
if (output.statusCode >= 300) {
|
|
563
|
+
return de_DiscoverInstancesRevisionCommandError(output, context);
|
|
564
|
+
}
|
|
565
|
+
const data = await parseBody(output.body, context);
|
|
566
|
+
let contents = {};
|
|
567
|
+
contents = (0, smithy_client_1._json)(data);
|
|
568
|
+
const response = {
|
|
569
|
+
$metadata: deserializeMetadata(output),
|
|
570
|
+
...contents,
|
|
571
|
+
};
|
|
572
|
+
return response;
|
|
573
|
+
};
|
|
574
|
+
exports.de_DiscoverInstancesRevisionCommand = de_DiscoverInstancesRevisionCommand;
|
|
575
|
+
const de_DiscoverInstancesRevisionCommandError = async (output, context) => {
|
|
576
|
+
const parsedOutput = {
|
|
577
|
+
...output,
|
|
578
|
+
body: await parseErrorBody(output.body, context),
|
|
579
|
+
};
|
|
580
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
581
|
+
switch (errorCode) {
|
|
582
|
+
case "InvalidInput":
|
|
583
|
+
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
584
|
+
throw await de_InvalidInputRes(parsedOutput, context);
|
|
585
|
+
case "NamespaceNotFound":
|
|
586
|
+
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
587
|
+
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
588
|
+
case "RequestLimitExceeded":
|
|
589
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
590
|
+
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
591
|
+
case "ServiceNotFound":
|
|
592
|
+
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
593
|
+
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
594
|
+
default:
|
|
595
|
+
const parsedBody = parsedOutput.body;
|
|
596
|
+
return throwDefaultError({
|
|
597
|
+
output,
|
|
598
|
+
parsedBody,
|
|
599
|
+
errorCode,
|
|
600
|
+
});
|
|
601
|
+
}
|
|
602
|
+
};
|
|
547
603
|
const de_GetInstanceCommand = async (output, context) => {
|
|
548
604
|
if (output.statusCode >= 300) {
|
|
549
605
|
return de_GetInstanceCommandError(output, context);
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const region_config_resolver_1 = require("@aws-sdk/region-config-resolver");
|
|
4
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
7
|
const asPartial = (t) => t;
|
|
7
8
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
8
9
|
const extensionConfiguration = {
|
|
10
|
+
...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
9
11
|
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
10
12
|
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
11
13
|
};
|
|
12
14
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
13
15
|
return {
|
|
14
16
|
...runtimeConfig,
|
|
17
|
+
...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
15
18
|
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
16
19
|
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
17
20
|
};
|
|
@@ -7,6 +7,7 @@ import { DeleteNamespaceCommand, } from "./commands/DeleteNamespaceCommand";
|
|
|
7
7
|
import { DeleteServiceCommand, } from "./commands/DeleteServiceCommand";
|
|
8
8
|
import { DeregisterInstanceCommand, } from "./commands/DeregisterInstanceCommand";
|
|
9
9
|
import { DiscoverInstancesCommand, } from "./commands/DiscoverInstancesCommand";
|
|
10
|
+
import { DiscoverInstancesRevisionCommand, } from "./commands/DiscoverInstancesRevisionCommand";
|
|
10
11
|
import { GetInstanceCommand } from "./commands/GetInstanceCommand";
|
|
11
12
|
import { GetInstancesHealthStatusCommand, } from "./commands/GetInstancesHealthStatusCommand";
|
|
12
13
|
import { GetNamespaceCommand, } from "./commands/GetNamespaceCommand";
|
|
@@ -35,6 +36,7 @@ const commands = {
|
|
|
35
36
|
DeleteServiceCommand,
|
|
36
37
|
DeregisterInstanceCommand,
|
|
37
38
|
DiscoverInstancesCommand,
|
|
39
|
+
DiscoverInstancesRevisionCommand,
|
|
38
40
|
GetInstanceCommand,
|
|
39
41
|
GetInstancesHealthStatusCommand,
|
|
40
42
|
GetNamespaceCommand,
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { de_DiscoverInstancesRevisionCommand, se_DiscoverInstancesRevisionCommand } from "../protocols/Aws_json1_1";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class DiscoverInstancesRevisionCommand extends $Command {
|
|
7
|
+
static getEndpointParameterInstructions() {
|
|
8
|
+
return {
|
|
9
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
10
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
11
|
+
Region: { type: "builtInParams", name: "region" },
|
|
12
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
constructor(input) {
|
|
16
|
+
super();
|
|
17
|
+
this.input = input;
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DiscoverInstancesRevisionCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "ServiceDiscoveryClient";
|
|
25
|
+
const commandName = "DiscoverInstancesRevisionCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: (_) => _,
|
|
31
|
+
outputFilterSensitiveLog: (_) => _,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return se_DiscoverInstancesRevisionCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return de_DiscoverInstancesRevisionCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./DeleteNamespaceCommand";
|
|
|
6
6
|
export * from "./DeleteServiceCommand";
|
|
7
7
|
export * from "./DeregisterInstanceCommand";
|
|
8
8
|
export * from "./DiscoverInstancesCommand";
|
|
9
|
+
export * from "./DiscoverInstancesRevisionCommand";
|
|
9
10
|
export * from "./GetInstanceCommand";
|
|
10
11
|
export * from "./GetInstancesHealthStatusCommand";
|
|
11
12
|
export * from "./GetNamespaceCommand";
|
|
@@ -58,6 +58,19 @@ export const se_DiscoverInstancesCommand = async (input, context) => {
|
|
|
58
58
|
}
|
|
59
59
|
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
60
60
|
};
|
|
61
|
+
export const se_DiscoverInstancesRevisionCommand = async (input, context) => {
|
|
62
|
+
const headers = sharedHeaders("DiscoverInstancesRevision");
|
|
63
|
+
let body;
|
|
64
|
+
body = JSON.stringify(_json(input));
|
|
65
|
+
let { hostname: resolvedHostname } = await context.endpoint();
|
|
66
|
+
if (context.disableHostPrefix !== true) {
|
|
67
|
+
resolvedHostname = "data-" + resolvedHostname;
|
|
68
|
+
if (!__isValidHostname(resolvedHostname)) {
|
|
69
|
+
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
73
|
+
};
|
|
61
74
|
export const se_GetInstanceCommand = async (input, context) => {
|
|
62
75
|
const headers = sharedHeaders("GetInstance");
|
|
63
76
|
let body;
|
|
@@ -506,6 +519,47 @@ const de_DiscoverInstancesCommandError = async (output, context) => {
|
|
|
506
519
|
});
|
|
507
520
|
}
|
|
508
521
|
};
|
|
522
|
+
export const de_DiscoverInstancesRevisionCommand = async (output, context) => {
|
|
523
|
+
if (output.statusCode >= 300) {
|
|
524
|
+
return de_DiscoverInstancesRevisionCommandError(output, context);
|
|
525
|
+
}
|
|
526
|
+
const data = await parseBody(output.body, context);
|
|
527
|
+
let contents = {};
|
|
528
|
+
contents = _json(data);
|
|
529
|
+
const response = {
|
|
530
|
+
$metadata: deserializeMetadata(output),
|
|
531
|
+
...contents,
|
|
532
|
+
};
|
|
533
|
+
return response;
|
|
534
|
+
};
|
|
535
|
+
const de_DiscoverInstancesRevisionCommandError = async (output, context) => {
|
|
536
|
+
const parsedOutput = {
|
|
537
|
+
...output,
|
|
538
|
+
body: await parseErrorBody(output.body, context),
|
|
539
|
+
};
|
|
540
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
+
switch (errorCode) {
|
|
542
|
+
case "InvalidInput":
|
|
543
|
+
case "com.amazonaws.servicediscovery#InvalidInput":
|
|
544
|
+
throw await de_InvalidInputRes(parsedOutput, context);
|
|
545
|
+
case "NamespaceNotFound":
|
|
546
|
+
case "com.amazonaws.servicediscovery#NamespaceNotFound":
|
|
547
|
+
throw await de_NamespaceNotFoundRes(parsedOutput, context);
|
|
548
|
+
case "RequestLimitExceeded":
|
|
549
|
+
case "com.amazonaws.servicediscovery#RequestLimitExceeded":
|
|
550
|
+
throw await de_RequestLimitExceededRes(parsedOutput, context);
|
|
551
|
+
case "ServiceNotFound":
|
|
552
|
+
case "com.amazonaws.servicediscovery#ServiceNotFound":
|
|
553
|
+
throw await de_ServiceNotFoundRes(parsedOutput, context);
|
|
554
|
+
default:
|
|
555
|
+
const parsedBody = parsedOutput.body;
|
|
556
|
+
return throwDefaultError({
|
|
557
|
+
output,
|
|
558
|
+
parsedBody,
|
|
559
|
+
errorCode,
|
|
560
|
+
});
|
|
561
|
+
}
|
|
562
|
+
};
|
|
509
563
|
export const de_GetInstanceCommand = async (output, context) => {
|
|
510
564
|
if (output.statusCode >= 300) {
|
|
511
565
|
return de_GetInstanceCommandError(output, context);
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
1
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
2
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
3
4
|
const asPartial = (t) => t;
|
|
4
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
5
6
|
const extensionConfiguration = {
|
|
7
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
6
8
|
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
7
9
|
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
8
10
|
};
|
|
9
11
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
10
12
|
return {
|
|
11
13
|
...runtimeConfig,
|
|
14
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
12
15
|
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
13
16
|
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
14
17
|
};
|
|
@@ -7,6 +7,7 @@ import { DeleteNamespaceCommandInput, DeleteNamespaceCommandOutput } from "./com
|
|
|
7
7
|
import { DeleteServiceCommandInput, DeleteServiceCommandOutput } from "./commands/DeleteServiceCommand";
|
|
8
8
|
import { DeregisterInstanceCommandInput, DeregisterInstanceCommandOutput } from "./commands/DeregisterInstanceCommand";
|
|
9
9
|
import { DiscoverInstancesCommandInput, DiscoverInstancesCommandOutput } from "./commands/DiscoverInstancesCommand";
|
|
10
|
+
import { DiscoverInstancesRevisionCommandInput, DiscoverInstancesRevisionCommandOutput } from "./commands/DiscoverInstancesRevisionCommand";
|
|
10
11
|
import { GetInstanceCommandInput, GetInstanceCommandOutput } from "./commands/GetInstanceCommand";
|
|
11
12
|
import { GetInstancesHealthStatusCommandInput, GetInstancesHealthStatusCommandOutput } from "./commands/GetInstancesHealthStatusCommand";
|
|
12
13
|
import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/GetNamespaceCommand";
|
|
@@ -75,6 +76,12 @@ export interface ServiceDiscovery {
|
|
|
75
76
|
discoverInstances(args: DiscoverInstancesCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverInstancesCommandOutput>;
|
|
76
77
|
discoverInstances(args: DiscoverInstancesCommandInput, cb: (err: any, data?: DiscoverInstancesCommandOutput) => void): void;
|
|
77
78
|
discoverInstances(args: DiscoverInstancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DiscoverInstancesCommandOutput) => void): void;
|
|
79
|
+
/**
|
|
80
|
+
* @see {@link DiscoverInstancesRevisionCommand}
|
|
81
|
+
*/
|
|
82
|
+
discoverInstancesRevision(args: DiscoverInstancesRevisionCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverInstancesRevisionCommandOutput>;
|
|
83
|
+
discoverInstancesRevision(args: DiscoverInstancesRevisionCommandInput, cb: (err: any, data?: DiscoverInstancesRevisionCommandOutput) => void): void;
|
|
84
|
+
discoverInstancesRevision(args: DiscoverInstancesRevisionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DiscoverInstancesRevisionCommandOutput) => void): void;
|
|
78
85
|
/**
|
|
79
86
|
* @see {@link GetInstanceCommand}
|
|
80
87
|
*/
|
|
@@ -16,6 +16,7 @@ import { DeleteNamespaceCommandInput, DeleteNamespaceCommandOutput } from "./com
|
|
|
16
16
|
import { DeleteServiceCommandInput, DeleteServiceCommandOutput } from "./commands/DeleteServiceCommand";
|
|
17
17
|
import { DeregisterInstanceCommandInput, DeregisterInstanceCommandOutput } from "./commands/DeregisterInstanceCommand";
|
|
18
18
|
import { DiscoverInstancesCommandInput, DiscoverInstancesCommandOutput } from "./commands/DiscoverInstancesCommand";
|
|
19
|
+
import { DiscoverInstancesRevisionCommandInput, DiscoverInstancesRevisionCommandOutput } from "./commands/DiscoverInstancesRevisionCommand";
|
|
19
20
|
import { GetInstanceCommandInput, GetInstanceCommandOutput } from "./commands/GetInstanceCommand";
|
|
20
21
|
import { GetInstancesHealthStatusCommandInput, GetInstancesHealthStatusCommandOutput } from "./commands/GetInstancesHealthStatusCommand";
|
|
21
22
|
import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/GetNamespaceCommand";
|
|
@@ -40,11 +41,11 @@ export { __Client };
|
|
|
40
41
|
/**
|
|
41
42
|
* @public
|
|
42
43
|
*/
|
|
43
|
-
export type ServiceInputTypes = CreateHttpNamespaceCommandInput | CreatePrivateDnsNamespaceCommandInput | CreatePublicDnsNamespaceCommandInput | CreateServiceCommandInput | DeleteNamespaceCommandInput | DeleteServiceCommandInput | DeregisterInstanceCommandInput | DiscoverInstancesCommandInput | GetInstanceCommandInput | GetInstancesHealthStatusCommandInput | GetNamespaceCommandInput | GetOperationCommandInput | GetServiceCommandInput | ListInstancesCommandInput | ListNamespacesCommandInput | ListOperationsCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | RegisterInstanceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateHttpNamespaceCommandInput | UpdateInstanceCustomHealthStatusCommandInput | UpdatePrivateDnsNamespaceCommandInput | UpdatePublicDnsNamespaceCommandInput | UpdateServiceCommandInput;
|
|
44
|
+
export type ServiceInputTypes = CreateHttpNamespaceCommandInput | CreatePrivateDnsNamespaceCommandInput | CreatePublicDnsNamespaceCommandInput | CreateServiceCommandInput | DeleteNamespaceCommandInput | DeleteServiceCommandInput | DeregisterInstanceCommandInput | DiscoverInstancesCommandInput | DiscoverInstancesRevisionCommandInput | GetInstanceCommandInput | GetInstancesHealthStatusCommandInput | GetNamespaceCommandInput | GetOperationCommandInput | GetServiceCommandInput | ListInstancesCommandInput | ListNamespacesCommandInput | ListOperationsCommandInput | ListServicesCommandInput | ListTagsForResourceCommandInput | RegisterInstanceCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateHttpNamespaceCommandInput | UpdateInstanceCustomHealthStatusCommandInput | UpdatePrivateDnsNamespaceCommandInput | UpdatePublicDnsNamespaceCommandInput | UpdateServiceCommandInput;
|
|
44
45
|
/**
|
|
45
46
|
* @public
|
|
46
47
|
*/
|
|
47
|
-
export type ServiceOutputTypes = CreateHttpNamespaceCommandOutput | CreatePrivateDnsNamespaceCommandOutput | CreatePublicDnsNamespaceCommandOutput | CreateServiceCommandOutput | DeleteNamespaceCommandOutput | DeleteServiceCommandOutput | DeregisterInstanceCommandOutput | DiscoverInstancesCommandOutput | GetInstanceCommandOutput | GetInstancesHealthStatusCommandOutput | GetNamespaceCommandOutput | GetOperationCommandOutput | GetServiceCommandOutput | ListInstancesCommandOutput | ListNamespacesCommandOutput | ListOperationsCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | RegisterInstanceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateHttpNamespaceCommandOutput | UpdateInstanceCustomHealthStatusCommandOutput | UpdatePrivateDnsNamespaceCommandOutput | UpdatePublicDnsNamespaceCommandOutput | UpdateServiceCommandOutput;
|
|
48
|
+
export type ServiceOutputTypes = CreateHttpNamespaceCommandOutput | CreatePrivateDnsNamespaceCommandOutput | CreatePublicDnsNamespaceCommandOutput | CreateServiceCommandOutput | DeleteNamespaceCommandOutput | DeleteServiceCommandOutput | DeregisterInstanceCommandOutput | DiscoverInstancesCommandOutput | DiscoverInstancesRevisionCommandOutput | GetInstanceCommandOutput | GetInstancesHealthStatusCommandOutput | GetNamespaceCommandOutput | GetOperationCommandOutput | GetServiceCommandOutput | ListInstancesCommandOutput | ListNamespacesCommandOutput | ListOperationsCommandOutput | ListServicesCommandOutput | ListTagsForResourceCommandOutput | RegisterInstanceCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateHttpNamespaceCommandOutput | UpdateInstanceCustomHealthStatusCommandOutput | UpdatePrivateDnsNamespaceCommandOutput | UpdatePublicDnsNamespaceCommandOutput | UpdateServiceCommandOutput;
|
|
48
49
|
/**
|
|
49
50
|
* @public
|
|
50
51
|
*/
|
|
@@ -24,8 +24,10 @@ export interface DiscoverInstancesCommandOutput extends DiscoverInstancesRespons
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Discovers registered instances for a specified namespace and service. You can use
|
|
27
|
-
* <code>DiscoverInstances</code> to discover instances for any type of namespace.
|
|
28
|
-
*
|
|
27
|
+
* <code>DiscoverInstances</code> to discover instances for any type of namespace.
|
|
28
|
+
* <code>DiscoverInstances</code> returns a randomized list of instances allowing customers to
|
|
29
|
+
* distribute traffic evenly across instances. For public and private DNS namespaces, you can also
|
|
30
|
+
* use DNS queries to discover instances.</p>
|
|
29
31
|
* @example
|
|
30
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
33
|
* ```javascript
|
|
@@ -58,6 +60,7 @@ export interface DiscoverInstancesCommandOutput extends DiscoverInstancesRespons
|
|
|
58
60
|
* // },
|
|
59
61
|
* // },
|
|
60
62
|
* // ],
|
|
63
|
+
* // InstancesRevision: Number("long"),
|
|
61
64
|
* // };
|
|
62
65
|
*
|
|
63
66
|
* ```
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
|
|
4
|
+
import { DiscoverInstancesRevisionRequest, DiscoverInstancesRevisionResponse } from "../models/models_0";
|
|
5
|
+
import { ServiceDiscoveryClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ServiceDiscoveryClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DiscoverInstancesRevisionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DiscoverInstancesRevisionCommandInput extends DiscoverInstancesRevisionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DiscoverInstancesRevisionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DiscoverInstancesRevisionCommandOutput extends DiscoverInstancesRevisionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Discovers the increasing revision associated with an instance.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { ServiceDiscoveryClient, DiscoverInstancesRevisionCommand } from "@aws-sdk/client-servicediscovery"; // ES Modules import
|
|
31
|
+
* // const { ServiceDiscoveryClient, DiscoverInstancesRevisionCommand } = require("@aws-sdk/client-servicediscovery"); // CommonJS import
|
|
32
|
+
* const client = new ServiceDiscoveryClient(config);
|
|
33
|
+
* const input = { // DiscoverInstancesRevisionRequest
|
|
34
|
+
* NamespaceName: "STRING_VALUE", // required
|
|
35
|
+
* ServiceName: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new DiscoverInstancesRevisionCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // DiscoverInstancesRevisionResponse
|
|
40
|
+
* // InstancesRevision: Number("long"),
|
|
41
|
+
* // };
|
|
42
|
+
*
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @param DiscoverInstancesRevisionCommandInput - {@link DiscoverInstancesRevisionCommandInput}
|
|
46
|
+
* @returns {@link DiscoverInstancesRevisionCommandOutput}
|
|
47
|
+
* @see {@link DiscoverInstancesRevisionCommandInput} for command's `input` shape.
|
|
48
|
+
* @see {@link DiscoverInstancesRevisionCommandOutput} for command's `response` shape.
|
|
49
|
+
* @see {@link ServiceDiscoveryClientResolvedConfig | config} for ServiceDiscoveryClient's `config` shape.
|
|
50
|
+
*
|
|
51
|
+
* @throws {@link InvalidInput} (client fault)
|
|
52
|
+
* <p>One or more specified values aren't valid. For example, a required value might be missing, a
|
|
53
|
+
* numeric value might be outside the allowed range, or a string value might exceed length
|
|
54
|
+
* constraints.</p>
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link NamespaceNotFound} (client fault)
|
|
57
|
+
* <p>No namespace exists with the specified ID.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link RequestLimitExceeded} (client fault)
|
|
60
|
+
* <p>The operation can't be completed because you've reached the quota for the number of
|
|
61
|
+
* requests. For more information, see <a href="https://docs.aws.amazon.com/cloud-map/latest/dg/throttling.html">Cloud Map API request throttling quota</a> in the
|
|
62
|
+
* <i>Cloud Map Developer Guide</i>.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ServiceNotFound} (client fault)
|
|
65
|
+
* <p>No service exists with the specified ID.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ServiceDiscoveryServiceException}
|
|
68
|
+
* <p>Base exception class for all service exceptions from ServiceDiscovery service.</p>
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
export declare class DiscoverInstancesRevisionCommand extends $Command<DiscoverInstancesRevisionCommandInput, DiscoverInstancesRevisionCommandOutput, ServiceDiscoveryClientResolvedConfig> {
|
|
72
|
+
readonly input: DiscoverInstancesRevisionCommandInput;
|
|
73
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
74
|
+
/**
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
constructor(input: DiscoverInstancesRevisionCommandInput);
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
81
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: ServiceDiscoveryClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DiscoverInstancesRevisionCommandInput, DiscoverInstancesRevisionCommandOutput>;
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
private serialize;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
private deserialize;
|
|
90
|
+
}
|
|
@@ -24,7 +24,7 @@ export interface GetOperationCommandOutput extends GetOperationResponse, __Metad
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Gets information about any operation that returns an operation ID in the response, such as a
|
|
27
|
-
* <code>
|
|
27
|
+
* <code>CreateHttpNamespace</code> request.</p>
|
|
28
28
|
* <note>
|
|
29
29
|
* <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>
|
|
30
30
|
* </note>
|
|
@@ -6,6 +6,7 @@ export * from "./DeleteNamespaceCommand";
|
|
|
6
6
|
export * from "./DeleteServiceCommand";
|
|
7
7
|
export * from "./DeregisterInstanceCommand";
|
|
8
8
|
export * from "./DiscoverInstancesCommand";
|
|
9
|
+
export * from "./DiscoverInstancesRevisionCommand";
|
|
9
10
|
export * from "./GetInstanceCommand";
|
|
10
11
|
export * from "./GetInstancesHealthStatusCommand";
|
|
11
12
|
export * from "./GetNamespaceCommand";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
1
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
2
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
4
|
/**
|
|
4
5
|
* @internal
|
|
5
6
|
*/
|
|
6
|
-
export interface ServiceDiscoveryExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
7
|
+
export interface ServiceDiscoveryExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration {
|
|
7
8
|
}
|
|
@@ -275,7 +275,8 @@ export interface CreatePublicDnsNamespaceRequest {
|
|
|
275
275
|
* @public
|
|
276
276
|
* <p>The name that you want to assign to this namespace.</p>
|
|
277
277
|
* <note>
|
|
278
|
-
* <p>Do not include sensitive information in the name. The name is publicly available using DNS
|
|
278
|
+
* <p>Do not include sensitive information in the name. The name is publicly available using DNS
|
|
279
|
+
* queries.</p>
|
|
279
280
|
* </note>
|
|
280
281
|
*/
|
|
281
282
|
Name: string | undefined;
|
|
@@ -805,10 +806,12 @@ export interface CreateServiceRequest {
|
|
|
805
806
|
* @public
|
|
806
807
|
* <p>The name that you want to assign to the service.</p>
|
|
807
808
|
* <note>
|
|
808
|
-
* <p>Do not include sensitive information in the name if the namespace is discoverable by public
|
|
809
|
+
* <p>Do not include sensitive information in the name if the namespace is discoverable by public
|
|
810
|
+
* DNS queries.</p>
|
|
809
811
|
* </note>
|
|
810
|
-
* <p>If you want Cloud Map to create an <code>SRV</code> record when you register an instance
|
|
811
|
-
* system that requires a specific <code>SRV</code> format, such as <a href="http://www.haproxy.org/">HAProxy</a>, specify the following for
|
|
812
|
+
* <p>If you want Cloud Map to create an <code>SRV</code> record when you register an instance
|
|
813
|
+
* and you're using a system that requires a specific <code>SRV</code> format, such as <a href="http://www.haproxy.org/">HAProxy</a>, specify the following for
|
|
814
|
+
* <code>Name</code>:</p>
|
|
812
815
|
* <ul>
|
|
813
816
|
* <li>
|
|
814
817
|
* <p>Start the name with an underscore (_), such as <code>_exampleservice</code>.</p>
|
|
@@ -1329,6 +1332,13 @@ export interface DiscoverInstancesResponse {
|
|
|
1329
1332
|
* instance.</p>
|
|
1330
1333
|
*/
|
|
1331
1334
|
Instances?: HttpInstanceSummary[];
|
|
1335
|
+
/**
|
|
1336
|
+
* @public
|
|
1337
|
+
* <p>The increasing revision associated to the response Instances list. If a new instance is
|
|
1338
|
+
* registered or deregistered, the <code>InstancesRevision</code> updates. The health status updates
|
|
1339
|
+
* don't update <code>InstancesRevision</code>.</p>
|
|
1340
|
+
*/
|
|
1341
|
+
InstancesRevision?: number;
|
|
1332
1342
|
}
|
|
1333
1343
|
/**
|
|
1334
1344
|
* @public
|
|
@@ -1345,6 +1355,35 @@ export declare class RequestLimitExceeded extends __BaseException {
|
|
|
1345
1355
|
*/
|
|
1346
1356
|
constructor(opts: __ExceptionOptionType<RequestLimitExceeded, __BaseException>);
|
|
1347
1357
|
}
|
|
1358
|
+
/**
|
|
1359
|
+
* @public
|
|
1360
|
+
*/
|
|
1361
|
+
export interface DiscoverInstancesRevisionRequest {
|
|
1362
|
+
/**
|
|
1363
|
+
* @public
|
|
1364
|
+
* <p>The <code>HttpName</code> name of the namespace. It's found in the
|
|
1365
|
+
* <code>HttpProperties</code> member of the <code>Properties</code> member of the
|
|
1366
|
+
* namespace.</p>
|
|
1367
|
+
*/
|
|
1368
|
+
NamespaceName: string | undefined;
|
|
1369
|
+
/**
|
|
1370
|
+
* @public
|
|
1371
|
+
* <p>The name of the service that you specified when you registered the instance.</p>
|
|
1372
|
+
*/
|
|
1373
|
+
ServiceName: string | undefined;
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* @public
|
|
1377
|
+
*/
|
|
1378
|
+
export interface DiscoverInstancesRevisionResponse {
|
|
1379
|
+
/**
|
|
1380
|
+
* @public
|
|
1381
|
+
* <p>The increasing revision associated to the response Instances list. If a new instance is
|
|
1382
|
+
* registered or deregistered, the <code>InstancesRevision</code> updates. The health status updates
|
|
1383
|
+
* don't update <code>InstancesRevision</code>.</p>
|
|
1384
|
+
*/
|
|
1385
|
+
InstancesRevision?: number;
|
|
1386
|
+
}
|
|
1348
1387
|
/**
|
|
1349
1388
|
* @public
|
|
1350
1389
|
* <p>A complex type that contains information about changes to the Route 53 DNS records that
|
|
@@ -1462,8 +1501,8 @@ export interface Instance {
|
|
|
1462
1501
|
* </li>
|
|
1463
1502
|
* </ul>
|
|
1464
1503
|
* <note>
|
|
1465
|
-
* <p>Do not include sensitive information in the attributes if the namespace is discoverable by
|
|
1466
|
-
* queries.</p>
|
|
1504
|
+
* <p>Do not include sensitive information in the attributes if the namespace is discoverable by
|
|
1505
|
+
* public DNS queries.</p>
|
|
1467
1506
|
* </note>
|
|
1468
1507
|
* <p>Supported attribute keys include the following:</p>
|
|
1469
1508
|
* <dl>
|
|
@@ -2155,20 +2194,19 @@ export interface NamespaceFilter {
|
|
|
2155
2194
|
/**
|
|
2156
2195
|
* @public
|
|
2157
2196
|
* <p>Specify the operator that you want to use to determine whether a namespace matches the
|
|
2158
|
-
*
|
|
2197
|
+
* specified value. Valid values for <code>Condition</code> are one of the following.</p>
|
|
2159
2198
|
* <ul>
|
|
2160
2199
|
* <li>
|
|
2161
2200
|
* <p>
|
|
2162
2201
|
* <code>EQ</code>: When you specify <code>EQ</code> for <code>Condition</code>, you can
|
|
2163
|
-
*
|
|
2164
|
-
*
|
|
2165
|
-
* omitted.</p>
|
|
2202
|
+
* specify only one value. <code>EQ</code> is supported for <code>TYPE</code>, <code>NAME</code>,
|
|
2203
|
+
* and <code>HTTP_NAME</code>. <code>EQ</code> is the default condition and can be omitted.</p>
|
|
2166
2204
|
* </li>
|
|
2167
2205
|
* <li>
|
|
2168
2206
|
* <p>
|
|
2169
2207
|
* <code>BEGINS_WITH</code>: When you specify <code>BEGINS_WITH</code> for
|
|
2170
|
-
*
|
|
2171
|
-
*
|
|
2208
|
+
* <code>Condition</code>, you can specify only one value. <code>BEGINS_WITH</code> is supported
|
|
2209
|
+
* for <code>TYPE</code>, <code>NAME</code>, and <code>HTTP_NAME</code>.</p>
|
|
2172
2210
|
* </li>
|
|
2173
2211
|
* </ul>
|
|
2174
2212
|
*/
|
|
@@ -2857,9 +2895,10 @@ export interface RegisterInstanceRequest {
|
|
|
2857
2895
|
* </li>
|
|
2858
2896
|
* </ul>
|
|
2859
2897
|
* <note>
|
|
2860
|
-
* <p>Do not include sensitive information in <code>InstanceId</code> if the namespace is
|
|
2861
|
-
* queries and any <code>Type</code> member of <code>DnsRecord</code>
|
|
2862
|
-
* the <code>InstanceId</code> is discoverable by
|
|
2898
|
+
* <p>Do not include sensitive information in <code>InstanceId</code> if the namespace is
|
|
2899
|
+
* discoverable by public DNS queries and any <code>Type</code> member of <code>DnsRecord</code>
|
|
2900
|
+
* for the service contains <code>SRV</code> because the <code>InstanceId</code> is discoverable by
|
|
2901
|
+
* public DNS queries.</p>
|
|
2863
2902
|
* </note>
|
|
2864
2903
|
*/
|
|
2865
2904
|
InstanceId: string | undefined;
|
|
@@ -2886,8 +2925,8 @@ export interface RegisterInstanceRequest {
|
|
|
2886
2925
|
* </li>
|
|
2887
2926
|
* </ul>
|
|
2888
2927
|
* <note>
|
|
2889
|
-
* <p>Do not include sensitive information in the attributes if the namespace is discoverable by
|
|
2890
|
-
* queries.</p>
|
|
2928
|
+
* <p>Do not include sensitive information in the attributes if the namespace is discoverable by
|
|
2929
|
+
* public DNS queries.</p>
|
|
2891
2930
|
* </note>
|
|
2892
2931
|
* <p>Supported attribute keys include the following:</p>
|
|
2893
2932
|
* <dl>
|
|
@@ -2912,7 +2951,7 @@ export interface RegisterInstanceRequest {
|
|
|
2912
2951
|
* it doesn't associate the health check with the alias record.</p>
|
|
2913
2952
|
* </li>
|
|
2914
2953
|
* <li>
|
|
2915
|
-
* <p>
|
|
2954
|
+
* <p>Cloud Map currently doesn't support creating alias records that route traffic to
|
|
2916
2955
|
* Amazon Web Services resources other than Elastic Load Balancing load balancers.</p>
|
|
2917
2956
|
* </li>
|
|
2918
2957
|
* <li>
|
|
@@ -8,6 +8,7 @@ import { DeleteNamespaceCommandInput, DeleteNamespaceCommandOutput } from "../co
|
|
|
8
8
|
import { DeleteServiceCommandInput, DeleteServiceCommandOutput } from "../commands/DeleteServiceCommand";
|
|
9
9
|
import { DeregisterInstanceCommandInput, DeregisterInstanceCommandOutput } from "../commands/DeregisterInstanceCommand";
|
|
10
10
|
import { DiscoverInstancesCommandInput, DiscoverInstancesCommandOutput } from "../commands/DiscoverInstancesCommand";
|
|
11
|
+
import { DiscoverInstancesRevisionCommandInput, DiscoverInstancesRevisionCommandOutput } from "../commands/DiscoverInstancesRevisionCommand";
|
|
11
12
|
import { GetInstanceCommandInput, GetInstanceCommandOutput } from "../commands/GetInstanceCommand";
|
|
12
13
|
import { GetInstancesHealthStatusCommandInput, GetInstancesHealthStatusCommandOutput } from "../commands/GetInstancesHealthStatusCommand";
|
|
13
14
|
import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "../commands/GetNamespaceCommand";
|
|
@@ -58,6 +59,10 @@ export declare const se_DeregisterInstanceCommand: (input: DeregisterInstanceCom
|
|
|
58
59
|
* serializeAws_json1_1DiscoverInstancesCommand
|
|
59
60
|
*/
|
|
60
61
|
export declare const se_DiscoverInstancesCommand: (input: DiscoverInstancesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
62
|
+
/**
|
|
63
|
+
* serializeAws_json1_1DiscoverInstancesRevisionCommand
|
|
64
|
+
*/
|
|
65
|
+
export declare const se_DiscoverInstancesRevisionCommand: (input: DiscoverInstancesRevisionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
61
66
|
/**
|
|
62
67
|
* serializeAws_json1_1GetInstanceCommand
|
|
63
68
|
*/
|
|
@@ -162,6 +167,10 @@ export declare const de_DeregisterInstanceCommand: (output: __HttpResponse, cont
|
|
|
162
167
|
* deserializeAws_json1_1DiscoverInstancesCommand
|
|
163
168
|
*/
|
|
164
169
|
export declare const de_DiscoverInstancesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverInstancesCommandOutput>;
|
|
170
|
+
/**
|
|
171
|
+
* deserializeAws_json1_1DiscoverInstancesRevisionCommand
|
|
172
|
+
*/
|
|
173
|
+
export declare const de_DiscoverInstancesRevisionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DiscoverInstancesRevisionCommandOutput>;
|
|
165
174
|
/**
|
|
166
175
|
* deserializeAws_json1_1GetInstanceCommand
|
|
167
176
|
*/
|
|
@@ -31,6 +31,10 @@ import {
|
|
|
31
31
|
DiscoverInstancesCommandInput,
|
|
32
32
|
DiscoverInstancesCommandOutput,
|
|
33
33
|
} from "./commands/DiscoverInstancesCommand";
|
|
34
|
+
import {
|
|
35
|
+
DiscoverInstancesRevisionCommandInput,
|
|
36
|
+
DiscoverInstancesRevisionCommandOutput,
|
|
37
|
+
} from "./commands/DiscoverInstancesRevisionCommand";
|
|
34
38
|
import {
|
|
35
39
|
GetInstanceCommandInput,
|
|
36
40
|
GetInstanceCommandOutput,
|
|
@@ -209,6 +213,19 @@ export interface ServiceDiscovery {
|
|
|
209
213
|
options: __HttpHandlerOptions,
|
|
210
214
|
cb: (err: any, data?: DiscoverInstancesCommandOutput) => void
|
|
211
215
|
): void;
|
|
216
|
+
discoverInstancesRevision(
|
|
217
|
+
args: DiscoverInstancesRevisionCommandInput,
|
|
218
|
+
options?: __HttpHandlerOptions
|
|
219
|
+
): Promise<DiscoverInstancesRevisionCommandOutput>;
|
|
220
|
+
discoverInstancesRevision(
|
|
221
|
+
args: DiscoverInstancesRevisionCommandInput,
|
|
222
|
+
cb: (err: any, data?: DiscoverInstancesRevisionCommandOutput) => void
|
|
223
|
+
): void;
|
|
224
|
+
discoverInstancesRevision(
|
|
225
|
+
args: DiscoverInstancesRevisionCommandInput,
|
|
226
|
+
options: __HttpHandlerOptions,
|
|
227
|
+
cb: (err: any, data?: DiscoverInstancesRevisionCommandOutput) => void
|
|
228
|
+
): void;
|
|
212
229
|
getInstance(
|
|
213
230
|
args: GetInstanceCommandInput,
|
|
214
231
|
options?: __HttpHandlerOptions
|
|
@@ -77,6 +77,10 @@ import {
|
|
|
77
77
|
DiscoverInstancesCommandInput,
|
|
78
78
|
DiscoverInstancesCommandOutput,
|
|
79
79
|
} from "./commands/DiscoverInstancesCommand";
|
|
80
|
+
import {
|
|
81
|
+
DiscoverInstancesRevisionCommandInput,
|
|
82
|
+
DiscoverInstancesRevisionCommandOutput,
|
|
83
|
+
} from "./commands/DiscoverInstancesRevisionCommand";
|
|
80
84
|
import {
|
|
81
85
|
GetInstanceCommandInput,
|
|
82
86
|
GetInstanceCommandOutput,
|
|
@@ -165,6 +169,7 @@ export type ServiceInputTypes =
|
|
|
165
169
|
| DeleteServiceCommandInput
|
|
166
170
|
| DeregisterInstanceCommandInput
|
|
167
171
|
| DiscoverInstancesCommandInput
|
|
172
|
+
| DiscoverInstancesRevisionCommandInput
|
|
168
173
|
| GetInstanceCommandInput
|
|
169
174
|
| GetInstancesHealthStatusCommandInput
|
|
170
175
|
| GetNamespaceCommandInput
|
|
@@ -192,6 +197,7 @@ export type ServiceOutputTypes =
|
|
|
192
197
|
| DeleteServiceCommandOutput
|
|
193
198
|
| DeregisterInstanceCommandOutput
|
|
194
199
|
| DiscoverInstancesCommandOutput
|
|
200
|
+
| DiscoverInstancesRevisionCommandOutput
|
|
195
201
|
| GetInstanceCommandOutput
|
|
196
202
|
| GetInstancesHealthStatusCommandOutput
|
|
197
203
|
| GetNamespaceCommandOutput
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@smithy/types";
|
|
9
|
+
import {
|
|
10
|
+
DiscoverInstancesRevisionRequest,
|
|
11
|
+
DiscoverInstancesRevisionResponse,
|
|
12
|
+
} from "../models/models_0";
|
|
13
|
+
import {
|
|
14
|
+
ServiceDiscoveryClientResolvedConfig,
|
|
15
|
+
ServiceInputTypes,
|
|
16
|
+
ServiceOutputTypes,
|
|
17
|
+
} from "../ServiceDiscoveryClient";
|
|
18
|
+
export { __MetadataBearer, $Command };
|
|
19
|
+
export interface DiscoverInstancesRevisionCommandInput
|
|
20
|
+
extends DiscoverInstancesRevisionRequest {}
|
|
21
|
+
export interface DiscoverInstancesRevisionCommandOutput
|
|
22
|
+
extends DiscoverInstancesRevisionResponse,
|
|
23
|
+
__MetadataBearer {}
|
|
24
|
+
export declare class DiscoverInstancesRevisionCommand extends $Command<
|
|
25
|
+
DiscoverInstancesRevisionCommandInput,
|
|
26
|
+
DiscoverInstancesRevisionCommandOutput,
|
|
27
|
+
ServiceDiscoveryClientResolvedConfig
|
|
28
|
+
> {
|
|
29
|
+
readonly input: DiscoverInstancesRevisionCommandInput;
|
|
30
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
31
|
+
constructor(input: DiscoverInstancesRevisionCommandInput);
|
|
32
|
+
resolveMiddleware(
|
|
33
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
34
|
+
configuration: ServiceDiscoveryClientResolvedConfig,
|
|
35
|
+
options?: __HttpHandlerOptions
|
|
36
|
+
): Handler<
|
|
37
|
+
DiscoverInstancesRevisionCommandInput,
|
|
38
|
+
DiscoverInstancesRevisionCommandOutput
|
|
39
|
+
>;
|
|
40
|
+
private serialize;
|
|
41
|
+
private deserialize;
|
|
42
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from "./DeleteNamespaceCommand";
|
|
|
6
6
|
export * from "./DeleteServiceCommand";
|
|
7
7
|
export * from "./DeregisterInstanceCommand";
|
|
8
8
|
export * from "./DiscoverInstancesCommand";
|
|
9
|
+
export * from "./DiscoverInstancesRevisionCommand";
|
|
9
10
|
export * from "./GetInstanceCommand";
|
|
10
11
|
export * from "./GetInstancesHealthStatusCommand";
|
|
11
12
|
export * from "./GetNamespaceCommand";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
1
2
|
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
2
3
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
4
|
export interface ServiceDiscoveryExtensionConfiguration
|
|
4
5
|
extends HttpHandlerExtensionConfiguration,
|
|
5
|
-
DefaultExtensionConfiguration
|
|
6
|
+
DefaultExtensionConfiguration,
|
|
7
|
+
AwsRegionExtensionConfiguration {}
|
|
@@ -260,6 +260,7 @@ export interface HttpInstanceSummary {
|
|
|
260
260
|
}
|
|
261
261
|
export interface DiscoverInstancesResponse {
|
|
262
262
|
Instances?: HttpInstanceSummary[];
|
|
263
|
+
InstancesRevision?: number;
|
|
263
264
|
}
|
|
264
265
|
export declare class RequestLimitExceeded extends __BaseException {
|
|
265
266
|
readonly name: "RequestLimitExceeded";
|
|
@@ -269,6 +270,13 @@ export declare class RequestLimitExceeded extends __BaseException {
|
|
|
269
270
|
opts: __ExceptionOptionType<RequestLimitExceeded, __BaseException>
|
|
270
271
|
);
|
|
271
272
|
}
|
|
273
|
+
export interface DiscoverInstancesRevisionRequest {
|
|
274
|
+
NamespaceName: string | undefined;
|
|
275
|
+
ServiceName: string | undefined;
|
|
276
|
+
}
|
|
277
|
+
export interface DiscoverInstancesRevisionResponse {
|
|
278
|
+
InstancesRevision?: number;
|
|
279
|
+
}
|
|
272
280
|
export interface DnsConfigChange {
|
|
273
281
|
DnsRecords: DnsRecord[] | undefined;
|
|
274
282
|
}
|
|
@@ -35,6 +35,10 @@ import {
|
|
|
35
35
|
DiscoverInstancesCommandInput,
|
|
36
36
|
DiscoverInstancesCommandOutput,
|
|
37
37
|
} from "../commands/DiscoverInstancesCommand";
|
|
38
|
+
import {
|
|
39
|
+
DiscoverInstancesRevisionCommandInput,
|
|
40
|
+
DiscoverInstancesRevisionCommandOutput,
|
|
41
|
+
} from "../commands/DiscoverInstancesRevisionCommand";
|
|
38
42
|
import {
|
|
39
43
|
GetInstanceCommandInput,
|
|
40
44
|
GetInstanceCommandOutput,
|
|
@@ -139,6 +143,10 @@ export declare const se_DiscoverInstancesCommand: (
|
|
|
139
143
|
input: DiscoverInstancesCommandInput,
|
|
140
144
|
context: __SerdeContext
|
|
141
145
|
) => Promise<__HttpRequest>;
|
|
146
|
+
export declare const se_DiscoverInstancesRevisionCommand: (
|
|
147
|
+
input: DiscoverInstancesRevisionCommandInput,
|
|
148
|
+
context: __SerdeContext
|
|
149
|
+
) => Promise<__HttpRequest>;
|
|
142
150
|
export declare const se_GetInstanceCommand: (
|
|
143
151
|
input: GetInstanceCommandInput,
|
|
144
152
|
context: __SerdeContext
|
|
@@ -243,6 +251,10 @@ export declare const de_DiscoverInstancesCommand: (
|
|
|
243
251
|
output: __HttpResponse,
|
|
244
252
|
context: __SerdeContext
|
|
245
253
|
) => Promise<DiscoverInstancesCommandOutput>;
|
|
254
|
+
export declare const de_DiscoverInstancesRevisionCommand: (
|
|
255
|
+
output: __HttpResponse,
|
|
256
|
+
context: __SerdeContext
|
|
257
|
+
) => Promise<DiscoverInstancesRevisionCommandOutput>;
|
|
246
258
|
export declare const de_GetInstanceCommand: (
|
|
247
259
|
output: __HttpResponse,
|
|
248
260
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-servicediscovery",
|
|
3
3
|
"description": "AWS SDK for JavaScript Servicediscovery Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.417.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,13 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.414.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.414.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.413.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.413.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.413.0",
|
|
29
29
|
"@aws-sdk/middleware-signing": "3.413.0",
|
|
30
30
|
"@aws-sdk/middleware-user-agent": "3.413.0",
|
|
31
|
+
"@aws-sdk/region-config-resolver": "3.413.0",
|
|
31
32
|
"@aws-sdk/types": "3.413.0",
|
|
32
33
|
"@aws-sdk/util-endpoints": "3.413.0",
|
|
33
34
|
"@aws-sdk/util-user-agent-browser": "3.413.0",
|