@aws-sdk/client-opensearchserverless 3.220.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/LICENSE +201 -0
- package/README.md +214 -0
- package/dist-cjs/OpenSearchServerless.js +472 -0
- package/dist-cjs/OpenSearchServerlessClient.js +40 -0
- package/dist-cjs/commands/BatchGetCollectionCommand.js +46 -0
- package/dist-cjs/commands/BatchGetVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/CreateAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/CreateCollectionCommand.js +46 -0
- package/dist-cjs/commands/CreateSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/CreateSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/CreateVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/DeleteAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/DeleteCollectionCommand.js +46 -0
- package/dist-cjs/commands/DeleteSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/DeleteSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/DeleteVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/GetAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/GetAccountSettingsCommand.js +46 -0
- package/dist-cjs/commands/GetPoliciesStatsCommand.js +46 -0
- package/dist-cjs/commands/GetSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/GetSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +46 -0
- package/dist-cjs/commands/ListCollectionsCommand.js +46 -0
- package/dist-cjs/commands/ListSecurityConfigsCommand.js +46 -0
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/ListVpcEndpointsCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateAccessPolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateAccountSettingsCommand.js +46 -0
- package/dist-cjs/commands/UpdateCollectionCommand.js +46 -0
- package/dist-cjs/commands/UpdateSecurityConfigCommand.js +46 -0
- package/dist-cjs/commands/UpdateSecurityPolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateVpcEndpointCommand.js +46 -0
- package/dist-cjs/commands/index.js +34 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/OpenSearchServerlessServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +445 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListAccessPoliciesPaginator.js +35 -0
- package/dist-cjs/pagination/ListCollectionsPaginator.js +35 -0
- package/dist-cjs/pagination/ListSecurityConfigsPaginator.js +35 -0
- package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +35 -0
- package/dist-cjs/pagination/ListVpcEndpointsPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +9 -0
- package/dist-cjs/protocols/Aws_json1_0.js +2572 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/OpenSearchServerless.js +468 -0
- package/dist-es/OpenSearchServerlessClient.js +36 -0
- package/dist-es/commands/BatchGetCollectionCommand.js +42 -0
- package/dist-es/commands/BatchGetVpcEndpointCommand.js +42 -0
- package/dist-es/commands/CreateAccessPolicyCommand.js +42 -0
- package/dist-es/commands/CreateCollectionCommand.js +42 -0
- package/dist-es/commands/CreateSecurityConfigCommand.js +42 -0
- package/dist-es/commands/CreateSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/CreateVpcEndpointCommand.js +42 -0
- package/dist-es/commands/DeleteAccessPolicyCommand.js +42 -0
- package/dist-es/commands/DeleteCollectionCommand.js +42 -0
- package/dist-es/commands/DeleteSecurityConfigCommand.js +42 -0
- package/dist-es/commands/DeleteSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/DeleteVpcEndpointCommand.js +42 -0
- package/dist-es/commands/GetAccessPolicyCommand.js +42 -0
- package/dist-es/commands/GetAccountSettingsCommand.js +42 -0
- package/dist-es/commands/GetPoliciesStatsCommand.js +42 -0
- package/dist-es/commands/GetSecurityConfigCommand.js +42 -0
- package/dist-es/commands/GetSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/ListAccessPoliciesCommand.js +42 -0
- package/dist-es/commands/ListCollectionsCommand.js +42 -0
- package/dist-es/commands/ListSecurityConfigsCommand.js +42 -0
- package/dist-es/commands/ListSecurityPoliciesCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/ListVpcEndpointsCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateAccessPolicyCommand.js +42 -0
- package/dist-es/commands/UpdateAccountSettingsCommand.js +42 -0
- package/dist-es/commands/UpdateCollectionCommand.js +42 -0
- package/dist-es/commands/UpdateSecurityConfigCommand.js +42 -0
- package/dist-es/commands/UpdateSecurityPolicyCommand.js +42 -0
- package/dist-es/commands/UpdateVpcEndpointCommand.js +42 -0
- package/dist-es/commands/index.js +31 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/OpenSearchServerlessServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +348 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListAccessPoliciesPaginator.js +31 -0
- package/dist-es/pagination/ListCollectionsPaginator.js +31 -0
- package/dist-es/pagination/ListSecurityConfigsPaginator.js +31 -0
- package/dist-es/pagination/ListSecurityPoliciesPaginator.js +31 -0
- package/dist-es/pagination/ListVpcEndpointsPaginator.js +31 -0
- package/dist-es/pagination/index.js +6 -0
- package/dist-es/protocols/Aws_json1_0.js +2506 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/OpenSearchServerless.d.ts +276 -0
- package/dist-types/OpenSearchServerlessClient.d.ts +181 -0
- package/dist-types/commands/BatchGetCollectionCommand.d.ts +39 -0
- package/dist-types/commands/BatchGetVpcEndpointCommand.d.ts +39 -0
- package/dist-types/commands/CreateAccessPolicyCommand.d.ts +40 -0
- package/dist-types/commands/CreateCollectionCommand.d.ts +38 -0
- package/dist-types/commands/CreateSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/CreateSecurityPolicyCommand.d.ts +42 -0
- package/dist-types/commands/CreateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/DeleteAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/DeleteCollectionCommand.d.ts +38 -0
- package/dist-types/commands/DeleteSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/DeleteSecurityPolicyCommand.d.ts +37 -0
- package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/GetAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +37 -0
- package/dist-types/commands/GetPoliciesStatsCommand.d.ts +38 -0
- package/dist-types/commands/GetSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/GetSecurityPolicyCommand.d.ts +39 -0
- package/dist-types/commands/ListAccessPoliciesCommand.d.ts +37 -0
- package/dist-types/commands/ListCollectionsCommand.d.ts +42 -0
- package/dist-types/commands/ListSecurityConfigsCommand.d.ts +39 -0
- package/dist-types/commands/ListSecurityPoliciesCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/ListVpcEndpointsCommand.d.ts +39 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +38 -0
- package/dist-types/commands/UpdateCollectionCommand.d.ts +37 -0
- package/dist-types/commands/UpdateSecurityConfigCommand.d.ts +39 -0
- package/dist-types/commands/UpdateSecurityPolicyCommand.d.ts +39 -0
- package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +31 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/OpenSearchServerlessServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1802 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListAccessPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListCollectionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSecurityConfigsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSecurityPoliciesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListVpcEndpointsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +6 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +95 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/OpenSearchServerless.d.ts +531 -0
- package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +298 -0
- package/dist-types/ts3.4/commands/BatchGetCollectionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/BatchGetVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/CreateCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/CreateSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DeleteSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetAccessPolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetAccountSettingsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetPoliciesStatsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetSecurityConfigCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetSecurityPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListAccessPoliciesCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCollectionsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListSecurityConfigsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListSecurityPoliciesCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListVpcEndpointsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateAccessPolicyCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateAccountSettingsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateCollectionCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateSecurityConfigCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateSecurityPolicyCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateVpcEndpointCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +31 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/OpenSearchServerlessServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +740 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListAccessPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListCollectionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityConfigsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSecurityPoliciesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListVpcEndpointsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +6 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +377 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +90 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +79 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +18 -0
- package/package.json +103 -0
|
@@ -0,0 +1,2572 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeAws_json1_0ListCollectionsCommand = exports.deserializeAws_json1_0ListAccessPoliciesCommand = exports.deserializeAws_json1_0GetSecurityPolicyCommand = exports.deserializeAws_json1_0GetSecurityConfigCommand = exports.deserializeAws_json1_0GetPoliciesStatsCommand = exports.deserializeAws_json1_0GetAccountSettingsCommand = exports.deserializeAws_json1_0GetAccessPolicyCommand = exports.deserializeAws_json1_0DeleteVpcEndpointCommand = exports.deserializeAws_json1_0DeleteSecurityPolicyCommand = exports.deserializeAws_json1_0DeleteSecurityConfigCommand = exports.deserializeAws_json1_0DeleteCollectionCommand = exports.deserializeAws_json1_0DeleteAccessPolicyCommand = exports.deserializeAws_json1_0CreateVpcEndpointCommand = exports.deserializeAws_json1_0CreateSecurityPolicyCommand = exports.deserializeAws_json1_0CreateSecurityConfigCommand = exports.deserializeAws_json1_0CreateCollectionCommand = exports.deserializeAws_json1_0CreateAccessPolicyCommand = exports.deserializeAws_json1_0BatchGetVpcEndpointCommand = exports.deserializeAws_json1_0BatchGetCollectionCommand = exports.serializeAws_json1_0UpdateVpcEndpointCommand = exports.serializeAws_json1_0UpdateSecurityPolicyCommand = exports.serializeAws_json1_0UpdateSecurityConfigCommand = exports.serializeAws_json1_0UpdateCollectionCommand = exports.serializeAws_json1_0UpdateAccountSettingsCommand = exports.serializeAws_json1_0UpdateAccessPolicyCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0ListVpcEndpointsCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListSecurityPoliciesCommand = exports.serializeAws_json1_0ListSecurityConfigsCommand = exports.serializeAws_json1_0ListCollectionsCommand = exports.serializeAws_json1_0ListAccessPoliciesCommand = exports.serializeAws_json1_0GetSecurityPolicyCommand = exports.serializeAws_json1_0GetSecurityConfigCommand = exports.serializeAws_json1_0GetPoliciesStatsCommand = exports.serializeAws_json1_0GetAccountSettingsCommand = exports.serializeAws_json1_0GetAccessPolicyCommand = exports.serializeAws_json1_0DeleteVpcEndpointCommand = exports.serializeAws_json1_0DeleteSecurityPolicyCommand = exports.serializeAws_json1_0DeleteSecurityConfigCommand = exports.serializeAws_json1_0DeleteCollectionCommand = exports.serializeAws_json1_0DeleteAccessPolicyCommand = exports.serializeAws_json1_0CreateVpcEndpointCommand = exports.serializeAws_json1_0CreateSecurityPolicyCommand = exports.serializeAws_json1_0CreateSecurityConfigCommand = exports.serializeAws_json1_0CreateCollectionCommand = exports.serializeAws_json1_0CreateAccessPolicyCommand = exports.serializeAws_json1_0BatchGetVpcEndpointCommand = exports.serializeAws_json1_0BatchGetCollectionCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0UpdateVpcEndpointCommand = exports.deserializeAws_json1_0UpdateSecurityPolicyCommand = exports.deserializeAws_json1_0UpdateSecurityConfigCommand = exports.deserializeAws_json1_0UpdateCollectionCommand = exports.deserializeAws_json1_0UpdateAccountSettingsCommand = exports.deserializeAws_json1_0UpdateAccessPolicyCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0ListVpcEndpointsCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListSecurityPoliciesCommand = exports.deserializeAws_json1_0ListSecurityConfigsCommand = void 0;
|
|
5
|
+
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const uuid_1 = require("uuid");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const OpenSearchServerlessServiceException_1 = require("../models/OpenSearchServerlessServiceException");
|
|
10
|
+
const serializeAws_json1_0BatchGetCollectionCommand = async (input, context) => {
|
|
11
|
+
const headers = {
|
|
12
|
+
"content-type": "application/x-amz-json-1.0",
|
|
13
|
+
"x-amz-target": "OpenSearchServerless.BatchGetCollection",
|
|
14
|
+
};
|
|
15
|
+
let body;
|
|
16
|
+
body = JSON.stringify(serializeAws_json1_0BatchGetCollectionRequest(input, context));
|
|
17
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
+
};
|
|
19
|
+
exports.serializeAws_json1_0BatchGetCollectionCommand = serializeAws_json1_0BatchGetCollectionCommand;
|
|
20
|
+
const serializeAws_json1_0BatchGetVpcEndpointCommand = async (input, context) => {
|
|
21
|
+
const headers = {
|
|
22
|
+
"content-type": "application/x-amz-json-1.0",
|
|
23
|
+
"x-amz-target": "OpenSearchServerless.BatchGetVpcEndpoint",
|
|
24
|
+
};
|
|
25
|
+
let body;
|
|
26
|
+
body = JSON.stringify(serializeAws_json1_0BatchGetVpcEndpointRequest(input, context));
|
|
27
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
+
};
|
|
29
|
+
exports.serializeAws_json1_0BatchGetVpcEndpointCommand = serializeAws_json1_0BatchGetVpcEndpointCommand;
|
|
30
|
+
const serializeAws_json1_0CreateAccessPolicyCommand = async (input, context) => {
|
|
31
|
+
const headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.0",
|
|
33
|
+
"x-amz-target": "OpenSearchServerless.CreateAccessPolicy",
|
|
34
|
+
};
|
|
35
|
+
let body;
|
|
36
|
+
body = JSON.stringify(serializeAws_json1_0CreateAccessPolicyRequest(input, context));
|
|
37
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
|
+
};
|
|
39
|
+
exports.serializeAws_json1_0CreateAccessPolicyCommand = serializeAws_json1_0CreateAccessPolicyCommand;
|
|
40
|
+
const serializeAws_json1_0CreateCollectionCommand = async (input, context) => {
|
|
41
|
+
const headers = {
|
|
42
|
+
"content-type": "application/x-amz-json-1.0",
|
|
43
|
+
"x-amz-target": "OpenSearchServerless.CreateCollection",
|
|
44
|
+
};
|
|
45
|
+
let body;
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_0CreateCollectionRequest(input, context));
|
|
47
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
+
};
|
|
49
|
+
exports.serializeAws_json1_0CreateCollectionCommand = serializeAws_json1_0CreateCollectionCommand;
|
|
50
|
+
const serializeAws_json1_0CreateSecurityConfigCommand = async (input, context) => {
|
|
51
|
+
const headers = {
|
|
52
|
+
"content-type": "application/x-amz-json-1.0",
|
|
53
|
+
"x-amz-target": "OpenSearchServerless.CreateSecurityConfig",
|
|
54
|
+
};
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_0CreateSecurityConfigRequest(input, context));
|
|
57
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
+
};
|
|
59
|
+
exports.serializeAws_json1_0CreateSecurityConfigCommand = serializeAws_json1_0CreateSecurityConfigCommand;
|
|
60
|
+
const serializeAws_json1_0CreateSecurityPolicyCommand = async (input, context) => {
|
|
61
|
+
const headers = {
|
|
62
|
+
"content-type": "application/x-amz-json-1.0",
|
|
63
|
+
"x-amz-target": "OpenSearchServerless.CreateSecurityPolicy",
|
|
64
|
+
};
|
|
65
|
+
let body;
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_0CreateSecurityPolicyRequest(input, context));
|
|
67
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
|
+
};
|
|
69
|
+
exports.serializeAws_json1_0CreateSecurityPolicyCommand = serializeAws_json1_0CreateSecurityPolicyCommand;
|
|
70
|
+
const serializeAws_json1_0CreateVpcEndpointCommand = async (input, context) => {
|
|
71
|
+
const headers = {
|
|
72
|
+
"content-type": "application/x-amz-json-1.0",
|
|
73
|
+
"x-amz-target": "OpenSearchServerless.CreateVpcEndpoint",
|
|
74
|
+
};
|
|
75
|
+
let body;
|
|
76
|
+
body = JSON.stringify(serializeAws_json1_0CreateVpcEndpointRequest(input, context));
|
|
77
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
+
};
|
|
79
|
+
exports.serializeAws_json1_0CreateVpcEndpointCommand = serializeAws_json1_0CreateVpcEndpointCommand;
|
|
80
|
+
const serializeAws_json1_0DeleteAccessPolicyCommand = async (input, context) => {
|
|
81
|
+
const headers = {
|
|
82
|
+
"content-type": "application/x-amz-json-1.0",
|
|
83
|
+
"x-amz-target": "OpenSearchServerless.DeleteAccessPolicy",
|
|
84
|
+
};
|
|
85
|
+
let body;
|
|
86
|
+
body = JSON.stringify(serializeAws_json1_0DeleteAccessPolicyRequest(input, context));
|
|
87
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
|
+
};
|
|
89
|
+
exports.serializeAws_json1_0DeleteAccessPolicyCommand = serializeAws_json1_0DeleteAccessPolicyCommand;
|
|
90
|
+
const serializeAws_json1_0DeleteCollectionCommand = async (input, context) => {
|
|
91
|
+
const headers = {
|
|
92
|
+
"content-type": "application/x-amz-json-1.0",
|
|
93
|
+
"x-amz-target": "OpenSearchServerless.DeleteCollection",
|
|
94
|
+
};
|
|
95
|
+
let body;
|
|
96
|
+
body = JSON.stringify(serializeAws_json1_0DeleteCollectionRequest(input, context));
|
|
97
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
+
};
|
|
99
|
+
exports.serializeAws_json1_0DeleteCollectionCommand = serializeAws_json1_0DeleteCollectionCommand;
|
|
100
|
+
const serializeAws_json1_0DeleteSecurityConfigCommand = async (input, context) => {
|
|
101
|
+
const headers = {
|
|
102
|
+
"content-type": "application/x-amz-json-1.0",
|
|
103
|
+
"x-amz-target": "OpenSearchServerless.DeleteSecurityConfig",
|
|
104
|
+
};
|
|
105
|
+
let body;
|
|
106
|
+
body = JSON.stringify(serializeAws_json1_0DeleteSecurityConfigRequest(input, context));
|
|
107
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
+
};
|
|
109
|
+
exports.serializeAws_json1_0DeleteSecurityConfigCommand = serializeAws_json1_0DeleteSecurityConfigCommand;
|
|
110
|
+
const serializeAws_json1_0DeleteSecurityPolicyCommand = async (input, context) => {
|
|
111
|
+
const headers = {
|
|
112
|
+
"content-type": "application/x-amz-json-1.0",
|
|
113
|
+
"x-amz-target": "OpenSearchServerless.DeleteSecurityPolicy",
|
|
114
|
+
};
|
|
115
|
+
let body;
|
|
116
|
+
body = JSON.stringify(serializeAws_json1_0DeleteSecurityPolicyRequest(input, context));
|
|
117
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
+
};
|
|
119
|
+
exports.serializeAws_json1_0DeleteSecurityPolicyCommand = serializeAws_json1_0DeleteSecurityPolicyCommand;
|
|
120
|
+
const serializeAws_json1_0DeleteVpcEndpointCommand = async (input, context) => {
|
|
121
|
+
const headers = {
|
|
122
|
+
"content-type": "application/x-amz-json-1.0",
|
|
123
|
+
"x-amz-target": "OpenSearchServerless.DeleteVpcEndpoint",
|
|
124
|
+
};
|
|
125
|
+
let body;
|
|
126
|
+
body = JSON.stringify(serializeAws_json1_0DeleteVpcEndpointRequest(input, context));
|
|
127
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
+
};
|
|
129
|
+
exports.serializeAws_json1_0DeleteVpcEndpointCommand = serializeAws_json1_0DeleteVpcEndpointCommand;
|
|
130
|
+
const serializeAws_json1_0GetAccessPolicyCommand = async (input, context) => {
|
|
131
|
+
const headers = {
|
|
132
|
+
"content-type": "application/x-amz-json-1.0",
|
|
133
|
+
"x-amz-target": "OpenSearchServerless.GetAccessPolicy",
|
|
134
|
+
};
|
|
135
|
+
let body;
|
|
136
|
+
body = JSON.stringify(serializeAws_json1_0GetAccessPolicyRequest(input, context));
|
|
137
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
+
};
|
|
139
|
+
exports.serializeAws_json1_0GetAccessPolicyCommand = serializeAws_json1_0GetAccessPolicyCommand;
|
|
140
|
+
const serializeAws_json1_0GetAccountSettingsCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.0",
|
|
143
|
+
"x-amz-target": "OpenSearchServerless.GetAccountSettings",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_0GetAccountSettingsRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
exports.serializeAws_json1_0GetAccountSettingsCommand = serializeAws_json1_0GetAccountSettingsCommand;
|
|
150
|
+
const serializeAws_json1_0GetPoliciesStatsCommand = async (input, context) => {
|
|
151
|
+
const headers = {
|
|
152
|
+
"content-type": "application/x-amz-json-1.0",
|
|
153
|
+
"x-amz-target": "OpenSearchServerless.GetPoliciesStats",
|
|
154
|
+
};
|
|
155
|
+
let body;
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_0GetPoliciesStatsRequest(input, context));
|
|
157
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
|
+
};
|
|
159
|
+
exports.serializeAws_json1_0GetPoliciesStatsCommand = serializeAws_json1_0GetPoliciesStatsCommand;
|
|
160
|
+
const serializeAws_json1_0GetSecurityConfigCommand = async (input, context) => {
|
|
161
|
+
const headers = {
|
|
162
|
+
"content-type": "application/x-amz-json-1.0",
|
|
163
|
+
"x-amz-target": "OpenSearchServerless.GetSecurityConfig",
|
|
164
|
+
};
|
|
165
|
+
let body;
|
|
166
|
+
body = JSON.stringify(serializeAws_json1_0GetSecurityConfigRequest(input, context));
|
|
167
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
+
};
|
|
169
|
+
exports.serializeAws_json1_0GetSecurityConfigCommand = serializeAws_json1_0GetSecurityConfigCommand;
|
|
170
|
+
const serializeAws_json1_0GetSecurityPolicyCommand = async (input, context) => {
|
|
171
|
+
const headers = {
|
|
172
|
+
"content-type": "application/x-amz-json-1.0",
|
|
173
|
+
"x-amz-target": "OpenSearchServerless.GetSecurityPolicy",
|
|
174
|
+
};
|
|
175
|
+
let body;
|
|
176
|
+
body = JSON.stringify(serializeAws_json1_0GetSecurityPolicyRequest(input, context));
|
|
177
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
|
+
};
|
|
179
|
+
exports.serializeAws_json1_0GetSecurityPolicyCommand = serializeAws_json1_0GetSecurityPolicyCommand;
|
|
180
|
+
const serializeAws_json1_0ListAccessPoliciesCommand = async (input, context) => {
|
|
181
|
+
const headers = {
|
|
182
|
+
"content-type": "application/x-amz-json-1.0",
|
|
183
|
+
"x-amz-target": "OpenSearchServerless.ListAccessPolicies",
|
|
184
|
+
};
|
|
185
|
+
let body;
|
|
186
|
+
body = JSON.stringify(serializeAws_json1_0ListAccessPoliciesRequest(input, context));
|
|
187
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
|
+
};
|
|
189
|
+
exports.serializeAws_json1_0ListAccessPoliciesCommand = serializeAws_json1_0ListAccessPoliciesCommand;
|
|
190
|
+
const serializeAws_json1_0ListCollectionsCommand = async (input, context) => {
|
|
191
|
+
const headers = {
|
|
192
|
+
"content-type": "application/x-amz-json-1.0",
|
|
193
|
+
"x-amz-target": "OpenSearchServerless.ListCollections",
|
|
194
|
+
};
|
|
195
|
+
let body;
|
|
196
|
+
body = JSON.stringify(serializeAws_json1_0ListCollectionsRequest(input, context));
|
|
197
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
+
};
|
|
199
|
+
exports.serializeAws_json1_0ListCollectionsCommand = serializeAws_json1_0ListCollectionsCommand;
|
|
200
|
+
const serializeAws_json1_0ListSecurityConfigsCommand = async (input, context) => {
|
|
201
|
+
const headers = {
|
|
202
|
+
"content-type": "application/x-amz-json-1.0",
|
|
203
|
+
"x-amz-target": "OpenSearchServerless.ListSecurityConfigs",
|
|
204
|
+
};
|
|
205
|
+
let body;
|
|
206
|
+
body = JSON.stringify(serializeAws_json1_0ListSecurityConfigsRequest(input, context));
|
|
207
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
|
+
};
|
|
209
|
+
exports.serializeAws_json1_0ListSecurityConfigsCommand = serializeAws_json1_0ListSecurityConfigsCommand;
|
|
210
|
+
const serializeAws_json1_0ListSecurityPoliciesCommand = async (input, context) => {
|
|
211
|
+
const headers = {
|
|
212
|
+
"content-type": "application/x-amz-json-1.0",
|
|
213
|
+
"x-amz-target": "OpenSearchServerless.ListSecurityPolicies",
|
|
214
|
+
};
|
|
215
|
+
let body;
|
|
216
|
+
body = JSON.stringify(serializeAws_json1_0ListSecurityPoliciesRequest(input, context));
|
|
217
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
+
};
|
|
219
|
+
exports.serializeAws_json1_0ListSecurityPoliciesCommand = serializeAws_json1_0ListSecurityPoliciesCommand;
|
|
220
|
+
const serializeAws_json1_0ListTagsForResourceCommand = async (input, context) => {
|
|
221
|
+
const headers = {
|
|
222
|
+
"content-type": "application/x-amz-json-1.0",
|
|
223
|
+
"x-amz-target": "OpenSearchServerless.ListTagsForResource",
|
|
224
|
+
};
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(serializeAws_json1_0ListTagsForResourceRequest(input, context));
|
|
227
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
+
};
|
|
229
|
+
exports.serializeAws_json1_0ListTagsForResourceCommand = serializeAws_json1_0ListTagsForResourceCommand;
|
|
230
|
+
const serializeAws_json1_0ListVpcEndpointsCommand = async (input, context) => {
|
|
231
|
+
const headers = {
|
|
232
|
+
"content-type": "application/x-amz-json-1.0",
|
|
233
|
+
"x-amz-target": "OpenSearchServerless.ListVpcEndpoints",
|
|
234
|
+
};
|
|
235
|
+
let body;
|
|
236
|
+
body = JSON.stringify(serializeAws_json1_0ListVpcEndpointsRequest(input, context));
|
|
237
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
+
};
|
|
239
|
+
exports.serializeAws_json1_0ListVpcEndpointsCommand = serializeAws_json1_0ListVpcEndpointsCommand;
|
|
240
|
+
const serializeAws_json1_0TagResourceCommand = async (input, context) => {
|
|
241
|
+
const headers = {
|
|
242
|
+
"content-type": "application/x-amz-json-1.0",
|
|
243
|
+
"x-amz-target": "OpenSearchServerless.TagResource",
|
|
244
|
+
};
|
|
245
|
+
let body;
|
|
246
|
+
body = JSON.stringify(serializeAws_json1_0TagResourceRequest(input, context));
|
|
247
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
|
+
};
|
|
249
|
+
exports.serializeAws_json1_0TagResourceCommand = serializeAws_json1_0TagResourceCommand;
|
|
250
|
+
const serializeAws_json1_0UntagResourceCommand = async (input, context) => {
|
|
251
|
+
const headers = {
|
|
252
|
+
"content-type": "application/x-amz-json-1.0",
|
|
253
|
+
"x-amz-target": "OpenSearchServerless.UntagResource",
|
|
254
|
+
};
|
|
255
|
+
let body;
|
|
256
|
+
body = JSON.stringify(serializeAws_json1_0UntagResourceRequest(input, context));
|
|
257
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
|
+
};
|
|
259
|
+
exports.serializeAws_json1_0UntagResourceCommand = serializeAws_json1_0UntagResourceCommand;
|
|
260
|
+
const serializeAws_json1_0UpdateAccessPolicyCommand = async (input, context) => {
|
|
261
|
+
const headers = {
|
|
262
|
+
"content-type": "application/x-amz-json-1.0",
|
|
263
|
+
"x-amz-target": "OpenSearchServerless.UpdateAccessPolicy",
|
|
264
|
+
};
|
|
265
|
+
let body;
|
|
266
|
+
body = JSON.stringify(serializeAws_json1_0UpdateAccessPolicyRequest(input, context));
|
|
267
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
+
};
|
|
269
|
+
exports.serializeAws_json1_0UpdateAccessPolicyCommand = serializeAws_json1_0UpdateAccessPolicyCommand;
|
|
270
|
+
const serializeAws_json1_0UpdateAccountSettingsCommand = async (input, context) => {
|
|
271
|
+
const headers = {
|
|
272
|
+
"content-type": "application/x-amz-json-1.0",
|
|
273
|
+
"x-amz-target": "OpenSearchServerless.UpdateAccountSettings",
|
|
274
|
+
};
|
|
275
|
+
let body;
|
|
276
|
+
body = JSON.stringify(serializeAws_json1_0UpdateAccountSettingsRequest(input, context));
|
|
277
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
|
+
};
|
|
279
|
+
exports.serializeAws_json1_0UpdateAccountSettingsCommand = serializeAws_json1_0UpdateAccountSettingsCommand;
|
|
280
|
+
const serializeAws_json1_0UpdateCollectionCommand = async (input, context) => {
|
|
281
|
+
const headers = {
|
|
282
|
+
"content-type": "application/x-amz-json-1.0",
|
|
283
|
+
"x-amz-target": "OpenSearchServerless.UpdateCollection",
|
|
284
|
+
};
|
|
285
|
+
let body;
|
|
286
|
+
body = JSON.stringify(serializeAws_json1_0UpdateCollectionRequest(input, context));
|
|
287
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
|
+
};
|
|
289
|
+
exports.serializeAws_json1_0UpdateCollectionCommand = serializeAws_json1_0UpdateCollectionCommand;
|
|
290
|
+
const serializeAws_json1_0UpdateSecurityConfigCommand = async (input, context) => {
|
|
291
|
+
const headers = {
|
|
292
|
+
"content-type": "application/x-amz-json-1.0",
|
|
293
|
+
"x-amz-target": "OpenSearchServerless.UpdateSecurityConfig",
|
|
294
|
+
};
|
|
295
|
+
let body;
|
|
296
|
+
body = JSON.stringify(serializeAws_json1_0UpdateSecurityConfigRequest(input, context));
|
|
297
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
|
+
};
|
|
299
|
+
exports.serializeAws_json1_0UpdateSecurityConfigCommand = serializeAws_json1_0UpdateSecurityConfigCommand;
|
|
300
|
+
const serializeAws_json1_0UpdateSecurityPolicyCommand = async (input, context) => {
|
|
301
|
+
const headers = {
|
|
302
|
+
"content-type": "application/x-amz-json-1.0",
|
|
303
|
+
"x-amz-target": "OpenSearchServerless.UpdateSecurityPolicy",
|
|
304
|
+
};
|
|
305
|
+
let body;
|
|
306
|
+
body = JSON.stringify(serializeAws_json1_0UpdateSecurityPolicyRequest(input, context));
|
|
307
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
|
+
};
|
|
309
|
+
exports.serializeAws_json1_0UpdateSecurityPolicyCommand = serializeAws_json1_0UpdateSecurityPolicyCommand;
|
|
310
|
+
const serializeAws_json1_0UpdateVpcEndpointCommand = async (input, context) => {
|
|
311
|
+
const headers = {
|
|
312
|
+
"content-type": "application/x-amz-json-1.0",
|
|
313
|
+
"x-amz-target": "OpenSearchServerless.UpdateVpcEndpoint",
|
|
314
|
+
};
|
|
315
|
+
let body;
|
|
316
|
+
body = JSON.stringify(serializeAws_json1_0UpdateVpcEndpointRequest(input, context));
|
|
317
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
|
+
};
|
|
319
|
+
exports.serializeAws_json1_0UpdateVpcEndpointCommand = serializeAws_json1_0UpdateVpcEndpointCommand;
|
|
320
|
+
const deserializeAws_json1_0BatchGetCollectionCommand = async (output, context) => {
|
|
321
|
+
if (output.statusCode >= 300) {
|
|
322
|
+
return deserializeAws_json1_0BatchGetCollectionCommandError(output, context);
|
|
323
|
+
}
|
|
324
|
+
const data = await parseBody(output.body, context);
|
|
325
|
+
let contents = {};
|
|
326
|
+
contents = deserializeAws_json1_0BatchGetCollectionResponse(data, context);
|
|
327
|
+
const response = {
|
|
328
|
+
$metadata: deserializeMetadata(output),
|
|
329
|
+
...contents,
|
|
330
|
+
};
|
|
331
|
+
return Promise.resolve(response);
|
|
332
|
+
};
|
|
333
|
+
exports.deserializeAws_json1_0BatchGetCollectionCommand = deserializeAws_json1_0BatchGetCollectionCommand;
|
|
334
|
+
const deserializeAws_json1_0BatchGetCollectionCommandError = async (output, context) => {
|
|
335
|
+
const parsedOutput = {
|
|
336
|
+
...output,
|
|
337
|
+
body: await parseErrorBody(output.body, context),
|
|
338
|
+
};
|
|
339
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
340
|
+
switch (errorCode) {
|
|
341
|
+
case "InternalServerException":
|
|
342
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
343
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
344
|
+
case "ValidationException":
|
|
345
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
346
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
347
|
+
default:
|
|
348
|
+
const parsedBody = parsedOutput.body;
|
|
349
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
350
|
+
output,
|
|
351
|
+
parsedBody,
|
|
352
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
353
|
+
errorCode,
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
};
|
|
357
|
+
const deserializeAws_json1_0BatchGetVpcEndpointCommand = async (output, context) => {
|
|
358
|
+
if (output.statusCode >= 300) {
|
|
359
|
+
return deserializeAws_json1_0BatchGetVpcEndpointCommandError(output, context);
|
|
360
|
+
}
|
|
361
|
+
const data = await parseBody(output.body, context);
|
|
362
|
+
let contents = {};
|
|
363
|
+
contents = deserializeAws_json1_0BatchGetVpcEndpointResponse(data, context);
|
|
364
|
+
const response = {
|
|
365
|
+
$metadata: deserializeMetadata(output),
|
|
366
|
+
...contents,
|
|
367
|
+
};
|
|
368
|
+
return Promise.resolve(response);
|
|
369
|
+
};
|
|
370
|
+
exports.deserializeAws_json1_0BatchGetVpcEndpointCommand = deserializeAws_json1_0BatchGetVpcEndpointCommand;
|
|
371
|
+
const deserializeAws_json1_0BatchGetVpcEndpointCommandError = async (output, context) => {
|
|
372
|
+
const parsedOutput = {
|
|
373
|
+
...output,
|
|
374
|
+
body: await parseErrorBody(output.body, context),
|
|
375
|
+
};
|
|
376
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
377
|
+
switch (errorCode) {
|
|
378
|
+
case "InternalServerException":
|
|
379
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
380
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
381
|
+
case "ValidationException":
|
|
382
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
383
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
384
|
+
default:
|
|
385
|
+
const parsedBody = parsedOutput.body;
|
|
386
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
387
|
+
output,
|
|
388
|
+
parsedBody,
|
|
389
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
390
|
+
errorCode,
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
const deserializeAws_json1_0CreateAccessPolicyCommand = async (output, context) => {
|
|
395
|
+
if (output.statusCode >= 300) {
|
|
396
|
+
return deserializeAws_json1_0CreateAccessPolicyCommandError(output, context);
|
|
397
|
+
}
|
|
398
|
+
const data = await parseBody(output.body, context);
|
|
399
|
+
let contents = {};
|
|
400
|
+
contents = deserializeAws_json1_0CreateAccessPolicyResponse(data, context);
|
|
401
|
+
const response = {
|
|
402
|
+
$metadata: deserializeMetadata(output),
|
|
403
|
+
...contents,
|
|
404
|
+
};
|
|
405
|
+
return Promise.resolve(response);
|
|
406
|
+
};
|
|
407
|
+
exports.deserializeAws_json1_0CreateAccessPolicyCommand = deserializeAws_json1_0CreateAccessPolicyCommand;
|
|
408
|
+
const deserializeAws_json1_0CreateAccessPolicyCommandError = async (output, context) => {
|
|
409
|
+
const parsedOutput = {
|
|
410
|
+
...output,
|
|
411
|
+
body: await parseErrorBody(output.body, context),
|
|
412
|
+
};
|
|
413
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
414
|
+
switch (errorCode) {
|
|
415
|
+
case "ConflictException":
|
|
416
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
417
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
418
|
+
case "InternalServerException":
|
|
419
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
420
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
421
|
+
case "ValidationException":
|
|
422
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
423
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
424
|
+
default:
|
|
425
|
+
const parsedBody = parsedOutput.body;
|
|
426
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
427
|
+
output,
|
|
428
|
+
parsedBody,
|
|
429
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
430
|
+
errorCode,
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
const deserializeAws_json1_0CreateCollectionCommand = async (output, context) => {
|
|
435
|
+
if (output.statusCode >= 300) {
|
|
436
|
+
return deserializeAws_json1_0CreateCollectionCommandError(output, context);
|
|
437
|
+
}
|
|
438
|
+
const data = await parseBody(output.body, context);
|
|
439
|
+
let contents = {};
|
|
440
|
+
contents = deserializeAws_json1_0CreateCollectionResponse(data, context);
|
|
441
|
+
const response = {
|
|
442
|
+
$metadata: deserializeMetadata(output),
|
|
443
|
+
...contents,
|
|
444
|
+
};
|
|
445
|
+
return Promise.resolve(response);
|
|
446
|
+
};
|
|
447
|
+
exports.deserializeAws_json1_0CreateCollectionCommand = deserializeAws_json1_0CreateCollectionCommand;
|
|
448
|
+
const deserializeAws_json1_0CreateCollectionCommandError = async (output, context) => {
|
|
449
|
+
const parsedOutput = {
|
|
450
|
+
...output,
|
|
451
|
+
body: await parseErrorBody(output.body, context),
|
|
452
|
+
};
|
|
453
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
454
|
+
switch (errorCode) {
|
|
455
|
+
case "ConflictException":
|
|
456
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
457
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
458
|
+
case "InternalServerException":
|
|
459
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
460
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
461
|
+
case "ValidationException":
|
|
462
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
463
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
464
|
+
default:
|
|
465
|
+
const parsedBody = parsedOutput.body;
|
|
466
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
467
|
+
output,
|
|
468
|
+
parsedBody,
|
|
469
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
470
|
+
errorCode,
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
const deserializeAws_json1_0CreateSecurityConfigCommand = async (output, context) => {
|
|
475
|
+
if (output.statusCode >= 300) {
|
|
476
|
+
return deserializeAws_json1_0CreateSecurityConfigCommandError(output, context);
|
|
477
|
+
}
|
|
478
|
+
const data = await parseBody(output.body, context);
|
|
479
|
+
let contents = {};
|
|
480
|
+
contents = deserializeAws_json1_0CreateSecurityConfigResponse(data, context);
|
|
481
|
+
const response = {
|
|
482
|
+
$metadata: deserializeMetadata(output),
|
|
483
|
+
...contents,
|
|
484
|
+
};
|
|
485
|
+
return Promise.resolve(response);
|
|
486
|
+
};
|
|
487
|
+
exports.deserializeAws_json1_0CreateSecurityConfigCommand = deserializeAws_json1_0CreateSecurityConfigCommand;
|
|
488
|
+
const deserializeAws_json1_0CreateSecurityConfigCommandError = async (output, context) => {
|
|
489
|
+
const parsedOutput = {
|
|
490
|
+
...output,
|
|
491
|
+
body: await parseErrorBody(output.body, context),
|
|
492
|
+
};
|
|
493
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
494
|
+
switch (errorCode) {
|
|
495
|
+
case "ConflictException":
|
|
496
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
497
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
498
|
+
case "InternalServerException":
|
|
499
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
500
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
501
|
+
case "ValidationException":
|
|
502
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
503
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
504
|
+
default:
|
|
505
|
+
const parsedBody = parsedOutput.body;
|
|
506
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
507
|
+
output,
|
|
508
|
+
parsedBody,
|
|
509
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
510
|
+
errorCode,
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
};
|
|
514
|
+
const deserializeAws_json1_0CreateSecurityPolicyCommand = async (output, context) => {
|
|
515
|
+
if (output.statusCode >= 300) {
|
|
516
|
+
return deserializeAws_json1_0CreateSecurityPolicyCommandError(output, context);
|
|
517
|
+
}
|
|
518
|
+
const data = await parseBody(output.body, context);
|
|
519
|
+
let contents = {};
|
|
520
|
+
contents = deserializeAws_json1_0CreateSecurityPolicyResponse(data, context);
|
|
521
|
+
const response = {
|
|
522
|
+
$metadata: deserializeMetadata(output),
|
|
523
|
+
...contents,
|
|
524
|
+
};
|
|
525
|
+
return Promise.resolve(response);
|
|
526
|
+
};
|
|
527
|
+
exports.deserializeAws_json1_0CreateSecurityPolicyCommand = deserializeAws_json1_0CreateSecurityPolicyCommand;
|
|
528
|
+
const deserializeAws_json1_0CreateSecurityPolicyCommandError = async (output, context) => {
|
|
529
|
+
const parsedOutput = {
|
|
530
|
+
...output,
|
|
531
|
+
body: await parseErrorBody(output.body, context),
|
|
532
|
+
};
|
|
533
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
534
|
+
switch (errorCode) {
|
|
535
|
+
case "ConflictException":
|
|
536
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
537
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
538
|
+
case "InternalServerException":
|
|
539
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
540
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
541
|
+
case "ValidationException":
|
|
542
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
543
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
544
|
+
default:
|
|
545
|
+
const parsedBody = parsedOutput.body;
|
|
546
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
547
|
+
output,
|
|
548
|
+
parsedBody,
|
|
549
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
550
|
+
errorCode,
|
|
551
|
+
});
|
|
552
|
+
}
|
|
553
|
+
};
|
|
554
|
+
const deserializeAws_json1_0CreateVpcEndpointCommand = async (output, context) => {
|
|
555
|
+
if (output.statusCode >= 300) {
|
|
556
|
+
return deserializeAws_json1_0CreateVpcEndpointCommandError(output, context);
|
|
557
|
+
}
|
|
558
|
+
const data = await parseBody(output.body, context);
|
|
559
|
+
let contents = {};
|
|
560
|
+
contents = deserializeAws_json1_0CreateVpcEndpointResponse(data, context);
|
|
561
|
+
const response = {
|
|
562
|
+
$metadata: deserializeMetadata(output),
|
|
563
|
+
...contents,
|
|
564
|
+
};
|
|
565
|
+
return Promise.resolve(response);
|
|
566
|
+
};
|
|
567
|
+
exports.deserializeAws_json1_0CreateVpcEndpointCommand = deserializeAws_json1_0CreateVpcEndpointCommand;
|
|
568
|
+
const deserializeAws_json1_0CreateVpcEndpointCommandError = async (output, context) => {
|
|
569
|
+
const parsedOutput = {
|
|
570
|
+
...output,
|
|
571
|
+
body: await parseErrorBody(output.body, context),
|
|
572
|
+
};
|
|
573
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
574
|
+
switch (errorCode) {
|
|
575
|
+
case "ConflictException":
|
|
576
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
577
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
578
|
+
case "InternalServerException":
|
|
579
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
580
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
581
|
+
case "ValidationException":
|
|
582
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
583
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
584
|
+
default:
|
|
585
|
+
const parsedBody = parsedOutput.body;
|
|
586
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
587
|
+
output,
|
|
588
|
+
parsedBody,
|
|
589
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
590
|
+
errorCode,
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
const deserializeAws_json1_0DeleteAccessPolicyCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode >= 300) {
|
|
596
|
+
return deserializeAws_json1_0DeleteAccessPolicyCommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const data = await parseBody(output.body, context);
|
|
599
|
+
let contents = {};
|
|
600
|
+
contents = deserializeAws_json1_0DeleteAccessPolicyResponse(data, context);
|
|
601
|
+
const response = {
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
...contents,
|
|
604
|
+
};
|
|
605
|
+
return Promise.resolve(response);
|
|
606
|
+
};
|
|
607
|
+
exports.deserializeAws_json1_0DeleteAccessPolicyCommand = deserializeAws_json1_0DeleteAccessPolicyCommand;
|
|
608
|
+
const deserializeAws_json1_0DeleteAccessPolicyCommandError = async (output, context) => {
|
|
609
|
+
const parsedOutput = {
|
|
610
|
+
...output,
|
|
611
|
+
body: await parseErrorBody(output.body, context),
|
|
612
|
+
};
|
|
613
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
614
|
+
switch (errorCode) {
|
|
615
|
+
case "ConflictException":
|
|
616
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
617
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
618
|
+
case "InternalServerException":
|
|
619
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
620
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
621
|
+
case "ResourceNotFoundException":
|
|
622
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
623
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
624
|
+
case "ValidationException":
|
|
625
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
626
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
627
|
+
default:
|
|
628
|
+
const parsedBody = parsedOutput.body;
|
|
629
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
630
|
+
output,
|
|
631
|
+
parsedBody,
|
|
632
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
633
|
+
errorCode,
|
|
634
|
+
});
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
const deserializeAws_json1_0DeleteCollectionCommand = async (output, context) => {
|
|
638
|
+
if (output.statusCode >= 300) {
|
|
639
|
+
return deserializeAws_json1_0DeleteCollectionCommandError(output, context);
|
|
640
|
+
}
|
|
641
|
+
const data = await parseBody(output.body, context);
|
|
642
|
+
let contents = {};
|
|
643
|
+
contents = deserializeAws_json1_0DeleteCollectionResponse(data, context);
|
|
644
|
+
const response = {
|
|
645
|
+
$metadata: deserializeMetadata(output),
|
|
646
|
+
...contents,
|
|
647
|
+
};
|
|
648
|
+
return Promise.resolve(response);
|
|
649
|
+
};
|
|
650
|
+
exports.deserializeAws_json1_0DeleteCollectionCommand = deserializeAws_json1_0DeleteCollectionCommand;
|
|
651
|
+
const deserializeAws_json1_0DeleteCollectionCommandError = async (output, context) => {
|
|
652
|
+
const parsedOutput = {
|
|
653
|
+
...output,
|
|
654
|
+
body: await parseErrorBody(output.body, context),
|
|
655
|
+
};
|
|
656
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
657
|
+
switch (errorCode) {
|
|
658
|
+
case "ConflictException":
|
|
659
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
660
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
661
|
+
case "InternalServerException":
|
|
662
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
663
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
664
|
+
case "ResourceNotFoundException":
|
|
665
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
666
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
667
|
+
case "ValidationException":
|
|
668
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
669
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
670
|
+
default:
|
|
671
|
+
const parsedBody = parsedOutput.body;
|
|
672
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
673
|
+
output,
|
|
674
|
+
parsedBody,
|
|
675
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
676
|
+
errorCode,
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
};
|
|
680
|
+
const deserializeAws_json1_0DeleteSecurityConfigCommand = async (output, context) => {
|
|
681
|
+
if (output.statusCode >= 300) {
|
|
682
|
+
return deserializeAws_json1_0DeleteSecurityConfigCommandError(output, context);
|
|
683
|
+
}
|
|
684
|
+
const data = await parseBody(output.body, context);
|
|
685
|
+
let contents = {};
|
|
686
|
+
contents = deserializeAws_json1_0DeleteSecurityConfigResponse(data, context);
|
|
687
|
+
const response = {
|
|
688
|
+
$metadata: deserializeMetadata(output),
|
|
689
|
+
...contents,
|
|
690
|
+
};
|
|
691
|
+
return Promise.resolve(response);
|
|
692
|
+
};
|
|
693
|
+
exports.deserializeAws_json1_0DeleteSecurityConfigCommand = deserializeAws_json1_0DeleteSecurityConfigCommand;
|
|
694
|
+
const deserializeAws_json1_0DeleteSecurityConfigCommandError = async (output, context) => {
|
|
695
|
+
const parsedOutput = {
|
|
696
|
+
...output,
|
|
697
|
+
body: await parseErrorBody(output.body, context),
|
|
698
|
+
};
|
|
699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
+
switch (errorCode) {
|
|
701
|
+
case "ConflictException":
|
|
702
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
703
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
704
|
+
case "InternalServerException":
|
|
705
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
706
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
707
|
+
case "ResourceNotFoundException":
|
|
708
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
709
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
710
|
+
case "ValidationException":
|
|
711
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
712
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
713
|
+
default:
|
|
714
|
+
const parsedBody = parsedOutput.body;
|
|
715
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
716
|
+
output,
|
|
717
|
+
parsedBody,
|
|
718
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
719
|
+
errorCode,
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
const deserializeAws_json1_0DeleteSecurityPolicyCommand = async (output, context) => {
|
|
724
|
+
if (output.statusCode >= 300) {
|
|
725
|
+
return deserializeAws_json1_0DeleteSecurityPolicyCommandError(output, context);
|
|
726
|
+
}
|
|
727
|
+
const data = await parseBody(output.body, context);
|
|
728
|
+
let contents = {};
|
|
729
|
+
contents = deserializeAws_json1_0DeleteSecurityPolicyResponse(data, context);
|
|
730
|
+
const response = {
|
|
731
|
+
$metadata: deserializeMetadata(output),
|
|
732
|
+
...contents,
|
|
733
|
+
};
|
|
734
|
+
return Promise.resolve(response);
|
|
735
|
+
};
|
|
736
|
+
exports.deserializeAws_json1_0DeleteSecurityPolicyCommand = deserializeAws_json1_0DeleteSecurityPolicyCommand;
|
|
737
|
+
const deserializeAws_json1_0DeleteSecurityPolicyCommandError = async (output, context) => {
|
|
738
|
+
const parsedOutput = {
|
|
739
|
+
...output,
|
|
740
|
+
body: await parseErrorBody(output.body, context),
|
|
741
|
+
};
|
|
742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
+
switch (errorCode) {
|
|
744
|
+
case "ConflictException":
|
|
745
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
746
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
747
|
+
case "InternalServerException":
|
|
748
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
749
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
750
|
+
case "ResourceNotFoundException":
|
|
751
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
752
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
753
|
+
case "ValidationException":
|
|
754
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
755
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
756
|
+
default:
|
|
757
|
+
const parsedBody = parsedOutput.body;
|
|
758
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
759
|
+
output,
|
|
760
|
+
parsedBody,
|
|
761
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
762
|
+
errorCode,
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
};
|
|
766
|
+
const deserializeAws_json1_0DeleteVpcEndpointCommand = async (output, context) => {
|
|
767
|
+
if (output.statusCode >= 300) {
|
|
768
|
+
return deserializeAws_json1_0DeleteVpcEndpointCommandError(output, context);
|
|
769
|
+
}
|
|
770
|
+
const data = await parseBody(output.body, context);
|
|
771
|
+
let contents = {};
|
|
772
|
+
contents = deserializeAws_json1_0DeleteVpcEndpointResponse(data, context);
|
|
773
|
+
const response = {
|
|
774
|
+
$metadata: deserializeMetadata(output),
|
|
775
|
+
...contents,
|
|
776
|
+
};
|
|
777
|
+
return Promise.resolve(response);
|
|
778
|
+
};
|
|
779
|
+
exports.deserializeAws_json1_0DeleteVpcEndpointCommand = deserializeAws_json1_0DeleteVpcEndpointCommand;
|
|
780
|
+
const deserializeAws_json1_0DeleteVpcEndpointCommandError = async (output, context) => {
|
|
781
|
+
const parsedOutput = {
|
|
782
|
+
...output,
|
|
783
|
+
body: await parseErrorBody(output.body, context),
|
|
784
|
+
};
|
|
785
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
|
+
switch (errorCode) {
|
|
787
|
+
case "ConflictException":
|
|
788
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
789
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
790
|
+
case "InternalServerException":
|
|
791
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
792
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
793
|
+
case "ResourceNotFoundException":
|
|
794
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
795
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
796
|
+
case "ValidationException":
|
|
797
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
798
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
799
|
+
default:
|
|
800
|
+
const parsedBody = parsedOutput.body;
|
|
801
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
802
|
+
output,
|
|
803
|
+
parsedBody,
|
|
804
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
805
|
+
errorCode,
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
};
|
|
809
|
+
const deserializeAws_json1_0GetAccessPolicyCommand = async (output, context) => {
|
|
810
|
+
if (output.statusCode >= 300) {
|
|
811
|
+
return deserializeAws_json1_0GetAccessPolicyCommandError(output, context);
|
|
812
|
+
}
|
|
813
|
+
const data = await parseBody(output.body, context);
|
|
814
|
+
let contents = {};
|
|
815
|
+
contents = deserializeAws_json1_0GetAccessPolicyResponse(data, context);
|
|
816
|
+
const response = {
|
|
817
|
+
$metadata: deserializeMetadata(output),
|
|
818
|
+
...contents,
|
|
819
|
+
};
|
|
820
|
+
return Promise.resolve(response);
|
|
821
|
+
};
|
|
822
|
+
exports.deserializeAws_json1_0GetAccessPolicyCommand = deserializeAws_json1_0GetAccessPolicyCommand;
|
|
823
|
+
const deserializeAws_json1_0GetAccessPolicyCommandError = async (output, context) => {
|
|
824
|
+
const parsedOutput = {
|
|
825
|
+
...output,
|
|
826
|
+
body: await parseErrorBody(output.body, context),
|
|
827
|
+
};
|
|
828
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
829
|
+
switch (errorCode) {
|
|
830
|
+
case "InternalServerException":
|
|
831
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
832
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
833
|
+
case "ResourceNotFoundException":
|
|
834
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
835
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
836
|
+
case "ValidationException":
|
|
837
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
838
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
839
|
+
default:
|
|
840
|
+
const parsedBody = parsedOutput.body;
|
|
841
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
842
|
+
output,
|
|
843
|
+
parsedBody,
|
|
844
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
845
|
+
errorCode,
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
};
|
|
849
|
+
const deserializeAws_json1_0GetAccountSettingsCommand = async (output, context) => {
|
|
850
|
+
if (output.statusCode >= 300) {
|
|
851
|
+
return deserializeAws_json1_0GetAccountSettingsCommandError(output, context);
|
|
852
|
+
}
|
|
853
|
+
const data = await parseBody(output.body, context);
|
|
854
|
+
let contents = {};
|
|
855
|
+
contents = deserializeAws_json1_0GetAccountSettingsResponse(data, context);
|
|
856
|
+
const response = {
|
|
857
|
+
$metadata: deserializeMetadata(output),
|
|
858
|
+
...contents,
|
|
859
|
+
};
|
|
860
|
+
return Promise.resolve(response);
|
|
861
|
+
};
|
|
862
|
+
exports.deserializeAws_json1_0GetAccountSettingsCommand = deserializeAws_json1_0GetAccountSettingsCommand;
|
|
863
|
+
const deserializeAws_json1_0GetAccountSettingsCommandError = async (output, context) => {
|
|
864
|
+
const parsedOutput = {
|
|
865
|
+
...output,
|
|
866
|
+
body: await parseErrorBody(output.body, context),
|
|
867
|
+
};
|
|
868
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
869
|
+
switch (errorCode) {
|
|
870
|
+
case "InternalServerException":
|
|
871
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
872
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
873
|
+
case "ValidationException":
|
|
874
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
875
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
876
|
+
default:
|
|
877
|
+
const parsedBody = parsedOutput.body;
|
|
878
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
879
|
+
output,
|
|
880
|
+
parsedBody,
|
|
881
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
882
|
+
errorCode,
|
|
883
|
+
});
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
const deserializeAws_json1_0GetPoliciesStatsCommand = async (output, context) => {
|
|
887
|
+
if (output.statusCode >= 300) {
|
|
888
|
+
return deserializeAws_json1_0GetPoliciesStatsCommandError(output, context);
|
|
889
|
+
}
|
|
890
|
+
const data = await parseBody(output.body, context);
|
|
891
|
+
let contents = {};
|
|
892
|
+
contents = deserializeAws_json1_0GetPoliciesStatsResponse(data, context);
|
|
893
|
+
const response = {
|
|
894
|
+
$metadata: deserializeMetadata(output),
|
|
895
|
+
...contents,
|
|
896
|
+
};
|
|
897
|
+
return Promise.resolve(response);
|
|
898
|
+
};
|
|
899
|
+
exports.deserializeAws_json1_0GetPoliciesStatsCommand = deserializeAws_json1_0GetPoliciesStatsCommand;
|
|
900
|
+
const deserializeAws_json1_0GetPoliciesStatsCommandError = async (output, context) => {
|
|
901
|
+
const parsedOutput = {
|
|
902
|
+
...output,
|
|
903
|
+
body: await parseErrorBody(output.body, context),
|
|
904
|
+
};
|
|
905
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
906
|
+
switch (errorCode) {
|
|
907
|
+
case "InternalServerException":
|
|
908
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
909
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
910
|
+
default:
|
|
911
|
+
const parsedBody = parsedOutput.body;
|
|
912
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
913
|
+
output,
|
|
914
|
+
parsedBody,
|
|
915
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
916
|
+
errorCode,
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
};
|
|
920
|
+
const deserializeAws_json1_0GetSecurityConfigCommand = async (output, context) => {
|
|
921
|
+
if (output.statusCode >= 300) {
|
|
922
|
+
return deserializeAws_json1_0GetSecurityConfigCommandError(output, context);
|
|
923
|
+
}
|
|
924
|
+
const data = await parseBody(output.body, context);
|
|
925
|
+
let contents = {};
|
|
926
|
+
contents = deserializeAws_json1_0GetSecurityConfigResponse(data, context);
|
|
927
|
+
const response = {
|
|
928
|
+
$metadata: deserializeMetadata(output),
|
|
929
|
+
...contents,
|
|
930
|
+
};
|
|
931
|
+
return Promise.resolve(response);
|
|
932
|
+
};
|
|
933
|
+
exports.deserializeAws_json1_0GetSecurityConfigCommand = deserializeAws_json1_0GetSecurityConfigCommand;
|
|
934
|
+
const deserializeAws_json1_0GetSecurityConfigCommandError = async (output, context) => {
|
|
935
|
+
const parsedOutput = {
|
|
936
|
+
...output,
|
|
937
|
+
body: await parseErrorBody(output.body, context),
|
|
938
|
+
};
|
|
939
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
940
|
+
switch (errorCode) {
|
|
941
|
+
case "InternalServerException":
|
|
942
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
943
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
944
|
+
case "ResourceNotFoundException":
|
|
945
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
946
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
947
|
+
case "ValidationException":
|
|
948
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
949
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
950
|
+
default:
|
|
951
|
+
const parsedBody = parsedOutput.body;
|
|
952
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
953
|
+
output,
|
|
954
|
+
parsedBody,
|
|
955
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
956
|
+
errorCode,
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
};
|
|
960
|
+
const deserializeAws_json1_0GetSecurityPolicyCommand = async (output, context) => {
|
|
961
|
+
if (output.statusCode >= 300) {
|
|
962
|
+
return deserializeAws_json1_0GetSecurityPolicyCommandError(output, context);
|
|
963
|
+
}
|
|
964
|
+
const data = await parseBody(output.body, context);
|
|
965
|
+
let contents = {};
|
|
966
|
+
contents = deserializeAws_json1_0GetSecurityPolicyResponse(data, context);
|
|
967
|
+
const response = {
|
|
968
|
+
$metadata: deserializeMetadata(output),
|
|
969
|
+
...contents,
|
|
970
|
+
};
|
|
971
|
+
return Promise.resolve(response);
|
|
972
|
+
};
|
|
973
|
+
exports.deserializeAws_json1_0GetSecurityPolicyCommand = deserializeAws_json1_0GetSecurityPolicyCommand;
|
|
974
|
+
const deserializeAws_json1_0GetSecurityPolicyCommandError = async (output, context) => {
|
|
975
|
+
const parsedOutput = {
|
|
976
|
+
...output,
|
|
977
|
+
body: await parseErrorBody(output.body, context),
|
|
978
|
+
};
|
|
979
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
980
|
+
switch (errorCode) {
|
|
981
|
+
case "InternalServerException":
|
|
982
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
983
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
984
|
+
case "ResourceNotFoundException":
|
|
985
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
986
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
987
|
+
case "ValidationException":
|
|
988
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
989
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
990
|
+
default:
|
|
991
|
+
const parsedBody = parsedOutput.body;
|
|
992
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
993
|
+
output,
|
|
994
|
+
parsedBody,
|
|
995
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
996
|
+
errorCode,
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
};
|
|
1000
|
+
const deserializeAws_json1_0ListAccessPoliciesCommand = async (output, context) => {
|
|
1001
|
+
if (output.statusCode >= 300) {
|
|
1002
|
+
return deserializeAws_json1_0ListAccessPoliciesCommandError(output, context);
|
|
1003
|
+
}
|
|
1004
|
+
const data = await parseBody(output.body, context);
|
|
1005
|
+
let contents = {};
|
|
1006
|
+
contents = deserializeAws_json1_0ListAccessPoliciesResponse(data, context);
|
|
1007
|
+
const response = {
|
|
1008
|
+
$metadata: deserializeMetadata(output),
|
|
1009
|
+
...contents,
|
|
1010
|
+
};
|
|
1011
|
+
return Promise.resolve(response);
|
|
1012
|
+
};
|
|
1013
|
+
exports.deserializeAws_json1_0ListAccessPoliciesCommand = deserializeAws_json1_0ListAccessPoliciesCommand;
|
|
1014
|
+
const deserializeAws_json1_0ListAccessPoliciesCommandError = async (output, context) => {
|
|
1015
|
+
const parsedOutput = {
|
|
1016
|
+
...output,
|
|
1017
|
+
body: await parseErrorBody(output.body, context),
|
|
1018
|
+
};
|
|
1019
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
|
+
switch (errorCode) {
|
|
1021
|
+
case "InternalServerException":
|
|
1022
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1023
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1024
|
+
case "ValidationException":
|
|
1025
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1026
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1027
|
+
default:
|
|
1028
|
+
const parsedBody = parsedOutput.body;
|
|
1029
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1030
|
+
output,
|
|
1031
|
+
parsedBody,
|
|
1032
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1033
|
+
errorCode,
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
};
|
|
1037
|
+
const deserializeAws_json1_0ListCollectionsCommand = async (output, context) => {
|
|
1038
|
+
if (output.statusCode >= 300) {
|
|
1039
|
+
return deserializeAws_json1_0ListCollectionsCommandError(output, context);
|
|
1040
|
+
}
|
|
1041
|
+
const data = await parseBody(output.body, context);
|
|
1042
|
+
let contents = {};
|
|
1043
|
+
contents = deserializeAws_json1_0ListCollectionsResponse(data, context);
|
|
1044
|
+
const response = {
|
|
1045
|
+
$metadata: deserializeMetadata(output),
|
|
1046
|
+
...contents,
|
|
1047
|
+
};
|
|
1048
|
+
return Promise.resolve(response);
|
|
1049
|
+
};
|
|
1050
|
+
exports.deserializeAws_json1_0ListCollectionsCommand = deserializeAws_json1_0ListCollectionsCommand;
|
|
1051
|
+
const deserializeAws_json1_0ListCollectionsCommandError = async (output, context) => {
|
|
1052
|
+
const parsedOutput = {
|
|
1053
|
+
...output,
|
|
1054
|
+
body: await parseErrorBody(output.body, context),
|
|
1055
|
+
};
|
|
1056
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1057
|
+
switch (errorCode) {
|
|
1058
|
+
case "InternalServerException":
|
|
1059
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1060
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1061
|
+
case "ValidationException":
|
|
1062
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1063
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1064
|
+
default:
|
|
1065
|
+
const parsedBody = parsedOutput.body;
|
|
1066
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1067
|
+
output,
|
|
1068
|
+
parsedBody,
|
|
1069
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1070
|
+
errorCode,
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
const deserializeAws_json1_0ListSecurityConfigsCommand = async (output, context) => {
|
|
1075
|
+
if (output.statusCode >= 300) {
|
|
1076
|
+
return deserializeAws_json1_0ListSecurityConfigsCommandError(output, context);
|
|
1077
|
+
}
|
|
1078
|
+
const data = await parseBody(output.body, context);
|
|
1079
|
+
let contents = {};
|
|
1080
|
+
contents = deserializeAws_json1_0ListSecurityConfigsResponse(data, context);
|
|
1081
|
+
const response = {
|
|
1082
|
+
$metadata: deserializeMetadata(output),
|
|
1083
|
+
...contents,
|
|
1084
|
+
};
|
|
1085
|
+
return Promise.resolve(response);
|
|
1086
|
+
};
|
|
1087
|
+
exports.deserializeAws_json1_0ListSecurityConfigsCommand = deserializeAws_json1_0ListSecurityConfigsCommand;
|
|
1088
|
+
const deserializeAws_json1_0ListSecurityConfigsCommandError = async (output, context) => {
|
|
1089
|
+
const parsedOutput = {
|
|
1090
|
+
...output,
|
|
1091
|
+
body: await parseErrorBody(output.body, context),
|
|
1092
|
+
};
|
|
1093
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1094
|
+
switch (errorCode) {
|
|
1095
|
+
case "InternalServerException":
|
|
1096
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1097
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1098
|
+
case "ValidationException":
|
|
1099
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1100
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1101
|
+
default:
|
|
1102
|
+
const parsedBody = parsedOutput.body;
|
|
1103
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1104
|
+
output,
|
|
1105
|
+
parsedBody,
|
|
1106
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1107
|
+
errorCode,
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
const deserializeAws_json1_0ListSecurityPoliciesCommand = async (output, context) => {
|
|
1112
|
+
if (output.statusCode >= 300) {
|
|
1113
|
+
return deserializeAws_json1_0ListSecurityPoliciesCommandError(output, context);
|
|
1114
|
+
}
|
|
1115
|
+
const data = await parseBody(output.body, context);
|
|
1116
|
+
let contents = {};
|
|
1117
|
+
contents = deserializeAws_json1_0ListSecurityPoliciesResponse(data, context);
|
|
1118
|
+
const response = {
|
|
1119
|
+
$metadata: deserializeMetadata(output),
|
|
1120
|
+
...contents,
|
|
1121
|
+
};
|
|
1122
|
+
return Promise.resolve(response);
|
|
1123
|
+
};
|
|
1124
|
+
exports.deserializeAws_json1_0ListSecurityPoliciesCommand = deserializeAws_json1_0ListSecurityPoliciesCommand;
|
|
1125
|
+
const deserializeAws_json1_0ListSecurityPoliciesCommandError = async (output, context) => {
|
|
1126
|
+
const parsedOutput = {
|
|
1127
|
+
...output,
|
|
1128
|
+
body: await parseErrorBody(output.body, context),
|
|
1129
|
+
};
|
|
1130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
+
switch (errorCode) {
|
|
1132
|
+
case "InternalServerException":
|
|
1133
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1134
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1135
|
+
case "ValidationException":
|
|
1136
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1137
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1138
|
+
default:
|
|
1139
|
+
const parsedBody = parsedOutput.body;
|
|
1140
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1141
|
+
output,
|
|
1142
|
+
parsedBody,
|
|
1143
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1144
|
+
errorCode,
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
};
|
|
1148
|
+
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
1149
|
+
if (output.statusCode >= 300) {
|
|
1150
|
+
return deserializeAws_json1_0ListTagsForResourceCommandError(output, context);
|
|
1151
|
+
}
|
|
1152
|
+
const data = await parseBody(output.body, context);
|
|
1153
|
+
let contents = {};
|
|
1154
|
+
contents = deserializeAws_json1_0ListTagsForResourceResponse(data, context);
|
|
1155
|
+
const response = {
|
|
1156
|
+
$metadata: deserializeMetadata(output),
|
|
1157
|
+
...contents,
|
|
1158
|
+
};
|
|
1159
|
+
return Promise.resolve(response);
|
|
1160
|
+
};
|
|
1161
|
+
exports.deserializeAws_json1_0ListTagsForResourceCommand = deserializeAws_json1_0ListTagsForResourceCommand;
|
|
1162
|
+
const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, context) => {
|
|
1163
|
+
const parsedOutput = {
|
|
1164
|
+
...output,
|
|
1165
|
+
body: await parseErrorBody(output.body, context),
|
|
1166
|
+
};
|
|
1167
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1168
|
+
switch (errorCode) {
|
|
1169
|
+
case "InternalServerException":
|
|
1170
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1171
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1172
|
+
case "ResourceNotFoundException":
|
|
1173
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1174
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1175
|
+
case "ValidationException":
|
|
1176
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1177
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1178
|
+
default:
|
|
1179
|
+
const parsedBody = parsedOutput.body;
|
|
1180
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1181
|
+
output,
|
|
1182
|
+
parsedBody,
|
|
1183
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1184
|
+
errorCode,
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1187
|
+
};
|
|
1188
|
+
const deserializeAws_json1_0ListVpcEndpointsCommand = async (output, context) => {
|
|
1189
|
+
if (output.statusCode >= 300) {
|
|
1190
|
+
return deserializeAws_json1_0ListVpcEndpointsCommandError(output, context);
|
|
1191
|
+
}
|
|
1192
|
+
const data = await parseBody(output.body, context);
|
|
1193
|
+
let contents = {};
|
|
1194
|
+
contents = deserializeAws_json1_0ListVpcEndpointsResponse(data, context);
|
|
1195
|
+
const response = {
|
|
1196
|
+
$metadata: deserializeMetadata(output),
|
|
1197
|
+
...contents,
|
|
1198
|
+
};
|
|
1199
|
+
return Promise.resolve(response);
|
|
1200
|
+
};
|
|
1201
|
+
exports.deserializeAws_json1_0ListVpcEndpointsCommand = deserializeAws_json1_0ListVpcEndpointsCommand;
|
|
1202
|
+
const deserializeAws_json1_0ListVpcEndpointsCommandError = async (output, context) => {
|
|
1203
|
+
const parsedOutput = {
|
|
1204
|
+
...output,
|
|
1205
|
+
body: await parseErrorBody(output.body, context),
|
|
1206
|
+
};
|
|
1207
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1208
|
+
switch (errorCode) {
|
|
1209
|
+
case "InternalServerException":
|
|
1210
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1211
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1212
|
+
case "ValidationException":
|
|
1213
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1214
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1215
|
+
default:
|
|
1216
|
+
const parsedBody = parsedOutput.body;
|
|
1217
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1218
|
+
output,
|
|
1219
|
+
parsedBody,
|
|
1220
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1221
|
+
errorCode,
|
|
1222
|
+
});
|
|
1223
|
+
}
|
|
1224
|
+
};
|
|
1225
|
+
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
1226
|
+
if (output.statusCode >= 300) {
|
|
1227
|
+
return deserializeAws_json1_0TagResourceCommandError(output, context);
|
|
1228
|
+
}
|
|
1229
|
+
const data = await parseBody(output.body, context);
|
|
1230
|
+
let contents = {};
|
|
1231
|
+
contents = deserializeAws_json1_0TagResourceResponse(data, context);
|
|
1232
|
+
const response = {
|
|
1233
|
+
$metadata: deserializeMetadata(output),
|
|
1234
|
+
...contents,
|
|
1235
|
+
};
|
|
1236
|
+
return Promise.resolve(response);
|
|
1237
|
+
};
|
|
1238
|
+
exports.deserializeAws_json1_0TagResourceCommand = deserializeAws_json1_0TagResourceCommand;
|
|
1239
|
+
const deserializeAws_json1_0TagResourceCommandError = async (output, context) => {
|
|
1240
|
+
const parsedOutput = {
|
|
1241
|
+
...output,
|
|
1242
|
+
body: await parseErrorBody(output.body, context),
|
|
1243
|
+
};
|
|
1244
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1245
|
+
switch (errorCode) {
|
|
1246
|
+
case "ConflictException":
|
|
1247
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1248
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1249
|
+
case "InternalServerException":
|
|
1250
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1251
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1252
|
+
case "ResourceNotFoundException":
|
|
1253
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1254
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1255
|
+
case "ValidationException":
|
|
1256
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1257
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1258
|
+
default:
|
|
1259
|
+
const parsedBody = parsedOutput.body;
|
|
1260
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1261
|
+
output,
|
|
1262
|
+
parsedBody,
|
|
1263
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1264
|
+
errorCode,
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
};
|
|
1268
|
+
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
1269
|
+
if (output.statusCode >= 300) {
|
|
1270
|
+
return deserializeAws_json1_0UntagResourceCommandError(output, context);
|
|
1271
|
+
}
|
|
1272
|
+
const data = await parseBody(output.body, context);
|
|
1273
|
+
let contents = {};
|
|
1274
|
+
contents = deserializeAws_json1_0UntagResourceResponse(data, context);
|
|
1275
|
+
const response = {
|
|
1276
|
+
$metadata: deserializeMetadata(output),
|
|
1277
|
+
...contents,
|
|
1278
|
+
};
|
|
1279
|
+
return Promise.resolve(response);
|
|
1280
|
+
};
|
|
1281
|
+
exports.deserializeAws_json1_0UntagResourceCommand = deserializeAws_json1_0UntagResourceCommand;
|
|
1282
|
+
const deserializeAws_json1_0UntagResourceCommandError = async (output, context) => {
|
|
1283
|
+
const parsedOutput = {
|
|
1284
|
+
...output,
|
|
1285
|
+
body: await parseErrorBody(output.body, context),
|
|
1286
|
+
};
|
|
1287
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1288
|
+
switch (errorCode) {
|
|
1289
|
+
case "ConflictException":
|
|
1290
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1291
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1292
|
+
case "InternalServerException":
|
|
1293
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1294
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1295
|
+
case "ResourceNotFoundException":
|
|
1296
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1297
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1298
|
+
case "ValidationException":
|
|
1299
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1300
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1301
|
+
default:
|
|
1302
|
+
const parsedBody = parsedOutput.body;
|
|
1303
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1304
|
+
output,
|
|
1305
|
+
parsedBody,
|
|
1306
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1307
|
+
errorCode,
|
|
1308
|
+
});
|
|
1309
|
+
}
|
|
1310
|
+
};
|
|
1311
|
+
const deserializeAws_json1_0UpdateAccessPolicyCommand = async (output, context) => {
|
|
1312
|
+
if (output.statusCode >= 300) {
|
|
1313
|
+
return deserializeAws_json1_0UpdateAccessPolicyCommandError(output, context);
|
|
1314
|
+
}
|
|
1315
|
+
const data = await parseBody(output.body, context);
|
|
1316
|
+
let contents = {};
|
|
1317
|
+
contents = deserializeAws_json1_0UpdateAccessPolicyResponse(data, context);
|
|
1318
|
+
const response = {
|
|
1319
|
+
$metadata: deserializeMetadata(output),
|
|
1320
|
+
...contents,
|
|
1321
|
+
};
|
|
1322
|
+
return Promise.resolve(response);
|
|
1323
|
+
};
|
|
1324
|
+
exports.deserializeAws_json1_0UpdateAccessPolicyCommand = deserializeAws_json1_0UpdateAccessPolicyCommand;
|
|
1325
|
+
const deserializeAws_json1_0UpdateAccessPolicyCommandError = async (output, context) => {
|
|
1326
|
+
const parsedOutput = {
|
|
1327
|
+
...output,
|
|
1328
|
+
body: await parseErrorBody(output.body, context),
|
|
1329
|
+
};
|
|
1330
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1331
|
+
switch (errorCode) {
|
|
1332
|
+
case "ConflictException":
|
|
1333
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1334
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1335
|
+
case "InternalServerException":
|
|
1336
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1337
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1338
|
+
case "ResourceNotFoundException":
|
|
1339
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1340
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1341
|
+
case "ValidationException":
|
|
1342
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1343
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1344
|
+
default:
|
|
1345
|
+
const parsedBody = parsedOutput.body;
|
|
1346
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1347
|
+
output,
|
|
1348
|
+
parsedBody,
|
|
1349
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1350
|
+
errorCode,
|
|
1351
|
+
});
|
|
1352
|
+
}
|
|
1353
|
+
};
|
|
1354
|
+
const deserializeAws_json1_0UpdateAccountSettingsCommand = async (output, context) => {
|
|
1355
|
+
if (output.statusCode >= 300) {
|
|
1356
|
+
return deserializeAws_json1_0UpdateAccountSettingsCommandError(output, context);
|
|
1357
|
+
}
|
|
1358
|
+
const data = await parseBody(output.body, context);
|
|
1359
|
+
let contents = {};
|
|
1360
|
+
contents = deserializeAws_json1_0UpdateAccountSettingsResponse(data, context);
|
|
1361
|
+
const response = {
|
|
1362
|
+
$metadata: deserializeMetadata(output),
|
|
1363
|
+
...contents,
|
|
1364
|
+
};
|
|
1365
|
+
return Promise.resolve(response);
|
|
1366
|
+
};
|
|
1367
|
+
exports.deserializeAws_json1_0UpdateAccountSettingsCommand = deserializeAws_json1_0UpdateAccountSettingsCommand;
|
|
1368
|
+
const deserializeAws_json1_0UpdateAccountSettingsCommandError = async (output, context) => {
|
|
1369
|
+
const parsedOutput = {
|
|
1370
|
+
...output,
|
|
1371
|
+
body: await parseErrorBody(output.body, context),
|
|
1372
|
+
};
|
|
1373
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
|
+
switch (errorCode) {
|
|
1375
|
+
case "InternalServerException":
|
|
1376
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1377
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1378
|
+
case "ValidationException":
|
|
1379
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1380
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1381
|
+
default:
|
|
1382
|
+
const parsedBody = parsedOutput.body;
|
|
1383
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1384
|
+
output,
|
|
1385
|
+
parsedBody,
|
|
1386
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1387
|
+
errorCode,
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1390
|
+
};
|
|
1391
|
+
const deserializeAws_json1_0UpdateCollectionCommand = async (output, context) => {
|
|
1392
|
+
if (output.statusCode >= 300) {
|
|
1393
|
+
return deserializeAws_json1_0UpdateCollectionCommandError(output, context);
|
|
1394
|
+
}
|
|
1395
|
+
const data = await parseBody(output.body, context);
|
|
1396
|
+
let contents = {};
|
|
1397
|
+
contents = deserializeAws_json1_0UpdateCollectionResponse(data, context);
|
|
1398
|
+
const response = {
|
|
1399
|
+
$metadata: deserializeMetadata(output),
|
|
1400
|
+
...contents,
|
|
1401
|
+
};
|
|
1402
|
+
return Promise.resolve(response);
|
|
1403
|
+
};
|
|
1404
|
+
exports.deserializeAws_json1_0UpdateCollectionCommand = deserializeAws_json1_0UpdateCollectionCommand;
|
|
1405
|
+
const deserializeAws_json1_0UpdateCollectionCommandError = async (output, context) => {
|
|
1406
|
+
const parsedOutput = {
|
|
1407
|
+
...output,
|
|
1408
|
+
body: await parseErrorBody(output.body, context),
|
|
1409
|
+
};
|
|
1410
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1411
|
+
switch (errorCode) {
|
|
1412
|
+
case "ConflictException":
|
|
1413
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1414
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1415
|
+
case "InternalServerException":
|
|
1416
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1417
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1418
|
+
case "ValidationException":
|
|
1419
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1420
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1421
|
+
default:
|
|
1422
|
+
const parsedBody = parsedOutput.body;
|
|
1423
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1424
|
+
output,
|
|
1425
|
+
parsedBody,
|
|
1426
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1427
|
+
errorCode,
|
|
1428
|
+
});
|
|
1429
|
+
}
|
|
1430
|
+
};
|
|
1431
|
+
const deserializeAws_json1_0UpdateSecurityConfigCommand = async (output, context) => {
|
|
1432
|
+
if (output.statusCode >= 300) {
|
|
1433
|
+
return deserializeAws_json1_0UpdateSecurityConfigCommandError(output, context);
|
|
1434
|
+
}
|
|
1435
|
+
const data = await parseBody(output.body, context);
|
|
1436
|
+
let contents = {};
|
|
1437
|
+
contents = deserializeAws_json1_0UpdateSecurityConfigResponse(data, context);
|
|
1438
|
+
const response = {
|
|
1439
|
+
$metadata: deserializeMetadata(output),
|
|
1440
|
+
...contents,
|
|
1441
|
+
};
|
|
1442
|
+
return Promise.resolve(response);
|
|
1443
|
+
};
|
|
1444
|
+
exports.deserializeAws_json1_0UpdateSecurityConfigCommand = deserializeAws_json1_0UpdateSecurityConfigCommand;
|
|
1445
|
+
const deserializeAws_json1_0UpdateSecurityConfigCommandError = async (output, context) => {
|
|
1446
|
+
const parsedOutput = {
|
|
1447
|
+
...output,
|
|
1448
|
+
body: await parseErrorBody(output.body, context),
|
|
1449
|
+
};
|
|
1450
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1451
|
+
switch (errorCode) {
|
|
1452
|
+
case "ConflictException":
|
|
1453
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1454
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1455
|
+
case "InternalServerException":
|
|
1456
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1457
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1458
|
+
case "ResourceNotFoundException":
|
|
1459
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1460
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1461
|
+
case "ValidationException":
|
|
1462
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1463
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1464
|
+
default:
|
|
1465
|
+
const parsedBody = parsedOutput.body;
|
|
1466
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1467
|
+
output,
|
|
1468
|
+
parsedBody,
|
|
1469
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1470
|
+
errorCode,
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
};
|
|
1474
|
+
const deserializeAws_json1_0UpdateSecurityPolicyCommand = async (output, context) => {
|
|
1475
|
+
if (output.statusCode >= 300) {
|
|
1476
|
+
return deserializeAws_json1_0UpdateSecurityPolicyCommandError(output, context);
|
|
1477
|
+
}
|
|
1478
|
+
const data = await parseBody(output.body, context);
|
|
1479
|
+
let contents = {};
|
|
1480
|
+
contents = deserializeAws_json1_0UpdateSecurityPolicyResponse(data, context);
|
|
1481
|
+
const response = {
|
|
1482
|
+
$metadata: deserializeMetadata(output),
|
|
1483
|
+
...contents,
|
|
1484
|
+
};
|
|
1485
|
+
return Promise.resolve(response);
|
|
1486
|
+
};
|
|
1487
|
+
exports.deserializeAws_json1_0UpdateSecurityPolicyCommand = deserializeAws_json1_0UpdateSecurityPolicyCommand;
|
|
1488
|
+
const deserializeAws_json1_0UpdateSecurityPolicyCommandError = async (output, context) => {
|
|
1489
|
+
const parsedOutput = {
|
|
1490
|
+
...output,
|
|
1491
|
+
body: await parseErrorBody(output.body, context),
|
|
1492
|
+
};
|
|
1493
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1494
|
+
switch (errorCode) {
|
|
1495
|
+
case "ConflictException":
|
|
1496
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1497
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1498
|
+
case "InternalServerException":
|
|
1499
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1500
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1501
|
+
case "ResourceNotFoundException":
|
|
1502
|
+
case "com.amazonaws.opensearchserverless#ResourceNotFoundException":
|
|
1503
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1504
|
+
case "ValidationException":
|
|
1505
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1506
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1507
|
+
default:
|
|
1508
|
+
const parsedBody = parsedOutput.body;
|
|
1509
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1510
|
+
output,
|
|
1511
|
+
parsedBody,
|
|
1512
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1513
|
+
errorCode,
|
|
1514
|
+
});
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1517
|
+
const deserializeAws_json1_0UpdateVpcEndpointCommand = async (output, context) => {
|
|
1518
|
+
if (output.statusCode >= 300) {
|
|
1519
|
+
return deserializeAws_json1_0UpdateVpcEndpointCommandError(output, context);
|
|
1520
|
+
}
|
|
1521
|
+
const data = await parseBody(output.body, context);
|
|
1522
|
+
let contents = {};
|
|
1523
|
+
contents = deserializeAws_json1_0UpdateVpcEndpointResponse(data, context);
|
|
1524
|
+
const response = {
|
|
1525
|
+
$metadata: deserializeMetadata(output),
|
|
1526
|
+
...contents,
|
|
1527
|
+
};
|
|
1528
|
+
return Promise.resolve(response);
|
|
1529
|
+
};
|
|
1530
|
+
exports.deserializeAws_json1_0UpdateVpcEndpointCommand = deserializeAws_json1_0UpdateVpcEndpointCommand;
|
|
1531
|
+
const deserializeAws_json1_0UpdateVpcEndpointCommandError = async (output, context) => {
|
|
1532
|
+
const parsedOutput = {
|
|
1533
|
+
...output,
|
|
1534
|
+
body: await parseErrorBody(output.body, context),
|
|
1535
|
+
};
|
|
1536
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1537
|
+
switch (errorCode) {
|
|
1538
|
+
case "ConflictException":
|
|
1539
|
+
case "com.amazonaws.opensearchserverless#ConflictException":
|
|
1540
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1541
|
+
case "InternalServerException":
|
|
1542
|
+
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
1543
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1544
|
+
case "ValidationException":
|
|
1545
|
+
case "com.amazonaws.opensearchserverless#ValidationException":
|
|
1546
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1547
|
+
default:
|
|
1548
|
+
const parsedBody = parsedOutput.body;
|
|
1549
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1550
|
+
output,
|
|
1551
|
+
parsedBody,
|
|
1552
|
+
exceptionCtor: OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException,
|
|
1553
|
+
errorCode,
|
|
1554
|
+
});
|
|
1555
|
+
}
|
|
1556
|
+
};
|
|
1557
|
+
const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
1558
|
+
const body = parsedOutput.body;
|
|
1559
|
+
const deserialized = deserializeAws_json1_0ConflictException(body, context);
|
|
1560
|
+
const exception = new models_0_1.ConflictException({
|
|
1561
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1562
|
+
...deserialized,
|
|
1563
|
+
});
|
|
1564
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1565
|
+
};
|
|
1566
|
+
const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1567
|
+
const body = parsedOutput.body;
|
|
1568
|
+
const deserialized = deserializeAws_json1_0InternalServerException(body, context);
|
|
1569
|
+
const exception = new models_0_1.InternalServerException({
|
|
1570
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1571
|
+
...deserialized,
|
|
1572
|
+
});
|
|
1573
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1574
|
+
};
|
|
1575
|
+
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1576
|
+
const body = parsedOutput.body;
|
|
1577
|
+
const deserialized = deserializeAws_json1_0ResourceNotFoundException(body, context);
|
|
1578
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1579
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1580
|
+
...deserialized,
|
|
1581
|
+
});
|
|
1582
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1583
|
+
};
|
|
1584
|
+
const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1585
|
+
const body = parsedOutput.body;
|
|
1586
|
+
const deserialized = deserializeAws_json1_0ValidationException(body, context);
|
|
1587
|
+
const exception = new models_0_1.ValidationException({
|
|
1588
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1589
|
+
...deserialized,
|
|
1590
|
+
});
|
|
1591
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1592
|
+
};
|
|
1593
|
+
const serializeAws_json1_0BatchGetCollectionRequest = (input, context) => {
|
|
1594
|
+
return {
|
|
1595
|
+
...(input.ids != null && { ids: serializeAws_json1_0CollectionIds(input.ids, context) }),
|
|
1596
|
+
...(input.names != null && { names: serializeAws_json1_0CollectionNames(input.names, context) }),
|
|
1597
|
+
};
|
|
1598
|
+
};
|
|
1599
|
+
const serializeAws_json1_0BatchGetVpcEndpointRequest = (input, context) => {
|
|
1600
|
+
return {
|
|
1601
|
+
...(input.ids != null && { ids: serializeAws_json1_0VpcEndpointIds(input.ids, context) }),
|
|
1602
|
+
};
|
|
1603
|
+
};
|
|
1604
|
+
const serializeAws_json1_0CapacityLimits = (input, context) => {
|
|
1605
|
+
return {
|
|
1606
|
+
...(input.maxIndexingCapacityInOCU != null && { maxIndexingCapacityInOCU: input.maxIndexingCapacityInOCU }),
|
|
1607
|
+
...(input.maxSearchCapacityInOCU != null && { maxSearchCapacityInOCU: input.maxSearchCapacityInOCU }),
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
const serializeAws_json1_0CollectionFilters = (input, context) => {
|
|
1611
|
+
return {
|
|
1612
|
+
...(input.name != null && { name: input.name }),
|
|
1613
|
+
...(input.status != null && { status: input.status }),
|
|
1614
|
+
};
|
|
1615
|
+
};
|
|
1616
|
+
const serializeAws_json1_0CollectionIds = (input, context) => {
|
|
1617
|
+
return input
|
|
1618
|
+
.filter((e) => e != null)
|
|
1619
|
+
.map((entry) => {
|
|
1620
|
+
return entry;
|
|
1621
|
+
});
|
|
1622
|
+
};
|
|
1623
|
+
const serializeAws_json1_0CollectionNames = (input, context) => {
|
|
1624
|
+
return input
|
|
1625
|
+
.filter((e) => e != null)
|
|
1626
|
+
.map((entry) => {
|
|
1627
|
+
return entry;
|
|
1628
|
+
});
|
|
1629
|
+
};
|
|
1630
|
+
const serializeAws_json1_0CreateAccessPolicyRequest = (input, context) => {
|
|
1631
|
+
return {
|
|
1632
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1633
|
+
...(input.description != null && { description: input.description }),
|
|
1634
|
+
...(input.name != null && { name: input.name }),
|
|
1635
|
+
...(input.policy != null && { policy: input.policy }),
|
|
1636
|
+
...(input.type != null && { type: input.type }),
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
const serializeAws_json1_0CreateCollectionRequest = (input, context) => {
|
|
1640
|
+
return {
|
|
1641
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1642
|
+
...(input.description != null && { description: input.description }),
|
|
1643
|
+
...(input.name != null && { name: input.name }),
|
|
1644
|
+
...(input.tags != null && { tags: serializeAws_json1_0Tags(input.tags, context) }),
|
|
1645
|
+
...(input.type != null && { type: input.type }),
|
|
1646
|
+
};
|
|
1647
|
+
};
|
|
1648
|
+
const serializeAws_json1_0CreateSecurityConfigRequest = (input, context) => {
|
|
1649
|
+
return {
|
|
1650
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1651
|
+
...(input.description != null && { description: input.description }),
|
|
1652
|
+
...(input.name != null && { name: input.name }),
|
|
1653
|
+
...(input.samlOptions != null && {
|
|
1654
|
+
samlOptions: serializeAws_json1_0SamlConfigOptions(input.samlOptions, context),
|
|
1655
|
+
}),
|
|
1656
|
+
...(input.type != null && { type: input.type }),
|
|
1657
|
+
};
|
|
1658
|
+
};
|
|
1659
|
+
const serializeAws_json1_0CreateSecurityPolicyRequest = (input, context) => {
|
|
1660
|
+
return {
|
|
1661
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1662
|
+
...(input.description != null && { description: input.description }),
|
|
1663
|
+
...(input.name != null && { name: input.name }),
|
|
1664
|
+
...(input.policy != null && { policy: input.policy }),
|
|
1665
|
+
...(input.type != null && { type: input.type }),
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
const serializeAws_json1_0CreateVpcEndpointRequest = (input, context) => {
|
|
1669
|
+
return {
|
|
1670
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1671
|
+
...(input.name != null && { name: input.name }),
|
|
1672
|
+
...(input.securityGroupIds != null && {
|
|
1673
|
+
securityGroupIds: serializeAws_json1_0SecurityGroupIds(input.securityGroupIds, context),
|
|
1674
|
+
}),
|
|
1675
|
+
...(input.subnetIds != null && { subnetIds: serializeAws_json1_0SubnetIds(input.subnetIds, context) }),
|
|
1676
|
+
...(input.vpcId != null && { vpcId: input.vpcId }),
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
const serializeAws_json1_0DeleteAccessPolicyRequest = (input, context) => {
|
|
1680
|
+
return {
|
|
1681
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1682
|
+
...(input.name != null && { name: input.name }),
|
|
1683
|
+
...(input.type != null && { type: input.type }),
|
|
1684
|
+
};
|
|
1685
|
+
};
|
|
1686
|
+
const serializeAws_json1_0DeleteCollectionRequest = (input, context) => {
|
|
1687
|
+
return {
|
|
1688
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1689
|
+
...(input.id != null && { id: input.id }),
|
|
1690
|
+
};
|
|
1691
|
+
};
|
|
1692
|
+
const serializeAws_json1_0DeleteSecurityConfigRequest = (input, context) => {
|
|
1693
|
+
return {
|
|
1694
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1695
|
+
...(input.id != null && { id: input.id }),
|
|
1696
|
+
};
|
|
1697
|
+
};
|
|
1698
|
+
const serializeAws_json1_0DeleteSecurityPolicyRequest = (input, context) => {
|
|
1699
|
+
return {
|
|
1700
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1701
|
+
...(input.name != null && { name: input.name }),
|
|
1702
|
+
...(input.type != null && { type: input.type }),
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
const serializeAws_json1_0DeleteVpcEndpointRequest = (input, context) => {
|
|
1706
|
+
return {
|
|
1707
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1708
|
+
...(input.id != null && { id: input.id }),
|
|
1709
|
+
};
|
|
1710
|
+
};
|
|
1711
|
+
const serializeAws_json1_0GetAccessPolicyRequest = (input, context) => {
|
|
1712
|
+
return {
|
|
1713
|
+
...(input.name != null && { name: input.name }),
|
|
1714
|
+
...(input.type != null && { type: input.type }),
|
|
1715
|
+
};
|
|
1716
|
+
};
|
|
1717
|
+
const serializeAws_json1_0GetAccountSettingsRequest = (input, context) => {
|
|
1718
|
+
return {};
|
|
1719
|
+
};
|
|
1720
|
+
const serializeAws_json1_0GetPoliciesStatsRequest = (input, context) => {
|
|
1721
|
+
return {};
|
|
1722
|
+
};
|
|
1723
|
+
const serializeAws_json1_0GetSecurityConfigRequest = (input, context) => {
|
|
1724
|
+
return {
|
|
1725
|
+
...(input.id != null && { id: input.id }),
|
|
1726
|
+
};
|
|
1727
|
+
};
|
|
1728
|
+
const serializeAws_json1_0GetSecurityPolicyRequest = (input, context) => {
|
|
1729
|
+
return {
|
|
1730
|
+
...(input.name != null && { name: input.name }),
|
|
1731
|
+
...(input.type != null && { type: input.type }),
|
|
1732
|
+
};
|
|
1733
|
+
};
|
|
1734
|
+
const serializeAws_json1_0ListAccessPoliciesRequest = (input, context) => {
|
|
1735
|
+
return {
|
|
1736
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1737
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1738
|
+
...(input.resource != null && { resource: serializeAws_json1_0ResourceFilter(input.resource, context) }),
|
|
1739
|
+
...(input.type != null && { type: input.type }),
|
|
1740
|
+
};
|
|
1741
|
+
};
|
|
1742
|
+
const serializeAws_json1_0ListCollectionsRequest = (input, context) => {
|
|
1743
|
+
return {
|
|
1744
|
+
...(input.collectionFilters != null && {
|
|
1745
|
+
collectionFilters: serializeAws_json1_0CollectionFilters(input.collectionFilters, context),
|
|
1746
|
+
}),
|
|
1747
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1748
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1749
|
+
};
|
|
1750
|
+
};
|
|
1751
|
+
const serializeAws_json1_0ListSecurityConfigsRequest = (input, context) => {
|
|
1752
|
+
return {
|
|
1753
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1754
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1755
|
+
...(input.type != null && { type: input.type }),
|
|
1756
|
+
};
|
|
1757
|
+
};
|
|
1758
|
+
const serializeAws_json1_0ListSecurityPoliciesRequest = (input, context) => {
|
|
1759
|
+
return {
|
|
1760
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1761
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1762
|
+
...(input.resource != null && { resource: serializeAws_json1_0ResourceFilter(input.resource, context) }),
|
|
1763
|
+
...(input.type != null && { type: input.type }),
|
|
1764
|
+
};
|
|
1765
|
+
};
|
|
1766
|
+
const serializeAws_json1_0ListTagsForResourceRequest = (input, context) => {
|
|
1767
|
+
return {
|
|
1768
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1769
|
+
};
|
|
1770
|
+
};
|
|
1771
|
+
const serializeAws_json1_0ListVpcEndpointsRequest = (input, context) => {
|
|
1772
|
+
return {
|
|
1773
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
1774
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
1775
|
+
...(input.vpcEndpointFilters != null && {
|
|
1776
|
+
vpcEndpointFilters: serializeAws_json1_0VpcEndpointFilters(input.vpcEndpointFilters, context),
|
|
1777
|
+
}),
|
|
1778
|
+
};
|
|
1779
|
+
};
|
|
1780
|
+
const serializeAws_json1_0ResourceFilter = (input, context) => {
|
|
1781
|
+
return input
|
|
1782
|
+
.filter((e) => e != null)
|
|
1783
|
+
.map((entry) => {
|
|
1784
|
+
return entry;
|
|
1785
|
+
});
|
|
1786
|
+
};
|
|
1787
|
+
const serializeAws_json1_0SamlConfigOptions = (input, context) => {
|
|
1788
|
+
return {
|
|
1789
|
+
...(input.groupAttribute != null && { groupAttribute: input.groupAttribute }),
|
|
1790
|
+
...(input.metadata != null && { metadata: input.metadata }),
|
|
1791
|
+
...(input.sessionTimeout != null && { sessionTimeout: input.sessionTimeout }),
|
|
1792
|
+
...(input.userAttribute != null && { userAttribute: input.userAttribute }),
|
|
1793
|
+
};
|
|
1794
|
+
};
|
|
1795
|
+
const serializeAws_json1_0SecurityGroupIds = (input, context) => {
|
|
1796
|
+
return input
|
|
1797
|
+
.filter((e) => e != null)
|
|
1798
|
+
.map((entry) => {
|
|
1799
|
+
return entry;
|
|
1800
|
+
});
|
|
1801
|
+
};
|
|
1802
|
+
const serializeAws_json1_0SubnetIds = (input, context) => {
|
|
1803
|
+
return input
|
|
1804
|
+
.filter((e) => e != null)
|
|
1805
|
+
.map((entry) => {
|
|
1806
|
+
return entry;
|
|
1807
|
+
});
|
|
1808
|
+
};
|
|
1809
|
+
const serializeAws_json1_0Tag = (input, context) => {
|
|
1810
|
+
return {
|
|
1811
|
+
...(input.key != null && { key: input.key }),
|
|
1812
|
+
...(input.value != null && { value: input.value }),
|
|
1813
|
+
};
|
|
1814
|
+
};
|
|
1815
|
+
const serializeAws_json1_0TagKeys = (input, context) => {
|
|
1816
|
+
return input
|
|
1817
|
+
.filter((e) => e != null)
|
|
1818
|
+
.map((entry) => {
|
|
1819
|
+
return entry;
|
|
1820
|
+
});
|
|
1821
|
+
};
|
|
1822
|
+
const serializeAws_json1_0TagResourceRequest = (input, context) => {
|
|
1823
|
+
return {
|
|
1824
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1825
|
+
...(input.tags != null && { tags: serializeAws_json1_0Tags(input.tags, context) }),
|
|
1826
|
+
};
|
|
1827
|
+
};
|
|
1828
|
+
const serializeAws_json1_0Tags = (input, context) => {
|
|
1829
|
+
return input
|
|
1830
|
+
.filter((e) => e != null)
|
|
1831
|
+
.map((entry) => {
|
|
1832
|
+
return serializeAws_json1_0Tag(entry, context);
|
|
1833
|
+
});
|
|
1834
|
+
};
|
|
1835
|
+
const serializeAws_json1_0UntagResourceRequest = (input, context) => {
|
|
1836
|
+
return {
|
|
1837
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
1838
|
+
...(input.tagKeys != null && { tagKeys: serializeAws_json1_0TagKeys(input.tagKeys, context) }),
|
|
1839
|
+
};
|
|
1840
|
+
};
|
|
1841
|
+
const serializeAws_json1_0UpdateAccessPolicyRequest = (input, context) => {
|
|
1842
|
+
return {
|
|
1843
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1844
|
+
...(input.description != null && { description: input.description }),
|
|
1845
|
+
...(input.name != null && { name: input.name }),
|
|
1846
|
+
...(input.policy != null && { policy: input.policy }),
|
|
1847
|
+
...(input.policyVersion != null && { policyVersion: input.policyVersion }),
|
|
1848
|
+
...(input.type != null && { type: input.type }),
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
const serializeAws_json1_0UpdateAccountSettingsRequest = (input, context) => {
|
|
1852
|
+
return {
|
|
1853
|
+
...(input.capacityLimits != null && {
|
|
1854
|
+
capacityLimits: serializeAws_json1_0CapacityLimits(input.capacityLimits, context),
|
|
1855
|
+
}),
|
|
1856
|
+
};
|
|
1857
|
+
};
|
|
1858
|
+
const serializeAws_json1_0UpdateCollectionRequest = (input, context) => {
|
|
1859
|
+
return {
|
|
1860
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1861
|
+
...(input.description != null && { description: input.description }),
|
|
1862
|
+
...(input.id != null && { id: input.id }),
|
|
1863
|
+
};
|
|
1864
|
+
};
|
|
1865
|
+
const serializeAws_json1_0UpdateSecurityConfigRequest = (input, context) => {
|
|
1866
|
+
return {
|
|
1867
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1868
|
+
...(input.configVersion != null && { configVersion: input.configVersion }),
|
|
1869
|
+
...(input.description != null && { description: input.description }),
|
|
1870
|
+
...(input.id != null && { id: input.id }),
|
|
1871
|
+
...(input.samlOptions != null && {
|
|
1872
|
+
samlOptions: serializeAws_json1_0SamlConfigOptions(input.samlOptions, context),
|
|
1873
|
+
}),
|
|
1874
|
+
};
|
|
1875
|
+
};
|
|
1876
|
+
const serializeAws_json1_0UpdateSecurityPolicyRequest = (input, context) => {
|
|
1877
|
+
return {
|
|
1878
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1879
|
+
...(input.description != null && { description: input.description }),
|
|
1880
|
+
...(input.name != null && { name: input.name }),
|
|
1881
|
+
...(input.policy != null && { policy: input.policy }),
|
|
1882
|
+
...(input.policyVersion != null && { policyVersion: input.policyVersion }),
|
|
1883
|
+
...(input.type != null && { type: input.type }),
|
|
1884
|
+
};
|
|
1885
|
+
};
|
|
1886
|
+
const serializeAws_json1_0UpdateVpcEndpointRequest = (input, context) => {
|
|
1887
|
+
return {
|
|
1888
|
+
...(input.addSecurityGroupIds != null && {
|
|
1889
|
+
addSecurityGroupIds: serializeAws_json1_0SecurityGroupIds(input.addSecurityGroupIds, context),
|
|
1890
|
+
}),
|
|
1891
|
+
...(input.addSubnetIds != null && { addSubnetIds: serializeAws_json1_0SubnetIds(input.addSubnetIds, context) }),
|
|
1892
|
+
clientToken: input.clientToken ?? (0, uuid_1.v4)(),
|
|
1893
|
+
...(input.id != null && { id: input.id }),
|
|
1894
|
+
...(input.removeSecurityGroupIds != null && {
|
|
1895
|
+
removeSecurityGroupIds: serializeAws_json1_0SecurityGroupIds(input.removeSecurityGroupIds, context),
|
|
1896
|
+
}),
|
|
1897
|
+
...(input.removeSubnetIds != null && {
|
|
1898
|
+
removeSubnetIds: serializeAws_json1_0SubnetIds(input.removeSubnetIds, context),
|
|
1899
|
+
}),
|
|
1900
|
+
};
|
|
1901
|
+
};
|
|
1902
|
+
const serializeAws_json1_0VpcEndpointFilters = (input, context) => {
|
|
1903
|
+
return {
|
|
1904
|
+
...(input.status != null && { status: input.status }),
|
|
1905
|
+
};
|
|
1906
|
+
};
|
|
1907
|
+
const serializeAws_json1_0VpcEndpointIds = (input, context) => {
|
|
1908
|
+
return input
|
|
1909
|
+
.filter((e) => e != null)
|
|
1910
|
+
.map((entry) => {
|
|
1911
|
+
return entry;
|
|
1912
|
+
});
|
|
1913
|
+
};
|
|
1914
|
+
const deserializeAws_json1_0AccessPolicyDetail = (output, context) => {
|
|
1915
|
+
return {
|
|
1916
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
1917
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1918
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
1919
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1920
|
+
policy: output.policy != null ? deserializeAws_json1_0Document(output.policy, context) : undefined,
|
|
1921
|
+
policyVersion: (0, smithy_client_1.expectString)(output.policyVersion),
|
|
1922
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1923
|
+
};
|
|
1924
|
+
};
|
|
1925
|
+
const deserializeAws_json1_0AccessPolicyStats = (output, context) => {
|
|
1926
|
+
return {
|
|
1927
|
+
DataPolicyCount: (0, smithy_client_1.expectLong)(output.DataPolicyCount),
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1930
|
+
const deserializeAws_json1_0AccessPolicySummaries = (output, context) => {
|
|
1931
|
+
const retVal = (output || [])
|
|
1932
|
+
.filter((e) => e != null)
|
|
1933
|
+
.map((entry) => {
|
|
1934
|
+
if (entry === null) {
|
|
1935
|
+
return null;
|
|
1936
|
+
}
|
|
1937
|
+
return deserializeAws_json1_0AccessPolicySummary(entry, context);
|
|
1938
|
+
});
|
|
1939
|
+
return retVal;
|
|
1940
|
+
};
|
|
1941
|
+
const deserializeAws_json1_0AccessPolicySummary = (output, context) => {
|
|
1942
|
+
return {
|
|
1943
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
1944
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1945
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
1946
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1947
|
+
policyVersion: (0, smithy_client_1.expectString)(output.policyVersion),
|
|
1948
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
const deserializeAws_json1_0AccountSettingsDetail = (output, context) => {
|
|
1952
|
+
return {
|
|
1953
|
+
capacityLimits: output.capacityLimits != null ? deserializeAws_json1_0CapacityLimits(output.capacityLimits, context) : undefined,
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1956
|
+
const deserializeAws_json1_0BatchGetCollectionResponse = (output, context) => {
|
|
1957
|
+
return {
|
|
1958
|
+
collectionDetails: output.collectionDetails != null
|
|
1959
|
+
? deserializeAws_json1_0CollectionDetails(output.collectionDetails, context)
|
|
1960
|
+
: undefined,
|
|
1961
|
+
collectionErrorDetails: output.collectionErrorDetails != null
|
|
1962
|
+
? deserializeAws_json1_0CollectionErrorDetails(output.collectionErrorDetails, context)
|
|
1963
|
+
: undefined,
|
|
1964
|
+
};
|
|
1965
|
+
};
|
|
1966
|
+
const deserializeAws_json1_0BatchGetVpcEndpointResponse = (output, context) => {
|
|
1967
|
+
return {
|
|
1968
|
+
vpcEndpointDetails: output.vpcEndpointDetails != null
|
|
1969
|
+
? deserializeAws_json1_0VpcEndpointDetails(output.vpcEndpointDetails, context)
|
|
1970
|
+
: undefined,
|
|
1971
|
+
vpcEndpointErrorDetails: output.vpcEndpointErrorDetails != null
|
|
1972
|
+
? deserializeAws_json1_0VpcEndpointErrorDetails(output.vpcEndpointErrorDetails, context)
|
|
1973
|
+
: undefined,
|
|
1974
|
+
};
|
|
1975
|
+
};
|
|
1976
|
+
const deserializeAws_json1_0CapacityLimits = (output, context) => {
|
|
1977
|
+
return {
|
|
1978
|
+
maxIndexingCapacityInOCU: (0, smithy_client_1.expectInt32)(output.maxIndexingCapacityInOCU),
|
|
1979
|
+
maxSearchCapacityInOCU: (0, smithy_client_1.expectInt32)(output.maxSearchCapacityInOCU),
|
|
1980
|
+
};
|
|
1981
|
+
};
|
|
1982
|
+
const deserializeAws_json1_0CollectionDetail = (output, context) => {
|
|
1983
|
+
return {
|
|
1984
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
1985
|
+
collectionEndpoint: (0, smithy_client_1.expectString)(output.collectionEndpoint),
|
|
1986
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
1987
|
+
dashboardEndpoint: (0, smithy_client_1.expectString)(output.dashboardEndpoint),
|
|
1988
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
1989
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
1990
|
+
kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
1991
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
1992
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
1993
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
1994
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
1995
|
+
};
|
|
1996
|
+
};
|
|
1997
|
+
const deserializeAws_json1_0CollectionDetails = (output, context) => {
|
|
1998
|
+
const retVal = (output || [])
|
|
1999
|
+
.filter((e) => e != null)
|
|
2000
|
+
.map((entry) => {
|
|
2001
|
+
if (entry === null) {
|
|
2002
|
+
return null;
|
|
2003
|
+
}
|
|
2004
|
+
return deserializeAws_json1_0CollectionDetail(entry, context);
|
|
2005
|
+
});
|
|
2006
|
+
return retVal;
|
|
2007
|
+
};
|
|
2008
|
+
const deserializeAws_json1_0CollectionErrorDetail = (output, context) => {
|
|
2009
|
+
return {
|
|
2010
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2011
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
2012
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2013
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
const deserializeAws_json1_0CollectionErrorDetails = (output, context) => {
|
|
2017
|
+
const retVal = (output || [])
|
|
2018
|
+
.filter((e) => e != null)
|
|
2019
|
+
.map((entry) => {
|
|
2020
|
+
if (entry === null) {
|
|
2021
|
+
return null;
|
|
2022
|
+
}
|
|
2023
|
+
return deserializeAws_json1_0CollectionErrorDetail(entry, context);
|
|
2024
|
+
});
|
|
2025
|
+
return retVal;
|
|
2026
|
+
};
|
|
2027
|
+
const deserializeAws_json1_0CollectionSummaries = (output, context) => {
|
|
2028
|
+
const retVal = (output || [])
|
|
2029
|
+
.filter((e) => e != null)
|
|
2030
|
+
.map((entry) => {
|
|
2031
|
+
if (entry === null) {
|
|
2032
|
+
return null;
|
|
2033
|
+
}
|
|
2034
|
+
return deserializeAws_json1_0CollectionSummary(entry, context);
|
|
2035
|
+
});
|
|
2036
|
+
return retVal;
|
|
2037
|
+
};
|
|
2038
|
+
const deserializeAws_json1_0CollectionSummary = (output, context) => {
|
|
2039
|
+
return {
|
|
2040
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2041
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2042
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2043
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2044
|
+
};
|
|
2045
|
+
};
|
|
2046
|
+
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
2047
|
+
return {
|
|
2048
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2049
|
+
};
|
|
2050
|
+
};
|
|
2051
|
+
const deserializeAws_json1_0CreateAccessPolicyResponse = (output, context) => {
|
|
2052
|
+
return {
|
|
2053
|
+
accessPolicyDetail: output.accessPolicyDetail != null
|
|
2054
|
+
? deserializeAws_json1_0AccessPolicyDetail(output.accessPolicyDetail, context)
|
|
2055
|
+
: undefined,
|
|
2056
|
+
};
|
|
2057
|
+
};
|
|
2058
|
+
const deserializeAws_json1_0CreateCollectionDetail = (output, context) => {
|
|
2059
|
+
return {
|
|
2060
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2061
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2062
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2063
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2064
|
+
kmsKeyArn: (0, smithy_client_1.expectString)(output.kmsKeyArn),
|
|
2065
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2066
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2067
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2068
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2069
|
+
};
|
|
2070
|
+
};
|
|
2071
|
+
const deserializeAws_json1_0CreateCollectionResponse = (output, context) => {
|
|
2072
|
+
return {
|
|
2073
|
+
createCollectionDetail: output.createCollectionDetail != null
|
|
2074
|
+
? deserializeAws_json1_0CreateCollectionDetail(output.createCollectionDetail, context)
|
|
2075
|
+
: undefined,
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
const deserializeAws_json1_0CreateSecurityConfigResponse = (output, context) => {
|
|
2079
|
+
return {
|
|
2080
|
+
securityConfigDetail: output.securityConfigDetail != null
|
|
2081
|
+
? deserializeAws_json1_0SecurityConfigDetail(output.securityConfigDetail, context)
|
|
2082
|
+
: undefined,
|
|
2083
|
+
};
|
|
2084
|
+
};
|
|
2085
|
+
const deserializeAws_json1_0CreateSecurityPolicyResponse = (output, context) => {
|
|
2086
|
+
return {
|
|
2087
|
+
securityPolicyDetail: output.securityPolicyDetail != null
|
|
2088
|
+
? deserializeAws_json1_0SecurityPolicyDetail(output.securityPolicyDetail, context)
|
|
2089
|
+
: undefined,
|
|
2090
|
+
};
|
|
2091
|
+
};
|
|
2092
|
+
const deserializeAws_json1_0CreateVpcEndpointDetail = (output, context) => {
|
|
2093
|
+
return {
|
|
2094
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2095
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2096
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2097
|
+
};
|
|
2098
|
+
};
|
|
2099
|
+
const deserializeAws_json1_0CreateVpcEndpointResponse = (output, context) => {
|
|
2100
|
+
return {
|
|
2101
|
+
createVpcEndpointDetail: output.createVpcEndpointDetail != null
|
|
2102
|
+
? deserializeAws_json1_0CreateVpcEndpointDetail(output.createVpcEndpointDetail, context)
|
|
2103
|
+
: undefined,
|
|
2104
|
+
};
|
|
2105
|
+
};
|
|
2106
|
+
const deserializeAws_json1_0DeleteAccessPolicyResponse = (output, context) => {
|
|
2107
|
+
return {};
|
|
2108
|
+
};
|
|
2109
|
+
const deserializeAws_json1_0DeleteCollectionDetail = (output, context) => {
|
|
2110
|
+
return {
|
|
2111
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2112
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2113
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2114
|
+
};
|
|
2115
|
+
};
|
|
2116
|
+
const deserializeAws_json1_0DeleteCollectionResponse = (output, context) => {
|
|
2117
|
+
return {
|
|
2118
|
+
deleteCollectionDetail: output.deleteCollectionDetail != null
|
|
2119
|
+
? deserializeAws_json1_0DeleteCollectionDetail(output.deleteCollectionDetail, context)
|
|
2120
|
+
: undefined,
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2123
|
+
const deserializeAws_json1_0DeleteSecurityConfigResponse = (output, context) => {
|
|
2124
|
+
return {};
|
|
2125
|
+
};
|
|
2126
|
+
const deserializeAws_json1_0DeleteSecurityPolicyResponse = (output, context) => {
|
|
2127
|
+
return {};
|
|
2128
|
+
};
|
|
2129
|
+
const deserializeAws_json1_0DeleteVpcEndpointDetail = (output, context) => {
|
|
2130
|
+
return {
|
|
2131
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2132
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2133
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2134
|
+
};
|
|
2135
|
+
};
|
|
2136
|
+
const deserializeAws_json1_0DeleteVpcEndpointResponse = (output, context) => {
|
|
2137
|
+
return {
|
|
2138
|
+
deleteVpcEndpointDetail: output.deleteVpcEndpointDetail != null
|
|
2139
|
+
? deserializeAws_json1_0DeleteVpcEndpointDetail(output.deleteVpcEndpointDetail, context)
|
|
2140
|
+
: undefined,
|
|
2141
|
+
};
|
|
2142
|
+
};
|
|
2143
|
+
const deserializeAws_json1_0GetAccessPolicyResponse = (output, context) => {
|
|
2144
|
+
return {
|
|
2145
|
+
accessPolicyDetail: output.accessPolicyDetail != null
|
|
2146
|
+
? deserializeAws_json1_0AccessPolicyDetail(output.accessPolicyDetail, context)
|
|
2147
|
+
: undefined,
|
|
2148
|
+
};
|
|
2149
|
+
};
|
|
2150
|
+
const deserializeAws_json1_0GetAccountSettingsResponse = (output, context) => {
|
|
2151
|
+
return {
|
|
2152
|
+
accountSettingsDetail: output.accountSettingsDetail != null
|
|
2153
|
+
? deserializeAws_json1_0AccountSettingsDetail(output.accountSettingsDetail, context)
|
|
2154
|
+
: undefined,
|
|
2155
|
+
};
|
|
2156
|
+
};
|
|
2157
|
+
const deserializeAws_json1_0GetPoliciesStatsResponse = (output, context) => {
|
|
2158
|
+
return {
|
|
2159
|
+
AccessPolicyStats: output.AccessPolicyStats != null
|
|
2160
|
+
? deserializeAws_json1_0AccessPolicyStats(output.AccessPolicyStats, context)
|
|
2161
|
+
: undefined,
|
|
2162
|
+
SecurityConfigStats: output.SecurityConfigStats != null
|
|
2163
|
+
? deserializeAws_json1_0SecurityConfigStats(output.SecurityConfigStats, context)
|
|
2164
|
+
: undefined,
|
|
2165
|
+
SecurityPolicyStats: output.SecurityPolicyStats != null
|
|
2166
|
+
? deserializeAws_json1_0SecurityPolicyStats(output.SecurityPolicyStats, context)
|
|
2167
|
+
: undefined,
|
|
2168
|
+
TotalPolicyCount: (0, smithy_client_1.expectLong)(output.TotalPolicyCount),
|
|
2169
|
+
};
|
|
2170
|
+
};
|
|
2171
|
+
const deserializeAws_json1_0GetSecurityConfigResponse = (output, context) => {
|
|
2172
|
+
return {
|
|
2173
|
+
securityConfigDetail: output.securityConfigDetail != null
|
|
2174
|
+
? deserializeAws_json1_0SecurityConfigDetail(output.securityConfigDetail, context)
|
|
2175
|
+
: undefined,
|
|
2176
|
+
};
|
|
2177
|
+
};
|
|
2178
|
+
const deserializeAws_json1_0GetSecurityPolicyResponse = (output, context) => {
|
|
2179
|
+
return {
|
|
2180
|
+
securityPolicyDetail: output.securityPolicyDetail != null
|
|
2181
|
+
? deserializeAws_json1_0SecurityPolicyDetail(output.securityPolicyDetail, context)
|
|
2182
|
+
: undefined,
|
|
2183
|
+
};
|
|
2184
|
+
};
|
|
2185
|
+
const deserializeAws_json1_0InternalServerException = (output, context) => {
|
|
2186
|
+
return {
|
|
2187
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2188
|
+
};
|
|
2189
|
+
};
|
|
2190
|
+
const deserializeAws_json1_0ListAccessPoliciesResponse = (output, context) => {
|
|
2191
|
+
return {
|
|
2192
|
+
accessPolicySummaries: output.accessPolicySummaries != null
|
|
2193
|
+
? deserializeAws_json1_0AccessPolicySummaries(output.accessPolicySummaries, context)
|
|
2194
|
+
: undefined,
|
|
2195
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2196
|
+
};
|
|
2197
|
+
};
|
|
2198
|
+
const deserializeAws_json1_0ListCollectionsResponse = (output, context) => {
|
|
2199
|
+
return {
|
|
2200
|
+
collectionSummaries: output.collectionSummaries != null
|
|
2201
|
+
? deserializeAws_json1_0CollectionSummaries(output.collectionSummaries, context)
|
|
2202
|
+
: undefined,
|
|
2203
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2204
|
+
};
|
|
2205
|
+
};
|
|
2206
|
+
const deserializeAws_json1_0ListSecurityConfigsResponse = (output, context) => {
|
|
2207
|
+
return {
|
|
2208
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2209
|
+
securityConfigSummaries: output.securityConfigSummaries != null
|
|
2210
|
+
? deserializeAws_json1_0SecurityConfigSummaries(output.securityConfigSummaries, context)
|
|
2211
|
+
: undefined,
|
|
2212
|
+
};
|
|
2213
|
+
};
|
|
2214
|
+
const deserializeAws_json1_0ListSecurityPoliciesResponse = (output, context) => {
|
|
2215
|
+
return {
|
|
2216
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2217
|
+
securityPolicySummaries: output.securityPolicySummaries != null
|
|
2218
|
+
? deserializeAws_json1_0SecurityPolicySummaries(output.securityPolicySummaries, context)
|
|
2219
|
+
: undefined,
|
|
2220
|
+
};
|
|
2221
|
+
};
|
|
2222
|
+
const deserializeAws_json1_0ListTagsForResourceResponse = (output, context) => {
|
|
2223
|
+
return {
|
|
2224
|
+
tags: output.tags != null ? deserializeAws_json1_0Tags(output.tags, context) : undefined,
|
|
2225
|
+
};
|
|
2226
|
+
};
|
|
2227
|
+
const deserializeAws_json1_0ListVpcEndpointsResponse = (output, context) => {
|
|
2228
|
+
return {
|
|
2229
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2230
|
+
vpcEndpointSummaries: output.vpcEndpointSummaries != null
|
|
2231
|
+
? deserializeAws_json1_0VpcEndpointSummaries(output.vpcEndpointSummaries, context)
|
|
2232
|
+
: undefined,
|
|
2233
|
+
};
|
|
2234
|
+
};
|
|
2235
|
+
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
2236
|
+
return {
|
|
2237
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2238
|
+
};
|
|
2239
|
+
};
|
|
2240
|
+
const deserializeAws_json1_0SamlConfigOptions = (output, context) => {
|
|
2241
|
+
return {
|
|
2242
|
+
groupAttribute: (0, smithy_client_1.expectString)(output.groupAttribute),
|
|
2243
|
+
metadata: (0, smithy_client_1.expectString)(output.metadata),
|
|
2244
|
+
sessionTimeout: (0, smithy_client_1.expectInt32)(output.sessionTimeout),
|
|
2245
|
+
userAttribute: (0, smithy_client_1.expectString)(output.userAttribute),
|
|
2246
|
+
};
|
|
2247
|
+
};
|
|
2248
|
+
const deserializeAws_json1_0SecurityConfigDetail = (output, context) => {
|
|
2249
|
+
return {
|
|
2250
|
+
configVersion: (0, smithy_client_1.expectString)(output.configVersion),
|
|
2251
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2252
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2253
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2254
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2255
|
+
samlOptions: output.samlOptions != null ? deserializeAws_json1_0SamlConfigOptions(output.samlOptions, context) : undefined,
|
|
2256
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
const deserializeAws_json1_0SecurityConfigStats = (output, context) => {
|
|
2260
|
+
return {
|
|
2261
|
+
SamlConfigCount: (0, smithy_client_1.expectLong)(output.SamlConfigCount),
|
|
2262
|
+
};
|
|
2263
|
+
};
|
|
2264
|
+
const deserializeAws_json1_0SecurityConfigSummaries = (output, context) => {
|
|
2265
|
+
const retVal = (output || [])
|
|
2266
|
+
.filter((e) => e != null)
|
|
2267
|
+
.map((entry) => {
|
|
2268
|
+
if (entry === null) {
|
|
2269
|
+
return null;
|
|
2270
|
+
}
|
|
2271
|
+
return deserializeAws_json1_0SecurityConfigSummary(entry, context);
|
|
2272
|
+
});
|
|
2273
|
+
return retVal;
|
|
2274
|
+
};
|
|
2275
|
+
const deserializeAws_json1_0SecurityConfigSummary = (output, context) => {
|
|
2276
|
+
return {
|
|
2277
|
+
configVersion: (0, smithy_client_1.expectString)(output.configVersion),
|
|
2278
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2279
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2280
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2281
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2282
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2283
|
+
};
|
|
2284
|
+
};
|
|
2285
|
+
const deserializeAws_json1_0SecurityGroupIds = (output, context) => {
|
|
2286
|
+
const retVal = (output || [])
|
|
2287
|
+
.filter((e) => e != null)
|
|
2288
|
+
.map((entry) => {
|
|
2289
|
+
if (entry === null) {
|
|
2290
|
+
return null;
|
|
2291
|
+
}
|
|
2292
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2293
|
+
});
|
|
2294
|
+
return retVal;
|
|
2295
|
+
};
|
|
2296
|
+
const deserializeAws_json1_0SecurityPolicyDetail = (output, context) => {
|
|
2297
|
+
return {
|
|
2298
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2299
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2300
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2301
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2302
|
+
policy: output.policy != null ? deserializeAws_json1_0Document(output.policy, context) : undefined,
|
|
2303
|
+
policyVersion: (0, smithy_client_1.expectString)(output.policyVersion),
|
|
2304
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2305
|
+
};
|
|
2306
|
+
};
|
|
2307
|
+
const deserializeAws_json1_0SecurityPolicyStats = (output, context) => {
|
|
2308
|
+
return {
|
|
2309
|
+
EncryptionPolicyCount: (0, smithy_client_1.expectLong)(output.EncryptionPolicyCount),
|
|
2310
|
+
NetworkPolicyCount: (0, smithy_client_1.expectLong)(output.NetworkPolicyCount),
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
2313
|
+
const deserializeAws_json1_0SecurityPolicySummaries = (output, context) => {
|
|
2314
|
+
const retVal = (output || [])
|
|
2315
|
+
.filter((e) => e != null)
|
|
2316
|
+
.map((entry) => {
|
|
2317
|
+
if (entry === null) {
|
|
2318
|
+
return null;
|
|
2319
|
+
}
|
|
2320
|
+
return deserializeAws_json1_0SecurityPolicySummary(entry, context);
|
|
2321
|
+
});
|
|
2322
|
+
return retVal;
|
|
2323
|
+
};
|
|
2324
|
+
const deserializeAws_json1_0SecurityPolicySummary = (output, context) => {
|
|
2325
|
+
return {
|
|
2326
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2327
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2328
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2329
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2330
|
+
policyVersion: (0, smithy_client_1.expectString)(output.policyVersion),
|
|
2331
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2332
|
+
};
|
|
2333
|
+
};
|
|
2334
|
+
const deserializeAws_json1_0SubnetIds = (output, context) => {
|
|
2335
|
+
const retVal = (output || [])
|
|
2336
|
+
.filter((e) => e != null)
|
|
2337
|
+
.map((entry) => {
|
|
2338
|
+
if (entry === null) {
|
|
2339
|
+
return null;
|
|
2340
|
+
}
|
|
2341
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2342
|
+
});
|
|
2343
|
+
return retVal;
|
|
2344
|
+
};
|
|
2345
|
+
const deserializeAws_json1_0Tag = (output, context) => {
|
|
2346
|
+
return {
|
|
2347
|
+
key: (0, smithy_client_1.expectString)(output.key),
|
|
2348
|
+
value: (0, smithy_client_1.expectString)(output.value),
|
|
2349
|
+
};
|
|
2350
|
+
};
|
|
2351
|
+
const deserializeAws_json1_0TagResourceResponse = (output, context) => {
|
|
2352
|
+
return {};
|
|
2353
|
+
};
|
|
2354
|
+
const deserializeAws_json1_0Tags = (output, context) => {
|
|
2355
|
+
const retVal = (output || [])
|
|
2356
|
+
.filter((e) => e != null)
|
|
2357
|
+
.map((entry) => {
|
|
2358
|
+
if (entry === null) {
|
|
2359
|
+
return null;
|
|
2360
|
+
}
|
|
2361
|
+
return deserializeAws_json1_0Tag(entry, context);
|
|
2362
|
+
});
|
|
2363
|
+
return retVal;
|
|
2364
|
+
};
|
|
2365
|
+
const deserializeAws_json1_0UntagResourceResponse = (output, context) => {
|
|
2366
|
+
return {};
|
|
2367
|
+
};
|
|
2368
|
+
const deserializeAws_json1_0UpdateAccessPolicyResponse = (output, context) => {
|
|
2369
|
+
return {
|
|
2370
|
+
accessPolicyDetail: output.accessPolicyDetail != null
|
|
2371
|
+
? deserializeAws_json1_0AccessPolicyDetail(output.accessPolicyDetail, context)
|
|
2372
|
+
: undefined,
|
|
2373
|
+
};
|
|
2374
|
+
};
|
|
2375
|
+
const deserializeAws_json1_0UpdateAccountSettingsResponse = (output, context) => {
|
|
2376
|
+
return {
|
|
2377
|
+
accountSettingsDetail: output.accountSettingsDetail != null
|
|
2378
|
+
? deserializeAws_json1_0AccountSettingsDetail(output.accountSettingsDetail, context)
|
|
2379
|
+
: undefined,
|
|
2380
|
+
};
|
|
2381
|
+
};
|
|
2382
|
+
const deserializeAws_json1_0UpdateCollectionDetail = (output, context) => {
|
|
2383
|
+
return {
|
|
2384
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
2385
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2386
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
2387
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2388
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2389
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2390
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2391
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2392
|
+
};
|
|
2393
|
+
};
|
|
2394
|
+
const deserializeAws_json1_0UpdateCollectionResponse = (output, context) => {
|
|
2395
|
+
return {
|
|
2396
|
+
updateCollectionDetail: output.updateCollectionDetail != null
|
|
2397
|
+
? deserializeAws_json1_0UpdateCollectionDetail(output.updateCollectionDetail, context)
|
|
2398
|
+
: undefined,
|
|
2399
|
+
};
|
|
2400
|
+
};
|
|
2401
|
+
const deserializeAws_json1_0UpdateSecurityConfigResponse = (output, context) => {
|
|
2402
|
+
return {
|
|
2403
|
+
securityConfigDetail: output.securityConfigDetail != null
|
|
2404
|
+
? deserializeAws_json1_0SecurityConfigDetail(output.securityConfigDetail, context)
|
|
2405
|
+
: undefined,
|
|
2406
|
+
};
|
|
2407
|
+
};
|
|
2408
|
+
const deserializeAws_json1_0UpdateSecurityPolicyResponse = (output, context) => {
|
|
2409
|
+
return {
|
|
2410
|
+
securityPolicyDetail: output.securityPolicyDetail != null
|
|
2411
|
+
? deserializeAws_json1_0SecurityPolicyDetail(output.securityPolicyDetail, context)
|
|
2412
|
+
: undefined,
|
|
2413
|
+
};
|
|
2414
|
+
};
|
|
2415
|
+
const deserializeAws_json1_0UpdateVpcEndpointDetail = (output, context) => {
|
|
2416
|
+
return {
|
|
2417
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2418
|
+
lastModifiedDate: (0, smithy_client_1.expectLong)(output.lastModifiedDate),
|
|
2419
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2420
|
+
securityGroupIds: output.securityGroupIds != null
|
|
2421
|
+
? deserializeAws_json1_0SecurityGroupIds(output.securityGroupIds, context)
|
|
2422
|
+
: undefined,
|
|
2423
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2424
|
+
subnetIds: output.subnetIds != null ? deserializeAws_json1_0SubnetIds(output.subnetIds, context) : undefined,
|
|
2425
|
+
};
|
|
2426
|
+
};
|
|
2427
|
+
const deserializeAws_json1_0UpdateVpcEndpointResponse = (output, context) => {
|
|
2428
|
+
return {
|
|
2429
|
+
UpdateVpcEndpointDetail: output.UpdateVpcEndpointDetail != null
|
|
2430
|
+
? deserializeAws_json1_0UpdateVpcEndpointDetail(output.UpdateVpcEndpointDetail, context)
|
|
2431
|
+
: undefined,
|
|
2432
|
+
};
|
|
2433
|
+
};
|
|
2434
|
+
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
2435
|
+
return {
|
|
2436
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
2437
|
+
};
|
|
2438
|
+
};
|
|
2439
|
+
const deserializeAws_json1_0VpcEndpointDetail = (output, context) => {
|
|
2440
|
+
return {
|
|
2441
|
+
createdDate: (0, smithy_client_1.expectLong)(output.createdDate),
|
|
2442
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2443
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2444
|
+
securityGroupIds: output.securityGroupIds != null
|
|
2445
|
+
? deserializeAws_json1_0SecurityGroupIds(output.securityGroupIds, context)
|
|
2446
|
+
: undefined,
|
|
2447
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2448
|
+
subnetIds: output.subnetIds != null ? deserializeAws_json1_0SubnetIds(output.subnetIds, context) : undefined,
|
|
2449
|
+
vpcId: (0, smithy_client_1.expectString)(output.vpcId),
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
const deserializeAws_json1_0VpcEndpointDetails = (output, context) => {
|
|
2453
|
+
const retVal = (output || [])
|
|
2454
|
+
.filter((e) => e != null)
|
|
2455
|
+
.map((entry) => {
|
|
2456
|
+
if (entry === null) {
|
|
2457
|
+
return null;
|
|
2458
|
+
}
|
|
2459
|
+
return deserializeAws_json1_0VpcEndpointDetail(entry, context);
|
|
2460
|
+
});
|
|
2461
|
+
return retVal;
|
|
2462
|
+
};
|
|
2463
|
+
const deserializeAws_json1_0VpcEndpointErrorDetail = (output, context) => {
|
|
2464
|
+
return {
|
|
2465
|
+
errorCode: (0, smithy_client_1.expectString)(output.errorCode),
|
|
2466
|
+
errorMessage: (0, smithy_client_1.expectString)(output.errorMessage),
|
|
2467
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2468
|
+
};
|
|
2469
|
+
};
|
|
2470
|
+
const deserializeAws_json1_0VpcEndpointErrorDetails = (output, context) => {
|
|
2471
|
+
const retVal = (output || [])
|
|
2472
|
+
.filter((e) => e != null)
|
|
2473
|
+
.map((entry) => {
|
|
2474
|
+
if (entry === null) {
|
|
2475
|
+
return null;
|
|
2476
|
+
}
|
|
2477
|
+
return deserializeAws_json1_0VpcEndpointErrorDetail(entry, context);
|
|
2478
|
+
});
|
|
2479
|
+
return retVal;
|
|
2480
|
+
};
|
|
2481
|
+
const deserializeAws_json1_0VpcEndpointSummaries = (output, context) => {
|
|
2482
|
+
const retVal = (output || [])
|
|
2483
|
+
.filter((e) => e != null)
|
|
2484
|
+
.map((entry) => {
|
|
2485
|
+
if (entry === null) {
|
|
2486
|
+
return null;
|
|
2487
|
+
}
|
|
2488
|
+
return deserializeAws_json1_0VpcEndpointSummary(entry, context);
|
|
2489
|
+
});
|
|
2490
|
+
return retVal;
|
|
2491
|
+
};
|
|
2492
|
+
const deserializeAws_json1_0VpcEndpointSummary = (output, context) => {
|
|
2493
|
+
return {
|
|
2494
|
+
id: (0, smithy_client_1.expectString)(output.id),
|
|
2495
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
2496
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2497
|
+
};
|
|
2498
|
+
};
|
|
2499
|
+
const deserializeAws_json1_0Document = (output, context) => {
|
|
2500
|
+
return output;
|
|
2501
|
+
};
|
|
2502
|
+
const deserializeMetadata = (output) => ({
|
|
2503
|
+
httpStatusCode: output.statusCode,
|
|
2504
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2505
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2506
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2507
|
+
});
|
|
2508
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2509
|
+
if (streamBody instanceof Uint8Array) {
|
|
2510
|
+
return Promise.resolve(streamBody);
|
|
2511
|
+
}
|
|
2512
|
+
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2513
|
+
};
|
|
2514
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2515
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2516
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2517
|
+
const contents = {
|
|
2518
|
+
protocol,
|
|
2519
|
+
hostname,
|
|
2520
|
+
port,
|
|
2521
|
+
method: "POST",
|
|
2522
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2523
|
+
headers,
|
|
2524
|
+
};
|
|
2525
|
+
if (resolvedHostname !== undefined) {
|
|
2526
|
+
contents.hostname = resolvedHostname;
|
|
2527
|
+
}
|
|
2528
|
+
if (body !== undefined) {
|
|
2529
|
+
contents.body = body;
|
|
2530
|
+
}
|
|
2531
|
+
return new protocol_http_1.HttpRequest(contents);
|
|
2532
|
+
};
|
|
2533
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2534
|
+
if (encoded.length) {
|
|
2535
|
+
return JSON.parse(encoded);
|
|
2536
|
+
}
|
|
2537
|
+
return {};
|
|
2538
|
+
});
|
|
2539
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2540
|
+
const value = await parseBody(errorBody, context);
|
|
2541
|
+
value.message = value.message ?? value.Message;
|
|
2542
|
+
return value;
|
|
2543
|
+
};
|
|
2544
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2545
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2546
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2547
|
+
let cleanValue = rawValue;
|
|
2548
|
+
if (typeof cleanValue === "number") {
|
|
2549
|
+
cleanValue = cleanValue.toString();
|
|
2550
|
+
}
|
|
2551
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
2552
|
+
cleanValue = cleanValue.split(",")[0];
|
|
2553
|
+
}
|
|
2554
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
2555
|
+
cleanValue = cleanValue.split(":")[0];
|
|
2556
|
+
}
|
|
2557
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
2558
|
+
cleanValue = cleanValue.split("#")[1];
|
|
2559
|
+
}
|
|
2560
|
+
return cleanValue;
|
|
2561
|
+
};
|
|
2562
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2563
|
+
if (headerKey !== undefined) {
|
|
2564
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2565
|
+
}
|
|
2566
|
+
if (data.code !== undefined) {
|
|
2567
|
+
return sanitizeErrorCode(data.code);
|
|
2568
|
+
}
|
|
2569
|
+
if (data["__type"] !== undefined) {
|
|
2570
|
+
return sanitizeErrorCode(data["__type"]);
|
|
2571
|
+
}
|
|
2572
|
+
};
|