@aws-sdk/client-opensearch 3.202.0 → 3.206.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 +9 -12
- package/dist-cjs/OpenSearch.js +135 -0
- package/dist-cjs/commands/AuthorizeVpcEndpointAccessCommand.js +46 -0
- package/dist-cjs/commands/CreateVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/DeleteVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/DescribeVpcEndpointsCommand.js +46 -0
- package/dist-cjs/commands/ListVpcEndpointAccessCommand.js +46 -0
- package/dist-cjs/commands/ListVpcEndpointsCommand.js +46 -0
- package/dist-cjs/commands/ListVpcEndpointsForDomainCommand.js +46 -0
- package/dist-cjs/commands/RevokeVpcEndpointAccessCommand.js +46 -0
- package/dist-cjs/commands/UpdateVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/models/models_0.js +113 -4
- package/dist-cjs/protocols/Aws_restJson1.js +761 -67
- package/dist-cjs/runtimeConfig.browser.js +0 -3
- package/dist-cjs/runtimeConfig.js +0 -3
- package/dist-cjs/runtimeConfig.shared.js +3 -0
- package/dist-es/OpenSearch.js +135 -0
- package/dist-es/commands/AuthorizeVpcEndpointAccessCommand.js +42 -0
- package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
- package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
- package/dist-es/commands/DescribeVpcEndpointsCommand.js +42 -0
- package/dist-es/commands/ListVpcEndpointAccessCommand.js +42 -0
- package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
- package/dist-es/commands/ListVpcEndpointsForDomainCommand.js +42 -0
- package/dist-es/commands/RevokeVpcEndpointAccessCommand.js +42 -0
- package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/models/models_0.js +86 -0
- package/dist-es/protocols/Aws_restJson1.js +744 -68
- package/dist-es/runtimeConfig.browser.js +0 -3
- package/dist-es/runtimeConfig.js +0 -3
- package/dist-es/runtimeConfig.shared.js +3 -0
- package/dist-types/OpenSearch.d.ts +172 -91
- package/dist-types/OpenSearchClient.d.ts +21 -14
- package/dist-types/commands/AcceptInboundConnectionCommand.d.ts +3 -1
- package/dist-types/commands/AddTagsCommand.d.ts +3 -5
- package/dist-types/commands/AssociatePackageCommand.d.ts +3 -1
- package/dist-types/commands/AuthorizeVpcEndpointAccessCommand.d.ts +38 -0
- package/dist-types/commands/CancelServiceSoftwareUpdateCommand.d.ts +3 -3
- package/dist-types/commands/CreateDomainCommand.d.ts +1 -4
- package/dist-types/commands/CreateOutboundConnectionCommand.d.ts +3 -1
- package/dist-types/commands/CreatePackageCommand.d.ts +2 -1
- package/dist-types/commands/CreateVpcEndpointCommand.d.ts +37 -0
- package/dist-types/commands/DeleteDomainCommand.d.ts +2 -3
- package/dist-types/commands/DeleteInboundConnectionCommand.d.ts +3 -1
- package/dist-types/commands/DeleteOutboundConnectionCommand.d.ts +3 -1
- package/dist-types/commands/DeletePackageCommand.d.ts +2 -1
- package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +37 -0
- package/dist-types/commands/DescribeDomainAutoTunesCommand.d.ts +3 -3
- package/dist-types/commands/DescribeDomainChangeProgressCommand.d.ts +2 -2
- package/dist-types/commands/DescribeDomainCommand.d.ts +2 -3
- package/dist-types/commands/DescribeDomainConfigCommand.d.ts +1 -3
- package/dist-types/commands/DescribeDomainsCommand.d.ts +2 -3
- package/dist-types/commands/DescribeInboundConnectionsCommand.d.ts +3 -1
- package/dist-types/commands/DescribeInstanceTypeLimitsCommand.d.ts +2 -8
- package/dist-types/commands/DescribeOutboundConnectionsCommand.d.ts +3 -1
- package/dist-types/commands/DescribePackagesCommand.d.ts +2 -3
- package/dist-types/commands/DescribeReservedInstanceOfferingsCommand.d.ts +2 -1
- package/dist-types/commands/DescribeReservedInstancesCommand.d.ts +3 -1
- package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +37 -0
- package/dist-types/commands/DissociatePackageCommand.d.ts +4 -1
- package/dist-types/commands/GetCompatibleVersionsCommand.d.ts +2 -8
- package/dist-types/commands/GetPackageVersionHistoryCommand.d.ts +3 -1
- package/dist-types/commands/GetUpgradeHistoryCommand.d.ts +2 -1
- package/dist-types/commands/GetUpgradeStatusCommand.d.ts +2 -2
- package/dist-types/commands/ListDomainNamesCommand.d.ts +2 -1
- package/dist-types/commands/ListDomainsForPackageCommand.d.ts +3 -1
- package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +18 -0
- package/dist-types/commands/ListPackagesForDomainCommand.d.ts +3 -1
- package/dist-types/commands/ListTagsCommand.d.ts +2 -1
- package/dist-types/commands/ListVersionsCommand.d.ts +2 -1
- package/dist-types/commands/ListVpcEndpointAccessCommand.d.ts +38 -0
- package/dist-types/commands/ListVpcEndpointsCommand.d.ts +37 -0
- package/dist-types/commands/ListVpcEndpointsForDomainCommand.d.ts +38 -0
- package/dist-types/commands/PurchaseReservedInstanceOfferingCommand.d.ts +1 -1
- package/dist-types/commands/RejectInboundConnectionCommand.d.ts +2 -1
- package/dist-types/commands/RemoveTagsCommand.d.ts +2 -1
- package/dist-types/commands/RevokeVpcEndpointAccessCommand.d.ts +38 -0
- package/dist-types/commands/StartServiceSoftwareUpdateCommand.d.ts +3 -1
- package/dist-types/commands/UpdateDomainConfigCommand.d.ts +1 -3
- package/dist-types/commands/UpdatePackageCommand.d.ts +2 -1
- package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +37 -0
- package/dist-types/commands/UpgradeDomainCommand.d.ts +2 -2
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +1526 -1604
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +2 -0
- package/dist-types/ts3.4/OpenSearch.d.ts +153 -0
- package/dist-types/ts3.4/OpenSearchClient.d.ts +54 -0
- package/dist-types/ts3.4/commands/AuthorizeVpcEndpointAccessCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeVpcEndpointsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListVpcEndpointAccessCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListVpcEndpointsForDomainCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/RevokeVpcEndpointAccessCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +167 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +108 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +2 -0
- package/package.json +5 -4
- package/CHANGELOG.md +0 -857
|
@@ -58,6 +58,28 @@ export const serializeAws_restJson1AssociatePackageCommand = async (input, conte
|
|
|
58
58
|
body,
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
|
+
export const serializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (input, context) => {
|
|
62
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
63
|
+
const headers = {
|
|
64
|
+
"content-type": "application/json",
|
|
65
|
+
};
|
|
66
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
67
|
+
"/2021-01-01/opensearch/domain/{DomainName}/authorizeVpcEndpointAccess";
|
|
68
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
69
|
+
let body;
|
|
70
|
+
body = JSON.stringify({
|
|
71
|
+
...(input.Account != null && { Account: input.Account }),
|
|
72
|
+
});
|
|
73
|
+
return new __HttpRequest({
|
|
74
|
+
protocol,
|
|
75
|
+
hostname,
|
|
76
|
+
port,
|
|
77
|
+
method: "POST",
|
|
78
|
+
headers,
|
|
79
|
+
path: resolvedPath,
|
|
80
|
+
body,
|
|
81
|
+
});
|
|
82
|
+
};
|
|
61
83
|
export const serializeAws_restJson1CancelServiceSoftwareUpdateCommand = async (input, context) => {
|
|
62
84
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
63
85
|
const headers = {
|
|
@@ -186,6 +208,28 @@ export const serializeAws_restJson1CreatePackageCommand = async (input, context)
|
|
|
186
208
|
body,
|
|
187
209
|
});
|
|
188
210
|
};
|
|
211
|
+
export const serializeAws_restJson1CreateVpcEndpointCommand = async (input, context) => {
|
|
212
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
213
|
+
const headers = {
|
|
214
|
+
"content-type": "application/json",
|
|
215
|
+
};
|
|
216
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/vpcEndpoints";
|
|
217
|
+
let body;
|
|
218
|
+
body = JSON.stringify({
|
|
219
|
+
...(input.ClientToken != null && { ClientToken: input.ClientToken }),
|
|
220
|
+
...(input.DomainArn != null && { DomainArn: input.DomainArn }),
|
|
221
|
+
...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
|
|
222
|
+
});
|
|
223
|
+
return new __HttpRequest({
|
|
224
|
+
protocol,
|
|
225
|
+
hostname,
|
|
226
|
+
port,
|
|
227
|
+
method: "POST",
|
|
228
|
+
headers,
|
|
229
|
+
path: resolvedPath,
|
|
230
|
+
body,
|
|
231
|
+
});
|
|
232
|
+
};
|
|
189
233
|
export const serializeAws_restJson1DeleteDomainCommand = async (input, context) => {
|
|
190
234
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
191
235
|
const headers = {};
|
|
@@ -253,6 +297,23 @@ export const serializeAws_restJson1DeletePackageCommand = async (input, context)
|
|
|
253
297
|
body,
|
|
254
298
|
});
|
|
255
299
|
};
|
|
300
|
+
export const serializeAws_restJson1DeleteVpcEndpointCommand = async (input, context) => {
|
|
301
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
302
|
+
const headers = {};
|
|
303
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
304
|
+
"/2021-01-01/opensearch/vpcEndpoints/{VpcEndpointId}";
|
|
305
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "VpcEndpointId", () => input.VpcEndpointId, "{VpcEndpointId}", false);
|
|
306
|
+
let body;
|
|
307
|
+
return new __HttpRequest({
|
|
308
|
+
protocol,
|
|
309
|
+
hostname,
|
|
310
|
+
port,
|
|
311
|
+
method: "DELETE",
|
|
312
|
+
headers,
|
|
313
|
+
path: resolvedPath,
|
|
314
|
+
body,
|
|
315
|
+
});
|
|
316
|
+
};
|
|
256
317
|
export const serializeAws_restJson1DescribeDomainCommand = async (input, context) => {
|
|
257
318
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
258
319
|
const headers = {};
|
|
@@ -484,6 +545,29 @@ export const serializeAws_restJson1DescribeReservedInstancesCommand = async (inp
|
|
|
484
545
|
body,
|
|
485
546
|
});
|
|
486
547
|
};
|
|
548
|
+
export const serializeAws_restJson1DescribeVpcEndpointsCommand = async (input, context) => {
|
|
549
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
550
|
+
const headers = {
|
|
551
|
+
"content-type": "application/json",
|
|
552
|
+
};
|
|
553
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
554
|
+
"/2021-01-01/opensearch/vpcEndpoints/describe";
|
|
555
|
+
let body;
|
|
556
|
+
body = JSON.stringify({
|
|
557
|
+
...(input.VpcEndpointIds != null && {
|
|
558
|
+
VpcEndpointIds: serializeAws_restJson1VpcEndpointIdList(input.VpcEndpointIds, context),
|
|
559
|
+
}),
|
|
560
|
+
});
|
|
561
|
+
return new __HttpRequest({
|
|
562
|
+
protocol,
|
|
563
|
+
hostname,
|
|
564
|
+
port,
|
|
565
|
+
method: "POST",
|
|
566
|
+
headers,
|
|
567
|
+
path: resolvedPath,
|
|
568
|
+
body,
|
|
569
|
+
});
|
|
570
|
+
};
|
|
487
571
|
export const serializeAws_restJson1DissociatePackageCommand = async (input, context) => {
|
|
488
572
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
489
573
|
const headers = {};
|
|
@@ -704,6 +788,67 @@ export const serializeAws_restJson1ListVersionsCommand = async (input, context)
|
|
|
704
788
|
body,
|
|
705
789
|
});
|
|
706
790
|
};
|
|
791
|
+
export const serializeAws_restJson1ListVpcEndpointAccessCommand = async (input, context) => {
|
|
792
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
793
|
+
const headers = {};
|
|
794
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
795
|
+
"/2021-01-01/opensearch/domain/{DomainName}/listVpcEndpointAccess";
|
|
796
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
797
|
+
const query = map({
|
|
798
|
+
nextToken: [, input.NextToken],
|
|
799
|
+
});
|
|
800
|
+
let body;
|
|
801
|
+
return new __HttpRequest({
|
|
802
|
+
protocol,
|
|
803
|
+
hostname,
|
|
804
|
+
port,
|
|
805
|
+
method: "GET",
|
|
806
|
+
headers,
|
|
807
|
+
path: resolvedPath,
|
|
808
|
+
query,
|
|
809
|
+
body,
|
|
810
|
+
});
|
|
811
|
+
};
|
|
812
|
+
export const serializeAws_restJson1ListVpcEndpointsCommand = async (input, context) => {
|
|
813
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
814
|
+
const headers = {};
|
|
815
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/2021-01-01/opensearch/vpcEndpoints";
|
|
816
|
+
const query = map({
|
|
817
|
+
nextToken: [, input.NextToken],
|
|
818
|
+
});
|
|
819
|
+
let body;
|
|
820
|
+
return new __HttpRequest({
|
|
821
|
+
protocol,
|
|
822
|
+
hostname,
|
|
823
|
+
port,
|
|
824
|
+
method: "GET",
|
|
825
|
+
headers,
|
|
826
|
+
path: resolvedPath,
|
|
827
|
+
query,
|
|
828
|
+
body,
|
|
829
|
+
});
|
|
830
|
+
};
|
|
831
|
+
export const serializeAws_restJson1ListVpcEndpointsForDomainCommand = async (input, context) => {
|
|
832
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
833
|
+
const headers = {};
|
|
834
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
835
|
+
"/2021-01-01/opensearch/domain/{DomainName}/vpcEndpoints";
|
|
836
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
837
|
+
const query = map({
|
|
838
|
+
nextToken: [, input.NextToken],
|
|
839
|
+
});
|
|
840
|
+
let body;
|
|
841
|
+
return new __HttpRequest({
|
|
842
|
+
protocol,
|
|
843
|
+
hostname,
|
|
844
|
+
port,
|
|
845
|
+
method: "GET",
|
|
846
|
+
headers,
|
|
847
|
+
path: resolvedPath,
|
|
848
|
+
query,
|
|
849
|
+
body,
|
|
850
|
+
});
|
|
851
|
+
};
|
|
707
852
|
export const serializeAws_restJson1PurchaseReservedInstanceOfferingCommand = async (input, context) => {
|
|
708
853
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
709
854
|
const headers = {
|
|
@@ -765,6 +910,28 @@ export const serializeAws_restJson1RemoveTagsCommand = async (input, context) =>
|
|
|
765
910
|
body,
|
|
766
911
|
});
|
|
767
912
|
};
|
|
913
|
+
export const serializeAws_restJson1RevokeVpcEndpointAccessCommand = async (input, context) => {
|
|
914
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
915
|
+
const headers = {
|
|
916
|
+
"content-type": "application/json",
|
|
917
|
+
};
|
|
918
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
919
|
+
"/2021-01-01/opensearch/domain/{DomainName}/revokeVpcEndpointAccess";
|
|
920
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
921
|
+
let body;
|
|
922
|
+
body = JSON.stringify({
|
|
923
|
+
...(input.Account != null && { Account: input.Account }),
|
|
924
|
+
});
|
|
925
|
+
return new __HttpRequest({
|
|
926
|
+
protocol,
|
|
927
|
+
hostname,
|
|
928
|
+
port,
|
|
929
|
+
method: "POST",
|
|
930
|
+
headers,
|
|
931
|
+
path: resolvedPath,
|
|
932
|
+
body,
|
|
933
|
+
});
|
|
934
|
+
};
|
|
768
935
|
export const serializeAws_restJson1StartServiceSoftwareUpdateCommand = async (input, context) => {
|
|
769
936
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
770
937
|
const headers = {
|
|
@@ -866,6 +1033,28 @@ export const serializeAws_restJson1UpdatePackageCommand = async (input, context)
|
|
|
866
1033
|
body,
|
|
867
1034
|
});
|
|
868
1035
|
};
|
|
1036
|
+
export const serializeAws_restJson1UpdateVpcEndpointCommand = async (input, context) => {
|
|
1037
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1038
|
+
const headers = {
|
|
1039
|
+
"content-type": "application/json",
|
|
1040
|
+
};
|
|
1041
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
1042
|
+
"/2021-01-01/opensearch/vpcEndpoints/update";
|
|
1043
|
+
let body;
|
|
1044
|
+
body = JSON.stringify({
|
|
1045
|
+
...(input.VpcEndpointId != null && { VpcEndpointId: input.VpcEndpointId }),
|
|
1046
|
+
...(input.VpcOptions != null && { VpcOptions: serializeAws_restJson1VPCOptions(input.VpcOptions, context) }),
|
|
1047
|
+
});
|
|
1048
|
+
return new __HttpRequest({
|
|
1049
|
+
protocol,
|
|
1050
|
+
hostname,
|
|
1051
|
+
port,
|
|
1052
|
+
method: "POST",
|
|
1053
|
+
headers,
|
|
1054
|
+
path: resolvedPath,
|
|
1055
|
+
body,
|
|
1056
|
+
});
|
|
1057
|
+
};
|
|
869
1058
|
export const serializeAws_restJson1UpgradeDomainCommand = async (input, context) => {
|
|
870
1059
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
871
1060
|
const headers = {
|
|
@@ -1017,6 +1206,54 @@ const deserializeAws_restJson1AssociatePackageCommandError = async (output, cont
|
|
|
1017
1206
|
});
|
|
1018
1207
|
}
|
|
1019
1208
|
};
|
|
1209
|
+
export const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommand = async (output, context) => {
|
|
1210
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1211
|
+
return deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError(output, context);
|
|
1212
|
+
}
|
|
1213
|
+
const contents = map({
|
|
1214
|
+
$metadata: deserializeMetadata(output),
|
|
1215
|
+
});
|
|
1216
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1217
|
+
if (data.AuthorizedPrincipal != null) {
|
|
1218
|
+
contents.AuthorizedPrincipal = deserializeAws_restJson1AuthorizedPrincipal(data.AuthorizedPrincipal, context);
|
|
1219
|
+
}
|
|
1220
|
+
return contents;
|
|
1221
|
+
};
|
|
1222
|
+
const deserializeAws_restJson1AuthorizeVpcEndpointAccessCommandError = async (output, context) => {
|
|
1223
|
+
const parsedOutput = {
|
|
1224
|
+
...output,
|
|
1225
|
+
body: await parseErrorBody(output.body, context),
|
|
1226
|
+
};
|
|
1227
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1228
|
+
switch (errorCode) {
|
|
1229
|
+
case "BaseException":
|
|
1230
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
1231
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1232
|
+
case "DisabledOperationException":
|
|
1233
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1234
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
1235
|
+
case "InternalException":
|
|
1236
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
1237
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1238
|
+
case "LimitExceededException":
|
|
1239
|
+
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1240
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1241
|
+
case "ResourceNotFoundException":
|
|
1242
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1243
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1244
|
+
case "ValidationException":
|
|
1245
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
1246
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1247
|
+
default:
|
|
1248
|
+
const parsedBody = parsedOutput.body;
|
|
1249
|
+
throwDefaultError({
|
|
1250
|
+
output,
|
|
1251
|
+
parsedBody,
|
|
1252
|
+
exceptionCtor: __BaseException,
|
|
1253
|
+
errorCode,
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
};
|
|
1020
1257
|
export const deserializeAws_restJson1CancelServiceSoftwareUpdateCommand = async (output, context) => {
|
|
1021
1258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1022
1259
|
return deserializeAws_restJson1CancelServiceSoftwareUpdateCommandError(output, context);
|
|
@@ -1215,6 +1452,54 @@ const deserializeAws_restJson1CreatePackageCommandError = async (output, context
|
|
|
1215
1452
|
});
|
|
1216
1453
|
}
|
|
1217
1454
|
};
|
|
1455
|
+
export const deserializeAws_restJson1CreateVpcEndpointCommand = async (output, context) => {
|
|
1456
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1457
|
+
return deserializeAws_restJson1CreateVpcEndpointCommandError(output, context);
|
|
1458
|
+
}
|
|
1459
|
+
const contents = map({
|
|
1460
|
+
$metadata: deserializeMetadata(output),
|
|
1461
|
+
});
|
|
1462
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1463
|
+
if (data.VpcEndpoint != null) {
|
|
1464
|
+
contents.VpcEndpoint = deserializeAws_restJson1VpcEndpoint(data.VpcEndpoint, context);
|
|
1465
|
+
}
|
|
1466
|
+
return contents;
|
|
1467
|
+
};
|
|
1468
|
+
const deserializeAws_restJson1CreateVpcEndpointCommandError = async (output, context) => {
|
|
1469
|
+
const parsedOutput = {
|
|
1470
|
+
...output,
|
|
1471
|
+
body: await parseErrorBody(output.body, context),
|
|
1472
|
+
};
|
|
1473
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
|
+
switch (errorCode) {
|
|
1475
|
+
case "BaseException":
|
|
1476
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
1477
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1478
|
+
case "ConflictException":
|
|
1479
|
+
case "com.amazonaws.opensearch#ConflictException":
|
|
1480
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1481
|
+
case "DisabledOperationException":
|
|
1482
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1483
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
1484
|
+
case "InternalException":
|
|
1485
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
1486
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1487
|
+
case "LimitExceededException":
|
|
1488
|
+
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1489
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1490
|
+
case "ValidationException":
|
|
1491
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
1492
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1493
|
+
default:
|
|
1494
|
+
const parsedBody = parsedOutput.body;
|
|
1495
|
+
throwDefaultError({
|
|
1496
|
+
output,
|
|
1497
|
+
parsedBody,
|
|
1498
|
+
exceptionCtor: __BaseException,
|
|
1499
|
+
errorCode,
|
|
1500
|
+
});
|
|
1501
|
+
}
|
|
1502
|
+
};
|
|
1218
1503
|
export const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
|
|
1219
1504
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1220
1505
|
return deserializeAws_restJson1DeleteDomainCommandError(output, context);
|
|
@@ -1377,6 +1662,48 @@ const deserializeAws_restJson1DeletePackageCommandError = async (output, context
|
|
|
1377
1662
|
});
|
|
1378
1663
|
}
|
|
1379
1664
|
};
|
|
1665
|
+
export const deserializeAws_restJson1DeleteVpcEndpointCommand = async (output, context) => {
|
|
1666
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1667
|
+
return deserializeAws_restJson1DeleteVpcEndpointCommandError(output, context);
|
|
1668
|
+
}
|
|
1669
|
+
const contents = map({
|
|
1670
|
+
$metadata: deserializeMetadata(output),
|
|
1671
|
+
});
|
|
1672
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1673
|
+
if (data.VpcEndpointSummary != null) {
|
|
1674
|
+
contents.VpcEndpointSummary = deserializeAws_restJson1VpcEndpointSummary(data.VpcEndpointSummary, context);
|
|
1675
|
+
}
|
|
1676
|
+
return contents;
|
|
1677
|
+
};
|
|
1678
|
+
const deserializeAws_restJson1DeleteVpcEndpointCommandError = async (output, context) => {
|
|
1679
|
+
const parsedOutput = {
|
|
1680
|
+
...output,
|
|
1681
|
+
body: await parseErrorBody(output.body, context),
|
|
1682
|
+
};
|
|
1683
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
|
+
switch (errorCode) {
|
|
1685
|
+
case "BaseException":
|
|
1686
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
1687
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
1688
|
+
case "DisabledOperationException":
|
|
1689
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1690
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
1691
|
+
case "InternalException":
|
|
1692
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
1693
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
1694
|
+
case "ResourceNotFoundException":
|
|
1695
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1696
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1697
|
+
default:
|
|
1698
|
+
const parsedBody = parsedOutput.body;
|
|
1699
|
+
throwDefaultError({
|
|
1700
|
+
output,
|
|
1701
|
+
parsedBody,
|
|
1702
|
+
exceptionCtor: __BaseException,
|
|
1703
|
+
errorCode,
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1380
1707
|
export const deserializeAws_restJson1DescribeDomainCommand = async (output, context) => {
|
|
1381
1708
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1382
1709
|
return deserializeAws_restJson1DescribeDomainCommandError(output, context);
|
|
@@ -1851,6 +2178,51 @@ const deserializeAws_restJson1DescribeReservedInstancesCommandError = async (out
|
|
|
1851
2178
|
});
|
|
1852
2179
|
}
|
|
1853
2180
|
};
|
|
2181
|
+
export const deserializeAws_restJson1DescribeVpcEndpointsCommand = async (output, context) => {
|
|
2182
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2183
|
+
return deserializeAws_restJson1DescribeVpcEndpointsCommandError(output, context);
|
|
2184
|
+
}
|
|
2185
|
+
const contents = map({
|
|
2186
|
+
$metadata: deserializeMetadata(output),
|
|
2187
|
+
});
|
|
2188
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2189
|
+
if (data.VpcEndpointErrors != null) {
|
|
2190
|
+
contents.VpcEndpointErrors = deserializeAws_restJson1VpcEndpointErrorList(data.VpcEndpointErrors, context);
|
|
2191
|
+
}
|
|
2192
|
+
if (data.VpcEndpoints != null) {
|
|
2193
|
+
contents.VpcEndpoints = deserializeAws_restJson1VpcEndpoints(data.VpcEndpoints, context);
|
|
2194
|
+
}
|
|
2195
|
+
return contents;
|
|
2196
|
+
};
|
|
2197
|
+
const deserializeAws_restJson1DescribeVpcEndpointsCommandError = async (output, context) => {
|
|
2198
|
+
const parsedOutput = {
|
|
2199
|
+
...output,
|
|
2200
|
+
body: await parseErrorBody(output.body, context),
|
|
2201
|
+
};
|
|
2202
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2203
|
+
switch (errorCode) {
|
|
2204
|
+
case "BaseException":
|
|
2205
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2206
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2207
|
+
case "DisabledOperationException":
|
|
2208
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2209
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2210
|
+
case "InternalException":
|
|
2211
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2212
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2213
|
+
case "ValidationException":
|
|
2214
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
2215
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2216
|
+
default:
|
|
2217
|
+
const parsedBody = parsedOutput.body;
|
|
2218
|
+
throwDefaultError({
|
|
2219
|
+
output,
|
|
2220
|
+
parsedBody,
|
|
2221
|
+
exceptionCtor: __BaseException,
|
|
2222
|
+
errorCode,
|
|
2223
|
+
});
|
|
2224
|
+
}
|
|
2225
|
+
};
|
|
1854
2226
|
export const deserializeAws_restJson1DissociatePackageCommand = async (output, context) => {
|
|
1855
2227
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1856
2228
|
return deserializeAws_restJson1DissociatePackageCommandError(output, context);
|
|
@@ -2021,9 +2393,144 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
|
|
|
2021
2393
|
case "BaseException":
|
|
2022
2394
|
case "com.amazonaws.opensearch#BaseException":
|
|
2023
2395
|
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2024
|
-
case "DisabledOperationException":
|
|
2025
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2026
|
-
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2396
|
+
case "DisabledOperationException":
|
|
2397
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2398
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2399
|
+
case "InternalException":
|
|
2400
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2401
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2402
|
+
case "ResourceNotFoundException":
|
|
2403
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2404
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2405
|
+
case "ValidationException":
|
|
2406
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
2407
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2408
|
+
default:
|
|
2409
|
+
const parsedBody = parsedOutput.body;
|
|
2410
|
+
throwDefaultError({
|
|
2411
|
+
output,
|
|
2412
|
+
parsedBody,
|
|
2413
|
+
exceptionCtor: __BaseException,
|
|
2414
|
+
errorCode,
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
2417
|
+
};
|
|
2418
|
+
export const deserializeAws_restJson1GetUpgradeStatusCommand = async (output, context) => {
|
|
2419
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2420
|
+
return deserializeAws_restJson1GetUpgradeStatusCommandError(output, context);
|
|
2421
|
+
}
|
|
2422
|
+
const contents = map({
|
|
2423
|
+
$metadata: deserializeMetadata(output),
|
|
2424
|
+
});
|
|
2425
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2426
|
+
if (data.StepStatus != null) {
|
|
2427
|
+
contents.StepStatus = __expectString(data.StepStatus);
|
|
2428
|
+
}
|
|
2429
|
+
if (data.UpgradeName != null) {
|
|
2430
|
+
contents.UpgradeName = __expectString(data.UpgradeName);
|
|
2431
|
+
}
|
|
2432
|
+
if (data.UpgradeStep != null) {
|
|
2433
|
+
contents.UpgradeStep = __expectString(data.UpgradeStep);
|
|
2434
|
+
}
|
|
2435
|
+
return contents;
|
|
2436
|
+
};
|
|
2437
|
+
const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, context) => {
|
|
2438
|
+
const parsedOutput = {
|
|
2439
|
+
...output,
|
|
2440
|
+
body: await parseErrorBody(output.body, context),
|
|
2441
|
+
};
|
|
2442
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2443
|
+
switch (errorCode) {
|
|
2444
|
+
case "BaseException":
|
|
2445
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2446
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2447
|
+
case "DisabledOperationException":
|
|
2448
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2449
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2450
|
+
case "InternalException":
|
|
2451
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2452
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2453
|
+
case "ResourceNotFoundException":
|
|
2454
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2455
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2456
|
+
case "ValidationException":
|
|
2457
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
2458
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2459
|
+
default:
|
|
2460
|
+
const parsedBody = parsedOutput.body;
|
|
2461
|
+
throwDefaultError({
|
|
2462
|
+
output,
|
|
2463
|
+
parsedBody,
|
|
2464
|
+
exceptionCtor: __BaseException,
|
|
2465
|
+
errorCode,
|
|
2466
|
+
});
|
|
2467
|
+
}
|
|
2468
|
+
};
|
|
2469
|
+
export const deserializeAws_restJson1ListDomainNamesCommand = async (output, context) => {
|
|
2470
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2471
|
+
return deserializeAws_restJson1ListDomainNamesCommandError(output, context);
|
|
2472
|
+
}
|
|
2473
|
+
const contents = map({
|
|
2474
|
+
$metadata: deserializeMetadata(output),
|
|
2475
|
+
});
|
|
2476
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2477
|
+
if (data.DomainNames != null) {
|
|
2478
|
+
contents.DomainNames = deserializeAws_restJson1DomainInfoList(data.DomainNames, context);
|
|
2479
|
+
}
|
|
2480
|
+
return contents;
|
|
2481
|
+
};
|
|
2482
|
+
const deserializeAws_restJson1ListDomainNamesCommandError = async (output, context) => {
|
|
2483
|
+
const parsedOutput = {
|
|
2484
|
+
...output,
|
|
2485
|
+
body: await parseErrorBody(output.body, context),
|
|
2486
|
+
};
|
|
2487
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
|
+
switch (errorCode) {
|
|
2489
|
+
case "BaseException":
|
|
2490
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2491
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2492
|
+
case "ValidationException":
|
|
2493
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
2494
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2495
|
+
default:
|
|
2496
|
+
const parsedBody = parsedOutput.body;
|
|
2497
|
+
throwDefaultError({
|
|
2498
|
+
output,
|
|
2499
|
+
parsedBody,
|
|
2500
|
+
exceptionCtor: __BaseException,
|
|
2501
|
+
errorCode,
|
|
2502
|
+
});
|
|
2503
|
+
}
|
|
2504
|
+
};
|
|
2505
|
+
export const deserializeAws_restJson1ListDomainsForPackageCommand = async (output, context) => {
|
|
2506
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2507
|
+
return deserializeAws_restJson1ListDomainsForPackageCommandError(output, context);
|
|
2508
|
+
}
|
|
2509
|
+
const contents = map({
|
|
2510
|
+
$metadata: deserializeMetadata(output),
|
|
2511
|
+
});
|
|
2512
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2513
|
+
if (data.DomainPackageDetailsList != null) {
|
|
2514
|
+
contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
|
|
2515
|
+
}
|
|
2516
|
+
if (data.NextToken != null) {
|
|
2517
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2518
|
+
}
|
|
2519
|
+
return contents;
|
|
2520
|
+
};
|
|
2521
|
+
const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output, context) => {
|
|
2522
|
+
const parsedOutput = {
|
|
2523
|
+
...output,
|
|
2524
|
+
body: await parseErrorBody(output.body, context),
|
|
2525
|
+
};
|
|
2526
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2527
|
+
switch (errorCode) {
|
|
2528
|
+
case "AccessDeniedException":
|
|
2529
|
+
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2530
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2531
|
+
case "BaseException":
|
|
2532
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
2533
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2027
2534
|
case "InternalException":
|
|
2028
2535
|
case "com.amazonaws.opensearch#InternalException":
|
|
2029
2536
|
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
@@ -2043,26 +2550,23 @@ const deserializeAws_restJson1GetUpgradeHistoryCommandError = async (output, con
|
|
|
2043
2550
|
});
|
|
2044
2551
|
}
|
|
2045
2552
|
};
|
|
2046
|
-
export const
|
|
2553
|
+
export const deserializeAws_restJson1ListInstanceTypeDetailsCommand = async (output, context) => {
|
|
2047
2554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2048
|
-
return
|
|
2555
|
+
return deserializeAws_restJson1ListInstanceTypeDetailsCommandError(output, context);
|
|
2049
2556
|
}
|
|
2050
2557
|
const contents = map({
|
|
2051
2558
|
$metadata: deserializeMetadata(output),
|
|
2052
2559
|
});
|
|
2053
2560
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2054
|
-
if (data.
|
|
2055
|
-
contents.
|
|
2056
|
-
}
|
|
2057
|
-
if (data.UpgradeName != null) {
|
|
2058
|
-
contents.UpgradeName = __expectString(data.UpgradeName);
|
|
2561
|
+
if (data.InstanceTypeDetails != null) {
|
|
2562
|
+
contents.InstanceTypeDetails = deserializeAws_restJson1InstanceTypeDetailsList(data.InstanceTypeDetails, context);
|
|
2059
2563
|
}
|
|
2060
|
-
if (data.
|
|
2061
|
-
contents.
|
|
2564
|
+
if (data.NextToken != null) {
|
|
2565
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2062
2566
|
}
|
|
2063
2567
|
return contents;
|
|
2064
2568
|
};
|
|
2065
|
-
const
|
|
2569
|
+
const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (output, context) => {
|
|
2066
2570
|
const parsedOutput = {
|
|
2067
2571
|
...output,
|
|
2068
2572
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2072,9 +2576,6 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
|
|
|
2072
2576
|
case "BaseException":
|
|
2073
2577
|
case "com.amazonaws.opensearch#BaseException":
|
|
2074
2578
|
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2075
|
-
case "DisabledOperationException":
|
|
2076
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2077
|
-
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2078
2579
|
case "InternalException":
|
|
2079
2580
|
case "com.amazonaws.opensearch#InternalException":
|
|
2080
2581
|
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
@@ -2094,29 +2595,41 @@ const deserializeAws_restJson1GetUpgradeStatusCommandError = async (output, cont
|
|
|
2094
2595
|
});
|
|
2095
2596
|
}
|
|
2096
2597
|
};
|
|
2097
|
-
export const
|
|
2598
|
+
export const deserializeAws_restJson1ListPackagesForDomainCommand = async (output, context) => {
|
|
2098
2599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2099
|
-
return
|
|
2600
|
+
return deserializeAws_restJson1ListPackagesForDomainCommandError(output, context);
|
|
2100
2601
|
}
|
|
2101
2602
|
const contents = map({
|
|
2102
2603
|
$metadata: deserializeMetadata(output),
|
|
2103
2604
|
});
|
|
2104
2605
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2105
|
-
if (data.
|
|
2106
|
-
contents.
|
|
2606
|
+
if (data.DomainPackageDetailsList != null) {
|
|
2607
|
+
contents.DomainPackageDetailsList = deserializeAws_restJson1DomainPackageDetailsList(data.DomainPackageDetailsList, context);
|
|
2608
|
+
}
|
|
2609
|
+
if (data.NextToken != null) {
|
|
2610
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2107
2611
|
}
|
|
2108
2612
|
return contents;
|
|
2109
2613
|
};
|
|
2110
|
-
const
|
|
2614
|
+
const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output, context) => {
|
|
2111
2615
|
const parsedOutput = {
|
|
2112
2616
|
...output,
|
|
2113
2617
|
body: await parseErrorBody(output.body, context),
|
|
2114
2618
|
};
|
|
2115
2619
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2116
2620
|
switch (errorCode) {
|
|
2621
|
+
case "AccessDeniedException":
|
|
2622
|
+
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2623
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2117
2624
|
case "BaseException":
|
|
2118
2625
|
case "com.amazonaws.opensearch#BaseException":
|
|
2119
2626
|
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2627
|
+
case "InternalException":
|
|
2628
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
2629
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2630
|
+
case "ResourceNotFoundException":
|
|
2631
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2632
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2120
2633
|
case "ValidationException":
|
|
2121
2634
|
case "com.amazonaws.opensearch#ValidationException":
|
|
2122
2635
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -2130,32 +2643,26 @@ const deserializeAws_restJson1ListDomainNamesCommandError = async (output, conte
|
|
|
2130
2643
|
});
|
|
2131
2644
|
}
|
|
2132
2645
|
};
|
|
2133
|
-
export const
|
|
2646
|
+
export const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
|
|
2134
2647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2135
|
-
return
|
|
2648
|
+
return deserializeAws_restJson1ListTagsCommandError(output, context);
|
|
2136
2649
|
}
|
|
2137
2650
|
const contents = map({
|
|
2138
2651
|
$metadata: deserializeMetadata(output),
|
|
2139
2652
|
});
|
|
2140
2653
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2141
|
-
if (data.
|
|
2142
|
-
contents.
|
|
2143
|
-
}
|
|
2144
|
-
if (data.NextToken != null) {
|
|
2145
|
-
contents.NextToken = __expectString(data.NextToken);
|
|
2654
|
+
if (data.TagList != null) {
|
|
2655
|
+
contents.TagList = deserializeAws_restJson1TagList(data.TagList, context);
|
|
2146
2656
|
}
|
|
2147
2657
|
return contents;
|
|
2148
2658
|
};
|
|
2149
|
-
const
|
|
2659
|
+
const deserializeAws_restJson1ListTagsCommandError = async (output, context) => {
|
|
2150
2660
|
const parsedOutput = {
|
|
2151
2661
|
...output,
|
|
2152
2662
|
body: await parseErrorBody(output.body, context),
|
|
2153
2663
|
};
|
|
2154
2664
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2155
2665
|
switch (errorCode) {
|
|
2156
|
-
case "AccessDeniedException":
|
|
2157
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2158
|
-
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2159
2666
|
case "BaseException":
|
|
2160
2667
|
case "com.amazonaws.opensearch#BaseException":
|
|
2161
2668
|
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
@@ -2178,23 +2685,23 @@ const deserializeAws_restJson1ListDomainsForPackageCommandError = async (output,
|
|
|
2178
2685
|
});
|
|
2179
2686
|
}
|
|
2180
2687
|
};
|
|
2181
|
-
export const
|
|
2688
|
+
export const deserializeAws_restJson1ListVersionsCommand = async (output, context) => {
|
|
2182
2689
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2183
|
-
return
|
|
2690
|
+
return deserializeAws_restJson1ListVersionsCommandError(output, context);
|
|
2184
2691
|
}
|
|
2185
2692
|
const contents = map({
|
|
2186
2693
|
$metadata: deserializeMetadata(output),
|
|
2187
2694
|
});
|
|
2188
2695
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2189
|
-
if (data.InstanceTypeDetails != null) {
|
|
2190
|
-
contents.InstanceTypeDetails = deserializeAws_restJson1InstanceTypeDetailsList(data.InstanceTypeDetails, context);
|
|
2191
|
-
}
|
|
2192
2696
|
if (data.NextToken != null) {
|
|
2193
2697
|
contents.NextToken = __expectString(data.NextToken);
|
|
2194
2698
|
}
|
|
2699
|
+
if (data.Versions != null) {
|
|
2700
|
+
contents.Versions = deserializeAws_restJson1VersionList(data.Versions, context);
|
|
2701
|
+
}
|
|
2195
2702
|
return contents;
|
|
2196
2703
|
};
|
|
2197
|
-
const
|
|
2704
|
+
const deserializeAws_restJson1ListVersionsCommandError = async (output, context) => {
|
|
2198
2705
|
const parsedOutput = {
|
|
2199
2706
|
...output,
|
|
2200
2707
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2223,44 +2730,41 @@ const deserializeAws_restJson1ListInstanceTypeDetailsCommandError = async (outpu
|
|
|
2223
2730
|
});
|
|
2224
2731
|
}
|
|
2225
2732
|
};
|
|
2226
|
-
export const
|
|
2733
|
+
export const deserializeAws_restJson1ListVpcEndpointAccessCommand = async (output, context) => {
|
|
2227
2734
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2228
|
-
return
|
|
2735
|
+
return deserializeAws_restJson1ListVpcEndpointAccessCommandError(output, context);
|
|
2229
2736
|
}
|
|
2230
2737
|
const contents = map({
|
|
2231
2738
|
$metadata: deserializeMetadata(output),
|
|
2232
2739
|
});
|
|
2233
2740
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2234
|
-
if (data.
|
|
2235
|
-
contents.
|
|
2741
|
+
if (data.AuthorizedPrincipalList != null) {
|
|
2742
|
+
contents.AuthorizedPrincipalList = deserializeAws_restJson1AuthorizedPrincipalList(data.AuthorizedPrincipalList, context);
|
|
2236
2743
|
}
|
|
2237
2744
|
if (data.NextToken != null) {
|
|
2238
2745
|
contents.NextToken = __expectString(data.NextToken);
|
|
2239
2746
|
}
|
|
2240
2747
|
return contents;
|
|
2241
2748
|
};
|
|
2242
|
-
const
|
|
2749
|
+
const deserializeAws_restJson1ListVpcEndpointAccessCommandError = async (output, context) => {
|
|
2243
2750
|
const parsedOutput = {
|
|
2244
2751
|
...output,
|
|
2245
2752
|
body: await parseErrorBody(output.body, context),
|
|
2246
2753
|
};
|
|
2247
2754
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2248
2755
|
switch (errorCode) {
|
|
2249
|
-
case "AccessDeniedException":
|
|
2250
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2251
|
-
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
2252
2756
|
case "BaseException":
|
|
2253
2757
|
case "com.amazonaws.opensearch#BaseException":
|
|
2254
2758
|
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2759
|
+
case "DisabledOperationException":
|
|
2760
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2761
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2255
2762
|
case "InternalException":
|
|
2256
2763
|
case "com.amazonaws.opensearch#InternalException":
|
|
2257
2764
|
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2258
2765
|
case "ResourceNotFoundException":
|
|
2259
2766
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2260
2767
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2261
|
-
case "ValidationException":
|
|
2262
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2263
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2264
2768
|
default:
|
|
2265
2769
|
const parsedBody = parsedOutput.body;
|
|
2266
2770
|
throwDefaultError({
|
|
@@ -2271,20 +2775,23 @@ const deserializeAws_restJson1ListPackagesForDomainCommandError = async (output,
|
|
|
2271
2775
|
});
|
|
2272
2776
|
}
|
|
2273
2777
|
};
|
|
2274
|
-
export const
|
|
2778
|
+
export const deserializeAws_restJson1ListVpcEndpointsCommand = async (output, context) => {
|
|
2275
2779
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2276
|
-
return
|
|
2780
|
+
return deserializeAws_restJson1ListVpcEndpointsCommandError(output, context);
|
|
2277
2781
|
}
|
|
2278
2782
|
const contents = map({
|
|
2279
2783
|
$metadata: deserializeMetadata(output),
|
|
2280
2784
|
});
|
|
2281
2785
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
2282
|
-
if (data.
|
|
2283
|
-
contents.
|
|
2786
|
+
if (data.NextToken != null) {
|
|
2787
|
+
contents.NextToken = __expectString(data.NextToken);
|
|
2788
|
+
}
|
|
2789
|
+
if (data.VpcEndpointSummaryList != null) {
|
|
2790
|
+
contents.VpcEndpointSummaryList = deserializeAws_restJson1VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
|
|
2284
2791
|
}
|
|
2285
2792
|
return contents;
|
|
2286
2793
|
};
|
|
2287
|
-
const
|
|
2794
|
+
const deserializeAws_restJson1ListVpcEndpointsCommandError = async (output, context) => {
|
|
2288
2795
|
const parsedOutput = {
|
|
2289
2796
|
...output,
|
|
2290
2797
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2294,15 +2801,12 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
2294
2801
|
case "BaseException":
|
|
2295
2802
|
case "com.amazonaws.opensearch#BaseException":
|
|
2296
2803
|
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2804
|
+
case "DisabledOperationException":
|
|
2805
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2806
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2297
2807
|
case "InternalException":
|
|
2298
2808
|
case "com.amazonaws.opensearch#InternalException":
|
|
2299
2809
|
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2300
|
-
case "ResourceNotFoundException":
|
|
2301
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2302
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2303
|
-
case "ValidationException":
|
|
2304
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2305
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2306
2810
|
default:
|
|
2307
2811
|
const parsedBody = parsedOutput.body;
|
|
2308
2812
|
throwDefaultError({
|
|
@@ -2313,9 +2817,9 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
2313
2817
|
});
|
|
2314
2818
|
}
|
|
2315
2819
|
};
|
|
2316
|
-
export const
|
|
2820
|
+
export const deserializeAws_restJson1ListVpcEndpointsForDomainCommand = async (output, context) => {
|
|
2317
2821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2318
|
-
return
|
|
2822
|
+
return deserializeAws_restJson1ListVpcEndpointsForDomainCommandError(output, context);
|
|
2319
2823
|
}
|
|
2320
2824
|
const contents = map({
|
|
2321
2825
|
$metadata: deserializeMetadata(output),
|
|
@@ -2324,12 +2828,12 @@ export const deserializeAws_restJson1ListVersionsCommand = async (output, contex
|
|
|
2324
2828
|
if (data.NextToken != null) {
|
|
2325
2829
|
contents.NextToken = __expectString(data.NextToken);
|
|
2326
2830
|
}
|
|
2327
|
-
if (data.
|
|
2328
|
-
contents.
|
|
2831
|
+
if (data.VpcEndpointSummaryList != null) {
|
|
2832
|
+
contents.VpcEndpointSummaryList = deserializeAws_restJson1VpcEndpointSummaryList(data.VpcEndpointSummaryList, context);
|
|
2329
2833
|
}
|
|
2330
2834
|
return contents;
|
|
2331
2835
|
};
|
|
2332
|
-
const
|
|
2836
|
+
const deserializeAws_restJson1ListVpcEndpointsForDomainCommandError = async (output, context) => {
|
|
2333
2837
|
const parsedOutput = {
|
|
2334
2838
|
...output,
|
|
2335
2839
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2339,15 +2843,15 @@ const deserializeAws_restJson1ListVersionsCommandError = async (output, context)
|
|
|
2339
2843
|
case "BaseException":
|
|
2340
2844
|
case "com.amazonaws.opensearch#BaseException":
|
|
2341
2845
|
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
2846
|
+
case "DisabledOperationException":
|
|
2847
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2848
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
2342
2849
|
case "InternalException":
|
|
2343
2850
|
case "com.amazonaws.opensearch#InternalException":
|
|
2344
2851
|
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
2345
2852
|
case "ResourceNotFoundException":
|
|
2346
2853
|
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2347
2854
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2348
|
-
case "ValidationException":
|
|
2349
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2350
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2351
2855
|
default:
|
|
2352
2856
|
const parsedBody = parsedOutput.body;
|
|
2353
2857
|
throwDefaultError({
|
|
@@ -2481,6 +2985,48 @@ const deserializeAws_restJson1RemoveTagsCommandError = async (output, context) =
|
|
|
2481
2985
|
});
|
|
2482
2986
|
}
|
|
2483
2987
|
};
|
|
2988
|
+
export const deserializeAws_restJson1RevokeVpcEndpointAccessCommand = async (output, context) => {
|
|
2989
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2990
|
+
return deserializeAws_restJson1RevokeVpcEndpointAccessCommandError(output, context);
|
|
2991
|
+
}
|
|
2992
|
+
const contents = map({
|
|
2993
|
+
$metadata: deserializeMetadata(output),
|
|
2994
|
+
});
|
|
2995
|
+
await collectBody(output.body, context);
|
|
2996
|
+
return contents;
|
|
2997
|
+
};
|
|
2998
|
+
const deserializeAws_restJson1RevokeVpcEndpointAccessCommandError = async (output, context) => {
|
|
2999
|
+
const parsedOutput = {
|
|
3000
|
+
...output,
|
|
3001
|
+
body: await parseErrorBody(output.body, context),
|
|
3002
|
+
};
|
|
3003
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3004
|
+
switch (errorCode) {
|
|
3005
|
+
case "BaseException":
|
|
3006
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
3007
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3008
|
+
case "DisabledOperationException":
|
|
3009
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3010
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
3011
|
+
case "InternalException":
|
|
3012
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
3013
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3014
|
+
case "ResourceNotFoundException":
|
|
3015
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3016
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3017
|
+
case "ValidationException":
|
|
3018
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
3019
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3020
|
+
default:
|
|
3021
|
+
const parsedBody = parsedOutput.body;
|
|
3022
|
+
throwDefaultError({
|
|
3023
|
+
output,
|
|
3024
|
+
parsedBody,
|
|
3025
|
+
exceptionCtor: __BaseException,
|
|
3026
|
+
errorCode,
|
|
3027
|
+
});
|
|
3028
|
+
}
|
|
3029
|
+
};
|
|
2484
3030
|
export const deserializeAws_restJson1StartServiceSoftwareUpdateCommand = async (output, context) => {
|
|
2485
3031
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2486
3032
|
return deserializeAws_restJson1StartServiceSoftwareUpdateCommandError(output, context);
|
|
@@ -2622,6 +3168,54 @@ const deserializeAws_restJson1UpdatePackageCommandError = async (output, context
|
|
|
2622
3168
|
});
|
|
2623
3169
|
}
|
|
2624
3170
|
};
|
|
3171
|
+
export const deserializeAws_restJson1UpdateVpcEndpointCommand = async (output, context) => {
|
|
3172
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3173
|
+
return deserializeAws_restJson1UpdateVpcEndpointCommandError(output, context);
|
|
3174
|
+
}
|
|
3175
|
+
const contents = map({
|
|
3176
|
+
$metadata: deserializeMetadata(output),
|
|
3177
|
+
});
|
|
3178
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
3179
|
+
if (data.VpcEndpoint != null) {
|
|
3180
|
+
contents.VpcEndpoint = deserializeAws_restJson1VpcEndpoint(data.VpcEndpoint, context);
|
|
3181
|
+
}
|
|
3182
|
+
return contents;
|
|
3183
|
+
};
|
|
3184
|
+
const deserializeAws_restJson1UpdateVpcEndpointCommandError = async (output, context) => {
|
|
3185
|
+
const parsedOutput = {
|
|
3186
|
+
...output,
|
|
3187
|
+
body: await parseErrorBody(output.body, context),
|
|
3188
|
+
};
|
|
3189
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3190
|
+
switch (errorCode) {
|
|
3191
|
+
case "BaseException":
|
|
3192
|
+
case "com.amazonaws.opensearch#BaseException":
|
|
3193
|
+
throw await deserializeAws_restJson1BaseExceptionResponse(parsedOutput, context);
|
|
3194
|
+
case "ConflictException":
|
|
3195
|
+
case "com.amazonaws.opensearch#ConflictException":
|
|
3196
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3197
|
+
case "DisabledOperationException":
|
|
3198
|
+
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3199
|
+
throw await deserializeAws_restJson1DisabledOperationExceptionResponse(parsedOutput, context);
|
|
3200
|
+
case "InternalException":
|
|
3201
|
+
case "com.amazonaws.opensearch#InternalException":
|
|
3202
|
+
throw await deserializeAws_restJson1InternalExceptionResponse(parsedOutput, context);
|
|
3203
|
+
case "ResourceNotFoundException":
|
|
3204
|
+
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3205
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3206
|
+
case "ValidationException":
|
|
3207
|
+
case "com.amazonaws.opensearch#ValidationException":
|
|
3208
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3209
|
+
default:
|
|
3210
|
+
const parsedBody = parsedOutput.body;
|
|
3211
|
+
throwDefaultError({
|
|
3212
|
+
output,
|
|
3213
|
+
parsedBody,
|
|
3214
|
+
exceptionCtor: __BaseException,
|
|
3215
|
+
errorCode,
|
|
3216
|
+
});
|
|
3217
|
+
}
|
|
3218
|
+
};
|
|
2625
3219
|
export const deserializeAws_restJson1UpgradeDomainCommand = async (output, context) => {
|
|
2626
3220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2627
3221
|
return deserializeAws_restJson1UpgradeDomainCommandError(output, context);
|
|
@@ -3079,6 +3673,13 @@ const serializeAws_restJson1ValueStringList = (input, context) => {
|
|
|
3079
3673
|
return entry;
|
|
3080
3674
|
});
|
|
3081
3675
|
};
|
|
3676
|
+
const serializeAws_restJson1VpcEndpointIdList = (input, context) => {
|
|
3677
|
+
return input
|
|
3678
|
+
.filter((e) => e != null)
|
|
3679
|
+
.map((entry) => {
|
|
3680
|
+
return entry;
|
|
3681
|
+
});
|
|
3682
|
+
};
|
|
3082
3683
|
const serializeAws_restJson1VPCOptions = (input, context) => {
|
|
3083
3684
|
return {
|
|
3084
3685
|
...(input.SecurityGroupIds != null && {
|
|
@@ -3149,6 +3750,23 @@ const deserializeAws_restJson1AdvancedSecurityOptionsStatus = (output, context)
|
|
|
3149
3750
|
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
3150
3751
|
};
|
|
3151
3752
|
};
|
|
3753
|
+
const deserializeAws_restJson1AuthorizedPrincipal = (output, context) => {
|
|
3754
|
+
return {
|
|
3755
|
+
Principal: __expectString(output.Principal),
|
|
3756
|
+
PrincipalType: __expectString(output.PrincipalType),
|
|
3757
|
+
};
|
|
3758
|
+
};
|
|
3759
|
+
const deserializeAws_restJson1AuthorizedPrincipalList = (output, context) => {
|
|
3760
|
+
const retVal = (output || [])
|
|
3761
|
+
.filter((e) => e != null)
|
|
3762
|
+
.map((entry) => {
|
|
3763
|
+
if (entry === null) {
|
|
3764
|
+
return null;
|
|
3765
|
+
}
|
|
3766
|
+
return deserializeAws_restJson1AuthorizedPrincipal(entry, context);
|
|
3767
|
+
});
|
|
3768
|
+
return retVal;
|
|
3769
|
+
};
|
|
3152
3770
|
const deserializeAws_restJson1AutoTune = (output, context) => {
|
|
3153
3771
|
return {
|
|
3154
3772
|
AutoTuneDetails: output.AutoTuneDetails != null
|
|
@@ -4067,6 +4685,64 @@ const deserializeAws_restJson1VPCDerivedInfoStatus = (output, context) => {
|
|
|
4067
4685
|
Status: output.Status != null ? deserializeAws_restJson1OptionStatus(output.Status, context) : undefined,
|
|
4068
4686
|
};
|
|
4069
4687
|
};
|
|
4688
|
+
const deserializeAws_restJson1VpcEndpoint = (output, context) => {
|
|
4689
|
+
return {
|
|
4690
|
+
DomainArn: __expectString(output.DomainArn),
|
|
4691
|
+
Endpoint: __expectString(output.Endpoint),
|
|
4692
|
+
Status: __expectString(output.Status),
|
|
4693
|
+
VpcEndpointId: __expectString(output.VpcEndpointId),
|
|
4694
|
+
VpcEndpointOwner: __expectString(output.VpcEndpointOwner),
|
|
4695
|
+
VpcOptions: output.VpcOptions != null ? deserializeAws_restJson1VPCDerivedInfo(output.VpcOptions, context) : undefined,
|
|
4696
|
+
};
|
|
4697
|
+
};
|
|
4698
|
+
const deserializeAws_restJson1VpcEndpointError = (output, context) => {
|
|
4699
|
+
return {
|
|
4700
|
+
ErrorCode: __expectString(output.ErrorCode),
|
|
4701
|
+
ErrorMessage: __expectString(output.ErrorMessage),
|
|
4702
|
+
VpcEndpointId: __expectString(output.VpcEndpointId),
|
|
4703
|
+
};
|
|
4704
|
+
};
|
|
4705
|
+
const deserializeAws_restJson1VpcEndpointErrorList = (output, context) => {
|
|
4706
|
+
const retVal = (output || [])
|
|
4707
|
+
.filter((e) => e != null)
|
|
4708
|
+
.map((entry) => {
|
|
4709
|
+
if (entry === null) {
|
|
4710
|
+
return null;
|
|
4711
|
+
}
|
|
4712
|
+
return deserializeAws_restJson1VpcEndpointError(entry, context);
|
|
4713
|
+
});
|
|
4714
|
+
return retVal;
|
|
4715
|
+
};
|
|
4716
|
+
const deserializeAws_restJson1VpcEndpoints = (output, context) => {
|
|
4717
|
+
const retVal = (output || [])
|
|
4718
|
+
.filter((e) => e != null)
|
|
4719
|
+
.map((entry) => {
|
|
4720
|
+
if (entry === null) {
|
|
4721
|
+
return null;
|
|
4722
|
+
}
|
|
4723
|
+
return deserializeAws_restJson1VpcEndpoint(entry, context);
|
|
4724
|
+
});
|
|
4725
|
+
return retVal;
|
|
4726
|
+
};
|
|
4727
|
+
const deserializeAws_restJson1VpcEndpointSummary = (output, context) => {
|
|
4728
|
+
return {
|
|
4729
|
+
DomainArn: __expectString(output.DomainArn),
|
|
4730
|
+
Status: __expectString(output.Status),
|
|
4731
|
+
VpcEndpointId: __expectString(output.VpcEndpointId),
|
|
4732
|
+
VpcEndpointOwner: __expectString(output.VpcEndpointOwner),
|
|
4733
|
+
};
|
|
4734
|
+
};
|
|
4735
|
+
const deserializeAws_restJson1VpcEndpointSummaryList = (output, context) => {
|
|
4736
|
+
const retVal = (output || [])
|
|
4737
|
+
.filter((e) => e != null)
|
|
4738
|
+
.map((entry) => {
|
|
4739
|
+
if (entry === null) {
|
|
4740
|
+
return null;
|
|
4741
|
+
}
|
|
4742
|
+
return deserializeAws_restJson1VpcEndpointSummary(entry, context);
|
|
4743
|
+
});
|
|
4744
|
+
return retVal;
|
|
4745
|
+
};
|
|
4070
4746
|
const deserializeAws_restJson1ZoneAwarenessConfig = (output, context) => {
|
|
4071
4747
|
return {
|
|
4072
4748
|
AvailabilityZoneCount: __expectInt32(output.AvailabilityZoneCount),
|