@aws-sdk/client-opensearch 3.54.1 → 3.58.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/CHANGELOG.md +24 -0
- package/dist-cjs/OpenSearchClient.js +13 -13
- package/dist-cjs/commands/AcceptInboundConnectionCommand.js +3 -3
- package/dist-cjs/commands/AddTagsCommand.js +3 -3
- package/dist-cjs/commands/AssociatePackageCommand.js +3 -3
- package/dist-cjs/commands/CancelServiceSoftwareUpdateCommand.js +3 -3
- package/dist-cjs/commands/CreateDomainCommand.js +3 -3
- package/dist-cjs/commands/CreateOutboundConnectionCommand.js +3 -3
- package/dist-cjs/commands/CreatePackageCommand.js +3 -3
- package/dist-cjs/commands/DeleteDomainCommand.js +3 -3
- package/dist-cjs/commands/DeleteInboundConnectionCommand.js +3 -3
- package/dist-cjs/commands/DeleteOutboundConnectionCommand.js +3 -3
- package/dist-cjs/commands/DeletePackageCommand.js +3 -3
- package/dist-cjs/commands/DescribeDomainAutoTunesCommand.js +3 -3
- package/dist-cjs/commands/DescribeDomainChangeProgressCommand.js +3 -3
- package/dist-cjs/commands/DescribeDomainCommand.js +3 -3
- package/dist-cjs/commands/DescribeDomainConfigCommand.js +3 -3
- package/dist-cjs/commands/DescribeDomainsCommand.js +3 -3
- package/dist-cjs/commands/DescribeInboundConnectionsCommand.js +3 -3
- package/dist-cjs/commands/DescribeInstanceTypeLimitsCommand.js +3 -3
- package/dist-cjs/commands/DescribeOutboundConnectionsCommand.js +3 -3
- package/dist-cjs/commands/DescribePackagesCommand.js +3 -3
- package/dist-cjs/commands/DescribeReservedInstanceOfferingsCommand.js +3 -3
- package/dist-cjs/commands/DescribeReservedInstancesCommand.js +3 -3
- package/dist-cjs/commands/DissociatePackageCommand.js +3 -3
- package/dist-cjs/commands/GetCompatibleVersionsCommand.js +3 -3
- package/dist-cjs/commands/GetPackageVersionHistoryCommand.js +3 -3
- package/dist-cjs/commands/GetUpgradeHistoryCommand.js +3 -3
- package/dist-cjs/commands/GetUpgradeStatusCommand.js +3 -3
- package/dist-cjs/commands/ListDomainNamesCommand.js +3 -3
- package/dist-cjs/commands/ListDomainsForPackageCommand.js +3 -3
- package/dist-cjs/commands/ListInstanceTypeDetailsCommand.js +3 -3
- package/dist-cjs/commands/ListPackagesForDomainCommand.js +3 -3
- package/dist-cjs/commands/ListTagsCommand.js +3 -3
- package/dist-cjs/commands/ListVersionsCommand.js +3 -3
- package/dist-cjs/commands/PurchaseReservedInstanceOfferingCommand.js +3 -3
- package/dist-cjs/commands/RejectInboundConnectionCommand.js +3 -3
- package/dist-cjs/commands/RemoveTagsCommand.js +3 -3
- package/dist-cjs/commands/StartServiceSoftwareUpdateCommand.js +3 -3
- package/dist-cjs/commands/UpdateDomainConfigCommand.js +3 -3
- package/dist-cjs/commands/UpdatePackageCommand.js +3 -3
- package/dist-cjs/commands/UpgradeDomainCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +327 -327
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/OpenSearch.js +40 -40
- package/dist-es/pagination/DescribeDomainAutoTunesPaginator.js +4 -4
- package/dist-es/pagination/DescribeInboundConnectionsPaginator.js +4 -4
- package/dist-es/pagination/DescribeOutboundConnectionsPaginator.js +4 -4
- package/dist-es/pagination/DescribePackagesPaginator.js +4 -4
- package/dist-es/pagination/DescribeReservedInstanceOfferingsPaginator.js +4 -4
- package/dist-es/pagination/DescribeReservedInstancesPaginator.js +4 -4
- package/dist-es/pagination/GetPackageVersionHistoryPaginator.js +4 -4
- package/dist-es/pagination/GetUpgradeHistoryPaginator.js +4 -4
- package/dist-es/pagination/ListDomainsForPackagePaginator.js +4 -4
- package/dist-es/pagination/ListInstanceTypeDetailsPaginator.js +4 -4
- package/dist-es/pagination/ListPackagesForDomainPaginator.js +4 -4
- package/dist-es/pagination/ListVersionsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +40 -40
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- package/package.json +34 -34
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new GetPackageVersionHistoryCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetPackageVersionHistoryCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.getPackageVersionHistory.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.getPackageVersionHistory.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateGetPackageVersionHistory(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof OpenSearch)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof OpenSearchClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new GetUpgradeHistoryCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new GetUpgradeHistoryCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.getUpgradeHistory.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.getUpgradeHistory.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateGetUpgradeHistory(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof OpenSearch)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof OpenSearchClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListDomainsForPackageCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListDomainsForPackageCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listDomainsForPackage.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listDomainsForPackage.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListDomainsForPackage(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof OpenSearch)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof OpenSearchClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListInstanceTypeDetailsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListInstanceTypeDetailsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listInstanceTypeDetails.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listInstanceTypeDetails.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListInstanceTypeDetails(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof OpenSearch)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof OpenSearchClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListPackagesForDomainCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListPackagesForDomainCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listPackagesForDomain.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listPackagesForDomain.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListPackagesForDomain(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof OpenSearch)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof OpenSearchClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListVersionsCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListVersionsCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listVersions.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listVersions.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListVersions(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof OpenSearch)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof OpenSearchClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|
|
@@ -11,7 +11,7 @@ export var serializeAws_restJson1AcceptInboundConnectionCommand = function (inpu
|
|
|
11
11
|
case 1:
|
|
12
12
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
13
13
|
headers = {};
|
|
14
|
-
resolvedPath = ""
|
|
14
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
15
15
|
"/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/accept";
|
|
16
16
|
if (input.ConnectionId !== undefined) {
|
|
17
17
|
labelValue = input.ConnectionId;
|
|
@@ -45,7 +45,7 @@ export var serializeAws_restJson1AddTagsCommand = function (input, context) { re
|
|
|
45
45
|
headers = {
|
|
46
46
|
"content-type": "application/json",
|
|
47
47
|
};
|
|
48
|
-
resolvedPath = ""
|
|
48
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/tags";
|
|
49
49
|
body = JSON.stringify(__assign(__assign({}, (input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN })), (input.TagList !== undefined &&
|
|
50
50
|
input.TagList !== null && { TagList: serializeAws_restJson1TagList(input.TagList, context) })));
|
|
51
51
|
return [2, new __HttpRequest({
|
|
@@ -68,7 +68,7 @@ export var serializeAws_restJson1AssociatePackageCommand = function (input, cont
|
|
|
68
68
|
case 1:
|
|
69
69
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
70
70
|
headers = {};
|
|
71
|
-
resolvedPath = ""
|
|
71
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
72
72
|
"/2021-01-01/packages/associate/{PackageID}/{DomainName}";
|
|
73
73
|
if (input.PackageID !== undefined) {
|
|
74
74
|
labelValue = input.PackageID;
|
|
@@ -112,7 +112,7 @@ export var serializeAws_restJson1CancelServiceSoftwareUpdateCommand = function (
|
|
|
112
112
|
headers = {
|
|
113
113
|
"content-type": "application/json",
|
|
114
114
|
};
|
|
115
|
-
resolvedPath = ""
|
|
115
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
116
116
|
"/2021-01-01/opensearch/serviceSoftwareUpdate/cancel";
|
|
117
117
|
body = JSON.stringify(__assign({}, (input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName })));
|
|
118
118
|
return [2, new __HttpRequest({
|
|
@@ -137,7 +137,7 @@ export var serializeAws_restJson1CreateDomainCommand = function (input, context)
|
|
|
137
137
|
headers = {
|
|
138
138
|
"content-type": "application/json",
|
|
139
139
|
};
|
|
140
|
-
resolvedPath = ""
|
|
140
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/domain";
|
|
141
141
|
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessPolicies !== undefined &&
|
|
142
142
|
input.AccessPolicies !== null && { AccessPolicies: input.AccessPolicies })), (input.AdvancedOptions !== undefined &&
|
|
143
143
|
input.AdvancedOptions !== null && {
|
|
@@ -195,7 +195,7 @@ export var serializeAws_restJson1CreateOutboundConnectionCommand = function (inp
|
|
|
195
195
|
headers = {
|
|
196
196
|
"content-type": "application/json",
|
|
197
197
|
};
|
|
198
|
-
resolvedPath = ""
|
|
198
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
199
199
|
"/2021-01-01/opensearch/cc/outboundConnection";
|
|
200
200
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.ConnectionAlias !== undefined &&
|
|
201
201
|
input.ConnectionAlias !== null && { ConnectionAlias: input.ConnectionAlias })), (input.LocalDomainInfo !== undefined &&
|
|
@@ -227,7 +227,7 @@ export var serializeAws_restJson1CreatePackageCommand = function (input, context
|
|
|
227
227
|
headers = {
|
|
228
228
|
"content-type": "application/json",
|
|
229
229
|
};
|
|
230
|
-
resolvedPath = ""
|
|
230
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages";
|
|
231
231
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.PackageDescription !== undefined &&
|
|
232
232
|
input.PackageDescription !== null && { PackageDescription: input.PackageDescription })), (input.PackageName !== undefined && input.PackageName !== null && { PackageName: input.PackageName })), (input.PackageSource !== undefined &&
|
|
233
233
|
input.PackageSource !== null && {
|
|
@@ -253,7 +253,7 @@ export var serializeAws_restJson1DeleteDomainCommand = function (input, context)
|
|
|
253
253
|
case 1:
|
|
254
254
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
255
255
|
headers = {};
|
|
256
|
-
resolvedPath = ""
|
|
256
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
257
257
|
"/2021-01-01/opensearch/domain/{DomainName}";
|
|
258
258
|
if (input.DomainName !== undefined) {
|
|
259
259
|
labelValue = input.DomainName;
|
|
@@ -285,7 +285,7 @@ export var serializeAws_restJson1DeleteInboundConnectionCommand = function (inpu
|
|
|
285
285
|
case 1:
|
|
286
286
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
287
287
|
headers = {};
|
|
288
|
-
resolvedPath = ""
|
|
288
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
289
289
|
"/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}";
|
|
290
290
|
if (input.ConnectionId !== undefined) {
|
|
291
291
|
labelValue = input.ConnectionId;
|
|
@@ -317,7 +317,7 @@ export var serializeAws_restJson1DeleteOutboundConnectionCommand = function (inp
|
|
|
317
317
|
case 1:
|
|
318
318
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
319
319
|
headers = {};
|
|
320
|
-
resolvedPath = ""
|
|
320
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
321
321
|
"/2021-01-01/opensearch/cc/outboundConnection/{ConnectionId}";
|
|
322
322
|
if (input.ConnectionId !== undefined) {
|
|
323
323
|
labelValue = input.ConnectionId;
|
|
@@ -349,7 +349,7 @@ export var serializeAws_restJson1DeletePackageCommand = function (input, context
|
|
|
349
349
|
case 1:
|
|
350
350
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
351
351
|
headers = {};
|
|
352
|
-
resolvedPath = ""
|
|
352
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/{PackageID}";
|
|
353
353
|
if (input.PackageID !== undefined) {
|
|
354
354
|
labelValue = input.PackageID;
|
|
355
355
|
if (labelValue.length <= 0) {
|
|
@@ -380,7 +380,7 @@ export var serializeAws_restJson1DescribeDomainCommand = function (input, contex
|
|
|
380
380
|
case 1:
|
|
381
381
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
382
382
|
headers = {};
|
|
383
|
-
resolvedPath = ""
|
|
383
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
384
384
|
"/2021-01-01/opensearch/domain/{DomainName}";
|
|
385
385
|
if (input.DomainName !== undefined) {
|
|
386
386
|
labelValue = input.DomainName;
|
|
@@ -414,7 +414,7 @@ export var serializeAws_restJson1DescribeDomainAutoTunesCommand = function (inpu
|
|
|
414
414
|
headers = {
|
|
415
415
|
"content-type": "application/json",
|
|
416
416
|
};
|
|
417
|
-
resolvedPath = ""
|
|
417
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
418
418
|
"/2021-01-01/opensearch/domain/{DomainName}/autoTunes";
|
|
419
419
|
if (input.DomainName !== undefined) {
|
|
420
420
|
labelValue = input.DomainName;
|
|
@@ -447,7 +447,7 @@ export var serializeAws_restJson1DescribeDomainChangeProgressCommand = function
|
|
|
447
447
|
case 1:
|
|
448
448
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
449
449
|
headers = {};
|
|
450
|
-
resolvedPath = ""
|
|
450
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
451
451
|
"/2021-01-01/opensearch/domain/{DomainName}/progress";
|
|
452
452
|
if (input.DomainName !== undefined) {
|
|
453
453
|
labelValue = input.DomainName;
|
|
@@ -481,7 +481,7 @@ export var serializeAws_restJson1DescribeDomainConfigCommand = function (input,
|
|
|
481
481
|
case 1:
|
|
482
482
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
483
483
|
headers = {};
|
|
484
|
-
resolvedPath = ""
|
|
484
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
485
485
|
"/2021-01-01/opensearch/domain/{DomainName}/config";
|
|
486
486
|
if (input.DomainName !== undefined) {
|
|
487
487
|
labelValue = input.DomainName;
|
|
@@ -515,7 +515,7 @@ export var serializeAws_restJson1DescribeDomainsCommand = function (input, conte
|
|
|
515
515
|
headers = {
|
|
516
516
|
"content-type": "application/json",
|
|
517
517
|
};
|
|
518
|
-
resolvedPath = ""
|
|
518
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/domain-info";
|
|
519
519
|
body = JSON.stringify(__assign({}, (input.DomainNames !== undefined &&
|
|
520
520
|
input.DomainNames !== null && { DomainNames: serializeAws_restJson1DomainNameList(input.DomainNames, context) })));
|
|
521
521
|
return [2, new __HttpRequest({
|
|
@@ -540,7 +540,7 @@ export var serializeAws_restJson1DescribeInboundConnectionsCommand = function (i
|
|
|
540
540
|
headers = {
|
|
541
541
|
"content-type": "application/json",
|
|
542
542
|
};
|
|
543
|
-
resolvedPath = ""
|
|
543
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
544
544
|
"/2021-01-01/opensearch/cc/inboundConnection/search";
|
|
545
545
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
|
|
546
546
|
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
@@ -564,7 +564,7 @@ export var serializeAws_restJson1DescribeInstanceTypeLimitsCommand = function (i
|
|
|
564
564
|
case 1:
|
|
565
565
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
566
566
|
headers = {};
|
|
567
|
-
resolvedPath = ""
|
|
567
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
568
568
|
"/2021-01-01/opensearch/instanceTypeLimits/{EngineVersion}/{InstanceType}";
|
|
569
569
|
if (input.InstanceType !== undefined) {
|
|
570
570
|
labelValue = input.InstanceType;
|
|
@@ -610,7 +610,7 @@ export var serializeAws_restJson1DescribeOutboundConnectionsCommand = function (
|
|
|
610
610
|
headers = {
|
|
611
611
|
"content-type": "application/json",
|
|
612
612
|
};
|
|
613
|
-
resolvedPath = ""
|
|
613
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
614
614
|
"/2021-01-01/opensearch/cc/outboundConnection/search";
|
|
615
615
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
|
|
616
616
|
input.Filters !== null && { Filters: serializeAws_restJson1FilterList(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
@@ -636,7 +636,7 @@ export var serializeAws_restJson1DescribePackagesCommand = function (input, cont
|
|
|
636
636
|
headers = {
|
|
637
637
|
"content-type": "application/json",
|
|
638
638
|
};
|
|
639
|
-
resolvedPath = ""
|
|
639
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/describe";
|
|
640
640
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters !== undefined &&
|
|
641
641
|
input.Filters !== null && { Filters: serializeAws_restJson1DescribePackagesFilterList(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
642
642
|
return [2, new __HttpRequest({
|
|
@@ -659,7 +659,7 @@ export var serializeAws_restJson1DescribeReservedInstanceOfferingsCommand = func
|
|
|
659
659
|
case 1:
|
|
660
660
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
661
661
|
headers = {};
|
|
662
|
-
resolvedPath = ""
|
|
662
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
663
663
|
"/2021-01-01/opensearch/reservedInstanceOfferings";
|
|
664
664
|
query = __assign(__assign(__assign({}, (input.ReservedInstanceOfferingId !== undefined && { offeringId: input.ReservedInstanceOfferingId })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
665
665
|
return [2, new __HttpRequest({
|
|
@@ -683,7 +683,7 @@ export var serializeAws_restJson1DescribeReservedInstancesCommand = function (in
|
|
|
683
683
|
case 1:
|
|
684
684
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
685
685
|
headers = {};
|
|
686
|
-
resolvedPath = ""
|
|
686
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/reservedInstances";
|
|
687
687
|
query = __assign(__assign(__assign({}, (input.ReservedInstanceId !== undefined && { reservationId: input.ReservedInstanceId })), (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
688
688
|
return [2, new __HttpRequest({
|
|
689
689
|
protocol: protocol,
|
|
@@ -706,7 +706,7 @@ export var serializeAws_restJson1DissociatePackageCommand = function (input, con
|
|
|
706
706
|
case 1:
|
|
707
707
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
708
708
|
headers = {};
|
|
709
|
-
resolvedPath = ""
|
|
709
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
710
710
|
"/2021-01-01/packages/dissociate/{PackageID}/{DomainName}";
|
|
711
711
|
if (input.PackageID !== undefined) {
|
|
712
712
|
labelValue = input.PackageID;
|
|
@@ -748,7 +748,7 @@ export var serializeAws_restJson1GetCompatibleVersionsCommand = function (input,
|
|
|
748
748
|
case 1:
|
|
749
749
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
750
750
|
headers = {};
|
|
751
|
-
resolvedPath = ""
|
|
751
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/compatibleVersions";
|
|
752
752
|
query = __assign({}, (input.DomainName !== undefined && { domainName: input.DomainName }));
|
|
753
753
|
return [2, new __HttpRequest({
|
|
754
754
|
protocol: protocol,
|
|
@@ -771,7 +771,7 @@ export var serializeAws_restJson1GetPackageVersionHistoryCommand = function (inp
|
|
|
771
771
|
case 1:
|
|
772
772
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
773
773
|
headers = {};
|
|
774
|
-
resolvedPath = ""
|
|
774
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/{PackageID}/history";
|
|
775
775
|
if (input.PackageID !== undefined) {
|
|
776
776
|
labelValue = input.PackageID;
|
|
777
777
|
if (labelValue.length <= 0) {
|
|
@@ -804,7 +804,7 @@ export var serializeAws_restJson1GetUpgradeHistoryCommand = function (input, con
|
|
|
804
804
|
case 1:
|
|
805
805
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
806
806
|
headers = {};
|
|
807
|
-
resolvedPath = ""
|
|
807
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
808
808
|
"/2021-01-01/opensearch/upgradeDomain/{DomainName}/history";
|
|
809
809
|
if (input.DomainName !== undefined) {
|
|
810
810
|
labelValue = input.DomainName;
|
|
@@ -838,7 +838,7 @@ export var serializeAws_restJson1GetUpgradeStatusCommand = function (input, cont
|
|
|
838
838
|
case 1:
|
|
839
839
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
840
840
|
headers = {};
|
|
841
|
-
resolvedPath = ""
|
|
841
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
842
842
|
"/2021-01-01/opensearch/upgradeDomain/{DomainName}/status";
|
|
843
843
|
if (input.DomainName !== undefined) {
|
|
844
844
|
labelValue = input.DomainName;
|
|
@@ -870,7 +870,7 @@ export var serializeAws_restJson1ListDomainNamesCommand = function (input, conte
|
|
|
870
870
|
case 1:
|
|
871
871
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
872
872
|
headers = {};
|
|
873
|
-
resolvedPath = ""
|
|
873
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/domain";
|
|
874
874
|
query = __assign({}, (input.EngineType !== undefined && { engineType: input.EngineType }));
|
|
875
875
|
return [2, new __HttpRequest({
|
|
876
876
|
protocol: protocol,
|
|
@@ -893,7 +893,7 @@ export var serializeAws_restJson1ListDomainsForPackageCommand = function (input,
|
|
|
893
893
|
case 1:
|
|
894
894
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
895
895
|
headers = {};
|
|
896
|
-
resolvedPath = ""
|
|
896
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/{PackageID}/domains";
|
|
897
897
|
if (input.PackageID !== undefined) {
|
|
898
898
|
labelValue = input.PackageID;
|
|
899
899
|
if (labelValue.length <= 0) {
|
|
@@ -926,7 +926,7 @@ export var serializeAws_restJson1ListInstanceTypeDetailsCommand = function (inpu
|
|
|
926
926
|
case 1:
|
|
927
927
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
928
928
|
headers = {};
|
|
929
|
-
resolvedPath = ""
|
|
929
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
930
930
|
"/2021-01-01/opensearch/instanceTypeDetails/{EngineVersion}";
|
|
931
931
|
if (input.EngineVersion !== undefined) {
|
|
932
932
|
labelValue = input.EngineVersion;
|
|
@@ -960,7 +960,7 @@ export var serializeAws_restJson1ListPackagesForDomainCommand = function (input,
|
|
|
960
960
|
case 1:
|
|
961
961
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
962
962
|
headers = {};
|
|
963
|
-
resolvedPath = ""
|
|
963
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/domain/{DomainName}/packages";
|
|
964
964
|
if (input.DomainName !== undefined) {
|
|
965
965
|
labelValue = input.DomainName;
|
|
966
966
|
if (labelValue.length <= 0) {
|
|
@@ -993,7 +993,7 @@ export var serializeAws_restJson1ListTagsCommand = function (input, context) { r
|
|
|
993
993
|
case 1:
|
|
994
994
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
995
995
|
headers = {};
|
|
996
|
-
resolvedPath = ""
|
|
996
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/tags";
|
|
997
997
|
query = __assign({}, (input.ARN !== undefined && { arn: input.ARN }));
|
|
998
998
|
return [2, new __HttpRequest({
|
|
999
999
|
protocol: protocol,
|
|
@@ -1016,7 +1016,7 @@ export var serializeAws_restJson1ListVersionsCommand = function (input, context)
|
|
|
1016
1016
|
case 1:
|
|
1017
1017
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1018
1018
|
headers = {};
|
|
1019
|
-
resolvedPath = ""
|
|
1019
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/versions";
|
|
1020
1020
|
query = __assign(__assign({}, (input.MaxResults !== undefined && { maxResults: input.MaxResults.toString() })), (input.NextToken !== undefined && { nextToken: input.NextToken }));
|
|
1021
1021
|
return [2, new __HttpRequest({
|
|
1022
1022
|
protocol: protocol,
|
|
@@ -1041,7 +1041,7 @@ export var serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = funct
|
|
|
1041
1041
|
headers = {
|
|
1042
1042
|
"content-type": "application/json",
|
|
1043
1043
|
};
|
|
1044
|
-
resolvedPath = ""
|
|
1044
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1045
1045
|
"/2021-01-01/opensearch/purchaseReservedInstanceOffering";
|
|
1046
1046
|
body = JSON.stringify(__assign(__assign(__assign({}, (input.InstanceCount !== undefined && input.InstanceCount !== null && { InstanceCount: input.InstanceCount })), (input.ReservationName !== undefined &&
|
|
1047
1047
|
input.ReservationName !== null && { ReservationName: input.ReservationName })), (input.ReservedInstanceOfferingId !== undefined &&
|
|
@@ -1066,7 +1066,7 @@ export var serializeAws_restJson1RejectInboundConnectionCommand = function (inpu
|
|
|
1066
1066
|
case 1:
|
|
1067
1067
|
_a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
1068
1068
|
headers = {};
|
|
1069
|
-
resolvedPath = ""
|
|
1069
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1070
1070
|
"/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/reject";
|
|
1071
1071
|
if (input.ConnectionId !== undefined) {
|
|
1072
1072
|
labelValue = input.ConnectionId;
|
|
@@ -1100,7 +1100,7 @@ export var serializeAws_restJson1RemoveTagsCommand = function (input, context) {
|
|
|
1100
1100
|
headers = {
|
|
1101
1101
|
"content-type": "application/json",
|
|
1102
1102
|
};
|
|
1103
|
-
resolvedPath = ""
|
|
1103
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/tags-removal";
|
|
1104
1104
|
body = JSON.stringify(__assign(__assign({}, (input.ARN !== undefined && input.ARN !== null && { ARN: input.ARN })), (input.TagKeys !== undefined &&
|
|
1105
1105
|
input.TagKeys !== null && { TagKeys: serializeAws_restJson1StringList(input.TagKeys, context) })));
|
|
1106
1106
|
return [2, new __HttpRequest({
|
|
@@ -1125,7 +1125,7 @@ export var serializeAws_restJson1StartServiceSoftwareUpdateCommand = function (i
|
|
|
1125
1125
|
headers = {
|
|
1126
1126
|
"content-type": "application/json",
|
|
1127
1127
|
};
|
|
1128
|
-
resolvedPath = ""
|
|
1128
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1129
1129
|
"/2021-01-01/opensearch/serviceSoftwareUpdate/start";
|
|
1130
1130
|
body = JSON.stringify(__assign({}, (input.DomainName !== undefined && input.DomainName !== null && { DomainName: input.DomainName })));
|
|
1131
1131
|
return [2, new __HttpRequest({
|
|
@@ -1150,7 +1150,7 @@ export var serializeAws_restJson1UpdateDomainConfigCommand = function (input, co
|
|
|
1150
1150
|
headers = {
|
|
1151
1151
|
"content-type": "application/json",
|
|
1152
1152
|
};
|
|
1153
|
-
resolvedPath = ""
|
|
1153
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
|
|
1154
1154
|
"/2021-01-01/opensearch/domain/{DomainName}/config";
|
|
1155
1155
|
if (input.DomainName !== undefined) {
|
|
1156
1156
|
labelValue = input.DomainName;
|
|
@@ -1218,7 +1218,7 @@ export var serializeAws_restJson1UpdatePackageCommand = function (input, context
|
|
|
1218
1218
|
headers = {
|
|
1219
1219
|
"content-type": "application/json",
|
|
1220
1220
|
};
|
|
1221
|
-
resolvedPath = ""
|
|
1221
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/packages/update";
|
|
1222
1222
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.CommitMessage !== undefined && input.CommitMessage !== null && { CommitMessage: input.CommitMessage })), (input.PackageDescription !== undefined &&
|
|
1223
1223
|
input.PackageDescription !== null && { PackageDescription: input.PackageDescription })), (input.PackageID !== undefined && input.PackageID !== null && { PackageID: input.PackageID })), (input.PackageSource !== undefined &&
|
|
1224
1224
|
input.PackageSource !== null && {
|
|
@@ -1246,7 +1246,7 @@ export var serializeAws_restJson1UpgradeDomainCommand = function (input, context
|
|
|
1246
1246
|
headers = {
|
|
1247
1247
|
"content-type": "application/json",
|
|
1248
1248
|
};
|
|
1249
|
-
resolvedPath = ""
|
|
1249
|
+
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/2021-01-01/opensearch/upgradeDomain";
|
|
1250
1250
|
body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.AdvancedOptions !== undefined &&
|
|
1251
1251
|
input.AdvancedOptions !== null && {
|
|
1252
1252
|
AdvancedOptions: serializeAws_restJson1AdvancedOptions(input.AdvancedOptions, context),
|
|
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: OpenSearchClientConfig) => {
|
|
|
21
21
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
22
22
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
23
23
|
serviceId: string;
|
|
24
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
24
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
25
25
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
26
26
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
27
27
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
28
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
28
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
29
29
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
30
30
|
tls?: boolean | undefined;
|
|
31
31
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|
|
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: OpenSearchClientConfig) => {
|
|
|
19
19
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
20
20
|
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
21
21
|
serviceId: string;
|
|
22
|
-
region: string | import("@aws-sdk/types").Provider<
|
|
22
|
+
region: string | import("@aws-sdk/types").Provider<any>;
|
|
23
23
|
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
|
|
24
24
|
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
|
|
25
25
|
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
|
|
26
|
-
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode
|
|
26
|
+
defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
|
|
27
27
|
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
|
|
28
28
|
tls?: boolean | undefined;
|
|
29
29
|
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
|