@aws-sdk/client-opensearch 3.431.0 → 3.433.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 +24 -0
- package/dist-cjs/OpenSearch.js +6 -0
- package/dist-cjs/commands/GetDomainMaintenanceStatusCommand.js +51 -0
- package/dist-cjs/commands/ListDomainMaintenancesCommand.js +51 -0
- package/dist-cjs/commands/StartDomainMaintenanceCommand.js +51 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +14 -2
- package/dist-cjs/pagination/ListDomainMaintenancesPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +238 -3
- package/dist-es/OpenSearch.js +6 -0
- package/dist-es/commands/GetDomainMaintenanceStatusCommand.js +47 -0
- package/dist-es/commands/ListDomainMaintenancesCommand.js +47 -0
- package/dist-es/commands/StartDomainMaintenanceCommand.js +47 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/pagination/ListDomainMaintenancesPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +229 -0
- package/dist-types/OpenSearch.d.ts +21 -0
- package/dist-types/OpenSearchClient.d.ts +5 -2
- package/dist-types/commands/GetDomainMaintenanceStatusCommand.d.ts +94 -0
- package/dist-types/commands/ListDomainMaintenancesCommand.d.ts +104 -0
- package/dist-types/commands/StartDomainMaintenanceCommand.d.ts +91 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +219 -6
- package/dist-types/pagination/ListDomainMaintenancesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/OpenSearch.d.ts +51 -0
- package/dist-types/ts3.4/OpenSearchClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetDomainMaintenanceStatusCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListDomainMaintenancesCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartDomainMaintenanceCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +61 -4
- package/dist-types/ts3.4/pagination/ListDomainMaintenancesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +31 -31
|
@@ -637,6 +637,27 @@ export const se_GetCompatibleVersionsCommand = async (input, context) => {
|
|
|
637
637
|
body,
|
|
638
638
|
});
|
|
639
639
|
};
|
|
640
|
+
export const se_GetDomainMaintenanceStatusCommand = async (input, context) => {
|
|
641
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
642
|
+
const headers = {};
|
|
643
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
644
|
+
"/2021-01-01/opensearch/domain/{DomainName}/domainMaintenance";
|
|
645
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
646
|
+
const query = map({
|
|
647
|
+
maintenanceId: [, __expectNonNull(input.MaintenanceId, `MaintenanceId`)],
|
|
648
|
+
});
|
|
649
|
+
let body;
|
|
650
|
+
return new __HttpRequest({
|
|
651
|
+
protocol,
|
|
652
|
+
hostname,
|
|
653
|
+
port,
|
|
654
|
+
method: "GET",
|
|
655
|
+
headers,
|
|
656
|
+
path: resolvedPath,
|
|
657
|
+
query,
|
|
658
|
+
body,
|
|
659
|
+
});
|
|
660
|
+
};
|
|
640
661
|
export const se_GetPackageVersionHistoryCommand = async (input, context) => {
|
|
641
662
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
642
663
|
const headers = {};
|
|
@@ -697,6 +718,30 @@ export const se_GetUpgradeStatusCommand = async (input, context) => {
|
|
|
697
718
|
body,
|
|
698
719
|
});
|
|
699
720
|
};
|
|
721
|
+
export const se_ListDomainMaintenancesCommand = async (input, context) => {
|
|
722
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
723
|
+
const headers = {};
|
|
724
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
725
|
+
"/2021-01-01/opensearch/domain/{DomainName}/domainMaintenances";
|
|
726
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
727
|
+
const query = map({
|
|
728
|
+
action: [, input.Action],
|
|
729
|
+
status: [, input.Status],
|
|
730
|
+
maxResults: [() => input.MaxResults !== void 0, () => input.MaxResults.toString()],
|
|
731
|
+
nextToken: [, input.NextToken],
|
|
732
|
+
});
|
|
733
|
+
let body;
|
|
734
|
+
return new __HttpRequest({
|
|
735
|
+
protocol,
|
|
736
|
+
hostname,
|
|
737
|
+
port,
|
|
738
|
+
method: "GET",
|
|
739
|
+
headers,
|
|
740
|
+
path: resolvedPath,
|
|
741
|
+
query,
|
|
742
|
+
body,
|
|
743
|
+
});
|
|
744
|
+
};
|
|
700
745
|
export const se_ListDomainNamesCommand = async (input, context) => {
|
|
701
746
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
702
747
|
const headers = {};
|
|
@@ -988,6 +1033,29 @@ export const se_RevokeVpcEndpointAccessCommand = async (input, context) => {
|
|
|
988
1033
|
body,
|
|
989
1034
|
});
|
|
990
1035
|
};
|
|
1036
|
+
export const se_StartDomainMaintenanceCommand = async (input, context) => {
|
|
1037
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1038
|
+
const headers = {
|
|
1039
|
+
"content-type": "application/json",
|
|
1040
|
+
};
|
|
1041
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1042
|
+
"/2021-01-01/opensearch/domain/{DomainName}/domainMaintenance";
|
|
1043
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
1044
|
+
let body;
|
|
1045
|
+
body = JSON.stringify(take(input, {
|
|
1046
|
+
Action: [],
|
|
1047
|
+
NodeId: [],
|
|
1048
|
+
}));
|
|
1049
|
+
return new __HttpRequest({
|
|
1050
|
+
protocol,
|
|
1051
|
+
hostname,
|
|
1052
|
+
port,
|
|
1053
|
+
method: "POST",
|
|
1054
|
+
headers,
|
|
1055
|
+
path: resolvedPath,
|
|
1056
|
+
body,
|
|
1057
|
+
});
|
|
1058
|
+
};
|
|
991
1059
|
export const se_StartServiceSoftwareUpdateCommand = async (input, context) => {
|
|
992
1060
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
993
1061
|
const headers = {
|
|
@@ -2509,6 +2577,56 @@ const de_GetCompatibleVersionsCommandError = async (output, context) => {
|
|
|
2509
2577
|
});
|
|
2510
2578
|
}
|
|
2511
2579
|
};
|
|
2580
|
+
export const de_GetDomainMaintenanceStatusCommand = async (output, context) => {
|
|
2581
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2582
|
+
return de_GetDomainMaintenanceStatusCommandError(output, context);
|
|
2583
|
+
}
|
|
2584
|
+
const contents = map({
|
|
2585
|
+
$metadata: deserializeMetadata(output),
|
|
2586
|
+
});
|
|
2587
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2588
|
+
const doc = take(data, {
|
|
2589
|
+
Action: __expectString,
|
|
2590
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2591
|
+
NodeId: __expectString,
|
|
2592
|
+
Status: __expectString,
|
|
2593
|
+
StatusMessage: __expectString,
|
|
2594
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2595
|
+
});
|
|
2596
|
+
Object.assign(contents, doc);
|
|
2597
|
+
return contents;
|
|
2598
|
+
};
|
|
2599
|
+
const de_GetDomainMaintenanceStatusCommandError = async (output, context) => {
|
|
2600
|
+
const parsedOutput = {
|
|
2601
|
+
...output,
|
|
2602
|
+
body: await parseErrorBody(output.body, context),
|
|
2603
|
+
};
|
|
2604
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2605
|
+
switch (errorCode) {
|
|
2606
|
+
case "BaseException":
|
|
2607
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2608
|
+
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2609
|
+
case "DisabledOperationException":
|
|
2610
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2611
|
+
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2612
|
+
case "InternalException":
|
|
2613
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2614
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2615
|
+
case "ResourceNotFoundException":
|
|
2616
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2617
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2618
|
+
case "ValidationException":
|
|
2619
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
2620
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2621
|
+
default:
|
|
2622
|
+
const parsedBody = parsedOutput.body;
|
|
2623
|
+
return throwDefaultError({
|
|
2624
|
+
output,
|
|
2625
|
+
parsedBody,
|
|
2626
|
+
errorCode,
|
|
2627
|
+
});
|
|
2628
|
+
}
|
|
2629
|
+
};
|
|
2512
2630
|
export const de_GetPackageVersionHistoryCommand = async (output, context) => {
|
|
2513
2631
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2514
2632
|
return de_GetPackageVersionHistoryCommandError(output, context);
|
|
@@ -2649,6 +2767,52 @@ const de_GetUpgradeStatusCommandError = async (output, context) => {
|
|
|
2649
2767
|
});
|
|
2650
2768
|
}
|
|
2651
2769
|
};
|
|
2770
|
+
export const de_ListDomainMaintenancesCommand = async (output, context) => {
|
|
2771
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2772
|
+
return de_ListDomainMaintenancesCommandError(output, context);
|
|
2773
|
+
}
|
|
2774
|
+
const contents = map({
|
|
2775
|
+
$metadata: deserializeMetadata(output),
|
|
2776
|
+
});
|
|
2777
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2778
|
+
const doc = take(data, {
|
|
2779
|
+
DomainMaintenances: (_) => de_DomainMaintenanceList(_, context),
|
|
2780
|
+
NextToken: __expectString,
|
|
2781
|
+
});
|
|
2782
|
+
Object.assign(contents, doc);
|
|
2783
|
+
return contents;
|
|
2784
|
+
};
|
|
2785
|
+
const de_ListDomainMaintenancesCommandError = async (output, context) => {
|
|
2786
|
+
const parsedOutput = {
|
|
2787
|
+
...output,
|
|
2788
|
+
body: await parseErrorBody(output.body, context),
|
|
2789
|
+
};
|
|
2790
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2791
|
+
switch (errorCode) {
|
|
2792
|
+
case "BaseException":
|
|
2793
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2794
|
+
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2795
|
+
case "DisabledOperationException":
|
|
2796
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2797
|
+
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2798
|
+
case "InternalException":
|
|
2799
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2800
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2801
|
+
case "ResourceNotFoundException":
|
|
2802
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2803
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2804
|
+
case "ValidationException":
|
|
2805
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
2806
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2807
|
+
default:
|
|
2808
|
+
const parsedBody = parsedOutput.body;
|
|
2809
|
+
return throwDefaultError({
|
|
2810
|
+
output,
|
|
2811
|
+
parsedBody,
|
|
2812
|
+
errorCode,
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
};
|
|
2652
2816
|
export const de_ListDomainNamesCommand = async (output, context) => {
|
|
2653
2817
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2654
2818
|
return de_ListDomainNamesCommandError(output, context);
|
|
@@ -3238,6 +3402,51 @@ const de_RevokeVpcEndpointAccessCommandError = async (output, context) => {
|
|
|
3238
3402
|
});
|
|
3239
3403
|
}
|
|
3240
3404
|
};
|
|
3405
|
+
export const de_StartDomainMaintenanceCommand = async (output, context) => {
|
|
3406
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3407
|
+
return de_StartDomainMaintenanceCommandError(output, context);
|
|
3408
|
+
}
|
|
3409
|
+
const contents = map({
|
|
3410
|
+
$metadata: deserializeMetadata(output),
|
|
3411
|
+
});
|
|
3412
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3413
|
+
const doc = take(data, {
|
|
3414
|
+
MaintenanceId: __expectString,
|
|
3415
|
+
});
|
|
3416
|
+
Object.assign(contents, doc);
|
|
3417
|
+
return contents;
|
|
3418
|
+
};
|
|
3419
|
+
const de_StartDomainMaintenanceCommandError = async (output, context) => {
|
|
3420
|
+
const parsedOutput = {
|
|
3421
|
+
...output,
|
|
3422
|
+
body: await parseErrorBody(output.body, context),
|
|
3423
|
+
};
|
|
3424
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3425
|
+
switch (errorCode) {
|
|
3426
|
+
case "BaseException":
|
|
3427
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
3428
|
+
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3429
|
+
case "DisabledOperationException":
|
|
3430
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3431
|
+
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3432
|
+
case "InternalException":
|
|
3433
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
3434
|
+
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3435
|
+
case "ResourceNotFoundException":
|
|
3436
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3437
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3438
|
+
case "ValidationException":
|
|
3439
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
3440
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3441
|
+
default:
|
|
3442
|
+
const parsedBody = parsedOutput.body;
|
|
3443
|
+
return throwDefaultError({
|
|
3444
|
+
output,
|
|
3445
|
+
parsedBody,
|
|
3446
|
+
errorCode,
|
|
3447
|
+
});
|
|
3448
|
+
}
|
|
3449
|
+
};
|
|
3241
3450
|
export const de_StartServiceSoftwareUpdateCommand = async (output, context) => {
|
|
3242
3451
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3243
3452
|
return de_StartServiceSoftwareUpdateCommandError(output, context);
|
|
@@ -3881,6 +4090,26 @@ const de_DomainEndpointOptionsStatus = (output, context) => {
|
|
|
3881
4090
|
Status: (_) => de_OptionStatus(_, context),
|
|
3882
4091
|
});
|
|
3883
4092
|
};
|
|
4093
|
+
const de_DomainMaintenanceDetails = (output, context) => {
|
|
4094
|
+
return take(output, {
|
|
4095
|
+
Action: __expectString,
|
|
4096
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4097
|
+
DomainName: __expectString,
|
|
4098
|
+
MaintenanceId: __expectString,
|
|
4099
|
+
NodeId: __expectString,
|
|
4100
|
+
Status: __expectString,
|
|
4101
|
+
StatusMessage: __expectString,
|
|
4102
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
4103
|
+
});
|
|
4104
|
+
};
|
|
4105
|
+
const de_DomainMaintenanceList = (output, context) => {
|
|
4106
|
+
const retVal = (output || [])
|
|
4107
|
+
.filter((e) => e != null)
|
|
4108
|
+
.map((entry) => {
|
|
4109
|
+
return de_DomainMaintenanceDetails(entry, context);
|
|
4110
|
+
});
|
|
4111
|
+
return retVal;
|
|
4112
|
+
};
|
|
3884
4113
|
const de_DomainPackageDetails = (output, context) => {
|
|
3885
4114
|
return take(output, {
|
|
3886
4115
|
DomainName: __expectString,
|
|
@@ -30,9 +30,11 @@ import { DescribeReservedInstancesCommandInput, DescribeReservedInstancesCommand
|
|
|
30
30
|
import { DescribeVpcEndpointsCommandInput, DescribeVpcEndpointsCommandOutput } from "./commands/DescribeVpcEndpointsCommand";
|
|
31
31
|
import { DissociatePackageCommandInput, DissociatePackageCommandOutput } from "./commands/DissociatePackageCommand";
|
|
32
32
|
import { GetCompatibleVersionsCommandInput, GetCompatibleVersionsCommandOutput } from "./commands/GetCompatibleVersionsCommand";
|
|
33
|
+
import { GetDomainMaintenanceStatusCommandInput, GetDomainMaintenanceStatusCommandOutput } from "./commands/GetDomainMaintenanceStatusCommand";
|
|
33
34
|
import { GetPackageVersionHistoryCommandInput, GetPackageVersionHistoryCommandOutput } from "./commands/GetPackageVersionHistoryCommand";
|
|
34
35
|
import { GetUpgradeHistoryCommandInput, GetUpgradeHistoryCommandOutput } from "./commands/GetUpgradeHistoryCommand";
|
|
35
36
|
import { GetUpgradeStatusCommandInput, GetUpgradeStatusCommandOutput } from "./commands/GetUpgradeStatusCommand";
|
|
37
|
+
import { ListDomainMaintenancesCommandInput, ListDomainMaintenancesCommandOutput } from "./commands/ListDomainMaintenancesCommand";
|
|
36
38
|
import { ListDomainNamesCommandInput, ListDomainNamesCommandOutput } from "./commands/ListDomainNamesCommand";
|
|
37
39
|
import { ListDomainsForPackageCommandInput, ListDomainsForPackageCommandOutput } from "./commands/ListDomainsForPackageCommand";
|
|
38
40
|
import { ListInstanceTypeDetailsCommandInput, ListInstanceTypeDetailsCommandOutput } from "./commands/ListInstanceTypeDetailsCommand";
|
|
@@ -47,6 +49,7 @@ import { PurchaseReservedInstanceOfferingCommandInput, PurchaseReservedInstanceO
|
|
|
47
49
|
import { RejectInboundConnectionCommandInput, RejectInboundConnectionCommandOutput } from "./commands/RejectInboundConnectionCommand";
|
|
48
50
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
49
51
|
import { RevokeVpcEndpointAccessCommandInput, RevokeVpcEndpointAccessCommandOutput } from "./commands/RevokeVpcEndpointAccessCommand";
|
|
52
|
+
import { StartDomainMaintenanceCommandInput, StartDomainMaintenanceCommandOutput } from "./commands/StartDomainMaintenanceCommand";
|
|
50
53
|
import { StartServiceSoftwareUpdateCommandInput, StartServiceSoftwareUpdateCommandOutput } from "./commands/StartServiceSoftwareUpdateCommand";
|
|
51
54
|
import { UpdateDomainConfigCommandInput, UpdateDomainConfigCommandOutput } from "./commands/UpdateDomainConfigCommand";
|
|
52
55
|
import { UpdatePackageCommandInput, UpdatePackageCommandOutput } from "./commands/UpdatePackageCommand";
|
|
@@ -241,6 +244,12 @@ export interface OpenSearch {
|
|
|
241
244
|
getCompatibleVersions(args: GetCompatibleVersionsCommandInput, options?: __HttpHandlerOptions): Promise<GetCompatibleVersionsCommandOutput>;
|
|
242
245
|
getCompatibleVersions(args: GetCompatibleVersionsCommandInput, cb: (err: any, data?: GetCompatibleVersionsCommandOutput) => void): void;
|
|
243
246
|
getCompatibleVersions(args: GetCompatibleVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCompatibleVersionsCommandOutput) => void): void;
|
|
247
|
+
/**
|
|
248
|
+
* @see {@link GetDomainMaintenanceStatusCommand}
|
|
249
|
+
*/
|
|
250
|
+
getDomainMaintenanceStatus(args: GetDomainMaintenanceStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetDomainMaintenanceStatusCommandOutput>;
|
|
251
|
+
getDomainMaintenanceStatus(args: GetDomainMaintenanceStatusCommandInput, cb: (err: any, data?: GetDomainMaintenanceStatusCommandOutput) => void): void;
|
|
252
|
+
getDomainMaintenanceStatus(args: GetDomainMaintenanceStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDomainMaintenanceStatusCommandOutput) => void): void;
|
|
244
253
|
/**
|
|
245
254
|
* @see {@link GetPackageVersionHistoryCommand}
|
|
246
255
|
*/
|
|
@@ -259,6 +268,12 @@ export interface OpenSearch {
|
|
|
259
268
|
getUpgradeStatus(args: GetUpgradeStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetUpgradeStatusCommandOutput>;
|
|
260
269
|
getUpgradeStatus(args: GetUpgradeStatusCommandInput, cb: (err: any, data?: GetUpgradeStatusCommandOutput) => void): void;
|
|
261
270
|
getUpgradeStatus(args: GetUpgradeStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUpgradeStatusCommandOutput) => void): void;
|
|
271
|
+
/**
|
|
272
|
+
* @see {@link ListDomainMaintenancesCommand}
|
|
273
|
+
*/
|
|
274
|
+
listDomainMaintenances(args: ListDomainMaintenancesCommandInput, options?: __HttpHandlerOptions): Promise<ListDomainMaintenancesCommandOutput>;
|
|
275
|
+
listDomainMaintenances(args: ListDomainMaintenancesCommandInput, cb: (err: any, data?: ListDomainMaintenancesCommandOutput) => void): void;
|
|
276
|
+
listDomainMaintenances(args: ListDomainMaintenancesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDomainMaintenancesCommandOutput) => void): void;
|
|
262
277
|
/**
|
|
263
278
|
* @see {@link ListDomainNamesCommand}
|
|
264
279
|
*/
|
|
@@ -343,6 +358,12 @@ export interface OpenSearch {
|
|
|
343
358
|
revokeVpcEndpointAccess(args: RevokeVpcEndpointAccessCommandInput, options?: __HttpHandlerOptions): Promise<RevokeVpcEndpointAccessCommandOutput>;
|
|
344
359
|
revokeVpcEndpointAccess(args: RevokeVpcEndpointAccessCommandInput, cb: (err: any, data?: RevokeVpcEndpointAccessCommandOutput) => void): void;
|
|
345
360
|
revokeVpcEndpointAccess(args: RevokeVpcEndpointAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeVpcEndpointAccessCommandOutput) => void): void;
|
|
361
|
+
/**
|
|
362
|
+
* @see {@link StartDomainMaintenanceCommand}
|
|
363
|
+
*/
|
|
364
|
+
startDomainMaintenance(args: StartDomainMaintenanceCommandInput, options?: __HttpHandlerOptions): Promise<StartDomainMaintenanceCommandOutput>;
|
|
365
|
+
startDomainMaintenance(args: StartDomainMaintenanceCommandInput, cb: (err: any, data?: StartDomainMaintenanceCommandOutput) => void): void;
|
|
366
|
+
startDomainMaintenance(args: StartDomainMaintenanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartDomainMaintenanceCommandOutput) => void): void;
|
|
346
367
|
/**
|
|
347
368
|
* @see {@link StartServiceSoftwareUpdateCommand}
|
|
348
369
|
*/
|
|
@@ -39,9 +39,11 @@ import { DescribeReservedInstancesCommandInput, DescribeReservedInstancesCommand
|
|
|
39
39
|
import { DescribeVpcEndpointsCommandInput, DescribeVpcEndpointsCommandOutput } from "./commands/DescribeVpcEndpointsCommand";
|
|
40
40
|
import { DissociatePackageCommandInput, DissociatePackageCommandOutput } from "./commands/DissociatePackageCommand";
|
|
41
41
|
import { GetCompatibleVersionsCommandInput, GetCompatibleVersionsCommandOutput } from "./commands/GetCompatibleVersionsCommand";
|
|
42
|
+
import { GetDomainMaintenanceStatusCommandInput, GetDomainMaintenanceStatusCommandOutput } from "./commands/GetDomainMaintenanceStatusCommand";
|
|
42
43
|
import { GetPackageVersionHistoryCommandInput, GetPackageVersionHistoryCommandOutput } from "./commands/GetPackageVersionHistoryCommand";
|
|
43
44
|
import { GetUpgradeHistoryCommandInput, GetUpgradeHistoryCommandOutput } from "./commands/GetUpgradeHistoryCommand";
|
|
44
45
|
import { GetUpgradeStatusCommandInput, GetUpgradeStatusCommandOutput } from "./commands/GetUpgradeStatusCommand";
|
|
46
|
+
import { ListDomainMaintenancesCommandInput, ListDomainMaintenancesCommandOutput } from "./commands/ListDomainMaintenancesCommand";
|
|
45
47
|
import { ListDomainNamesCommandInput, ListDomainNamesCommandOutput } from "./commands/ListDomainNamesCommand";
|
|
46
48
|
import { ListDomainsForPackageCommandInput, ListDomainsForPackageCommandOutput } from "./commands/ListDomainsForPackageCommand";
|
|
47
49
|
import { ListInstanceTypeDetailsCommandInput, ListInstanceTypeDetailsCommandOutput } from "./commands/ListInstanceTypeDetailsCommand";
|
|
@@ -56,6 +58,7 @@ import { PurchaseReservedInstanceOfferingCommandInput, PurchaseReservedInstanceO
|
|
|
56
58
|
import { RejectInboundConnectionCommandInput, RejectInboundConnectionCommandOutput } from "./commands/RejectInboundConnectionCommand";
|
|
57
59
|
import { RemoveTagsCommandInput, RemoveTagsCommandOutput } from "./commands/RemoveTagsCommand";
|
|
58
60
|
import { RevokeVpcEndpointAccessCommandInput, RevokeVpcEndpointAccessCommandOutput } from "./commands/RevokeVpcEndpointAccessCommand";
|
|
61
|
+
import { StartDomainMaintenanceCommandInput, StartDomainMaintenanceCommandOutput } from "./commands/StartDomainMaintenanceCommand";
|
|
59
62
|
import { StartServiceSoftwareUpdateCommandInput, StartServiceSoftwareUpdateCommandOutput } from "./commands/StartServiceSoftwareUpdateCommand";
|
|
60
63
|
import { UpdateDomainConfigCommandInput, UpdateDomainConfigCommandOutput } from "./commands/UpdateDomainConfigCommand";
|
|
61
64
|
import { UpdatePackageCommandInput, UpdatePackageCommandOutput } from "./commands/UpdatePackageCommand";
|
|
@@ -68,11 +71,11 @@ export { __Client };
|
|
|
68
71
|
/**
|
|
69
72
|
* @public
|
|
70
73
|
*/
|
|
71
|
-
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;
|
|
74
|
+
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 | GetDomainMaintenanceStatusCommandInput | GetPackageVersionHistoryCommandInput | GetUpgradeHistoryCommandInput | GetUpgradeStatusCommandInput | ListDomainMaintenancesCommandInput | ListDomainNamesCommandInput | ListDomainsForPackageCommandInput | ListInstanceTypeDetailsCommandInput | ListPackagesForDomainCommandInput | ListScheduledActionsCommandInput | ListTagsCommandInput | ListVersionsCommandInput | ListVpcEndpointAccessCommandInput | ListVpcEndpointsCommandInput | ListVpcEndpointsForDomainCommandInput | PurchaseReservedInstanceOfferingCommandInput | RejectInboundConnectionCommandInput | RemoveTagsCommandInput | RevokeVpcEndpointAccessCommandInput | StartDomainMaintenanceCommandInput | StartServiceSoftwareUpdateCommandInput | UpdateDomainConfigCommandInput | UpdatePackageCommandInput | UpdateScheduledActionCommandInput | UpdateVpcEndpointCommandInput | UpgradeDomainCommandInput;
|
|
72
75
|
/**
|
|
73
76
|
* @public
|
|
74
77
|
*/
|
|
75
|
-
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;
|
|
78
|
+
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 | GetDomainMaintenanceStatusCommandOutput | GetPackageVersionHistoryCommandOutput | GetUpgradeHistoryCommandOutput | GetUpgradeStatusCommandOutput | ListDomainMaintenancesCommandOutput | ListDomainNamesCommandOutput | ListDomainsForPackageCommandOutput | ListInstanceTypeDetailsCommandOutput | ListPackagesForDomainCommandOutput | ListScheduledActionsCommandOutput | ListTagsCommandOutput | ListVersionsCommandOutput | ListVpcEndpointAccessCommandOutput | ListVpcEndpointsCommandOutput | ListVpcEndpointsForDomainCommandOutput | PurchaseReservedInstanceOfferingCommandOutput | RejectInboundConnectionCommandOutput | RemoveTagsCommandOutput | RevokeVpcEndpointAccessCommandOutput | StartDomainMaintenanceCommandOutput | StartServiceSoftwareUpdateCommandOutput | UpdateDomainConfigCommandOutput | UpdatePackageCommandOutput | UpdateScheduledActionCommandOutput | UpdateVpcEndpointCommandOutput | UpgradeDomainCommandOutput;
|
|
76
79
|
/**
|
|
77
80
|
* @public
|
|
78
81
|
*/
|
|
@@ -0,0 +1,94 @@
|
|
|
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 { GetDomainMaintenanceStatusRequest, GetDomainMaintenanceStatusResponse } from "../models/models_0";
|
|
5
|
+
import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetDomainMaintenanceStatusCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetDomainMaintenanceStatusCommandInput extends GetDomainMaintenanceStatusRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetDomainMaintenanceStatusCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetDomainMaintenanceStatusCommandOutput extends GetDomainMaintenanceStatusResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Get the status of the maintenance action.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { OpenSearchClient, GetDomainMaintenanceStatusCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
|
|
31
|
+
* // const { OpenSearchClient, GetDomainMaintenanceStatusCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
|
|
32
|
+
* const client = new OpenSearchClient(config);
|
|
33
|
+
* const input = { // GetDomainMaintenanceStatusRequest
|
|
34
|
+
* DomainName: "STRING_VALUE", // required
|
|
35
|
+
* MaintenanceId: "STRING_VALUE", // required
|
|
36
|
+
* };
|
|
37
|
+
* const command = new GetDomainMaintenanceStatusCommand(input);
|
|
38
|
+
* const response = await client.send(command);
|
|
39
|
+
* // { // GetDomainMaintenanceStatusResponse
|
|
40
|
+
* // Status: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "FAILED" || "TIMED_OUT",
|
|
41
|
+
* // StatusMessage: "STRING_VALUE",
|
|
42
|
+
* // NodeId: "STRING_VALUE",
|
|
43
|
+
* // Action: "REBOOT_NODE" || "RESTART_SEARCH_PROCESS" || "RESTART_DASHBOARD",
|
|
44
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
45
|
+
* // UpdatedAt: new Date("TIMESTAMP"),
|
|
46
|
+
* // };
|
|
47
|
+
*
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* @param GetDomainMaintenanceStatusCommandInput - {@link GetDomainMaintenanceStatusCommandInput}
|
|
51
|
+
* @returns {@link GetDomainMaintenanceStatusCommandOutput}
|
|
52
|
+
* @see {@link GetDomainMaintenanceStatusCommandInput} for command's `input` shape.
|
|
53
|
+
* @see {@link GetDomainMaintenanceStatusCommandOutput} for command's `response` shape.
|
|
54
|
+
* @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link BaseException} (client fault)
|
|
57
|
+
* <p>An error occurred while processing the request.</p>
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link DisabledOperationException} (client fault)
|
|
60
|
+
* <p>An error occured because the client wanted to access an unsupported operation.</p>
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link InternalException} (server fault)
|
|
63
|
+
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
66
|
+
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ValidationException} (client fault)
|
|
69
|
+
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link OpenSearchServiceException}
|
|
72
|
+
* <p>Base exception class for all service exceptions from OpenSearch service.</p>
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
75
|
+
export declare class GetDomainMaintenanceStatusCommand extends $Command<GetDomainMaintenanceStatusCommandInput, GetDomainMaintenanceStatusCommandOutput, OpenSearchClientResolvedConfig> {
|
|
76
|
+
readonly input: GetDomainMaintenanceStatusCommandInput;
|
|
77
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
*/
|
|
81
|
+
constructor(input: GetDomainMaintenanceStatusCommandInput);
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OpenSearchClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetDomainMaintenanceStatusCommandInput, GetDomainMaintenanceStatusCommandOutput>;
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
private serialize;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
private deserialize;
|
|
94
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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 { ListDomainMaintenancesRequest, ListDomainMaintenancesResponse } from "../models/models_0";
|
|
5
|
+
import { OpenSearchClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OpenSearchClient";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link ListDomainMaintenancesCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface ListDomainMaintenancesCommandInput extends ListDomainMaintenancesRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link ListDomainMaintenancesCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface ListDomainMaintenancesCommandOutput extends ListDomainMaintenancesResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Get the list of the maintenance action.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { OpenSearchClient, ListDomainMaintenancesCommand } from "@aws-sdk/client-opensearch"; // ES Modules import
|
|
31
|
+
* // const { OpenSearchClient, ListDomainMaintenancesCommand } = require("@aws-sdk/client-opensearch"); // CommonJS import
|
|
32
|
+
* const client = new OpenSearchClient(config);
|
|
33
|
+
* const input = { // ListDomainMaintenancesRequest
|
|
34
|
+
* DomainName: "STRING_VALUE", // required
|
|
35
|
+
* Action: "REBOOT_NODE" || "RESTART_SEARCH_PROCESS" || "RESTART_DASHBOARD",
|
|
36
|
+
* Status: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "FAILED" || "TIMED_OUT",
|
|
37
|
+
* MaxResults: Number("int"),
|
|
38
|
+
* NextToken: "STRING_VALUE",
|
|
39
|
+
* };
|
|
40
|
+
* const command = new ListDomainMaintenancesCommand(input);
|
|
41
|
+
* const response = await client.send(command);
|
|
42
|
+
* // { // ListDomainMaintenancesResponse
|
|
43
|
+
* // DomainMaintenances: [ // DomainMaintenanceList
|
|
44
|
+
* // { // DomainMaintenanceDetails
|
|
45
|
+
* // MaintenanceId: "STRING_VALUE",
|
|
46
|
+
* // DomainName: "STRING_VALUE",
|
|
47
|
+
* // Action: "REBOOT_NODE" || "RESTART_SEARCH_PROCESS" || "RESTART_DASHBOARD",
|
|
48
|
+
* // NodeId: "STRING_VALUE",
|
|
49
|
+
* // Status: "PENDING" || "IN_PROGRESS" || "COMPLETED" || "FAILED" || "TIMED_OUT",
|
|
50
|
+
* // StatusMessage: "STRING_VALUE",
|
|
51
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
52
|
+
* // UpdatedAt: new Date("TIMESTAMP"),
|
|
53
|
+
* // },
|
|
54
|
+
* // ],
|
|
55
|
+
* // NextToken: "STRING_VALUE",
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param ListDomainMaintenancesCommandInput - {@link ListDomainMaintenancesCommandInput}
|
|
61
|
+
* @returns {@link ListDomainMaintenancesCommandOutput}
|
|
62
|
+
* @see {@link ListDomainMaintenancesCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link ListDomainMaintenancesCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link OpenSearchClientResolvedConfig | config} for OpenSearchClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link BaseException} (client fault)
|
|
67
|
+
* <p>An error occurred while processing the request.</p>
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link DisabledOperationException} (client fault)
|
|
70
|
+
* <p>An error occured because the client wanted to access an unsupported operation.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalException} (server fault)
|
|
73
|
+
* <p>Request processing failed because of an unknown error, exception, or internal failure.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
76
|
+
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ValidationException} (client fault)
|
|
79
|
+
* <p>An exception for accessing or deleting a resource that doesn't exist.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link OpenSearchServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from OpenSearch service.</p>
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
export declare class ListDomainMaintenancesCommand extends $Command<ListDomainMaintenancesCommandInput, ListDomainMaintenancesCommandOutput, OpenSearchClientResolvedConfig> {
|
|
86
|
+
readonly input: ListDomainMaintenancesCommandInput;
|
|
87
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
88
|
+
/**
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
constructor(input: ListDomainMaintenancesCommandInput);
|
|
92
|
+
/**
|
|
93
|
+
* @internal
|
|
94
|
+
*/
|
|
95
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: OpenSearchClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListDomainMaintenancesCommandInput, ListDomainMaintenancesCommandOutput>;
|
|
96
|
+
/**
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
private serialize;
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
private deserialize;
|
|
104
|
+
}
|