@aws-sdk/client-opensearch 3.326.0 → 3.327.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/OpenSearch.js +2 -0
- package/dist-cjs/commands/DescribeDomainNodesCommand.js +45 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +25 -2
- package/dist-cjs/protocols/Aws_restJson1.js +83 -3
- package/dist-es/OpenSearch.js +2 -0
- package/dist-es/commands/DescribeDomainNodesCommand.js +41 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +22 -0
- package/dist-es/protocols/Aws_restJson1.js +79 -1
- package/dist-types/OpenSearch.d.ts +7 -0
- package/dist-types/OpenSearchClient.d.ts +3 -2
- package/dist-types/commands/DescribeDomainNodesCommand.d.ts +99 -0
- package/dist-types/commands/UpdateDomainConfigCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +102 -3
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/OpenSearch.d.ts +17 -0
- package/dist-types/ts3.4/OpenSearchClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/DescribeDomainNodesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +35 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -366,6 +366,14 @@ DescribeDomainHealth
|
|
|
366
366
|
|
|
367
367
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/describedomainhealthcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainhealthcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainhealthcommandoutput.html)
|
|
368
368
|
|
|
369
|
+
</details>
|
|
370
|
+
<details>
|
|
371
|
+
<summary>
|
|
372
|
+
DescribeDomainNodes
|
|
373
|
+
</summary>
|
|
374
|
+
|
|
375
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/classes/describedomainnodescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainnodescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-opensearch/interfaces/describedomainnodescommandoutput.html)
|
|
376
|
+
|
|
369
377
|
</details>
|
|
370
378
|
<details>
|
|
371
379
|
<summary>
|
package/dist-cjs/OpenSearch.js
CHANGED
|
@@ -21,6 +21,7 @@ const DescribeDomainChangeProgressCommand_1 = require("./commands/DescribeDomain
|
|
|
21
21
|
const DescribeDomainCommand_1 = require("./commands/DescribeDomainCommand");
|
|
22
22
|
const DescribeDomainConfigCommand_1 = require("./commands/DescribeDomainConfigCommand");
|
|
23
23
|
const DescribeDomainHealthCommand_1 = require("./commands/DescribeDomainHealthCommand");
|
|
24
|
+
const DescribeDomainNodesCommand_1 = require("./commands/DescribeDomainNodesCommand");
|
|
24
25
|
const DescribeDomainsCommand_1 = require("./commands/DescribeDomainsCommand");
|
|
25
26
|
const DescribeDryRunProgressCommand_1 = require("./commands/DescribeDryRunProgressCommand");
|
|
26
27
|
const DescribeInboundConnectionsCommand_1 = require("./commands/DescribeInboundConnectionsCommand");
|
|
@@ -76,6 +77,7 @@ const commands = {
|
|
|
76
77
|
DescribeDomainChangeProgressCommand: DescribeDomainChangeProgressCommand_1.DescribeDomainChangeProgressCommand,
|
|
77
78
|
DescribeDomainConfigCommand: DescribeDomainConfigCommand_1.DescribeDomainConfigCommand,
|
|
78
79
|
DescribeDomainHealthCommand: DescribeDomainHealthCommand_1.DescribeDomainHealthCommand,
|
|
80
|
+
DescribeDomainNodesCommand: DescribeDomainNodesCommand_1.DescribeDomainNodesCommand,
|
|
79
81
|
DescribeDomainsCommand: DescribeDomainsCommand_1.DescribeDomainsCommand,
|
|
80
82
|
DescribeDryRunProgressCommand: DescribeDryRunProgressCommand_1.DescribeDryRunProgressCommand,
|
|
81
83
|
DescribeInboundConnectionsCommand: DescribeInboundConnectionsCommand_1.DescribeInboundConnectionsCommand,
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DescribeDomainNodesCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
8
|
+
class DescribeDomainNodesCommand extends smithy_client_1.Command {
|
|
9
|
+
static getEndpointParameterInstructions() {
|
|
10
|
+
return {
|
|
11
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
12
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
13
|
+
Region: { type: "builtInParams", name: "region" },
|
|
14
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
constructor(input) {
|
|
18
|
+
super();
|
|
19
|
+
this.input = input;
|
|
20
|
+
}
|
|
21
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
22
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
23
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeDomainNodesCommand.getEndpointParameterInstructions()));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "OpenSearchClient";
|
|
27
|
+
const commandName = "DescribeDomainNodesCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return (0, Aws_restJson1_1.se_DescribeDomainNodesCommand)(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return (0, Aws_restJson1_1.de_DescribeDomainNodesCommand)(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DescribeDomainNodesCommand = DescribeDomainNodesCommand;
|
|
@@ -20,6 +20,7 @@ tslib_1.__exportStar(require("./DescribeDomainChangeProgressCommand"), exports);
|
|
|
20
20
|
tslib_1.__exportStar(require("./DescribeDomainCommand"), exports);
|
|
21
21
|
tslib_1.__exportStar(require("./DescribeDomainConfigCommand"), exports);
|
|
22
22
|
tslib_1.__exportStar(require("./DescribeDomainHealthCommand"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./DescribeDomainNodesCommand"), exports);
|
|
23
24
|
tslib_1.__exportStar(require("./DescribeDomainsCommand"), exports);
|
|
24
25
|
tslib_1.__exportStar(require("./DescribeDryRunProgressCommand"), exports);
|
|
25
26
|
tslib_1.__exportStar(require("./DescribeInboundConnectionsCommand"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = void 0;
|
|
3
|
+
exports.EngineType = exports.UpgradeStatus = exports.UpgradeStep = exports.VpcEndpointErrorCode = exports.ReservedInstancePaymentOption = exports.DescribePackagesFilterName = exports.InvalidPaginationTokenException = exports.NodeType = exports.NodeStatus = exports.DependencyFailureException = exports.MasterNodeStatus = exports.ZoneStatus = exports.DomainState = exports.DomainHealth = exports.RollbackOnDisable = exports.OverallChangeStatus = exports.AutoTuneType = exports.ScheduledAutoTuneSeverityType = exports.ScheduledAutoTuneActionType = exports.VpcEndpointStatus = exports.PackageStatus = exports.OutboundConnectionStatusCode = exports.ResourceAlreadyExistsException = exports.InvalidTypeException = exports.AutoTuneState = exports.LogType = exports.VolumeType = exports.TLSSecurityPolicy = exports.OpenSearchWarmPartitionInstanceType = exports.OpenSearchPartitionInstanceType = exports.TimeUnit = exports.AutoTuneDesiredState = exports.DeploymentStatus = exports.PrincipalType = exports.ConflictException = exports.PackageType = exports.DomainPackageStatus = exports.ValidationException = exports.InternalException = exports.BaseException = exports.ActionType = exports.ActionStatus = exports.ActionSeverity = exports.OptionState = exports.AccessDeniedException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.DisabledOperationException = exports.InboundConnectionStatusCode = exports.ConnectionMode = void 0;
|
|
4
|
+
exports.UpdateDomainConfigRequestFilterSensitiveLog = exports.CreateDomainRequestFilterSensitiveLog = exports.AdvancedSecurityOptionsInputFilterSensitiveLog = exports.SAMLOptionsInputFilterSensitiveLog = exports.MasterUserOptionsFilterSensitiveLog = exports.SlotNotAvailableException = exports.DryRunMode = exports.ScheduleAt = exports.ScheduledBy = void 0;
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
6
|
const OpenSearchServiceException_1 = require("./OpenSearchServiceException");
|
|
7
7
|
exports.ConnectionMode = {
|
|
@@ -401,6 +401,29 @@ exports.MasterNodeStatus = {
|
|
|
401
401
|
Available: "Available",
|
|
402
402
|
UnAvailable: "UnAvailable",
|
|
403
403
|
};
|
|
404
|
+
class DependencyFailureException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
405
|
+
constructor(opts) {
|
|
406
|
+
super({
|
|
407
|
+
name: "DependencyFailureException",
|
|
408
|
+
$fault: "client",
|
|
409
|
+
...opts,
|
|
410
|
+
});
|
|
411
|
+
this.name = "DependencyFailureException";
|
|
412
|
+
this.$fault = "client";
|
|
413
|
+
Object.setPrototypeOf(this, DependencyFailureException.prototype);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
exports.DependencyFailureException = DependencyFailureException;
|
|
417
|
+
exports.NodeStatus = {
|
|
418
|
+
Active: "Active",
|
|
419
|
+
NotAvailable: "NotAvailable",
|
|
420
|
+
StandBy: "StandBy",
|
|
421
|
+
};
|
|
422
|
+
exports.NodeType = {
|
|
423
|
+
Data: "Data",
|
|
424
|
+
Master: "Master",
|
|
425
|
+
Ultrawarm: "Ultrawarm",
|
|
426
|
+
};
|
|
404
427
|
class InvalidPaginationTokenException extends OpenSearchServiceException_1.OpenSearchServiceException {
|
|
405
428
|
constructor(opts) {
|
|
406
429
|
super({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.de_UpgradeDomainCommand = exports.de_UpdateVpcEndpointCommand = exports.de_UpdateScheduledActionCommand = exports.de_UpdatePackageCommand = exports.de_UpdateDomainConfigCommand = exports.de_StartServiceSoftwareUpdateCommand = void 0;
|
|
3
|
+
exports.se_UpdateDomainConfigCommand = exports.se_StartServiceSoftwareUpdateCommand = exports.se_RevokeVpcEndpointAccessCommand = exports.se_RemoveTagsCommand = exports.se_RejectInboundConnectionCommand = exports.se_PurchaseReservedInstanceOfferingCommand = exports.se_ListVpcEndpointsForDomainCommand = exports.se_ListVpcEndpointsCommand = exports.se_ListVpcEndpointAccessCommand = exports.se_ListVersionsCommand = exports.se_ListTagsCommand = exports.se_ListScheduledActionsCommand = exports.se_ListPackagesForDomainCommand = exports.se_ListInstanceTypeDetailsCommand = exports.se_ListDomainsForPackageCommand = exports.se_ListDomainNamesCommand = exports.se_GetUpgradeStatusCommand = exports.se_GetUpgradeHistoryCommand = exports.se_GetPackageVersionHistoryCommand = exports.se_GetCompatibleVersionsCommand = exports.se_DissociatePackageCommand = exports.se_DescribeVpcEndpointsCommand = exports.se_DescribeReservedInstancesCommand = exports.se_DescribeReservedInstanceOfferingsCommand = exports.se_DescribePackagesCommand = exports.se_DescribeOutboundConnectionsCommand = exports.se_DescribeInstanceTypeLimitsCommand = exports.se_DescribeInboundConnectionsCommand = exports.se_DescribeDryRunProgressCommand = exports.se_DescribeDomainsCommand = exports.se_DescribeDomainNodesCommand = exports.se_DescribeDomainHealthCommand = exports.se_DescribeDomainConfigCommand = exports.se_DescribeDomainChangeProgressCommand = exports.se_DescribeDomainAutoTunesCommand = exports.se_DescribeDomainCommand = exports.se_DeleteVpcEndpointCommand = exports.se_DeletePackageCommand = exports.se_DeleteOutboundConnectionCommand = exports.se_DeleteInboundConnectionCommand = exports.se_DeleteDomainCommand = exports.se_CreateVpcEndpointCommand = exports.se_CreatePackageCommand = exports.se_CreateOutboundConnectionCommand = exports.se_CreateDomainCommand = exports.se_CancelServiceSoftwareUpdateCommand = exports.se_AuthorizeVpcEndpointAccessCommand = exports.se_AssociatePackageCommand = exports.se_AddTagsCommand = exports.se_AcceptInboundConnectionCommand = void 0;
|
|
4
|
+
exports.de_RejectInboundConnectionCommand = exports.de_PurchaseReservedInstanceOfferingCommand = exports.de_ListVpcEndpointsForDomainCommand = exports.de_ListVpcEndpointsCommand = exports.de_ListVpcEndpointAccessCommand = exports.de_ListVersionsCommand = exports.de_ListTagsCommand = exports.de_ListScheduledActionsCommand = exports.de_ListPackagesForDomainCommand = exports.de_ListInstanceTypeDetailsCommand = exports.de_ListDomainsForPackageCommand = exports.de_ListDomainNamesCommand = exports.de_GetUpgradeStatusCommand = exports.de_GetUpgradeHistoryCommand = exports.de_GetPackageVersionHistoryCommand = exports.de_GetCompatibleVersionsCommand = exports.de_DissociatePackageCommand = exports.de_DescribeVpcEndpointsCommand = exports.de_DescribeReservedInstancesCommand = exports.de_DescribeReservedInstanceOfferingsCommand = exports.de_DescribePackagesCommand = exports.de_DescribeOutboundConnectionsCommand = exports.de_DescribeInstanceTypeLimitsCommand = exports.de_DescribeInboundConnectionsCommand = exports.de_DescribeDryRunProgressCommand = exports.de_DescribeDomainsCommand = exports.de_DescribeDomainNodesCommand = exports.de_DescribeDomainHealthCommand = exports.de_DescribeDomainConfigCommand = exports.de_DescribeDomainChangeProgressCommand = exports.de_DescribeDomainAutoTunesCommand = exports.de_DescribeDomainCommand = exports.de_DeleteVpcEndpointCommand = exports.de_DeletePackageCommand = exports.de_DeleteOutboundConnectionCommand = exports.de_DeleteInboundConnectionCommand = exports.de_DeleteDomainCommand = exports.de_CreateVpcEndpointCommand = exports.de_CreatePackageCommand = exports.de_CreateOutboundConnectionCommand = exports.de_CreateDomainCommand = exports.de_CancelServiceSoftwareUpdateCommand = exports.de_AuthorizeVpcEndpointAccessCommand = exports.de_AssociatePackageCommand = exports.de_AddTagsCommand = exports.de_AcceptInboundConnectionCommand = exports.se_UpgradeDomainCommand = exports.se_UpdateVpcEndpointCommand = exports.se_UpdateScheduledActionCommand = exports.se_UpdatePackageCommand = void 0;
|
|
5
|
+
exports.de_UpgradeDomainCommand = exports.de_UpdateVpcEndpointCommand = exports.de_UpdateScheduledActionCommand = exports.de_UpdatePackageCommand = exports.de_UpdateDomainConfigCommand = exports.de_StartServiceSoftwareUpdateCommand = exports.de_RevokeVpcEndpointAccessCommand = exports.de_RemoveTagsCommand = void 0;
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
@@ -410,6 +410,24 @@ const se_DescribeDomainHealthCommand = async (input, context) => {
|
|
|
410
410
|
});
|
|
411
411
|
};
|
|
412
412
|
exports.se_DescribeDomainHealthCommand = se_DescribeDomainHealthCommand;
|
|
413
|
+
const se_DescribeDomainNodesCommand = async (input, context) => {
|
|
414
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
|
+
const headers = {};
|
|
416
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
417
|
+
"/2021-01-01/opensearch/domain/{DomainName}/nodes";
|
|
418
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
419
|
+
let body;
|
|
420
|
+
return new protocol_http_1.HttpRequest({
|
|
421
|
+
protocol,
|
|
422
|
+
hostname,
|
|
423
|
+
port,
|
|
424
|
+
method: "GET",
|
|
425
|
+
headers,
|
|
426
|
+
path: resolvedPath,
|
|
427
|
+
body,
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
exports.se_DescribeDomainNodesCommand = se_DescribeDomainNodesCommand;
|
|
413
431
|
const se_DescribeDomainsCommand = async (input, context) => {
|
|
414
432
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
415
433
|
const headers = {
|
|
@@ -2044,6 +2062,55 @@ const de_DescribeDomainHealthCommandError = async (output, context) => {
|
|
|
2044
2062
|
});
|
|
2045
2063
|
}
|
|
2046
2064
|
};
|
|
2065
|
+
const de_DescribeDomainNodesCommand = async (output, context) => {
|
|
2066
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2067
|
+
return de_DescribeDomainNodesCommandError(output, context);
|
|
2068
|
+
}
|
|
2069
|
+
const contents = (0, smithy_client_1.map)({
|
|
2070
|
+
$metadata: deserializeMetadata(output),
|
|
2071
|
+
});
|
|
2072
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2073
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
2074
|
+
DomainNodesStatusList: smithy_client_1._json,
|
|
2075
|
+
});
|
|
2076
|
+
Object.assign(contents, doc);
|
|
2077
|
+
return contents;
|
|
2078
|
+
};
|
|
2079
|
+
exports.de_DescribeDomainNodesCommand = de_DescribeDomainNodesCommand;
|
|
2080
|
+
const de_DescribeDomainNodesCommandError = async (output, context) => {
|
|
2081
|
+
const parsedOutput = {
|
|
2082
|
+
...output,
|
|
2083
|
+
body: await parseErrorBody(output.body, context),
|
|
2084
|
+
};
|
|
2085
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2086
|
+
switch (errorCode) {
|
|
2087
|
+
case "BaseException":
|
|
2088
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2089
|
+
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2090
|
+
case "DependencyFailureException":
|
|
2091
|
+
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
2092
|
+
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
2093
|
+
case "DisabledOperationException":
|
|
2094
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2095
|
+
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2096
|
+
case "InternalException":
|
|
2097
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2098
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2099
|
+
case "ResourceNotFoundException":
|
|
2100
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2101
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2102
|
+
case "ValidationException":
|
|
2103
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
2104
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2105
|
+
default:
|
|
2106
|
+
const parsedBody = parsedOutput.body;
|
|
2107
|
+
return throwDefaultError({
|
|
2108
|
+
output,
|
|
2109
|
+
parsedBody,
|
|
2110
|
+
errorCode,
|
|
2111
|
+
});
|
|
2112
|
+
}
|
|
2113
|
+
};
|
|
2047
2114
|
const de_DescribeDomainsCommand = async (output, context) => {
|
|
2048
2115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2049
2116
|
return de_DescribeDomainsCommandError(output, context);
|
|
@@ -3615,6 +3682,19 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3615
3682
|
});
|
|
3616
3683
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3617
3684
|
};
|
|
3685
|
+
const de_DependencyFailureExceptionRes = async (parsedOutput, context) => {
|
|
3686
|
+
const contents = (0, smithy_client_1.map)({});
|
|
3687
|
+
const data = parsedOutput.body;
|
|
3688
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
3689
|
+
message: smithy_client_1.expectString,
|
|
3690
|
+
});
|
|
3691
|
+
Object.assign(contents, doc);
|
|
3692
|
+
const exception = new models_0_1.DependencyFailureException({
|
|
3693
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3694
|
+
...contents,
|
|
3695
|
+
});
|
|
3696
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3697
|
+
};
|
|
3618
3698
|
const de_DisabledOperationExceptionRes = async (parsedOutput, context) => {
|
|
3619
3699
|
const contents = (0, smithy_client_1.map)({});
|
|
3620
3700
|
const data = parsedOutput.body;
|
package/dist-es/OpenSearch.js
CHANGED
|
@@ -18,6 +18,7 @@ import { DescribeDomainChangeProgressCommand, } from "./commands/DescribeDomainC
|
|
|
18
18
|
import { DescribeDomainCommand, } from "./commands/DescribeDomainCommand";
|
|
19
19
|
import { DescribeDomainConfigCommand, } from "./commands/DescribeDomainConfigCommand";
|
|
20
20
|
import { DescribeDomainHealthCommand, } from "./commands/DescribeDomainHealthCommand";
|
|
21
|
+
import { DescribeDomainNodesCommand, } from "./commands/DescribeDomainNodesCommand";
|
|
21
22
|
import { DescribeDomainsCommand, } from "./commands/DescribeDomainsCommand";
|
|
22
23
|
import { DescribeDryRunProgressCommand, } from "./commands/DescribeDryRunProgressCommand";
|
|
23
24
|
import { DescribeInboundConnectionsCommand, } from "./commands/DescribeInboundConnectionsCommand";
|
|
@@ -73,6 +74,7 @@ const commands = {
|
|
|
73
74
|
DescribeDomainChangeProgressCommand,
|
|
74
75
|
DescribeDomainConfigCommand,
|
|
75
76
|
DescribeDomainHealthCommand,
|
|
77
|
+
DescribeDomainNodesCommand,
|
|
76
78
|
DescribeDomainsCommand,
|
|
77
79
|
DescribeDryRunProgressCommand,
|
|
78
80
|
DescribeInboundConnectionsCommand,
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { de_DescribeDomainNodesCommand, se_DescribeDomainNodesCommand } from "../protocols/Aws_restJson1";
|
|
5
|
+
export class DescribeDomainNodesCommand extends $Command {
|
|
6
|
+
static getEndpointParameterInstructions() {
|
|
7
|
+
return {
|
|
8
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
9
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
10
|
+
Region: { type: "builtInParams", name: "region" },
|
|
11
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
constructor(input) {
|
|
15
|
+
super();
|
|
16
|
+
this.input = input;
|
|
17
|
+
}
|
|
18
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
19
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
20
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, DescribeDomainNodesCommand.getEndpointParameterInstructions()));
|
|
21
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
22
|
+
const { logger } = configuration;
|
|
23
|
+
const clientName = "OpenSearchClient";
|
|
24
|
+
const commandName = "DescribeDomainNodesCommand";
|
|
25
|
+
const handlerExecutionContext = {
|
|
26
|
+
logger,
|
|
27
|
+
clientName,
|
|
28
|
+
commandName,
|
|
29
|
+
inputFilterSensitiveLog: (_) => _,
|
|
30
|
+
outputFilterSensitiveLog: (_) => _,
|
|
31
|
+
};
|
|
32
|
+
const { requestHandler } = configuration;
|
|
33
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
34
|
+
}
|
|
35
|
+
serialize(input, context) {
|
|
36
|
+
return se_DescribeDomainNodesCommand(input, context);
|
|
37
|
+
}
|
|
38
|
+
deserialize(output, context) {
|
|
39
|
+
return de_DescribeDomainNodesCommand(output, context);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./DescribeDomainChangeProgressCommand";
|
|
|
17
17
|
export * from "./DescribeDomainCommand";
|
|
18
18
|
export * from "./DescribeDomainConfigCommand";
|
|
19
19
|
export * from "./DescribeDomainHealthCommand";
|
|
20
|
+
export * from "./DescribeDomainNodesCommand";
|
|
20
21
|
export * from "./DescribeDomainsCommand";
|
|
21
22
|
export * from "./DescribeDryRunProgressCommand";
|
|
22
23
|
export * from "./DescribeInboundConnectionsCommand";
|
|
@@ -387,6 +387,28 @@ export const MasterNodeStatus = {
|
|
|
387
387
|
Available: "Available",
|
|
388
388
|
UnAvailable: "UnAvailable",
|
|
389
389
|
};
|
|
390
|
+
export class DependencyFailureException extends __BaseException {
|
|
391
|
+
constructor(opts) {
|
|
392
|
+
super({
|
|
393
|
+
name: "DependencyFailureException",
|
|
394
|
+
$fault: "client",
|
|
395
|
+
...opts,
|
|
396
|
+
});
|
|
397
|
+
this.name = "DependencyFailureException";
|
|
398
|
+
this.$fault = "client";
|
|
399
|
+
Object.setPrototypeOf(this, DependencyFailureException.prototype);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
export const NodeStatus = {
|
|
403
|
+
Active: "Active",
|
|
404
|
+
NotAvailable: "NotAvailable",
|
|
405
|
+
StandBy: "StandBy",
|
|
406
|
+
};
|
|
407
|
+
export const NodeType = {
|
|
408
|
+
Data: "Data",
|
|
409
|
+
Master: "Master",
|
|
410
|
+
Ultrawarm: "Ultrawarm",
|
|
411
|
+
};
|
|
390
412
|
export class InvalidPaginationTokenException extends __BaseException {
|
|
391
413
|
constructor(opts) {
|
|
392
414
|
super({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
|
-
import { AccessDeniedException, BaseException, ConflictException, DisabledOperationException, InternalException, InvalidPaginationTokenException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, SlotNotAvailableException, ValidationException, } from "../models/models_0";
|
|
3
|
+
import { AccessDeniedException, BaseException, ConflictException, DependencyFailureException, DisabledOperationException, InternalException, InvalidPaginationTokenException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, SlotNotAvailableException, ValidationException, } from "../models/models_0";
|
|
4
4
|
import { OpenSearchServiceException as __BaseException } from "../models/OpenSearchServiceException";
|
|
5
5
|
export const se_AcceptInboundConnectionCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -386,6 +386,23 @@ export const se_DescribeDomainHealthCommand = async (input, context) => {
|
|
|
386
386
|
body,
|
|
387
387
|
});
|
|
388
388
|
};
|
|
389
|
+
export const se_DescribeDomainNodesCommand = async (input, context) => {
|
|
390
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
391
|
+
const headers = {};
|
|
392
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
393
|
+
"/2021-01-01/opensearch/domain/{DomainName}/nodes";
|
|
394
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
395
|
+
let body;
|
|
396
|
+
return new __HttpRequest({
|
|
397
|
+
protocol,
|
|
398
|
+
hostname,
|
|
399
|
+
port,
|
|
400
|
+
method: "GET",
|
|
401
|
+
headers,
|
|
402
|
+
path: resolvedPath,
|
|
403
|
+
body,
|
|
404
|
+
});
|
|
405
|
+
};
|
|
389
406
|
export const se_DescribeDomainsCommand = async (input, context) => {
|
|
390
407
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
391
408
|
const headers = {
|
|
@@ -1967,6 +1984,54 @@ const de_DescribeDomainHealthCommandError = async (output, context) => {
|
|
|
1967
1984
|
});
|
|
1968
1985
|
}
|
|
1969
1986
|
};
|
|
1987
|
+
export const de_DescribeDomainNodesCommand = async (output, context) => {
|
|
1988
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1989
|
+
return de_DescribeDomainNodesCommandError(output, context);
|
|
1990
|
+
}
|
|
1991
|
+
const contents = map({
|
|
1992
|
+
$metadata: deserializeMetadata(output),
|
|
1993
|
+
});
|
|
1994
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1995
|
+
const doc = take(data, {
|
|
1996
|
+
DomainNodesStatusList: _json,
|
|
1997
|
+
});
|
|
1998
|
+
Object.assign(contents, doc);
|
|
1999
|
+
return contents;
|
|
2000
|
+
};
|
|
2001
|
+
const de_DescribeDomainNodesCommandError = async (output, context) => {
|
|
2002
|
+
const parsedOutput = {
|
|
2003
|
+
...output,
|
|
2004
|
+
body: await parseErrorBody(output.body, context),
|
|
2005
|
+
};
|
|
2006
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2007
|
+
switch (errorCode) {
|
|
2008
|
+
case "BaseException":
|
|
2009
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2010
|
+
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2011
|
+
case "DependencyFailureException":
|
|
2012
|
+
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
2013
|
+
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
2014
|
+
case "DisabledOperationException":
|
|
2015
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2016
|
+
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2017
|
+
case "InternalException":
|
|
2018
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2019
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2020
|
+
case "ResourceNotFoundException":
|
|
2021
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2022
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2023
|
+
case "ValidationException":
|
|
2024
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
2025
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2026
|
+
default:
|
|
2027
|
+
const parsedBody = parsedOutput.body;
|
|
2028
|
+
return throwDefaultError({
|
|
2029
|
+
output,
|
|
2030
|
+
parsedBody,
|
|
2031
|
+
errorCode,
|
|
2032
|
+
});
|
|
2033
|
+
}
|
|
2034
|
+
};
|
|
1970
2035
|
export const de_DescribeDomainsCommand = async (output, context) => {
|
|
1971
2036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1972
2037
|
return de_DescribeDomainsCommandError(output, context);
|
|
@@ -3504,6 +3569,19 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
|
3504
3569
|
});
|
|
3505
3570
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
3506
3571
|
};
|
|
3572
|
+
const de_DependencyFailureExceptionRes = async (parsedOutput, context) => {
|
|
3573
|
+
const contents = map({});
|
|
3574
|
+
const data = parsedOutput.body;
|
|
3575
|
+
const doc = take(data, {
|
|
3576
|
+
message: __expectString,
|
|
3577
|
+
});
|
|
3578
|
+
Object.assign(contents, doc);
|
|
3579
|
+
const exception = new DependencyFailureException({
|
|
3580
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
3581
|
+
...contents,
|
|
3582
|
+
});
|
|
3583
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
3584
|
+
};
|
|
3507
3585
|
const de_DisabledOperationExceptionRes = async (parsedOutput, context) => {
|
|
3508
3586
|
const contents = map({});
|
|
3509
3587
|
const data = parsedOutput.body;
|
|
@@ -18,6 +18,7 @@ import { DescribeDomainChangeProgressCommandInput, DescribeDomainChangeProgressC
|
|
|
18
18
|
import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "./commands/DescribeDomainCommand";
|
|
19
19
|
import { DescribeDomainConfigCommandInput, DescribeDomainConfigCommandOutput } from "./commands/DescribeDomainConfigCommand";
|
|
20
20
|
import { DescribeDomainHealthCommandInput, DescribeDomainHealthCommandOutput } from "./commands/DescribeDomainHealthCommand";
|
|
21
|
+
import { DescribeDomainNodesCommandInput, DescribeDomainNodesCommandOutput } from "./commands/DescribeDomainNodesCommand";
|
|
21
22
|
import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "./commands/DescribeDomainsCommand";
|
|
22
23
|
import { DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput } from "./commands/DescribeDryRunProgressCommand";
|
|
23
24
|
import { DescribeInboundConnectionsCommandInput, DescribeInboundConnectionsCommandOutput } from "./commands/DescribeInboundConnectionsCommand";
|
|
@@ -168,6 +169,12 @@ export interface OpenSearch {
|
|
|
168
169
|
describeDomainHealth(args: DescribeDomainHealthCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDomainHealthCommandOutput>;
|
|
169
170
|
describeDomainHealth(args: DescribeDomainHealthCommandInput, cb: (err: any, data?: DescribeDomainHealthCommandOutput) => void): void;
|
|
170
171
|
describeDomainHealth(args: DescribeDomainHealthCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDomainHealthCommandOutput) => void): void;
|
|
172
|
+
/**
|
|
173
|
+
* @see {@link DescribeDomainNodesCommand}
|
|
174
|
+
*/
|
|
175
|
+
describeDomainNodes(args: DescribeDomainNodesCommandInput, options?: __HttpHandlerOptions): Promise<DescribeDomainNodesCommandOutput>;
|
|
176
|
+
describeDomainNodes(args: DescribeDomainNodesCommandInput, cb: (err: any, data?: DescribeDomainNodesCommandOutput) => void): void;
|
|
177
|
+
describeDomainNodes(args: DescribeDomainNodesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDomainNodesCommandOutput) => void): void;
|
|
171
178
|
/**
|
|
172
179
|
* @see {@link DescribeDomainsCommand}
|
|
173
180
|
*/
|
|
@@ -26,6 +26,7 @@ import { DescribeDomainChangeProgressCommandInput, DescribeDomainChangeProgressC
|
|
|
26
26
|
import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "./commands/DescribeDomainCommand";
|
|
27
27
|
import { DescribeDomainConfigCommandInput, DescribeDomainConfigCommandOutput } from "./commands/DescribeDomainConfigCommand";
|
|
28
28
|
import { DescribeDomainHealthCommandInput, DescribeDomainHealthCommandOutput } from "./commands/DescribeDomainHealthCommand";
|
|
29
|
+
import { DescribeDomainNodesCommandInput, DescribeDomainNodesCommandOutput } from "./commands/DescribeDomainNodesCommand";
|
|
29
30
|
import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "./commands/DescribeDomainsCommand";
|
|
30
31
|
import { DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput } from "./commands/DescribeDryRunProgressCommand";
|
|
31
32
|
import { DescribeInboundConnectionsCommandInput, DescribeInboundConnectionsCommandOutput } from "./commands/DescribeInboundConnectionsCommand";
|
|
@@ -64,11 +65,11 @@ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, Endpoi
|
|
|
64
65
|
/**
|
|
65
66
|
* @public
|
|
66
67
|
*/
|
|
67
|
-
export type ServiceInputTypes = AcceptInboundConnectionCommandInput | AddTagsCommandInput | AssociatePackageCommandInput | AuthorizeVpcEndpointAccessCommandInput | CancelServiceSoftwareUpdateCommandInput | CreateDomainCommandInput | CreateOutboundConnectionCommandInput | CreatePackageCommandInput | CreateVpcEndpointCommandInput | DeleteDomainCommandInput | DeleteInboundConnectionCommandInput | DeleteOutboundConnectionCommandInput | DeletePackageCommandInput | DeleteVpcEndpointCommandInput | DescribeDomainAutoTunesCommandInput | DescribeDomainChangeProgressCommandInput | DescribeDomainCommandInput | DescribeDomainConfigCommandInput | DescribeDomainHealthCommandInput | DescribeDomainsCommandInput | DescribeDryRunProgressCommandInput | DescribeInboundConnectionsCommandInput | DescribeInstanceTypeLimitsCommandInput | DescribeOutboundConnectionsCommandInput | DescribePackagesCommandInput | DescribeReservedInstanceOfferingsCommandInput | DescribeReservedInstancesCommandInput | DescribeVpcEndpointsCommandInput | DissociatePackageCommandInput | GetCompatibleVersionsCommandInput | GetPackageVersionHistoryCommandInput | GetUpgradeHistoryCommandInput | GetUpgradeStatusCommandInput | ListDomainNamesCommandInput | ListDomainsForPackageCommandInput | ListInstanceTypeDetailsCommandInput | ListPackagesForDomainCommandInput | ListScheduledActionsCommandInput | ListTagsCommandInput | ListVersionsCommandInput | ListVpcEndpointAccessCommandInput | ListVpcEndpointsCommandInput | ListVpcEndpointsForDomainCommandInput | PurchaseReservedInstanceOfferingCommandInput | RejectInboundConnectionCommandInput | RemoveTagsCommandInput | RevokeVpcEndpointAccessCommandInput | StartServiceSoftwareUpdateCommandInput | UpdateDomainConfigCommandInput | UpdatePackageCommandInput | UpdateScheduledActionCommandInput | UpdateVpcEndpointCommandInput | UpgradeDomainCommandInput;
|
|
68
|
+
export type ServiceInputTypes = AcceptInboundConnectionCommandInput | AddTagsCommandInput | AssociatePackageCommandInput | AuthorizeVpcEndpointAccessCommandInput | CancelServiceSoftwareUpdateCommandInput | CreateDomainCommandInput | CreateOutboundConnectionCommandInput | CreatePackageCommandInput | CreateVpcEndpointCommandInput | DeleteDomainCommandInput | DeleteInboundConnectionCommandInput | DeleteOutboundConnectionCommandInput | DeletePackageCommandInput | DeleteVpcEndpointCommandInput | DescribeDomainAutoTunesCommandInput | DescribeDomainChangeProgressCommandInput | DescribeDomainCommandInput | DescribeDomainConfigCommandInput | DescribeDomainHealthCommandInput | DescribeDomainNodesCommandInput | DescribeDomainsCommandInput | DescribeDryRunProgressCommandInput | DescribeInboundConnectionsCommandInput | DescribeInstanceTypeLimitsCommandInput | DescribeOutboundConnectionsCommandInput | DescribePackagesCommandInput | DescribeReservedInstanceOfferingsCommandInput | DescribeReservedInstancesCommandInput | DescribeVpcEndpointsCommandInput | DissociatePackageCommandInput | GetCompatibleVersionsCommandInput | GetPackageVersionHistoryCommandInput | GetUpgradeHistoryCommandInput | GetUpgradeStatusCommandInput | ListDomainNamesCommandInput | ListDomainsForPackageCommandInput | ListInstanceTypeDetailsCommandInput | ListPackagesForDomainCommandInput | ListScheduledActionsCommandInput | ListTagsCommandInput | ListVersionsCommandInput | ListVpcEndpointAccessCommandInput | ListVpcEndpointsCommandInput | ListVpcEndpointsForDomainCommandInput | PurchaseReservedInstanceOfferingCommandInput | RejectInboundConnectionCommandInput | RemoveTagsCommandInput | RevokeVpcEndpointAccessCommandInput | StartServiceSoftwareUpdateCommandInput | UpdateDomainConfigCommandInput | UpdatePackageCommandInput | UpdateScheduledActionCommandInput | UpdateVpcEndpointCommandInput | UpgradeDomainCommandInput;
|
|
68
69
|
/**
|
|
69
70
|
* @public
|
|
70
71
|
*/
|
|
71
|
-
export type ServiceOutputTypes = AcceptInboundConnectionCommandOutput | AddTagsCommandOutput | AssociatePackageCommandOutput | AuthorizeVpcEndpointAccessCommandOutput | CancelServiceSoftwareUpdateCommandOutput | CreateDomainCommandOutput | CreateOutboundConnectionCommandOutput | CreatePackageCommandOutput | CreateVpcEndpointCommandOutput | DeleteDomainCommandOutput | DeleteInboundConnectionCommandOutput | DeleteOutboundConnectionCommandOutput | DeletePackageCommandOutput | DeleteVpcEndpointCommandOutput | DescribeDomainAutoTunesCommandOutput | DescribeDomainChangeProgressCommandOutput | DescribeDomainCommandOutput | DescribeDomainConfigCommandOutput | DescribeDomainHealthCommandOutput | DescribeDomainsCommandOutput | DescribeDryRunProgressCommandOutput | DescribeInboundConnectionsCommandOutput | DescribeInstanceTypeLimitsCommandOutput | DescribeOutboundConnectionsCommandOutput | DescribePackagesCommandOutput | DescribeReservedInstanceOfferingsCommandOutput | DescribeReservedInstancesCommandOutput | DescribeVpcEndpointsCommandOutput | DissociatePackageCommandOutput | GetCompatibleVersionsCommandOutput | GetPackageVersionHistoryCommandOutput | GetUpgradeHistoryCommandOutput | GetUpgradeStatusCommandOutput | ListDomainNamesCommandOutput | ListDomainsForPackageCommandOutput | ListInstanceTypeDetailsCommandOutput | ListPackagesForDomainCommandOutput | ListScheduledActionsCommandOutput | ListTagsCommandOutput | ListVersionsCommandOutput | ListVpcEndpointAccessCommandOutput | ListVpcEndpointsCommandOutput | ListVpcEndpointsForDomainCommandOutput | PurchaseReservedInstanceOfferingCommandOutput | RejectInboundConnectionCommandOutput | RemoveTagsCommandOutput | RevokeVpcEndpointAccessCommandOutput | StartServiceSoftwareUpdateCommandOutput | UpdateDomainConfigCommandOutput | UpdatePackageCommandOutput | UpdateScheduledActionCommandOutput | UpdateVpcEndpointCommandOutput | UpgradeDomainCommandOutput;
|
|
72
|
+
export type ServiceOutputTypes = AcceptInboundConnectionCommandOutput | AddTagsCommandOutput | AssociatePackageCommandOutput | AuthorizeVpcEndpointAccessCommandOutput | CancelServiceSoftwareUpdateCommandOutput | CreateDomainCommandOutput | CreateOutboundConnectionCommandOutput | CreatePackageCommandOutput | CreateVpcEndpointCommandOutput | DeleteDomainCommandOutput | DeleteInboundConnectionCommandOutput | DeleteOutboundConnectionCommandOutput | DeletePackageCommandOutput | DeleteVpcEndpointCommandOutput | DescribeDomainAutoTunesCommandOutput | DescribeDomainChangeProgressCommandOutput | DescribeDomainCommandOutput | DescribeDomainConfigCommandOutput | DescribeDomainHealthCommandOutput | DescribeDomainNodesCommandOutput | DescribeDomainsCommandOutput | DescribeDryRunProgressCommandOutput | DescribeInboundConnectionsCommandOutput | DescribeInstanceTypeLimitsCommandOutput | DescribeOutboundConnectionsCommandOutput | DescribePackagesCommandOutput | DescribeReservedInstanceOfferingsCommandOutput | DescribeReservedInstancesCommandOutput | DescribeVpcEndpointsCommandOutput | DissociatePackageCommandOutput | GetCompatibleVersionsCommandOutput | GetPackageVersionHistoryCommandOutput | GetUpgradeHistoryCommandOutput | GetUpgradeStatusCommandOutput | ListDomainNamesCommandOutput | ListDomainsForPackageCommandOutput | ListInstanceTypeDetailsCommandOutput | ListPackagesForDomainCommandOutput | ListScheduledActionsCommandOutput | ListTagsCommandOutput | ListVersionsCommandOutput | ListVpcEndpointAccessCommandOutput | ListVpcEndpointsCommandOutput | ListVpcEndpointsForDomainCommandOutput | PurchaseReservedInstanceOfferingCommandOutput | RejectInboundConnectionCommandOutput | RemoveTagsCommandOutput | RevokeVpcEndpointAccessCommandOutput | StartServiceSoftwareUpdateCommandOutput | UpdateDomainConfigCommandOutput | UpdatePackageCommandOutput | UpdateScheduledActionCommandOutput | UpdateVpcEndpointCommandOutput | UpgradeDomainCommandOutput;
|
|
72
73
|
/**
|
|
73
74
|
* @public
|
|
74
75
|
*/
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DescribeDomainNodesRequest, DescribeDomainNodesResponse } from "../models/models_0";
|
|
5
|
+
import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*
|
|
9
|
+
* The input for {@link DescribeDomainNodesCommand}.
|
|
10
|
+
*/
|
|
11
|
+
export interface DescribeDomainNodesCommandInput extends DescribeDomainNodesRequest {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* The output of {@link DescribeDomainNodesCommand}.
|
|
17
|
+
*/
|
|
18
|
+
export interface DescribeDomainNodesCommandOutput extends DescribeDomainNodesResponse, __MetadataBearer {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* <p>Returns information about domain and nodes, including data nodes, master nodes, ultrawarm
|
|
23
|
+
* nodes, Availability Zone(s), standby nodes, node configurations, and node states.</p>
|
|
24
|
+
* @example
|
|
25
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
26
|
+
* ```javascript
|
|
27
|
+
* import { OpenSearchClient, DescribeDomainNodesCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
|
|
28
|
+
* // const { OpenSearchClient, DescribeDomainNodesCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
|
|
29
|
+
* const client = new OpenSearchClient(config);
|
|
30
|
+
* const input = { // DescribeDomainNodesRequest
|
|
31
|
+
* DomainName: "STRING_VALUE", // required
|
|
32
|
+
* };
|
|
33
|
+
* const command = new DescribeDomainNodesCommand(input);
|
|
34
|
+
* const response = await client.send(command);
|
|
35
|
+
* // { // DescribeDomainNodesResponse
|
|
36
|
+
* // DomainNodesStatusList: [ // DomainNodesStatusList
|
|
37
|
+
* // { // DomainNodesStatus
|
|
38
|
+
* // NodeId: "STRING_VALUE",
|
|
39
|
+
* // NodeType: "Data" || "Ultrawarm" || "Master",
|
|
40
|
+
* // AvailabilityZone: "STRING_VALUE",
|
|
41
|
+
* // InstanceType: "m3.medium.search" || "m3.large.search" || "m3.xlarge.search" || "m3.2xlarge.search" || "m4.large.search" || "m4.xlarge.search" || "m4.2xlarge.search" || "m4.4xlarge.search" || "m4.10xlarge.search" || "m5.large.search" || "m5.xlarge.search" || "m5.2xlarge.search" || "m5.4xlarge.search" || "m5.12xlarge.search" || "m5.24xlarge.search" || "r5.large.search" || "r5.xlarge.search" || "r5.2xlarge.search" || "r5.4xlarge.search" || "r5.12xlarge.search" || "r5.24xlarge.search" || "c5.large.search" || "c5.xlarge.search" || "c5.2xlarge.search" || "c5.4xlarge.search" || "c5.9xlarge.search" || "c5.18xlarge.search" || "t3.nano.search" || "t3.micro.search" || "t3.small.search" || "t3.medium.search" || "t3.large.search" || "t3.xlarge.search" || "t3.2xlarge.search" || "ultrawarm1.medium.search" || "ultrawarm1.large.search" || "ultrawarm1.xlarge.search" || "t2.micro.search" || "t2.small.search" || "t2.medium.search" || "r3.large.search" || "r3.xlarge.search" || "r3.2xlarge.search" || "r3.4xlarge.search" || "r3.8xlarge.search" || "i2.xlarge.search" || "i2.2xlarge.search" || "d2.xlarge.search" || "d2.2xlarge.search" || "d2.4xlarge.search" || "d2.8xlarge.search" || "c4.large.search" || "c4.xlarge.search" || "c4.2xlarge.search" || "c4.4xlarge.search" || "c4.8xlarge.search" || "r4.large.search" || "r4.xlarge.search" || "r4.2xlarge.search" || "r4.4xlarge.search" || "r4.8xlarge.search" || "r4.16xlarge.search" || "i3.large.search" || "i3.xlarge.search" || "i3.2xlarge.search" || "i3.4xlarge.search" || "i3.8xlarge.search" || "i3.16xlarge.search" || "r6g.large.search" || "r6g.xlarge.search" || "r6g.2xlarge.search" || "r6g.4xlarge.search" || "r6g.8xlarge.search" || "r6g.12xlarge.search" || "m6g.large.search" || "m6g.xlarge.search" || "m6g.2xlarge.search" || "m6g.4xlarge.search" || "m6g.8xlarge.search" || "m6g.12xlarge.search" || "c6g.large.search" || "c6g.xlarge.search" || "c6g.2xlarge.search" || "c6g.4xlarge.search" || "c6g.8xlarge.search" || "c6g.12xlarge.search" || "r6gd.large.search" || "r6gd.xlarge.search" || "r6gd.2xlarge.search" || "r6gd.4xlarge.search" || "r6gd.8xlarge.search" || "r6gd.12xlarge.search" || "r6gd.16xlarge.search" || "t4g.small.search" || "t4g.medium.search",
|
|
42
|
+
* // NodeStatus: "Active" || "StandBy" || "NotAvailable",
|
|
43
|
+
* // StorageType: "STRING_VALUE",
|
|
44
|
+
* // StorageVolumeType: "standard" || "gp2" || "io1" || "gp3",
|
|
45
|
+
* // StorageSize: "STRING_VALUE",
|
|
46
|
+
* // },
|
|
47
|
+
* // ],
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param DescribeDomainNodesCommandInput - {@link DescribeDomainNodesCommandInput}
|
|
53
|
+
* @returns {@link DescribeDomainNodesCommandOutput}
|
|
54
|
+
* @see {@link DescribeDomainNodesCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link DescribeDomainNodesCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link BaseException} (client fault)
|
|
59
|
+
* <p>An error occurred while processing the request.</p>
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link DependencyFailureException} (client fault)
|
|
62
|
+
* <p>An exception for when a failure in one of the dependencies results in the service being unable to fetch details about the resource.</p>
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link DisabledOperationException} (client fault)
|
|
65
|
+
* <p>An error occured because the client wanted to access an unsupported operation.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalException} (server fault)
|
|
68
|
+
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
71
|
+
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ValidationException} (client fault)
|
|
74
|
+
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link OpenSearchServiceException}
|
|
77
|
+
* <p>Base exception class for all service exceptions from OpenSearch service.</p>
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
export declare class DescribeDomainNodesCommand extends $Command<DescribeDomainNodesCommandInput, DescribeDomainNodesCommandOutput, OpenSearchClientResolvedConfig> {
|
|
81
|
+
readonly input: DescribeDomainNodesCommandInput;
|
|
82
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
constructor(input: DescribeDomainNodesCommandInput);
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
90
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OpenSearchClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DescribeDomainNodesCommandInput, DescribeDomainNodesCommandOutput>;
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
private serialize;
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
private deserialize;
|
|
99
|
+
}
|
|
@@ -19,7 +19,8 @@ export interface UpdateDomainConfigCommandOutput extends UpdateDomainConfigRespo
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* @public
|
|
22
|
-
* <p>Modifies the cluster configuration of the specified Amazon OpenSearch Service
|
|
22
|
+
* <p>Modifies the cluster configuration of the specified Amazon OpenSearch Service
|
|
23
|
+
* domain.sl</p>
|
|
23
24
|
* @example
|
|
24
25
|
* Use a bare-bones client and the command you need to make an API call.
|
|
25
26
|
* ```javascript
|
|
@@ -17,6 +17,7 @@ export * from "./DescribeDomainChangeProgressCommand";
|
|
|
17
17
|
export * from "./DescribeDomainCommand";
|
|
18
18
|
export * from "./DescribeDomainConfigCommand";
|
|
19
19
|
export * from "./DescribeDomainHealthCommand";
|
|
20
|
+
export * from "./DescribeDomainNodesCommand";
|
|
20
21
|
export * from "./DescribeDomainsCommand";
|
|
21
22
|
export * from "./DescribeDryRunProgressCommand";
|
|
22
23
|
export * from "./DescribeInboundConnectionsCommand";
|
|
@@ -1522,7 +1522,7 @@ export interface CreateDomainRequest {
|
|
|
1522
1522
|
*/
|
|
1523
1523
|
AdvancedOptions?: Record<string, string>;
|
|
1524
1524
|
/**
|
|
1525
|
-
* <p>Key-value pairs to configure
|
|
1525
|
+
* <p>Key-value pairs to configure log publishing.</p>
|
|
1526
1526
|
*/
|
|
1527
1527
|
LogPublishingOptions?: Record<string, LogPublishingOption>;
|
|
1528
1528
|
/**
|
|
@@ -2841,7 +2841,7 @@ export interface DomainConfig {
|
|
|
2841
2841
|
*/
|
|
2842
2842
|
AdvancedOptions?: AdvancedOptionsStatus;
|
|
2843
2843
|
/**
|
|
2844
|
-
* <p>Key-value pairs to configure
|
|
2844
|
+
* <p>Key-value pairs to configure log publishing.</p>
|
|
2845
2845
|
*/
|
|
2846
2846
|
LogPublishingOptions?: LogPublishingOptionsStatus;
|
|
2847
2847
|
/**
|
|
@@ -3093,6 +3093,105 @@ export interface DescribeDomainHealthResponse {
|
|
|
3093
3093
|
*/
|
|
3094
3094
|
EnvironmentInformation?: EnvironmentInfo[];
|
|
3095
3095
|
}
|
|
3096
|
+
/**
|
|
3097
|
+
* @public
|
|
3098
|
+
* <p>An exception for when a failure in one of the dependencies results in the service being unable to fetch details about the resource.</p>
|
|
3099
|
+
*/
|
|
3100
|
+
export declare class DependencyFailureException extends __BaseException {
|
|
3101
|
+
readonly name: "DependencyFailureException";
|
|
3102
|
+
readonly $fault: "client";
|
|
3103
|
+
/**
|
|
3104
|
+
* @internal
|
|
3105
|
+
*/
|
|
3106
|
+
constructor(opts: __ExceptionOptionType<DependencyFailureException, __BaseException>);
|
|
3107
|
+
}
|
|
3108
|
+
/**
|
|
3109
|
+
* @public
|
|
3110
|
+
* <p>Container for the parameters to the <code>DescribeDomainNodes</code>
|
|
3111
|
+
* operation.</p>
|
|
3112
|
+
*/
|
|
3113
|
+
export interface DescribeDomainNodesRequest {
|
|
3114
|
+
/**
|
|
3115
|
+
* <p>The name of the domain.</p>
|
|
3116
|
+
*/
|
|
3117
|
+
DomainName: string | undefined;
|
|
3118
|
+
}
|
|
3119
|
+
/**
|
|
3120
|
+
* @public
|
|
3121
|
+
* @enum
|
|
3122
|
+
*/
|
|
3123
|
+
export declare const NodeStatus: {
|
|
3124
|
+
readonly Active: "Active";
|
|
3125
|
+
readonly NotAvailable: "NotAvailable";
|
|
3126
|
+
readonly StandBy: "StandBy";
|
|
3127
|
+
};
|
|
3128
|
+
/**
|
|
3129
|
+
* @public
|
|
3130
|
+
*/
|
|
3131
|
+
export type NodeStatus = (typeof NodeStatus)[keyof typeof NodeStatus];
|
|
3132
|
+
/**
|
|
3133
|
+
* @public
|
|
3134
|
+
* @enum
|
|
3135
|
+
*/
|
|
3136
|
+
export declare const NodeType: {
|
|
3137
|
+
readonly Data: "Data";
|
|
3138
|
+
readonly Master: "Master";
|
|
3139
|
+
readonly Ultrawarm: "Ultrawarm";
|
|
3140
|
+
};
|
|
3141
|
+
/**
|
|
3142
|
+
* @public
|
|
3143
|
+
*/
|
|
3144
|
+
export type NodeType = (typeof NodeType)[keyof typeof NodeType];
|
|
3145
|
+
/**
|
|
3146
|
+
* @public
|
|
3147
|
+
* <p>Container for information about nodes on the domain.</p>
|
|
3148
|
+
*/
|
|
3149
|
+
export interface DomainNodesStatus {
|
|
3150
|
+
/**
|
|
3151
|
+
* <p>The ID of the node.</p>
|
|
3152
|
+
*/
|
|
3153
|
+
NodeId?: string;
|
|
3154
|
+
/**
|
|
3155
|
+
* <p>Indicates whether the nodes is a data, master, or ultrawarm node.</p>
|
|
3156
|
+
*/
|
|
3157
|
+
NodeType?: NodeType | string;
|
|
3158
|
+
/**
|
|
3159
|
+
* <p>The Availability Zone of the node.</p>
|
|
3160
|
+
*/
|
|
3161
|
+
AvailabilityZone?: string;
|
|
3162
|
+
/**
|
|
3163
|
+
* <p>The instance type information of the node.</p>
|
|
3164
|
+
*/
|
|
3165
|
+
InstanceType?: OpenSearchPartitionInstanceType | string;
|
|
3166
|
+
/**
|
|
3167
|
+
* <p>Indicates if the node is active or in standby.</p>
|
|
3168
|
+
*/
|
|
3169
|
+
NodeStatus?: NodeStatus | string;
|
|
3170
|
+
/**
|
|
3171
|
+
* <p>Indicates if the node has EBS or instance storage. </p>
|
|
3172
|
+
*/
|
|
3173
|
+
StorageType?: string;
|
|
3174
|
+
/**
|
|
3175
|
+
* <p>If the nodes has EBS storage, indicates if the volume type is GP2 or GP3. Only applicable
|
|
3176
|
+
* for data nodes. </p>
|
|
3177
|
+
*/
|
|
3178
|
+
StorageVolumeType?: VolumeType | string;
|
|
3179
|
+
/**
|
|
3180
|
+
* <p>The storage size of the node, in GiB.</p>
|
|
3181
|
+
*/
|
|
3182
|
+
StorageSize?: string;
|
|
3183
|
+
}
|
|
3184
|
+
/**
|
|
3185
|
+
* @public
|
|
3186
|
+
* <p>The result of a <code>DescribeDomainNodes</code> request. Contains information about the nodes on the requested domain. </p>
|
|
3187
|
+
*/
|
|
3188
|
+
export interface DescribeDomainNodesResponse {
|
|
3189
|
+
/**
|
|
3190
|
+
* <p>Contains nodes information list <code>DomainNodesStatusList</code> with
|
|
3191
|
+
* details about the all nodes on the requested domain.</p>
|
|
3192
|
+
*/
|
|
3193
|
+
DomainNodesStatusList?: DomainNodesStatus[];
|
|
3194
|
+
}
|
|
3096
3195
|
/**
|
|
3097
3196
|
* @public
|
|
3098
3197
|
* <p>Container for the parameters to the <code>DescribeDomains</code> operation.</p>
|
|
@@ -3495,7 +3594,7 @@ export interface DescribePackagesFilter {
|
|
|
3495
3594
|
*/
|
|
3496
3595
|
Name?: DescribePackagesFilterName | string;
|
|
3497
3596
|
/**
|
|
3498
|
-
* <p>A list of values for the specified filter field.</p>
|
|
3597
|
+
* <p>A non-empty list of values for the specified filter field.</p>
|
|
3499
3598
|
*/
|
|
3500
3599
|
Value?: string[];
|
|
3501
3600
|
}
|
|
@@ -19,6 +19,7 @@ import { DescribeDomainChangeProgressCommandInput, DescribeDomainChangeProgressC
|
|
|
19
19
|
import { DescribeDomainCommandInput, DescribeDomainCommandOutput } from "../commands/DescribeDomainCommand";
|
|
20
20
|
import { DescribeDomainConfigCommandInput, DescribeDomainConfigCommandOutput } from "../commands/DescribeDomainConfigCommand";
|
|
21
21
|
import { DescribeDomainHealthCommandInput, DescribeDomainHealthCommandOutput } from "../commands/DescribeDomainHealthCommand";
|
|
22
|
+
import { DescribeDomainNodesCommandInput, DescribeDomainNodesCommandOutput } from "../commands/DescribeDomainNodesCommand";
|
|
22
23
|
import { DescribeDomainsCommandInput, DescribeDomainsCommandOutput } from "../commands/DescribeDomainsCommand";
|
|
23
24
|
import { DescribeDryRunProgressCommandInput, DescribeDryRunProgressCommandOutput } from "../commands/DescribeDryRunProgressCommand";
|
|
24
25
|
import { DescribeInboundConnectionsCommandInput, DescribeInboundConnectionsCommandOutput } from "../commands/DescribeInboundConnectionsCommand";
|
|
@@ -129,6 +130,10 @@ export declare const se_DescribeDomainConfigCommand: (input: DescribeDomainConfi
|
|
|
129
130
|
* serializeAws_restJson1DescribeDomainHealthCommand
|
|
130
131
|
*/
|
|
131
132
|
export declare const se_DescribeDomainHealthCommand: (input: DescribeDomainHealthCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
133
|
+
/**
|
|
134
|
+
* serializeAws_restJson1DescribeDomainNodesCommand
|
|
135
|
+
*/
|
|
136
|
+
export declare const se_DescribeDomainNodesCommand: (input: DescribeDomainNodesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
132
137
|
/**
|
|
133
138
|
* serializeAws_restJson1DescribeDomainsCommand
|
|
134
139
|
*/
|
|
@@ -341,6 +346,10 @@ export declare const de_DescribeDomainConfigCommand: (output: __HttpResponse, co
|
|
|
341
346
|
* deserializeAws_restJson1DescribeDomainHealthCommand
|
|
342
347
|
*/
|
|
343
348
|
export declare const de_DescribeDomainHealthCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDomainHealthCommandOutput>;
|
|
349
|
+
/**
|
|
350
|
+
* deserializeAws_restJson1DescribeDomainNodesCommand
|
|
351
|
+
*/
|
|
352
|
+
export declare const de_DescribeDomainNodesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeDomainNodesCommandOutput>;
|
|
344
353
|
/**
|
|
345
354
|
* deserializeAws_restJson1DescribeDomainsCommand
|
|
346
355
|
*/
|
|
@@ -75,6 +75,10 @@ import {
|
|
|
75
75
|
DescribeDomainHealthCommandInput,
|
|
76
76
|
DescribeDomainHealthCommandOutput,
|
|
77
77
|
} from "./commands/DescribeDomainHealthCommand";
|
|
78
|
+
import {
|
|
79
|
+
DescribeDomainNodesCommandInput,
|
|
80
|
+
DescribeDomainNodesCommandOutput,
|
|
81
|
+
} from "./commands/DescribeDomainNodesCommand";
|
|
78
82
|
import {
|
|
79
83
|
DescribeDomainsCommandInput,
|
|
80
84
|
DescribeDomainsCommandOutput,
|
|
@@ -460,6 +464,19 @@ export interface OpenSearch {
|
|
|
460
464
|
options: __HttpHandlerOptions,
|
|
461
465
|
cb: (err: any, data?: DescribeDomainHealthCommandOutput) => void
|
|
462
466
|
): void;
|
|
467
|
+
describeDomainNodes(
|
|
468
|
+
args: DescribeDomainNodesCommandInput,
|
|
469
|
+
options?: __HttpHandlerOptions
|
|
470
|
+
): Promise<DescribeDomainNodesCommandOutput>;
|
|
471
|
+
describeDomainNodes(
|
|
472
|
+
args: DescribeDomainNodesCommandInput,
|
|
473
|
+
cb: (err: any, data?: DescribeDomainNodesCommandOutput) => void
|
|
474
|
+
): void;
|
|
475
|
+
describeDomainNodes(
|
|
476
|
+
args: DescribeDomainNodesCommandInput,
|
|
477
|
+
options: __HttpHandlerOptions,
|
|
478
|
+
cb: (err: any, data?: DescribeDomainNodesCommandOutput) => void
|
|
479
|
+
): void;
|
|
463
480
|
describeDomains(
|
|
464
481
|
args: DescribeDomainsCommandInput,
|
|
465
482
|
options?: __HttpHandlerOptions
|
|
@@ -120,6 +120,10 @@ import {
|
|
|
120
120
|
DescribeDomainHealthCommandInput,
|
|
121
121
|
DescribeDomainHealthCommandOutput,
|
|
122
122
|
} from "./commands/DescribeDomainHealthCommand";
|
|
123
|
+
import {
|
|
124
|
+
DescribeDomainNodesCommandInput,
|
|
125
|
+
DescribeDomainNodesCommandOutput,
|
|
126
|
+
} from "./commands/DescribeDomainNodesCommand";
|
|
123
127
|
import {
|
|
124
128
|
DescribeDomainsCommandInput,
|
|
125
129
|
DescribeDomainsCommandOutput,
|
|
@@ -281,6 +285,7 @@ export type ServiceInputTypes =
|
|
|
281
285
|
| DescribeDomainCommandInput
|
|
282
286
|
| DescribeDomainConfigCommandInput
|
|
283
287
|
| DescribeDomainHealthCommandInput
|
|
288
|
+
| DescribeDomainNodesCommandInput
|
|
284
289
|
| DescribeDomainsCommandInput
|
|
285
290
|
| DescribeDryRunProgressCommandInput
|
|
286
291
|
| DescribeInboundConnectionsCommandInput
|
|
@@ -335,6 +340,7 @@ export type ServiceOutputTypes =
|
|
|
335
340
|
| DescribeDomainCommandOutput
|
|
336
341
|
| DescribeDomainConfigCommandOutput
|
|
337
342
|
| DescribeDomainHealthCommandOutput
|
|
343
|
+
| DescribeDomainNodesCommandOutput
|
|
338
344
|
| DescribeDomainsCommandOutput
|
|
339
345
|
| DescribeDryRunProgressCommandOutput
|
|
340
346
|
| DescribeInboundConnectionsCommandOutput
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import {
|
|
4
|
+
Handler,
|
|
5
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
6
|
+
MetadataBearer as __MetadataBearer,
|
|
7
|
+
MiddlewareStack,
|
|
8
|
+
} from "@aws-sdk/types";
|
|
9
|
+
import {
|
|
10
|
+
DescribeDomainNodesRequest,
|
|
11
|
+
DescribeDomainNodesResponse,
|
|
12
|
+
} from "../models/models_0";
|
|
13
|
+
import {
|
|
14
|
+
OpenSearchClientResolvedConfig,
|
|
15
|
+
ServiceInputTypes,
|
|
16
|
+
ServiceOutputTypes,
|
|
17
|
+
} from "../OpenSearchClient";
|
|
18
|
+
export interface DescribeDomainNodesCommandInput
|
|
19
|
+
extends DescribeDomainNodesRequest {}
|
|
20
|
+
export interface DescribeDomainNodesCommandOutput
|
|
21
|
+
extends DescribeDomainNodesResponse,
|
|
22
|
+
__MetadataBearer {}
|
|
23
|
+
export declare class DescribeDomainNodesCommand extends $Command<
|
|
24
|
+
DescribeDomainNodesCommandInput,
|
|
25
|
+
DescribeDomainNodesCommandOutput,
|
|
26
|
+
OpenSearchClientResolvedConfig
|
|
27
|
+
> {
|
|
28
|
+
readonly input: DescribeDomainNodesCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: DescribeDomainNodesCommandInput);
|
|
31
|
+
resolveMiddleware(
|
|
32
|
+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
33
|
+
configuration: OpenSearchClientResolvedConfig,
|
|
34
|
+
options?: __HttpHandlerOptions
|
|
35
|
+
): Handler<DescribeDomainNodesCommandInput, DescribeDomainNodesCommandOutput>;
|
|
36
|
+
private serialize;
|
|
37
|
+
private deserialize;
|
|
38
|
+
}
|
|
@@ -17,6 +17,7 @@ export * from "./DescribeDomainChangeProgressCommand";
|
|
|
17
17
|
export * from "./DescribeDomainCommand";
|
|
18
18
|
export * from "./DescribeDomainConfigCommand";
|
|
19
19
|
export * from "./DescribeDomainHealthCommand";
|
|
20
|
+
export * from "./DescribeDomainNodesCommand";
|
|
20
21
|
export * from "./DescribeDomainsCommand";
|
|
21
22
|
export * from "./DescribeDryRunProgressCommand";
|
|
22
23
|
export * from "./DescribeInboundConnectionsCommand";
|
|
@@ -951,6 +951,41 @@ export interface DescribeDomainHealthResponse {
|
|
|
951
951
|
TotalUnAssignedShards?: string;
|
|
952
952
|
EnvironmentInformation?: EnvironmentInfo[];
|
|
953
953
|
}
|
|
954
|
+
export declare class DependencyFailureException extends __BaseException {
|
|
955
|
+
readonly name: "DependencyFailureException";
|
|
956
|
+
readonly $fault: "client";
|
|
957
|
+
constructor(
|
|
958
|
+
opts: __ExceptionOptionType<DependencyFailureException, __BaseException>
|
|
959
|
+
);
|
|
960
|
+
}
|
|
961
|
+
export interface DescribeDomainNodesRequest {
|
|
962
|
+
DomainName: string | undefined;
|
|
963
|
+
}
|
|
964
|
+
export declare const NodeStatus: {
|
|
965
|
+
readonly Active: "Active";
|
|
966
|
+
readonly NotAvailable: "NotAvailable";
|
|
967
|
+
readonly StandBy: "StandBy";
|
|
968
|
+
};
|
|
969
|
+
export type NodeStatus = (typeof NodeStatus)[keyof typeof NodeStatus];
|
|
970
|
+
export declare const NodeType: {
|
|
971
|
+
readonly Data: "Data";
|
|
972
|
+
readonly Master: "Master";
|
|
973
|
+
readonly Ultrawarm: "Ultrawarm";
|
|
974
|
+
};
|
|
975
|
+
export type NodeType = (typeof NodeType)[keyof typeof NodeType];
|
|
976
|
+
export interface DomainNodesStatus {
|
|
977
|
+
NodeId?: string;
|
|
978
|
+
NodeType?: NodeType | string;
|
|
979
|
+
AvailabilityZone?: string;
|
|
980
|
+
InstanceType?: OpenSearchPartitionInstanceType | string;
|
|
981
|
+
NodeStatus?: NodeStatus | string;
|
|
982
|
+
StorageType?: string;
|
|
983
|
+
StorageVolumeType?: VolumeType | string;
|
|
984
|
+
StorageSize?: string;
|
|
985
|
+
}
|
|
986
|
+
export interface DescribeDomainNodesResponse {
|
|
987
|
+
DomainNodesStatusList?: DomainNodesStatus[];
|
|
988
|
+
}
|
|
954
989
|
export interface DescribeDomainsRequest {
|
|
955
990
|
DomainNames: string[] | undefined;
|
|
956
991
|
}
|
|
@@ -79,6 +79,10 @@ import {
|
|
|
79
79
|
DescribeDomainHealthCommandInput,
|
|
80
80
|
DescribeDomainHealthCommandOutput,
|
|
81
81
|
} from "../commands/DescribeDomainHealthCommand";
|
|
82
|
+
import {
|
|
83
|
+
DescribeDomainNodesCommandInput,
|
|
84
|
+
DescribeDomainNodesCommandOutput,
|
|
85
|
+
} from "../commands/DescribeDomainNodesCommand";
|
|
82
86
|
import {
|
|
83
87
|
DescribeDomainsCommandInput,
|
|
84
88
|
DescribeDomainsCommandOutput,
|
|
@@ -291,6 +295,10 @@ export declare const se_DescribeDomainHealthCommand: (
|
|
|
291
295
|
input: DescribeDomainHealthCommandInput,
|
|
292
296
|
context: __SerdeContext
|
|
293
297
|
) => Promise<__HttpRequest>;
|
|
298
|
+
export declare const se_DescribeDomainNodesCommand: (
|
|
299
|
+
input: DescribeDomainNodesCommandInput,
|
|
300
|
+
context: __SerdeContext
|
|
301
|
+
) => Promise<__HttpRequest>;
|
|
294
302
|
export declare const se_DescribeDomainsCommand: (
|
|
295
303
|
input: DescribeDomainsCommandInput,
|
|
296
304
|
context: __SerdeContext
|
|
@@ -503,6 +511,10 @@ export declare const de_DescribeDomainHealthCommand: (
|
|
|
503
511
|
output: __HttpResponse,
|
|
504
512
|
context: __SerdeContext
|
|
505
513
|
) => Promise<DescribeDomainHealthCommandOutput>;
|
|
514
|
+
export declare const de_DescribeDomainNodesCommand: (
|
|
515
|
+
output: __HttpResponse,
|
|
516
|
+
context: __SerdeContext
|
|
517
|
+
) => Promise<DescribeDomainNodesCommandOutput>;
|
|
506
518
|
export declare const de_DescribeDomainsCommand: (
|
|
507
519
|
output: __HttpResponse,
|
|
508
520
|
context: __SerdeContext
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-opensearch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Opensearch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.327.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,9 +21,9 @@
|
|
|
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.
|
|
24
|
+
"@aws-sdk/client-sts": "3.327.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.327.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|
|
28
28
|
"@aws-sdk/hash-node": "3.310.0",
|
|
29
29
|
"@aws-sdk/invalid-dependency": "3.310.0",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@aws-sdk/middleware-host-header": "3.325.0",
|
|
33
33
|
"@aws-sdk/middleware-logger": "3.325.0",
|
|
34
34
|
"@aws-sdk/middleware-recursion-detection": "3.325.0",
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.327.0",
|
|
36
36
|
"@aws-sdk/middleware-serde": "3.325.0",
|
|
37
37
|
"@aws-sdk/middleware-signing": "3.325.0",
|
|
38
38
|
"@aws-sdk/middleware-stack": "3.325.0",
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.327.0",
|
|
40
40
|
"@aws-sdk/node-config-provider": "3.310.0",
|
|
41
41
|
"@aws-sdk/node-http-handler": "3.321.1",
|
|
42
42
|
"@aws-sdk/protocol-http": "3.310.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-defaults-mode-browser": "3.325.0",
|
|
50
50
|
"@aws-sdk/util-defaults-mode-node": "3.325.0",
|
|
51
|
-
"@aws-sdk/util-endpoints": "3.
|
|
52
|
-
"@aws-sdk/util-retry": "3.
|
|
51
|
+
"@aws-sdk/util-endpoints": "3.327.0",
|
|
52
|
+
"@aws-sdk/util-retry": "3.327.0",
|
|
53
53
|
"@aws-sdk/util-user-agent-browser": "3.310.0",
|
|
54
54
|
"@aws-sdk/util-user-agent-node": "3.310.0",
|
|
55
55
|
"@aws-sdk/util-utf8": "3.310.0",
|