@aws-sdk/client-opensearch 3.490.0 → 3.496.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/dist-cjs/OpenSearch.js +1 -135
- package/dist-cjs/OpenSearchClient.js +1 -43
- package/dist-cjs/commands/AcceptInboundConnectionCommand.js +1 -28
- package/dist-cjs/commands/AddDataSourceCommand.js +1 -28
- package/dist-cjs/commands/AddTagsCommand.js +1 -28
- package/dist-cjs/commands/AssociatePackageCommand.js +1 -28
- package/dist-cjs/commands/AuthorizeVpcEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/CancelServiceSoftwareUpdateCommand.js +1 -28
- package/dist-cjs/commands/CreateDomainCommand.js +1 -29
- package/dist-cjs/commands/CreateOutboundConnectionCommand.js +1 -28
- package/dist-cjs/commands/CreatePackageCommand.js +1 -28
- package/dist-cjs/commands/CreateVpcEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataSourceCommand.js +1 -28
- package/dist-cjs/commands/DeleteDomainCommand.js +1 -28
- package/dist-cjs/commands/DeleteInboundConnectionCommand.js +1 -28
- package/dist-cjs/commands/DeleteOutboundConnectionCommand.js +1 -28
- package/dist-cjs/commands/DeletePackageCommand.js +1 -28
- package/dist-cjs/commands/DeleteVpcEndpointCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainAutoTunesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainChangeProgressCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainConfigCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainHealthCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainNodesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDomainsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDryRunProgressCommand.js +1 -28
- package/dist-cjs/commands/DescribeInboundConnectionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeInstanceTypeLimitsCommand.js +1 -28
- package/dist-cjs/commands/DescribeOutboundConnectionsCommand.js +1 -28
- package/dist-cjs/commands/DescribePackagesCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedInstanceOfferingsCommand.js +1 -28
- package/dist-cjs/commands/DescribeReservedInstancesCommand.js +1 -28
- package/dist-cjs/commands/DescribeVpcEndpointsCommand.js +1 -28
- package/dist-cjs/commands/DissociatePackageCommand.js +1 -28
- package/dist-cjs/commands/GetCompatibleVersionsCommand.js +1 -28
- package/dist-cjs/commands/GetDataSourceCommand.js +1 -28
- package/dist-cjs/commands/GetDomainMaintenanceStatusCommand.js +1 -28
- package/dist-cjs/commands/GetPackageVersionHistoryCommand.js +1 -28
- package/dist-cjs/commands/GetUpgradeHistoryCommand.js +1 -28
- package/dist-cjs/commands/GetUpgradeStatusCommand.js +1 -28
- package/dist-cjs/commands/ListDataSourcesCommand.js +1 -28
- package/dist-cjs/commands/ListDomainMaintenancesCommand.js +1 -28
- package/dist-cjs/commands/ListDomainNamesCommand.js +1 -28
- package/dist-cjs/commands/ListDomainsForPackageCommand.js +1 -28
- package/dist-cjs/commands/ListInstanceTypeDetailsCommand.js +1 -28
- package/dist-cjs/commands/ListPackagesForDomainCommand.js +1 -28
- package/dist-cjs/commands/ListScheduledActionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsCommand.js +1 -28
- package/dist-cjs/commands/ListVersionsCommand.js +1 -28
- package/dist-cjs/commands/ListVpcEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/ListVpcEndpointsCommand.js +1 -28
- package/dist-cjs/commands/ListVpcEndpointsForDomainCommand.js +1 -28
- package/dist-cjs/commands/PurchaseReservedInstanceOfferingCommand.js +1 -28
- package/dist-cjs/commands/RejectInboundConnectionCommand.js +1 -28
- package/dist-cjs/commands/RemoveTagsCommand.js +1 -28
- package/dist-cjs/commands/RevokeVpcEndpointAccessCommand.js +1 -28
- package/dist-cjs/commands/StartDomainMaintenanceCommand.js +1 -28
- package/dist-cjs/commands/StartServiceSoftwareUpdateCommand.js +1 -28
- package/dist-cjs/commands/UpdateDataSourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateDomainConfigCommand.js +1 -29
- package/dist-cjs/commands/UpdatePackageCommand.js +1 -28
- package/dist-cjs/commands/UpdateScheduledActionCommand.js +1 -28
- package/dist-cjs/commands/UpdateVpcEndpointCommand.js +1 -28
- package/dist-cjs/commands/UpgradeDomainCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -65
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6557 -11
- package/dist-cjs/models/OpenSearchServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -558
- package/dist-cjs/pagination/DescribeDomainAutoTunesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeInboundConnectionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeOutboundConnectionsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribePackagesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedInstanceOfferingsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReservedInstancesPaginator.js +1 -7
- package/dist-cjs/pagination/GetPackageVersionHistoryPaginator.js +1 -7
- package/dist-cjs/pagination/GetUpgradeHistoryPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListDomainMaintenancesPaginator.js +1 -7
- package/dist-cjs/pagination/ListDomainsForPackagePaginator.js +1 -7
- package/dist-cjs/pagination/ListInstanceTypeDetailsPaginator.js +1 -7
- package/dist-cjs/pagination/ListPackagesForDomainPaginator.js +1 -7
- package/dist-cjs/pagination/ListScheduledActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVersionsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -18
- package/dist-cjs/protocols/Aws_restJson1.js +1 -4458
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4458 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_ListVpcEndpointsForDomainCommand = exports.se_ListVpcEndpointsCommand = exports.se_ListVpcEndpointAccessCommand = exports.se_ListVersionsCommand = exports.se_ListTagsCommand = exports.se_ListScheduledActionsCommand = exports.se_ListPackagesForDomainCommand = exports.se_ListInstanceTypeDetailsCommand = exports.se_ListDomainsForPackageCommand = exports.se_ListDomainNamesCommand = exports.se_ListDomainMaintenancesCommand = exports.se_ListDataSourcesCommand = exports.se_GetUpgradeStatusCommand = exports.se_GetUpgradeHistoryCommand = exports.se_GetPackageVersionHistoryCommand = exports.se_GetDomainMaintenanceStatusCommand = exports.se_GetDataSourceCommand = exports.se_GetCompatibleVersionsCommand = exports.se_DissociatePackageCommand = exports.se_DescribeVpcEndpointsCommand = exports.se_DescribeReservedInstancesCommand = exports.se_DescribeReservedInstanceOfferingsCommand = exports.se_DescribePackagesCommand = exports.se_DescribeOutboundConnectionsCommand = exports.se_DescribeInstanceTypeLimitsCommand = exports.se_DescribeInboundConnectionsCommand = exports.se_DescribeDryRunProgressCommand = exports.se_DescribeDomainsCommand = exports.se_DescribeDomainNodesCommand = exports.se_DescribeDomainHealthCommand = exports.se_DescribeDomainConfigCommand = exports.se_DescribeDomainChangeProgressCommand = exports.se_DescribeDomainAutoTunesCommand = exports.se_DescribeDomainCommand = exports.se_DeleteVpcEndpointCommand = exports.se_DeletePackageCommand = exports.se_DeleteOutboundConnectionCommand = exports.se_DeleteInboundConnectionCommand = exports.se_DeleteDomainCommand = exports.se_DeleteDataSourceCommand = exports.se_CreateVpcEndpointCommand = exports.se_CreatePackageCommand = exports.se_CreateOutboundConnectionCommand = exports.se_CreateDomainCommand = exports.se_CancelServiceSoftwareUpdateCommand = exports.se_AuthorizeVpcEndpointAccessCommand = exports.se_AssociatePackageCommand = exports.se_AddTagsCommand = exports.se_AddDataSourceCommand = exports.se_AcceptInboundConnectionCommand = void 0;
|
|
4
|
-
exports.de_GetUpgradeStatusCommand = exports.de_GetUpgradeHistoryCommand = exports.de_GetPackageVersionHistoryCommand = exports.de_GetDomainMaintenanceStatusCommand = exports.de_GetDataSourceCommand = exports.de_GetCompatibleVersionsCommand = exports.de_DissociatePackageCommand = exports.de_DescribeVpcEndpointsCommand = exports.de_DescribeReservedInstancesCommand = exports.de_DescribeReservedInstanceOfferingsCommand = exports.de_DescribePackagesCommand = exports.de_DescribeOutboundConnectionsCommand = exports.de_DescribeInstanceTypeLimitsCommand = exports.de_DescribeInboundConnectionsCommand = exports.de_DescribeDryRunProgressCommand = exports.de_DescribeDomainsCommand = exports.de_DescribeDomainNodesCommand = exports.de_DescribeDomainHealthCommand = exports.de_DescribeDomainConfigCommand = exports.de_DescribeDomainChangeProgressCommand = exports.de_DescribeDomainAutoTunesCommand = exports.de_DescribeDomainCommand = exports.de_DeleteVpcEndpointCommand = exports.de_DeletePackageCommand = exports.de_DeleteOutboundConnectionCommand = exports.de_DeleteInboundConnectionCommand = exports.de_DeleteDomainCommand = exports.de_DeleteDataSourceCommand = exports.de_CreateVpcEndpointCommand = exports.de_CreatePackageCommand = exports.de_CreateOutboundConnectionCommand = exports.de_CreateDomainCommand = exports.de_CancelServiceSoftwareUpdateCommand = exports.de_AuthorizeVpcEndpointAccessCommand = exports.de_AssociatePackageCommand = exports.de_AddTagsCommand = exports.de_AddDataSourceCommand = exports.de_AcceptInboundConnectionCommand = exports.se_UpgradeDomainCommand = exports.se_UpdateVpcEndpointCommand = exports.se_UpdateScheduledActionCommand = exports.se_UpdatePackageCommand = exports.se_UpdateDomainConfigCommand = exports.se_UpdateDataSourceCommand = exports.se_StartServiceSoftwareUpdateCommand = exports.se_StartDomainMaintenanceCommand = exports.se_RevokeVpcEndpointAccessCommand = exports.se_RemoveTagsCommand = exports.se_RejectInboundConnectionCommand = exports.se_PurchaseReservedInstanceOfferingCommand = void 0;
|
|
5
|
-
exports.de_UpgradeDomainCommand = exports.de_UpdateVpcEndpointCommand = exports.de_UpdateScheduledActionCommand = exports.de_UpdatePackageCommand = exports.de_UpdateDomainConfigCommand = exports.de_UpdateDataSourceCommand = exports.de_StartServiceSoftwareUpdateCommand = exports.de_StartDomainMaintenanceCommand = exports.de_RevokeVpcEndpointAccessCommand = exports.de_RemoveTagsCommand = exports.de_RejectInboundConnectionCommand = exports.de_PurchaseReservedInstanceOfferingCommand = exports.de_ListVpcEndpointsForDomainCommand = exports.de_ListVpcEndpointsCommand = exports.de_ListVpcEndpointAccessCommand = exports.de_ListVersionsCommand = exports.de_ListTagsCommand = exports.de_ListScheduledActionsCommand = exports.de_ListPackagesForDomainCommand = exports.de_ListInstanceTypeDetailsCommand = exports.de_ListDomainsForPackageCommand = exports.de_ListDomainNamesCommand = exports.de_ListDomainMaintenancesCommand = exports.de_ListDataSourcesCommand = void 0;
|
|
6
|
-
const core_1 = require("@aws-sdk/core");
|
|
7
|
-
const core_2 = require("@smithy/core");
|
|
8
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const OpenSearchServiceException_1 = require("../models/OpenSearchServiceException");
|
|
11
|
-
const se_AcceptInboundConnectionCommand = async (input, context) => {
|
|
12
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
|
-
const headers = {};
|
|
14
|
-
b.bp("/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/accept");
|
|
15
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
16
|
-
let body;
|
|
17
|
-
b.m("PUT").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
exports.se_AcceptInboundConnectionCommand = se_AcceptInboundConnectionCommand;
|
|
21
|
-
const se_AddDataSourceCommand = async (input, context) => {
|
|
22
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource");
|
|
27
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
28
|
-
let body;
|
|
29
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
30
|
-
DataSourceType: (_) => (0, smithy_client_1._json)(_),
|
|
31
|
-
Description: [],
|
|
32
|
-
Name: [],
|
|
33
|
-
}));
|
|
34
|
-
b.m("POST").h(headers).b(body);
|
|
35
|
-
return b.build();
|
|
36
|
-
};
|
|
37
|
-
exports.se_AddDataSourceCommand = se_AddDataSourceCommand;
|
|
38
|
-
const se_AddTagsCommand = async (input, context) => {
|
|
39
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
40
|
-
const headers = {
|
|
41
|
-
"content-type": "application/json",
|
|
42
|
-
};
|
|
43
|
-
b.bp("/2021-01-01/tags");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
46
|
-
ARN: [],
|
|
47
|
-
TagList: (_) => (0, smithy_client_1._json)(_),
|
|
48
|
-
}));
|
|
49
|
-
b.m("POST").h(headers).b(body);
|
|
50
|
-
return b.build();
|
|
51
|
-
};
|
|
52
|
-
exports.se_AddTagsCommand = se_AddTagsCommand;
|
|
53
|
-
const se_AssociatePackageCommand = async (input, context) => {
|
|
54
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
55
|
-
const headers = {};
|
|
56
|
-
b.bp("/2021-01-01/packages/associate/{PackageID}/{DomainName}");
|
|
57
|
-
b.p("PackageID", () => input.PackageID, "{PackageID}", false);
|
|
58
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
59
|
-
let body;
|
|
60
|
-
b.m("POST").h(headers).b(body);
|
|
61
|
-
return b.build();
|
|
62
|
-
};
|
|
63
|
-
exports.se_AssociatePackageCommand = se_AssociatePackageCommand;
|
|
64
|
-
const se_AuthorizeVpcEndpointAccessCommand = async (input, context) => {
|
|
65
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
66
|
-
const headers = {
|
|
67
|
-
"content-type": "application/json",
|
|
68
|
-
};
|
|
69
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/authorizeVpcEndpointAccess");
|
|
70
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
71
|
-
let body;
|
|
72
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
73
|
-
Account: [],
|
|
74
|
-
}));
|
|
75
|
-
b.m("POST").h(headers).b(body);
|
|
76
|
-
return b.build();
|
|
77
|
-
};
|
|
78
|
-
exports.se_AuthorizeVpcEndpointAccessCommand = se_AuthorizeVpcEndpointAccessCommand;
|
|
79
|
-
const se_CancelServiceSoftwareUpdateCommand = async (input, context) => {
|
|
80
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
81
|
-
const headers = {
|
|
82
|
-
"content-type": "application/json",
|
|
83
|
-
};
|
|
84
|
-
b.bp("/2021-01-01/opensearch/serviceSoftwareUpdate/cancel");
|
|
85
|
-
let body;
|
|
86
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
87
|
-
DomainName: [],
|
|
88
|
-
}));
|
|
89
|
-
b.m("POST").h(headers).b(body);
|
|
90
|
-
return b.build();
|
|
91
|
-
};
|
|
92
|
-
exports.se_CancelServiceSoftwareUpdateCommand = se_CancelServiceSoftwareUpdateCommand;
|
|
93
|
-
const se_CreateDomainCommand = async (input, context) => {
|
|
94
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
95
|
-
const headers = {
|
|
96
|
-
"content-type": "application/json",
|
|
97
|
-
};
|
|
98
|
-
b.bp("/2021-01-01/opensearch/domain");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
101
|
-
AccessPolicies: [],
|
|
102
|
-
AdvancedOptions: (_) => (0, smithy_client_1._json)(_),
|
|
103
|
-
AdvancedSecurityOptions: (_) => (0, smithy_client_1._json)(_),
|
|
104
|
-
AutoTuneOptions: (_) => se_AutoTuneOptionsInput(_, context),
|
|
105
|
-
ClusterConfig: (_) => (0, smithy_client_1._json)(_),
|
|
106
|
-
CognitoOptions: (_) => (0, smithy_client_1._json)(_),
|
|
107
|
-
DomainEndpointOptions: (_) => (0, smithy_client_1._json)(_),
|
|
108
|
-
DomainName: [],
|
|
109
|
-
EBSOptions: (_) => (0, smithy_client_1._json)(_),
|
|
110
|
-
EncryptionAtRestOptions: (_) => (0, smithy_client_1._json)(_),
|
|
111
|
-
EngineVersion: [],
|
|
112
|
-
IPAddressType: [],
|
|
113
|
-
LogPublishingOptions: (_) => (0, smithy_client_1._json)(_),
|
|
114
|
-
NodeToNodeEncryptionOptions: (_) => (0, smithy_client_1._json)(_),
|
|
115
|
-
OffPeakWindowOptions: (_) => (0, smithy_client_1._json)(_),
|
|
116
|
-
SnapshotOptions: (_) => (0, smithy_client_1._json)(_),
|
|
117
|
-
SoftwareUpdateOptions: (_) => (0, smithy_client_1._json)(_),
|
|
118
|
-
TagList: (_) => (0, smithy_client_1._json)(_),
|
|
119
|
-
VPCOptions: (_) => (0, smithy_client_1._json)(_),
|
|
120
|
-
}));
|
|
121
|
-
b.m("POST").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
exports.se_CreateDomainCommand = se_CreateDomainCommand;
|
|
125
|
-
const se_CreateOutboundConnectionCommand = async (input, context) => {
|
|
126
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
127
|
-
const headers = {
|
|
128
|
-
"content-type": "application/json",
|
|
129
|
-
};
|
|
130
|
-
b.bp("/2021-01-01/opensearch/cc/outboundConnection");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
133
|
-
ConnectionAlias: [],
|
|
134
|
-
ConnectionMode: [],
|
|
135
|
-
ConnectionProperties: (_) => (0, smithy_client_1._json)(_),
|
|
136
|
-
LocalDomainInfo: (_) => (0, smithy_client_1._json)(_),
|
|
137
|
-
RemoteDomainInfo: (_) => (0, smithy_client_1._json)(_),
|
|
138
|
-
}));
|
|
139
|
-
b.m("POST").h(headers).b(body);
|
|
140
|
-
return b.build();
|
|
141
|
-
};
|
|
142
|
-
exports.se_CreateOutboundConnectionCommand = se_CreateOutboundConnectionCommand;
|
|
143
|
-
const se_CreatePackageCommand = async (input, context) => {
|
|
144
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
145
|
-
const headers = {
|
|
146
|
-
"content-type": "application/json",
|
|
147
|
-
};
|
|
148
|
-
b.bp("/2021-01-01/packages");
|
|
149
|
-
let body;
|
|
150
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
151
|
-
PackageDescription: [],
|
|
152
|
-
PackageName: [],
|
|
153
|
-
PackageSource: (_) => (0, smithy_client_1._json)(_),
|
|
154
|
-
PackageType: [],
|
|
155
|
-
}));
|
|
156
|
-
b.m("POST").h(headers).b(body);
|
|
157
|
-
return b.build();
|
|
158
|
-
};
|
|
159
|
-
exports.se_CreatePackageCommand = se_CreatePackageCommand;
|
|
160
|
-
const se_CreateVpcEndpointCommand = async (input, context) => {
|
|
161
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
162
|
-
const headers = {
|
|
163
|
-
"content-type": "application/json",
|
|
164
|
-
};
|
|
165
|
-
b.bp("/2021-01-01/opensearch/vpcEndpoints");
|
|
166
|
-
let body;
|
|
167
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
168
|
-
ClientToken: [],
|
|
169
|
-
DomainArn: [],
|
|
170
|
-
VpcOptions: (_) => (0, smithy_client_1._json)(_),
|
|
171
|
-
}));
|
|
172
|
-
b.m("POST").h(headers).b(body);
|
|
173
|
-
return b.build();
|
|
174
|
-
};
|
|
175
|
-
exports.se_CreateVpcEndpointCommand = se_CreateVpcEndpointCommand;
|
|
176
|
-
const se_DeleteDataSourceCommand = async (input, context) => {
|
|
177
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
178
|
-
const headers = {};
|
|
179
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}");
|
|
180
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
181
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
182
|
-
let body;
|
|
183
|
-
b.m("DELETE").h(headers).b(body);
|
|
184
|
-
return b.build();
|
|
185
|
-
};
|
|
186
|
-
exports.se_DeleteDataSourceCommand = se_DeleteDataSourceCommand;
|
|
187
|
-
const se_DeleteDomainCommand = async (input, context) => {
|
|
188
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
189
|
-
const headers = {};
|
|
190
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}");
|
|
191
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
192
|
-
let body;
|
|
193
|
-
b.m("DELETE").h(headers).b(body);
|
|
194
|
-
return b.build();
|
|
195
|
-
};
|
|
196
|
-
exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
|
|
197
|
-
const se_DeleteInboundConnectionCommand = async (input, context) => {
|
|
198
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
199
|
-
const headers = {};
|
|
200
|
-
b.bp("/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}");
|
|
201
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
202
|
-
let body;
|
|
203
|
-
b.m("DELETE").h(headers).b(body);
|
|
204
|
-
return b.build();
|
|
205
|
-
};
|
|
206
|
-
exports.se_DeleteInboundConnectionCommand = se_DeleteInboundConnectionCommand;
|
|
207
|
-
const se_DeleteOutboundConnectionCommand = async (input, context) => {
|
|
208
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
209
|
-
const headers = {};
|
|
210
|
-
b.bp("/2021-01-01/opensearch/cc/outboundConnection/{ConnectionId}");
|
|
211
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
212
|
-
let body;
|
|
213
|
-
b.m("DELETE").h(headers).b(body);
|
|
214
|
-
return b.build();
|
|
215
|
-
};
|
|
216
|
-
exports.se_DeleteOutboundConnectionCommand = se_DeleteOutboundConnectionCommand;
|
|
217
|
-
const se_DeletePackageCommand = async (input, context) => {
|
|
218
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
219
|
-
const headers = {};
|
|
220
|
-
b.bp("/2021-01-01/packages/{PackageID}");
|
|
221
|
-
b.p("PackageID", () => input.PackageID, "{PackageID}", false);
|
|
222
|
-
let body;
|
|
223
|
-
b.m("DELETE").h(headers).b(body);
|
|
224
|
-
return b.build();
|
|
225
|
-
};
|
|
226
|
-
exports.se_DeletePackageCommand = se_DeletePackageCommand;
|
|
227
|
-
const se_DeleteVpcEndpointCommand = async (input, context) => {
|
|
228
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
229
|
-
const headers = {};
|
|
230
|
-
b.bp("/2021-01-01/opensearch/vpcEndpoints/{VpcEndpointId}");
|
|
231
|
-
b.p("VpcEndpointId", () => input.VpcEndpointId, "{VpcEndpointId}", false);
|
|
232
|
-
let body;
|
|
233
|
-
b.m("DELETE").h(headers).b(body);
|
|
234
|
-
return b.build();
|
|
235
|
-
};
|
|
236
|
-
exports.se_DeleteVpcEndpointCommand = se_DeleteVpcEndpointCommand;
|
|
237
|
-
const se_DescribeDomainCommand = async (input, context) => {
|
|
238
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
239
|
-
const headers = {};
|
|
240
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}");
|
|
241
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
242
|
-
let body;
|
|
243
|
-
b.m("GET").h(headers).b(body);
|
|
244
|
-
return b.build();
|
|
245
|
-
};
|
|
246
|
-
exports.se_DescribeDomainCommand = se_DescribeDomainCommand;
|
|
247
|
-
const se_DescribeDomainAutoTunesCommand = async (input, context) => {
|
|
248
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
249
|
-
const headers = {
|
|
250
|
-
"content-type": "application/json",
|
|
251
|
-
};
|
|
252
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/autoTunes");
|
|
253
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
254
|
-
let body;
|
|
255
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
256
|
-
MaxResults: [],
|
|
257
|
-
NextToken: [],
|
|
258
|
-
}));
|
|
259
|
-
b.m("GET").h(headers).b(body);
|
|
260
|
-
return b.build();
|
|
261
|
-
};
|
|
262
|
-
exports.se_DescribeDomainAutoTunesCommand = se_DescribeDomainAutoTunesCommand;
|
|
263
|
-
const se_DescribeDomainChangeProgressCommand = async (input, context) => {
|
|
264
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
265
|
-
const headers = {};
|
|
266
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/progress");
|
|
267
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
268
|
-
const query = (0, smithy_client_1.map)({
|
|
269
|
-
[_c]: [, input[_CI]],
|
|
270
|
-
});
|
|
271
|
-
let body;
|
|
272
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
273
|
-
return b.build();
|
|
274
|
-
};
|
|
275
|
-
exports.se_DescribeDomainChangeProgressCommand = se_DescribeDomainChangeProgressCommand;
|
|
276
|
-
const se_DescribeDomainConfigCommand = async (input, context) => {
|
|
277
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
278
|
-
const headers = {};
|
|
279
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/config");
|
|
280
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
281
|
-
let body;
|
|
282
|
-
b.m("GET").h(headers).b(body);
|
|
283
|
-
return b.build();
|
|
284
|
-
};
|
|
285
|
-
exports.se_DescribeDomainConfigCommand = se_DescribeDomainConfigCommand;
|
|
286
|
-
const se_DescribeDomainHealthCommand = async (input, context) => {
|
|
287
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
288
|
-
const headers = {};
|
|
289
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/health");
|
|
290
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
291
|
-
let body;
|
|
292
|
-
b.m("GET").h(headers).b(body);
|
|
293
|
-
return b.build();
|
|
294
|
-
};
|
|
295
|
-
exports.se_DescribeDomainHealthCommand = se_DescribeDomainHealthCommand;
|
|
296
|
-
const se_DescribeDomainNodesCommand = async (input, context) => {
|
|
297
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
298
|
-
const headers = {};
|
|
299
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/nodes");
|
|
300
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
301
|
-
let body;
|
|
302
|
-
b.m("GET").h(headers).b(body);
|
|
303
|
-
return b.build();
|
|
304
|
-
};
|
|
305
|
-
exports.se_DescribeDomainNodesCommand = se_DescribeDomainNodesCommand;
|
|
306
|
-
const se_DescribeDomainsCommand = async (input, context) => {
|
|
307
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
308
|
-
const headers = {
|
|
309
|
-
"content-type": "application/json",
|
|
310
|
-
};
|
|
311
|
-
b.bp("/2021-01-01/opensearch/domain-info");
|
|
312
|
-
let body;
|
|
313
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
314
|
-
DomainNames: (_) => (0, smithy_client_1._json)(_),
|
|
315
|
-
}));
|
|
316
|
-
b.m("POST").h(headers).b(body);
|
|
317
|
-
return b.build();
|
|
318
|
-
};
|
|
319
|
-
exports.se_DescribeDomainsCommand = se_DescribeDomainsCommand;
|
|
320
|
-
const se_DescribeDryRunProgressCommand = async (input, context) => {
|
|
321
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
322
|
-
const headers = {};
|
|
323
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/dryRun");
|
|
324
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
325
|
-
const query = (0, smithy_client_1.map)({
|
|
326
|
-
[_dRI]: [, input[_DRI]],
|
|
327
|
-
[_lDRC]: [() => input.LoadDryRunConfig !== void 0, () => input[_LDRC].toString()],
|
|
328
|
-
});
|
|
329
|
-
let body;
|
|
330
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
331
|
-
return b.build();
|
|
332
|
-
};
|
|
333
|
-
exports.se_DescribeDryRunProgressCommand = se_DescribeDryRunProgressCommand;
|
|
334
|
-
const se_DescribeInboundConnectionsCommand = async (input, context) => {
|
|
335
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
336
|
-
const headers = {
|
|
337
|
-
"content-type": "application/json",
|
|
338
|
-
};
|
|
339
|
-
b.bp("/2021-01-01/opensearch/cc/inboundConnection/search");
|
|
340
|
-
let body;
|
|
341
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
342
|
-
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
343
|
-
MaxResults: [],
|
|
344
|
-
NextToken: [],
|
|
345
|
-
}));
|
|
346
|
-
b.m("POST").h(headers).b(body);
|
|
347
|
-
return b.build();
|
|
348
|
-
};
|
|
349
|
-
exports.se_DescribeInboundConnectionsCommand = se_DescribeInboundConnectionsCommand;
|
|
350
|
-
const se_DescribeInstanceTypeLimitsCommand = async (input, context) => {
|
|
351
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
352
|
-
const headers = {};
|
|
353
|
-
b.bp("/2021-01-01/opensearch/instanceTypeLimits/{EngineVersion}/{InstanceType}");
|
|
354
|
-
b.p("InstanceType", () => input.InstanceType, "{InstanceType}", false);
|
|
355
|
-
b.p("EngineVersion", () => input.EngineVersion, "{EngineVersion}", false);
|
|
356
|
-
const query = (0, smithy_client_1.map)({
|
|
357
|
-
[_dN]: [, input[_DN]],
|
|
358
|
-
});
|
|
359
|
-
let body;
|
|
360
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
361
|
-
return b.build();
|
|
362
|
-
};
|
|
363
|
-
exports.se_DescribeInstanceTypeLimitsCommand = se_DescribeInstanceTypeLimitsCommand;
|
|
364
|
-
const se_DescribeOutboundConnectionsCommand = async (input, context) => {
|
|
365
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
366
|
-
const headers = {
|
|
367
|
-
"content-type": "application/json",
|
|
368
|
-
};
|
|
369
|
-
b.bp("/2021-01-01/opensearch/cc/outboundConnection/search");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
372
|
-
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
373
|
-
MaxResults: [],
|
|
374
|
-
NextToken: [],
|
|
375
|
-
}));
|
|
376
|
-
b.m("POST").h(headers).b(body);
|
|
377
|
-
return b.build();
|
|
378
|
-
};
|
|
379
|
-
exports.se_DescribeOutboundConnectionsCommand = se_DescribeOutboundConnectionsCommand;
|
|
380
|
-
const se_DescribePackagesCommand = async (input, context) => {
|
|
381
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
382
|
-
const headers = {
|
|
383
|
-
"content-type": "application/json",
|
|
384
|
-
};
|
|
385
|
-
b.bp("/2021-01-01/packages/describe");
|
|
386
|
-
let body;
|
|
387
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
388
|
-
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
389
|
-
MaxResults: [],
|
|
390
|
-
NextToken: [],
|
|
391
|
-
}));
|
|
392
|
-
b.m("POST").h(headers).b(body);
|
|
393
|
-
return b.build();
|
|
394
|
-
};
|
|
395
|
-
exports.se_DescribePackagesCommand = se_DescribePackagesCommand;
|
|
396
|
-
const se_DescribeReservedInstanceOfferingsCommand = async (input, context) => {
|
|
397
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
398
|
-
const headers = {};
|
|
399
|
-
b.bp("/2021-01-01/opensearch/reservedInstanceOfferings");
|
|
400
|
-
const query = (0, smithy_client_1.map)({
|
|
401
|
-
[_oI]: [, input[_RIOI]],
|
|
402
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
403
|
-
[_nT]: [, input[_NT]],
|
|
404
|
-
});
|
|
405
|
-
let body;
|
|
406
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
407
|
-
return b.build();
|
|
408
|
-
};
|
|
409
|
-
exports.se_DescribeReservedInstanceOfferingsCommand = se_DescribeReservedInstanceOfferingsCommand;
|
|
410
|
-
const se_DescribeReservedInstancesCommand = async (input, context) => {
|
|
411
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
412
|
-
const headers = {};
|
|
413
|
-
b.bp("/2021-01-01/opensearch/reservedInstances");
|
|
414
|
-
const query = (0, smithy_client_1.map)({
|
|
415
|
-
[_rI]: [, input[_RII]],
|
|
416
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
417
|
-
[_nT]: [, input[_NT]],
|
|
418
|
-
});
|
|
419
|
-
let body;
|
|
420
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
421
|
-
return b.build();
|
|
422
|
-
};
|
|
423
|
-
exports.se_DescribeReservedInstancesCommand = se_DescribeReservedInstancesCommand;
|
|
424
|
-
const se_DescribeVpcEndpointsCommand = async (input, context) => {
|
|
425
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
426
|
-
const headers = {
|
|
427
|
-
"content-type": "application/json",
|
|
428
|
-
};
|
|
429
|
-
b.bp("/2021-01-01/opensearch/vpcEndpoints/describe");
|
|
430
|
-
let body;
|
|
431
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
432
|
-
VpcEndpointIds: (_) => (0, smithy_client_1._json)(_),
|
|
433
|
-
}));
|
|
434
|
-
b.m("POST").h(headers).b(body);
|
|
435
|
-
return b.build();
|
|
436
|
-
};
|
|
437
|
-
exports.se_DescribeVpcEndpointsCommand = se_DescribeVpcEndpointsCommand;
|
|
438
|
-
const se_DissociatePackageCommand = async (input, context) => {
|
|
439
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
440
|
-
const headers = {};
|
|
441
|
-
b.bp("/2021-01-01/packages/dissociate/{PackageID}/{DomainName}");
|
|
442
|
-
b.p("PackageID", () => input.PackageID, "{PackageID}", false);
|
|
443
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
444
|
-
let body;
|
|
445
|
-
b.m("POST").h(headers).b(body);
|
|
446
|
-
return b.build();
|
|
447
|
-
};
|
|
448
|
-
exports.se_DissociatePackageCommand = se_DissociatePackageCommand;
|
|
449
|
-
const se_GetCompatibleVersionsCommand = async (input, context) => {
|
|
450
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
451
|
-
const headers = {};
|
|
452
|
-
b.bp("/2021-01-01/opensearch/compatibleVersions");
|
|
453
|
-
const query = (0, smithy_client_1.map)({
|
|
454
|
-
[_dN]: [, input[_DN]],
|
|
455
|
-
});
|
|
456
|
-
let body;
|
|
457
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
458
|
-
return b.build();
|
|
459
|
-
};
|
|
460
|
-
exports.se_GetCompatibleVersionsCommand = se_GetCompatibleVersionsCommand;
|
|
461
|
-
const se_GetDataSourceCommand = async (input, context) => {
|
|
462
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
463
|
-
const headers = {};
|
|
464
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}");
|
|
465
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
466
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
467
|
-
let body;
|
|
468
|
-
b.m("GET").h(headers).b(body);
|
|
469
|
-
return b.build();
|
|
470
|
-
};
|
|
471
|
-
exports.se_GetDataSourceCommand = se_GetDataSourceCommand;
|
|
472
|
-
const se_GetDomainMaintenanceStatusCommand = async (input, context) => {
|
|
473
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
474
|
-
const headers = {};
|
|
475
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/domainMaintenance");
|
|
476
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
477
|
-
const query = (0, smithy_client_1.map)({
|
|
478
|
-
[_mI]: [, (0, smithy_client_1.expectNonNull)(input[_MI], `MaintenanceId`)],
|
|
479
|
-
});
|
|
480
|
-
let body;
|
|
481
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
482
|
-
return b.build();
|
|
483
|
-
};
|
|
484
|
-
exports.se_GetDomainMaintenanceStatusCommand = se_GetDomainMaintenanceStatusCommand;
|
|
485
|
-
const se_GetPackageVersionHistoryCommand = async (input, context) => {
|
|
486
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
487
|
-
const headers = {};
|
|
488
|
-
b.bp("/2021-01-01/packages/{PackageID}/history");
|
|
489
|
-
b.p("PackageID", () => input.PackageID, "{PackageID}", false);
|
|
490
|
-
const query = (0, smithy_client_1.map)({
|
|
491
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
492
|
-
[_nT]: [, input[_NT]],
|
|
493
|
-
});
|
|
494
|
-
let body;
|
|
495
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
496
|
-
return b.build();
|
|
497
|
-
};
|
|
498
|
-
exports.se_GetPackageVersionHistoryCommand = se_GetPackageVersionHistoryCommand;
|
|
499
|
-
const se_GetUpgradeHistoryCommand = async (input, context) => {
|
|
500
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
501
|
-
const headers = {};
|
|
502
|
-
b.bp("/2021-01-01/opensearch/upgradeDomain/{DomainName}/history");
|
|
503
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
504
|
-
const query = (0, smithy_client_1.map)({
|
|
505
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
506
|
-
[_nT]: [, input[_NT]],
|
|
507
|
-
});
|
|
508
|
-
let body;
|
|
509
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
510
|
-
return b.build();
|
|
511
|
-
};
|
|
512
|
-
exports.se_GetUpgradeHistoryCommand = se_GetUpgradeHistoryCommand;
|
|
513
|
-
const se_GetUpgradeStatusCommand = async (input, context) => {
|
|
514
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
515
|
-
const headers = {};
|
|
516
|
-
b.bp("/2021-01-01/opensearch/upgradeDomain/{DomainName}/status");
|
|
517
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
518
|
-
let body;
|
|
519
|
-
b.m("GET").h(headers).b(body);
|
|
520
|
-
return b.build();
|
|
521
|
-
};
|
|
522
|
-
exports.se_GetUpgradeStatusCommand = se_GetUpgradeStatusCommand;
|
|
523
|
-
const se_ListDataSourcesCommand = async (input, context) => {
|
|
524
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
525
|
-
const headers = {};
|
|
526
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource");
|
|
527
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
528
|
-
let body;
|
|
529
|
-
b.m("GET").h(headers).b(body);
|
|
530
|
-
return b.build();
|
|
531
|
-
};
|
|
532
|
-
exports.se_ListDataSourcesCommand = se_ListDataSourcesCommand;
|
|
533
|
-
const se_ListDomainMaintenancesCommand = async (input, context) => {
|
|
534
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
535
|
-
const headers = {};
|
|
536
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/domainMaintenances");
|
|
537
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
538
|
-
const query = (0, smithy_client_1.map)({
|
|
539
|
-
[_a]: [, input[_A]],
|
|
540
|
-
[_s]: [, input[_S]],
|
|
541
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
542
|
-
[_nT]: [, input[_NT]],
|
|
543
|
-
});
|
|
544
|
-
let body;
|
|
545
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
546
|
-
return b.build();
|
|
547
|
-
};
|
|
548
|
-
exports.se_ListDomainMaintenancesCommand = se_ListDomainMaintenancesCommand;
|
|
549
|
-
const se_ListDomainNamesCommand = async (input, context) => {
|
|
550
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
551
|
-
const headers = {};
|
|
552
|
-
b.bp("/2021-01-01/domain");
|
|
553
|
-
const query = (0, smithy_client_1.map)({
|
|
554
|
-
[_eT]: [, input[_ET]],
|
|
555
|
-
});
|
|
556
|
-
let body;
|
|
557
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
558
|
-
return b.build();
|
|
559
|
-
};
|
|
560
|
-
exports.se_ListDomainNamesCommand = se_ListDomainNamesCommand;
|
|
561
|
-
const se_ListDomainsForPackageCommand = async (input, context) => {
|
|
562
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
563
|
-
const headers = {};
|
|
564
|
-
b.bp("/2021-01-01/packages/{PackageID}/domains");
|
|
565
|
-
b.p("PackageID", () => input.PackageID, "{PackageID}", false);
|
|
566
|
-
const query = (0, smithy_client_1.map)({
|
|
567
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
568
|
-
[_nT]: [, input[_NT]],
|
|
569
|
-
});
|
|
570
|
-
let body;
|
|
571
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
572
|
-
return b.build();
|
|
573
|
-
};
|
|
574
|
-
exports.se_ListDomainsForPackageCommand = se_ListDomainsForPackageCommand;
|
|
575
|
-
const se_ListInstanceTypeDetailsCommand = async (input, context) => {
|
|
576
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
577
|
-
const headers = {};
|
|
578
|
-
b.bp("/2021-01-01/opensearch/instanceTypeDetails/{EngineVersion}");
|
|
579
|
-
b.p("EngineVersion", () => input.EngineVersion, "{EngineVersion}", false);
|
|
580
|
-
const query = (0, smithy_client_1.map)({
|
|
581
|
-
[_dN]: [, input[_DN]],
|
|
582
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
583
|
-
[_nT]: [, input[_NT]],
|
|
584
|
-
[_rAZ]: [() => input.RetrieveAZs !== void 0, () => input[_RAZ].toString()],
|
|
585
|
-
[_iT]: [, input[_IT]],
|
|
586
|
-
});
|
|
587
|
-
let body;
|
|
588
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
589
|
-
return b.build();
|
|
590
|
-
};
|
|
591
|
-
exports.se_ListInstanceTypeDetailsCommand = se_ListInstanceTypeDetailsCommand;
|
|
592
|
-
const se_ListPackagesForDomainCommand = async (input, context) => {
|
|
593
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
594
|
-
const headers = {};
|
|
595
|
-
b.bp("/2021-01-01/domain/{DomainName}/packages");
|
|
596
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
597
|
-
const query = (0, smithy_client_1.map)({
|
|
598
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
599
|
-
[_nT]: [, input[_NT]],
|
|
600
|
-
});
|
|
601
|
-
let body;
|
|
602
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
603
|
-
return b.build();
|
|
604
|
-
};
|
|
605
|
-
exports.se_ListPackagesForDomainCommand = se_ListPackagesForDomainCommand;
|
|
606
|
-
const se_ListScheduledActionsCommand = async (input, context) => {
|
|
607
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
608
|
-
const headers = {};
|
|
609
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/scheduledActions");
|
|
610
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
611
|
-
const query = (0, smithy_client_1.map)({
|
|
612
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
613
|
-
[_nT]: [, input[_NT]],
|
|
614
|
-
});
|
|
615
|
-
let body;
|
|
616
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
617
|
-
return b.build();
|
|
618
|
-
};
|
|
619
|
-
exports.se_ListScheduledActionsCommand = se_ListScheduledActionsCommand;
|
|
620
|
-
const se_ListTagsCommand = async (input, context) => {
|
|
621
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
622
|
-
const headers = {};
|
|
623
|
-
b.bp("/2021-01-01/tags");
|
|
624
|
-
const query = (0, smithy_client_1.map)({
|
|
625
|
-
[_ar]: [, (0, smithy_client_1.expectNonNull)(input[_ARN], `ARN`)],
|
|
626
|
-
});
|
|
627
|
-
let body;
|
|
628
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
629
|
-
return b.build();
|
|
630
|
-
};
|
|
631
|
-
exports.se_ListTagsCommand = se_ListTagsCommand;
|
|
632
|
-
const se_ListVersionsCommand = async (input, context) => {
|
|
633
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
634
|
-
const headers = {};
|
|
635
|
-
b.bp("/2021-01-01/opensearch/versions");
|
|
636
|
-
const query = (0, smithy_client_1.map)({
|
|
637
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
638
|
-
[_nT]: [, input[_NT]],
|
|
639
|
-
});
|
|
640
|
-
let body;
|
|
641
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
642
|
-
return b.build();
|
|
643
|
-
};
|
|
644
|
-
exports.se_ListVersionsCommand = se_ListVersionsCommand;
|
|
645
|
-
const se_ListVpcEndpointAccessCommand = async (input, context) => {
|
|
646
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
647
|
-
const headers = {};
|
|
648
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/listVpcEndpointAccess");
|
|
649
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
650
|
-
const query = (0, smithy_client_1.map)({
|
|
651
|
-
[_nT]: [, input[_NT]],
|
|
652
|
-
});
|
|
653
|
-
let body;
|
|
654
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
655
|
-
return b.build();
|
|
656
|
-
};
|
|
657
|
-
exports.se_ListVpcEndpointAccessCommand = se_ListVpcEndpointAccessCommand;
|
|
658
|
-
const se_ListVpcEndpointsCommand = async (input, context) => {
|
|
659
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
660
|
-
const headers = {};
|
|
661
|
-
b.bp("/2021-01-01/opensearch/vpcEndpoints");
|
|
662
|
-
const query = (0, smithy_client_1.map)({
|
|
663
|
-
[_nT]: [, input[_NT]],
|
|
664
|
-
});
|
|
665
|
-
let body;
|
|
666
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
667
|
-
return b.build();
|
|
668
|
-
};
|
|
669
|
-
exports.se_ListVpcEndpointsCommand = se_ListVpcEndpointsCommand;
|
|
670
|
-
const se_ListVpcEndpointsForDomainCommand = async (input, context) => {
|
|
671
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
672
|
-
const headers = {};
|
|
673
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/vpcEndpoints");
|
|
674
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
675
|
-
const query = (0, smithy_client_1.map)({
|
|
676
|
-
[_nT]: [, input[_NT]],
|
|
677
|
-
});
|
|
678
|
-
let body;
|
|
679
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
680
|
-
return b.build();
|
|
681
|
-
};
|
|
682
|
-
exports.se_ListVpcEndpointsForDomainCommand = se_ListVpcEndpointsForDomainCommand;
|
|
683
|
-
const se_PurchaseReservedInstanceOfferingCommand = async (input, context) => {
|
|
684
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
685
|
-
const headers = {
|
|
686
|
-
"content-type": "application/json",
|
|
687
|
-
};
|
|
688
|
-
b.bp("/2021-01-01/opensearch/purchaseReservedInstanceOffering");
|
|
689
|
-
let body;
|
|
690
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
691
|
-
InstanceCount: [],
|
|
692
|
-
ReservationName: [],
|
|
693
|
-
ReservedInstanceOfferingId: [],
|
|
694
|
-
}));
|
|
695
|
-
b.m("POST").h(headers).b(body);
|
|
696
|
-
return b.build();
|
|
697
|
-
};
|
|
698
|
-
exports.se_PurchaseReservedInstanceOfferingCommand = se_PurchaseReservedInstanceOfferingCommand;
|
|
699
|
-
const se_RejectInboundConnectionCommand = async (input, context) => {
|
|
700
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
701
|
-
const headers = {};
|
|
702
|
-
b.bp("/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/reject");
|
|
703
|
-
b.p("ConnectionId", () => input.ConnectionId, "{ConnectionId}", false);
|
|
704
|
-
let body;
|
|
705
|
-
b.m("PUT").h(headers).b(body);
|
|
706
|
-
return b.build();
|
|
707
|
-
};
|
|
708
|
-
exports.se_RejectInboundConnectionCommand = se_RejectInboundConnectionCommand;
|
|
709
|
-
const se_RemoveTagsCommand = async (input, context) => {
|
|
710
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
711
|
-
const headers = {
|
|
712
|
-
"content-type": "application/json",
|
|
713
|
-
};
|
|
714
|
-
b.bp("/2021-01-01/tags-removal");
|
|
715
|
-
let body;
|
|
716
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
717
|
-
ARN: [],
|
|
718
|
-
TagKeys: (_) => (0, smithy_client_1._json)(_),
|
|
719
|
-
}));
|
|
720
|
-
b.m("POST").h(headers).b(body);
|
|
721
|
-
return b.build();
|
|
722
|
-
};
|
|
723
|
-
exports.se_RemoveTagsCommand = se_RemoveTagsCommand;
|
|
724
|
-
const se_RevokeVpcEndpointAccessCommand = async (input, context) => {
|
|
725
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
726
|
-
const headers = {
|
|
727
|
-
"content-type": "application/json",
|
|
728
|
-
};
|
|
729
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/revokeVpcEndpointAccess");
|
|
730
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
731
|
-
let body;
|
|
732
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
733
|
-
Account: [],
|
|
734
|
-
}));
|
|
735
|
-
b.m("POST").h(headers).b(body);
|
|
736
|
-
return b.build();
|
|
737
|
-
};
|
|
738
|
-
exports.se_RevokeVpcEndpointAccessCommand = se_RevokeVpcEndpointAccessCommand;
|
|
739
|
-
const se_StartDomainMaintenanceCommand = async (input, context) => {
|
|
740
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
741
|
-
const headers = {
|
|
742
|
-
"content-type": "application/json",
|
|
743
|
-
};
|
|
744
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/domainMaintenance");
|
|
745
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
746
|
-
let body;
|
|
747
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
748
|
-
Action: [],
|
|
749
|
-
NodeId: [],
|
|
750
|
-
}));
|
|
751
|
-
b.m("POST").h(headers).b(body);
|
|
752
|
-
return b.build();
|
|
753
|
-
};
|
|
754
|
-
exports.se_StartDomainMaintenanceCommand = se_StartDomainMaintenanceCommand;
|
|
755
|
-
const se_StartServiceSoftwareUpdateCommand = async (input, context) => {
|
|
756
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
757
|
-
const headers = {
|
|
758
|
-
"content-type": "application/json",
|
|
759
|
-
};
|
|
760
|
-
b.bp("/2021-01-01/opensearch/serviceSoftwareUpdate/start");
|
|
761
|
-
let body;
|
|
762
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
763
|
-
DesiredStartTime: [],
|
|
764
|
-
DomainName: [],
|
|
765
|
-
ScheduleAt: [],
|
|
766
|
-
}));
|
|
767
|
-
b.m("POST").h(headers).b(body);
|
|
768
|
-
return b.build();
|
|
769
|
-
};
|
|
770
|
-
exports.se_StartServiceSoftwareUpdateCommand = se_StartServiceSoftwareUpdateCommand;
|
|
771
|
-
const se_UpdateDataSourceCommand = async (input, context) => {
|
|
772
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
773
|
-
const headers = {
|
|
774
|
-
"content-type": "application/json",
|
|
775
|
-
};
|
|
776
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/dataSource/{Name}");
|
|
777
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
778
|
-
b.p("Name", () => input.Name, "{Name}", false);
|
|
779
|
-
let body;
|
|
780
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
781
|
-
DataSourceType: (_) => (0, smithy_client_1._json)(_),
|
|
782
|
-
Description: [],
|
|
783
|
-
}));
|
|
784
|
-
b.m("PUT").h(headers).b(body);
|
|
785
|
-
return b.build();
|
|
786
|
-
};
|
|
787
|
-
exports.se_UpdateDataSourceCommand = se_UpdateDataSourceCommand;
|
|
788
|
-
const se_UpdateDomainConfigCommand = async (input, context) => {
|
|
789
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
790
|
-
const headers = {
|
|
791
|
-
"content-type": "application/json",
|
|
792
|
-
};
|
|
793
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/config");
|
|
794
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
795
|
-
let body;
|
|
796
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
797
|
-
AccessPolicies: [],
|
|
798
|
-
AdvancedOptions: (_) => (0, smithy_client_1._json)(_),
|
|
799
|
-
AdvancedSecurityOptions: (_) => (0, smithy_client_1._json)(_),
|
|
800
|
-
AutoTuneOptions: (_) => se_AutoTuneOptions(_, context),
|
|
801
|
-
ClusterConfig: (_) => (0, smithy_client_1._json)(_),
|
|
802
|
-
CognitoOptions: (_) => (0, smithy_client_1._json)(_),
|
|
803
|
-
DomainEndpointOptions: (_) => (0, smithy_client_1._json)(_),
|
|
804
|
-
DryRun: [],
|
|
805
|
-
DryRunMode: [],
|
|
806
|
-
EBSOptions: (_) => (0, smithy_client_1._json)(_),
|
|
807
|
-
EncryptionAtRestOptions: (_) => (0, smithy_client_1._json)(_),
|
|
808
|
-
IPAddressType: [],
|
|
809
|
-
LogPublishingOptions: (_) => (0, smithy_client_1._json)(_),
|
|
810
|
-
NodeToNodeEncryptionOptions: (_) => (0, smithy_client_1._json)(_),
|
|
811
|
-
OffPeakWindowOptions: (_) => (0, smithy_client_1._json)(_),
|
|
812
|
-
SnapshotOptions: (_) => (0, smithy_client_1._json)(_),
|
|
813
|
-
SoftwareUpdateOptions: (_) => (0, smithy_client_1._json)(_),
|
|
814
|
-
VPCOptions: (_) => (0, smithy_client_1._json)(_),
|
|
815
|
-
}));
|
|
816
|
-
b.m("POST").h(headers).b(body);
|
|
817
|
-
return b.build();
|
|
818
|
-
};
|
|
819
|
-
exports.se_UpdateDomainConfigCommand = se_UpdateDomainConfigCommand;
|
|
820
|
-
const se_UpdatePackageCommand = async (input, context) => {
|
|
821
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
822
|
-
const headers = {
|
|
823
|
-
"content-type": "application/json",
|
|
824
|
-
};
|
|
825
|
-
b.bp("/2021-01-01/packages/update");
|
|
826
|
-
let body;
|
|
827
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
828
|
-
CommitMessage: [],
|
|
829
|
-
PackageDescription: [],
|
|
830
|
-
PackageID: [],
|
|
831
|
-
PackageSource: (_) => (0, smithy_client_1._json)(_),
|
|
832
|
-
}));
|
|
833
|
-
b.m("POST").h(headers).b(body);
|
|
834
|
-
return b.build();
|
|
835
|
-
};
|
|
836
|
-
exports.se_UpdatePackageCommand = se_UpdatePackageCommand;
|
|
837
|
-
const se_UpdateScheduledActionCommand = async (input, context) => {
|
|
838
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
839
|
-
const headers = {
|
|
840
|
-
"content-type": "application/json",
|
|
841
|
-
};
|
|
842
|
-
b.bp("/2021-01-01/opensearch/domain/{DomainName}/scheduledAction/update");
|
|
843
|
-
b.p("DomainName", () => input.DomainName, "{DomainName}", false);
|
|
844
|
-
let body;
|
|
845
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
846
|
-
ActionID: [],
|
|
847
|
-
ActionType: [],
|
|
848
|
-
DesiredStartTime: [],
|
|
849
|
-
ScheduleAt: [],
|
|
850
|
-
}));
|
|
851
|
-
b.m("PUT").h(headers).b(body);
|
|
852
|
-
return b.build();
|
|
853
|
-
};
|
|
854
|
-
exports.se_UpdateScheduledActionCommand = se_UpdateScheduledActionCommand;
|
|
855
|
-
const se_UpdateVpcEndpointCommand = async (input, context) => {
|
|
856
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
857
|
-
const headers = {
|
|
858
|
-
"content-type": "application/json",
|
|
859
|
-
};
|
|
860
|
-
b.bp("/2021-01-01/opensearch/vpcEndpoints/update");
|
|
861
|
-
let body;
|
|
862
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
863
|
-
VpcEndpointId: [],
|
|
864
|
-
VpcOptions: (_) => (0, smithy_client_1._json)(_),
|
|
865
|
-
}));
|
|
866
|
-
b.m("POST").h(headers).b(body);
|
|
867
|
-
return b.build();
|
|
868
|
-
};
|
|
869
|
-
exports.se_UpdateVpcEndpointCommand = se_UpdateVpcEndpointCommand;
|
|
870
|
-
const se_UpgradeDomainCommand = async (input, context) => {
|
|
871
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
872
|
-
const headers = {
|
|
873
|
-
"content-type": "application/json",
|
|
874
|
-
};
|
|
875
|
-
b.bp("/2021-01-01/opensearch/upgradeDomain");
|
|
876
|
-
let body;
|
|
877
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
878
|
-
AdvancedOptions: (_) => (0, smithy_client_1._json)(_),
|
|
879
|
-
DomainName: [],
|
|
880
|
-
PerformCheckOnly: [],
|
|
881
|
-
TargetVersion: [],
|
|
882
|
-
}));
|
|
883
|
-
b.m("POST").h(headers).b(body);
|
|
884
|
-
return b.build();
|
|
885
|
-
};
|
|
886
|
-
exports.se_UpgradeDomainCommand = se_UpgradeDomainCommand;
|
|
887
|
-
const de_AcceptInboundConnectionCommand = async (output, context) => {
|
|
888
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
889
|
-
return de_AcceptInboundConnectionCommandError(output, context);
|
|
890
|
-
}
|
|
891
|
-
const contents = (0, smithy_client_1.map)({
|
|
892
|
-
$metadata: deserializeMetadata(output),
|
|
893
|
-
});
|
|
894
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
895
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
896
|
-
Connection: smithy_client_1._json,
|
|
897
|
-
});
|
|
898
|
-
Object.assign(contents, doc);
|
|
899
|
-
return contents;
|
|
900
|
-
};
|
|
901
|
-
exports.de_AcceptInboundConnectionCommand = de_AcceptInboundConnectionCommand;
|
|
902
|
-
const de_AcceptInboundConnectionCommandError = async (output, context) => {
|
|
903
|
-
const parsedOutput = {
|
|
904
|
-
...output,
|
|
905
|
-
body: await parseErrorBody(output.body, context),
|
|
906
|
-
};
|
|
907
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
908
|
-
switch (errorCode) {
|
|
909
|
-
case "DisabledOperationException":
|
|
910
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
911
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
912
|
-
case "LimitExceededException":
|
|
913
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
914
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
915
|
-
case "ResourceNotFoundException":
|
|
916
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
917
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
918
|
-
default:
|
|
919
|
-
const parsedBody = parsedOutput.body;
|
|
920
|
-
return throwDefaultError({
|
|
921
|
-
output,
|
|
922
|
-
parsedBody,
|
|
923
|
-
errorCode,
|
|
924
|
-
});
|
|
925
|
-
}
|
|
926
|
-
};
|
|
927
|
-
const de_AddDataSourceCommand = async (output, context) => {
|
|
928
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
929
|
-
return de_AddDataSourceCommandError(output, context);
|
|
930
|
-
}
|
|
931
|
-
const contents = (0, smithy_client_1.map)({
|
|
932
|
-
$metadata: deserializeMetadata(output),
|
|
933
|
-
});
|
|
934
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
935
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
936
|
-
Message: smithy_client_1.expectString,
|
|
937
|
-
});
|
|
938
|
-
Object.assign(contents, doc);
|
|
939
|
-
return contents;
|
|
940
|
-
};
|
|
941
|
-
exports.de_AddDataSourceCommand = de_AddDataSourceCommand;
|
|
942
|
-
const de_AddDataSourceCommandError = async (output, context) => {
|
|
943
|
-
const parsedOutput = {
|
|
944
|
-
...output,
|
|
945
|
-
body: await parseErrorBody(output.body, context),
|
|
946
|
-
};
|
|
947
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
948
|
-
switch (errorCode) {
|
|
949
|
-
case "BaseException":
|
|
950
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
951
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
952
|
-
case "DependencyFailureException":
|
|
953
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
954
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
955
|
-
case "DisabledOperationException":
|
|
956
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
957
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
958
|
-
case "InternalException":
|
|
959
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
960
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
961
|
-
case "LimitExceededException":
|
|
962
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
963
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
964
|
-
case "ResourceNotFoundException":
|
|
965
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
966
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ValidationException":
|
|
968
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
969
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
970
|
-
default:
|
|
971
|
-
const parsedBody = parsedOutput.body;
|
|
972
|
-
return throwDefaultError({
|
|
973
|
-
output,
|
|
974
|
-
parsedBody,
|
|
975
|
-
errorCode,
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
|
-
const de_AddTagsCommand = async (output, context) => {
|
|
980
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
981
|
-
return de_AddTagsCommandError(output, context);
|
|
982
|
-
}
|
|
983
|
-
const contents = (0, smithy_client_1.map)({
|
|
984
|
-
$metadata: deserializeMetadata(output),
|
|
985
|
-
});
|
|
986
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
987
|
-
return contents;
|
|
988
|
-
};
|
|
989
|
-
exports.de_AddTagsCommand = de_AddTagsCommand;
|
|
990
|
-
const de_AddTagsCommandError = async (output, context) => {
|
|
991
|
-
const parsedOutput = {
|
|
992
|
-
...output,
|
|
993
|
-
body: await parseErrorBody(output.body, context),
|
|
994
|
-
};
|
|
995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
996
|
-
switch (errorCode) {
|
|
997
|
-
case "BaseException":
|
|
998
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
999
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1000
|
-
case "InternalException":
|
|
1001
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1002
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1003
|
-
case "LimitExceededException":
|
|
1004
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1005
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1006
|
-
case "ValidationException":
|
|
1007
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1008
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1009
|
-
default:
|
|
1010
|
-
const parsedBody = parsedOutput.body;
|
|
1011
|
-
return throwDefaultError({
|
|
1012
|
-
output,
|
|
1013
|
-
parsedBody,
|
|
1014
|
-
errorCode,
|
|
1015
|
-
});
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
const de_AssociatePackageCommand = async (output, context) => {
|
|
1019
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1020
|
-
return de_AssociatePackageCommandError(output, context);
|
|
1021
|
-
}
|
|
1022
|
-
const contents = (0, smithy_client_1.map)({
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
});
|
|
1025
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1026
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1027
|
-
DomainPackageDetails: (_) => de_DomainPackageDetails(_, context),
|
|
1028
|
-
});
|
|
1029
|
-
Object.assign(contents, doc);
|
|
1030
|
-
return contents;
|
|
1031
|
-
};
|
|
1032
|
-
exports.de_AssociatePackageCommand = de_AssociatePackageCommand;
|
|
1033
|
-
const de_AssociatePackageCommandError = async (output, context) => {
|
|
1034
|
-
const parsedOutput = {
|
|
1035
|
-
...output,
|
|
1036
|
-
body: await parseErrorBody(output.body, context),
|
|
1037
|
-
};
|
|
1038
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
-
switch (errorCode) {
|
|
1040
|
-
case "AccessDeniedException":
|
|
1041
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
1042
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1043
|
-
case "BaseException":
|
|
1044
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1045
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1046
|
-
case "ConflictException":
|
|
1047
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
1048
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1049
|
-
case "InternalException":
|
|
1050
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1051
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1052
|
-
case "ResourceNotFoundException":
|
|
1053
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1054
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1055
|
-
case "ValidationException":
|
|
1056
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1057
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1058
|
-
default:
|
|
1059
|
-
const parsedBody = parsedOutput.body;
|
|
1060
|
-
return throwDefaultError({
|
|
1061
|
-
output,
|
|
1062
|
-
parsedBody,
|
|
1063
|
-
errorCode,
|
|
1064
|
-
});
|
|
1065
|
-
}
|
|
1066
|
-
};
|
|
1067
|
-
const de_AuthorizeVpcEndpointAccessCommand = async (output, context) => {
|
|
1068
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1069
|
-
return de_AuthorizeVpcEndpointAccessCommandError(output, context);
|
|
1070
|
-
}
|
|
1071
|
-
const contents = (0, smithy_client_1.map)({
|
|
1072
|
-
$metadata: deserializeMetadata(output),
|
|
1073
|
-
});
|
|
1074
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1075
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1076
|
-
AuthorizedPrincipal: smithy_client_1._json,
|
|
1077
|
-
});
|
|
1078
|
-
Object.assign(contents, doc);
|
|
1079
|
-
return contents;
|
|
1080
|
-
};
|
|
1081
|
-
exports.de_AuthorizeVpcEndpointAccessCommand = de_AuthorizeVpcEndpointAccessCommand;
|
|
1082
|
-
const de_AuthorizeVpcEndpointAccessCommandError = async (output, context) => {
|
|
1083
|
-
const parsedOutput = {
|
|
1084
|
-
...output,
|
|
1085
|
-
body: await parseErrorBody(output.body, context),
|
|
1086
|
-
};
|
|
1087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1088
|
-
switch (errorCode) {
|
|
1089
|
-
case "BaseException":
|
|
1090
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1091
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1092
|
-
case "DisabledOperationException":
|
|
1093
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1094
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1095
|
-
case "InternalException":
|
|
1096
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1097
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1098
|
-
case "LimitExceededException":
|
|
1099
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1100
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1101
|
-
case "ResourceNotFoundException":
|
|
1102
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1103
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1104
|
-
case "ValidationException":
|
|
1105
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1107
|
-
default:
|
|
1108
|
-
const parsedBody = parsedOutput.body;
|
|
1109
|
-
return throwDefaultError({
|
|
1110
|
-
output,
|
|
1111
|
-
parsedBody,
|
|
1112
|
-
errorCode,
|
|
1113
|
-
});
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
const de_CancelServiceSoftwareUpdateCommand = async (output, context) => {
|
|
1117
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1118
|
-
return de_CancelServiceSoftwareUpdateCommandError(output, context);
|
|
1119
|
-
}
|
|
1120
|
-
const contents = (0, smithy_client_1.map)({
|
|
1121
|
-
$metadata: deserializeMetadata(output),
|
|
1122
|
-
});
|
|
1123
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1124
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1125
|
-
ServiceSoftwareOptions: (_) => de_ServiceSoftwareOptions(_, context),
|
|
1126
|
-
});
|
|
1127
|
-
Object.assign(contents, doc);
|
|
1128
|
-
return contents;
|
|
1129
|
-
};
|
|
1130
|
-
exports.de_CancelServiceSoftwareUpdateCommand = de_CancelServiceSoftwareUpdateCommand;
|
|
1131
|
-
const de_CancelServiceSoftwareUpdateCommandError = async (output, context) => {
|
|
1132
|
-
const parsedOutput = {
|
|
1133
|
-
...output,
|
|
1134
|
-
body: await parseErrorBody(output.body, context),
|
|
1135
|
-
};
|
|
1136
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1137
|
-
switch (errorCode) {
|
|
1138
|
-
case "BaseException":
|
|
1139
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1140
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1141
|
-
case "InternalException":
|
|
1142
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1143
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1144
|
-
case "ResourceNotFoundException":
|
|
1145
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1146
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1147
|
-
case "ValidationException":
|
|
1148
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1149
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1150
|
-
default:
|
|
1151
|
-
const parsedBody = parsedOutput.body;
|
|
1152
|
-
return throwDefaultError({
|
|
1153
|
-
output,
|
|
1154
|
-
parsedBody,
|
|
1155
|
-
errorCode,
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
1158
|
-
};
|
|
1159
|
-
const de_CreateDomainCommand = async (output, context) => {
|
|
1160
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1161
|
-
return de_CreateDomainCommandError(output, context);
|
|
1162
|
-
}
|
|
1163
|
-
const contents = (0, smithy_client_1.map)({
|
|
1164
|
-
$metadata: deserializeMetadata(output),
|
|
1165
|
-
});
|
|
1166
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1167
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1168
|
-
DomainStatus: (_) => de_DomainStatus(_, context),
|
|
1169
|
-
});
|
|
1170
|
-
Object.assign(contents, doc);
|
|
1171
|
-
return contents;
|
|
1172
|
-
};
|
|
1173
|
-
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
1174
|
-
const de_CreateDomainCommandError = async (output, context) => {
|
|
1175
|
-
const parsedOutput = {
|
|
1176
|
-
...output,
|
|
1177
|
-
body: await parseErrorBody(output.body, context),
|
|
1178
|
-
};
|
|
1179
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1180
|
-
switch (errorCode) {
|
|
1181
|
-
case "BaseException":
|
|
1182
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1183
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "DisabledOperationException":
|
|
1185
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1186
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "InternalException":
|
|
1188
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1189
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "InvalidTypeException":
|
|
1191
|
-
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
1192
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "LimitExceededException":
|
|
1194
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1195
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ResourceAlreadyExistsException":
|
|
1197
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
1198
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1199
|
-
case "ValidationException":
|
|
1200
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1201
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1202
|
-
default:
|
|
1203
|
-
const parsedBody = parsedOutput.body;
|
|
1204
|
-
return throwDefaultError({
|
|
1205
|
-
output,
|
|
1206
|
-
parsedBody,
|
|
1207
|
-
errorCode,
|
|
1208
|
-
});
|
|
1209
|
-
}
|
|
1210
|
-
};
|
|
1211
|
-
const de_CreateOutboundConnectionCommand = async (output, context) => {
|
|
1212
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1213
|
-
return de_CreateOutboundConnectionCommandError(output, context);
|
|
1214
|
-
}
|
|
1215
|
-
const contents = (0, smithy_client_1.map)({
|
|
1216
|
-
$metadata: deserializeMetadata(output),
|
|
1217
|
-
});
|
|
1218
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1219
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1220
|
-
ConnectionAlias: smithy_client_1.expectString,
|
|
1221
|
-
ConnectionId: smithy_client_1.expectString,
|
|
1222
|
-
ConnectionMode: smithy_client_1.expectString,
|
|
1223
|
-
ConnectionProperties: smithy_client_1._json,
|
|
1224
|
-
ConnectionStatus: smithy_client_1._json,
|
|
1225
|
-
LocalDomainInfo: smithy_client_1._json,
|
|
1226
|
-
RemoteDomainInfo: smithy_client_1._json,
|
|
1227
|
-
});
|
|
1228
|
-
Object.assign(contents, doc);
|
|
1229
|
-
return contents;
|
|
1230
|
-
};
|
|
1231
|
-
exports.de_CreateOutboundConnectionCommand = de_CreateOutboundConnectionCommand;
|
|
1232
|
-
const de_CreateOutboundConnectionCommandError = async (output, context) => {
|
|
1233
|
-
const parsedOutput = {
|
|
1234
|
-
...output,
|
|
1235
|
-
body: await parseErrorBody(output.body, context),
|
|
1236
|
-
};
|
|
1237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1238
|
-
switch (errorCode) {
|
|
1239
|
-
case "DisabledOperationException":
|
|
1240
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1241
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1242
|
-
case "InternalException":
|
|
1243
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1244
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1245
|
-
case "LimitExceededException":
|
|
1246
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1247
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1248
|
-
case "ResourceAlreadyExistsException":
|
|
1249
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
1250
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1251
|
-
default:
|
|
1252
|
-
const parsedBody = parsedOutput.body;
|
|
1253
|
-
return throwDefaultError({
|
|
1254
|
-
output,
|
|
1255
|
-
parsedBody,
|
|
1256
|
-
errorCode,
|
|
1257
|
-
});
|
|
1258
|
-
}
|
|
1259
|
-
};
|
|
1260
|
-
const de_CreatePackageCommand = async (output, context) => {
|
|
1261
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1262
|
-
return de_CreatePackageCommandError(output, context);
|
|
1263
|
-
}
|
|
1264
|
-
const contents = (0, smithy_client_1.map)({
|
|
1265
|
-
$metadata: deserializeMetadata(output),
|
|
1266
|
-
});
|
|
1267
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1268
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1269
|
-
PackageDetails: (_) => de_PackageDetails(_, context),
|
|
1270
|
-
});
|
|
1271
|
-
Object.assign(contents, doc);
|
|
1272
|
-
return contents;
|
|
1273
|
-
};
|
|
1274
|
-
exports.de_CreatePackageCommand = de_CreatePackageCommand;
|
|
1275
|
-
const de_CreatePackageCommandError = async (output, context) => {
|
|
1276
|
-
const parsedOutput = {
|
|
1277
|
-
...output,
|
|
1278
|
-
body: await parseErrorBody(output.body, context),
|
|
1279
|
-
};
|
|
1280
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1281
|
-
switch (errorCode) {
|
|
1282
|
-
case "AccessDeniedException":
|
|
1283
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
1284
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1285
|
-
case "BaseException":
|
|
1286
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1287
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1288
|
-
case "InternalException":
|
|
1289
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1290
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1291
|
-
case "InvalidTypeException":
|
|
1292
|
-
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
1293
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
1294
|
-
case "LimitExceededException":
|
|
1295
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1296
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1297
|
-
case "ResourceAlreadyExistsException":
|
|
1298
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
1299
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
1300
|
-
case "ValidationException":
|
|
1301
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1302
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1303
|
-
default:
|
|
1304
|
-
const parsedBody = parsedOutput.body;
|
|
1305
|
-
return throwDefaultError({
|
|
1306
|
-
output,
|
|
1307
|
-
parsedBody,
|
|
1308
|
-
errorCode,
|
|
1309
|
-
});
|
|
1310
|
-
}
|
|
1311
|
-
};
|
|
1312
|
-
const de_CreateVpcEndpointCommand = async (output, context) => {
|
|
1313
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1314
|
-
return de_CreateVpcEndpointCommandError(output, context);
|
|
1315
|
-
}
|
|
1316
|
-
const contents = (0, smithy_client_1.map)({
|
|
1317
|
-
$metadata: deserializeMetadata(output),
|
|
1318
|
-
});
|
|
1319
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1320
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1321
|
-
VpcEndpoint: smithy_client_1._json,
|
|
1322
|
-
});
|
|
1323
|
-
Object.assign(contents, doc);
|
|
1324
|
-
return contents;
|
|
1325
|
-
};
|
|
1326
|
-
exports.de_CreateVpcEndpointCommand = de_CreateVpcEndpointCommand;
|
|
1327
|
-
const de_CreateVpcEndpointCommandError = async (output, context) => {
|
|
1328
|
-
const parsedOutput = {
|
|
1329
|
-
...output,
|
|
1330
|
-
body: await parseErrorBody(output.body, context),
|
|
1331
|
-
};
|
|
1332
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
-
switch (errorCode) {
|
|
1334
|
-
case "BaseException":
|
|
1335
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1336
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1337
|
-
case "ConflictException":
|
|
1338
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
1339
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1340
|
-
case "DisabledOperationException":
|
|
1341
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1342
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1343
|
-
case "InternalException":
|
|
1344
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1345
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "LimitExceededException":
|
|
1347
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
1348
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ValidationException":
|
|
1350
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1351
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1352
|
-
default:
|
|
1353
|
-
const parsedBody = parsedOutput.body;
|
|
1354
|
-
return throwDefaultError({
|
|
1355
|
-
output,
|
|
1356
|
-
parsedBody,
|
|
1357
|
-
errorCode,
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
};
|
|
1361
|
-
const de_DeleteDataSourceCommand = async (output, context) => {
|
|
1362
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1363
|
-
return de_DeleteDataSourceCommandError(output, context);
|
|
1364
|
-
}
|
|
1365
|
-
const contents = (0, smithy_client_1.map)({
|
|
1366
|
-
$metadata: deserializeMetadata(output),
|
|
1367
|
-
});
|
|
1368
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1369
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1370
|
-
Message: smithy_client_1.expectString,
|
|
1371
|
-
});
|
|
1372
|
-
Object.assign(contents, doc);
|
|
1373
|
-
return contents;
|
|
1374
|
-
};
|
|
1375
|
-
exports.de_DeleteDataSourceCommand = de_DeleteDataSourceCommand;
|
|
1376
|
-
const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
1377
|
-
const parsedOutput = {
|
|
1378
|
-
...output,
|
|
1379
|
-
body: await parseErrorBody(output.body, context),
|
|
1380
|
-
};
|
|
1381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
-
switch (errorCode) {
|
|
1383
|
-
case "BaseException":
|
|
1384
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1385
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "DependencyFailureException":
|
|
1387
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
1388
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "DisabledOperationException":
|
|
1390
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1391
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "InternalException":
|
|
1393
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1394
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1395
|
-
case "ResourceNotFoundException":
|
|
1396
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1397
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1398
|
-
case "ValidationException":
|
|
1399
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1400
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1401
|
-
default:
|
|
1402
|
-
const parsedBody = parsedOutput.body;
|
|
1403
|
-
return throwDefaultError({
|
|
1404
|
-
output,
|
|
1405
|
-
parsedBody,
|
|
1406
|
-
errorCode,
|
|
1407
|
-
});
|
|
1408
|
-
}
|
|
1409
|
-
};
|
|
1410
|
-
const de_DeleteDomainCommand = async (output, context) => {
|
|
1411
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1412
|
-
return de_DeleteDomainCommandError(output, context);
|
|
1413
|
-
}
|
|
1414
|
-
const contents = (0, smithy_client_1.map)({
|
|
1415
|
-
$metadata: deserializeMetadata(output),
|
|
1416
|
-
});
|
|
1417
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1418
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1419
|
-
DomainStatus: (_) => de_DomainStatus(_, context),
|
|
1420
|
-
});
|
|
1421
|
-
Object.assign(contents, doc);
|
|
1422
|
-
return contents;
|
|
1423
|
-
};
|
|
1424
|
-
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
1425
|
-
const de_DeleteDomainCommandError = async (output, context) => {
|
|
1426
|
-
const parsedOutput = {
|
|
1427
|
-
...output,
|
|
1428
|
-
body: await parseErrorBody(output.body, context),
|
|
1429
|
-
};
|
|
1430
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1431
|
-
switch (errorCode) {
|
|
1432
|
-
case "BaseException":
|
|
1433
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1434
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1435
|
-
case "InternalException":
|
|
1436
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1437
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1438
|
-
case "ResourceNotFoundException":
|
|
1439
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1440
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1441
|
-
case "ValidationException":
|
|
1442
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1443
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1444
|
-
default:
|
|
1445
|
-
const parsedBody = parsedOutput.body;
|
|
1446
|
-
return throwDefaultError({
|
|
1447
|
-
output,
|
|
1448
|
-
parsedBody,
|
|
1449
|
-
errorCode,
|
|
1450
|
-
});
|
|
1451
|
-
}
|
|
1452
|
-
};
|
|
1453
|
-
const de_DeleteInboundConnectionCommand = async (output, context) => {
|
|
1454
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1455
|
-
return de_DeleteInboundConnectionCommandError(output, context);
|
|
1456
|
-
}
|
|
1457
|
-
const contents = (0, smithy_client_1.map)({
|
|
1458
|
-
$metadata: deserializeMetadata(output),
|
|
1459
|
-
});
|
|
1460
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1461
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1462
|
-
Connection: smithy_client_1._json,
|
|
1463
|
-
});
|
|
1464
|
-
Object.assign(contents, doc);
|
|
1465
|
-
return contents;
|
|
1466
|
-
};
|
|
1467
|
-
exports.de_DeleteInboundConnectionCommand = de_DeleteInboundConnectionCommand;
|
|
1468
|
-
const de_DeleteInboundConnectionCommandError = async (output, context) => {
|
|
1469
|
-
const parsedOutput = {
|
|
1470
|
-
...output,
|
|
1471
|
-
body: await parseErrorBody(output.body, context),
|
|
1472
|
-
};
|
|
1473
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1474
|
-
switch (errorCode) {
|
|
1475
|
-
case "DisabledOperationException":
|
|
1476
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1477
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1478
|
-
case "ResourceNotFoundException":
|
|
1479
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1480
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1481
|
-
default:
|
|
1482
|
-
const parsedBody = parsedOutput.body;
|
|
1483
|
-
return throwDefaultError({
|
|
1484
|
-
output,
|
|
1485
|
-
parsedBody,
|
|
1486
|
-
errorCode,
|
|
1487
|
-
});
|
|
1488
|
-
}
|
|
1489
|
-
};
|
|
1490
|
-
const de_DeleteOutboundConnectionCommand = async (output, context) => {
|
|
1491
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1492
|
-
return de_DeleteOutboundConnectionCommandError(output, context);
|
|
1493
|
-
}
|
|
1494
|
-
const contents = (0, smithy_client_1.map)({
|
|
1495
|
-
$metadata: deserializeMetadata(output),
|
|
1496
|
-
});
|
|
1497
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1498
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1499
|
-
Connection: smithy_client_1._json,
|
|
1500
|
-
});
|
|
1501
|
-
Object.assign(contents, doc);
|
|
1502
|
-
return contents;
|
|
1503
|
-
};
|
|
1504
|
-
exports.de_DeleteOutboundConnectionCommand = de_DeleteOutboundConnectionCommand;
|
|
1505
|
-
const de_DeleteOutboundConnectionCommandError = async (output, context) => {
|
|
1506
|
-
const parsedOutput = {
|
|
1507
|
-
...output,
|
|
1508
|
-
body: await parseErrorBody(output.body, context),
|
|
1509
|
-
};
|
|
1510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1511
|
-
switch (errorCode) {
|
|
1512
|
-
case "DisabledOperationException":
|
|
1513
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1514
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ResourceNotFoundException":
|
|
1516
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1517
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode,
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
|
-
const de_DeletePackageCommand = async (output, context) => {
|
|
1528
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1529
|
-
return de_DeletePackageCommandError(output, context);
|
|
1530
|
-
}
|
|
1531
|
-
const contents = (0, smithy_client_1.map)({
|
|
1532
|
-
$metadata: deserializeMetadata(output),
|
|
1533
|
-
});
|
|
1534
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1535
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1536
|
-
PackageDetails: (_) => de_PackageDetails(_, context),
|
|
1537
|
-
});
|
|
1538
|
-
Object.assign(contents, doc);
|
|
1539
|
-
return contents;
|
|
1540
|
-
};
|
|
1541
|
-
exports.de_DeletePackageCommand = de_DeletePackageCommand;
|
|
1542
|
-
const de_DeletePackageCommandError = async (output, context) => {
|
|
1543
|
-
const parsedOutput = {
|
|
1544
|
-
...output,
|
|
1545
|
-
body: await parseErrorBody(output.body, context),
|
|
1546
|
-
};
|
|
1547
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1548
|
-
switch (errorCode) {
|
|
1549
|
-
case "AccessDeniedException":
|
|
1550
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
1551
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1552
|
-
case "BaseException":
|
|
1553
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1554
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1555
|
-
case "ConflictException":
|
|
1556
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
1557
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1558
|
-
case "InternalException":
|
|
1559
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1560
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1561
|
-
case "ResourceNotFoundException":
|
|
1562
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1563
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1564
|
-
case "ValidationException":
|
|
1565
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1566
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1567
|
-
default:
|
|
1568
|
-
const parsedBody = parsedOutput.body;
|
|
1569
|
-
return throwDefaultError({
|
|
1570
|
-
output,
|
|
1571
|
-
parsedBody,
|
|
1572
|
-
errorCode,
|
|
1573
|
-
});
|
|
1574
|
-
}
|
|
1575
|
-
};
|
|
1576
|
-
const de_DeleteVpcEndpointCommand = async (output, context) => {
|
|
1577
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1578
|
-
return de_DeleteVpcEndpointCommandError(output, context);
|
|
1579
|
-
}
|
|
1580
|
-
const contents = (0, smithy_client_1.map)({
|
|
1581
|
-
$metadata: deserializeMetadata(output),
|
|
1582
|
-
});
|
|
1583
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1584
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1585
|
-
VpcEndpointSummary: smithy_client_1._json,
|
|
1586
|
-
});
|
|
1587
|
-
Object.assign(contents, doc);
|
|
1588
|
-
return contents;
|
|
1589
|
-
};
|
|
1590
|
-
exports.de_DeleteVpcEndpointCommand = de_DeleteVpcEndpointCommand;
|
|
1591
|
-
const de_DeleteVpcEndpointCommandError = async (output, context) => {
|
|
1592
|
-
const parsedOutput = {
|
|
1593
|
-
...output,
|
|
1594
|
-
body: await parseErrorBody(output.body, context),
|
|
1595
|
-
};
|
|
1596
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1597
|
-
switch (errorCode) {
|
|
1598
|
-
case "BaseException":
|
|
1599
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1600
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1601
|
-
case "DisabledOperationException":
|
|
1602
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1603
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1604
|
-
case "InternalException":
|
|
1605
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1606
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1607
|
-
case "ResourceNotFoundException":
|
|
1608
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1609
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1610
|
-
default:
|
|
1611
|
-
const parsedBody = parsedOutput.body;
|
|
1612
|
-
return throwDefaultError({
|
|
1613
|
-
output,
|
|
1614
|
-
parsedBody,
|
|
1615
|
-
errorCode,
|
|
1616
|
-
});
|
|
1617
|
-
}
|
|
1618
|
-
};
|
|
1619
|
-
const de_DescribeDomainCommand = async (output, context) => {
|
|
1620
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1621
|
-
return de_DescribeDomainCommandError(output, context);
|
|
1622
|
-
}
|
|
1623
|
-
const contents = (0, smithy_client_1.map)({
|
|
1624
|
-
$metadata: deserializeMetadata(output),
|
|
1625
|
-
});
|
|
1626
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1627
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1628
|
-
DomainStatus: (_) => de_DomainStatus(_, context),
|
|
1629
|
-
});
|
|
1630
|
-
Object.assign(contents, doc);
|
|
1631
|
-
return contents;
|
|
1632
|
-
};
|
|
1633
|
-
exports.de_DescribeDomainCommand = de_DescribeDomainCommand;
|
|
1634
|
-
const de_DescribeDomainCommandError = async (output, context) => {
|
|
1635
|
-
const parsedOutput = {
|
|
1636
|
-
...output,
|
|
1637
|
-
body: await parseErrorBody(output.body, context),
|
|
1638
|
-
};
|
|
1639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
-
switch (errorCode) {
|
|
1641
|
-
case "BaseException":
|
|
1642
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1643
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1644
|
-
case "InternalException":
|
|
1645
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1646
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1647
|
-
case "ResourceNotFoundException":
|
|
1648
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1649
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1650
|
-
case "ValidationException":
|
|
1651
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1652
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1653
|
-
default:
|
|
1654
|
-
const parsedBody = parsedOutput.body;
|
|
1655
|
-
return throwDefaultError({
|
|
1656
|
-
output,
|
|
1657
|
-
parsedBody,
|
|
1658
|
-
errorCode,
|
|
1659
|
-
});
|
|
1660
|
-
}
|
|
1661
|
-
};
|
|
1662
|
-
const de_DescribeDomainAutoTunesCommand = async (output, context) => {
|
|
1663
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1664
|
-
return de_DescribeDomainAutoTunesCommandError(output, context);
|
|
1665
|
-
}
|
|
1666
|
-
const contents = (0, smithy_client_1.map)({
|
|
1667
|
-
$metadata: deserializeMetadata(output),
|
|
1668
|
-
});
|
|
1669
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1670
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1671
|
-
AutoTunes: (_) => de_AutoTuneList(_, context),
|
|
1672
|
-
NextToken: smithy_client_1.expectString,
|
|
1673
|
-
});
|
|
1674
|
-
Object.assign(contents, doc);
|
|
1675
|
-
return contents;
|
|
1676
|
-
};
|
|
1677
|
-
exports.de_DescribeDomainAutoTunesCommand = de_DescribeDomainAutoTunesCommand;
|
|
1678
|
-
const de_DescribeDomainAutoTunesCommandError = async (output, context) => {
|
|
1679
|
-
const parsedOutput = {
|
|
1680
|
-
...output,
|
|
1681
|
-
body: await parseErrorBody(output.body, context),
|
|
1682
|
-
};
|
|
1683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1684
|
-
switch (errorCode) {
|
|
1685
|
-
case "BaseException":
|
|
1686
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1687
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1688
|
-
case "InternalException":
|
|
1689
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1690
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1691
|
-
case "ResourceNotFoundException":
|
|
1692
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1693
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1694
|
-
case "ValidationException":
|
|
1695
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1696
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1697
|
-
default:
|
|
1698
|
-
const parsedBody = parsedOutput.body;
|
|
1699
|
-
return throwDefaultError({
|
|
1700
|
-
output,
|
|
1701
|
-
parsedBody,
|
|
1702
|
-
errorCode,
|
|
1703
|
-
});
|
|
1704
|
-
}
|
|
1705
|
-
};
|
|
1706
|
-
const de_DescribeDomainChangeProgressCommand = async (output, context) => {
|
|
1707
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1708
|
-
return de_DescribeDomainChangeProgressCommandError(output, context);
|
|
1709
|
-
}
|
|
1710
|
-
const contents = (0, smithy_client_1.map)({
|
|
1711
|
-
$metadata: deserializeMetadata(output),
|
|
1712
|
-
});
|
|
1713
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1714
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1715
|
-
ChangeProgressStatus: (_) => de_ChangeProgressStatusDetails(_, context),
|
|
1716
|
-
});
|
|
1717
|
-
Object.assign(contents, doc);
|
|
1718
|
-
return contents;
|
|
1719
|
-
};
|
|
1720
|
-
exports.de_DescribeDomainChangeProgressCommand = de_DescribeDomainChangeProgressCommand;
|
|
1721
|
-
const de_DescribeDomainChangeProgressCommandError = async (output, context) => {
|
|
1722
|
-
const parsedOutput = {
|
|
1723
|
-
...output,
|
|
1724
|
-
body: await parseErrorBody(output.body, context),
|
|
1725
|
-
};
|
|
1726
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1727
|
-
switch (errorCode) {
|
|
1728
|
-
case "BaseException":
|
|
1729
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1730
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1731
|
-
case "InternalException":
|
|
1732
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1733
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1734
|
-
case "ResourceNotFoundException":
|
|
1735
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1736
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1737
|
-
case "ValidationException":
|
|
1738
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1739
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1740
|
-
default:
|
|
1741
|
-
const parsedBody = parsedOutput.body;
|
|
1742
|
-
return throwDefaultError({
|
|
1743
|
-
output,
|
|
1744
|
-
parsedBody,
|
|
1745
|
-
errorCode,
|
|
1746
|
-
});
|
|
1747
|
-
}
|
|
1748
|
-
};
|
|
1749
|
-
const de_DescribeDomainConfigCommand = async (output, context) => {
|
|
1750
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1751
|
-
return de_DescribeDomainConfigCommandError(output, context);
|
|
1752
|
-
}
|
|
1753
|
-
const contents = (0, smithy_client_1.map)({
|
|
1754
|
-
$metadata: deserializeMetadata(output),
|
|
1755
|
-
});
|
|
1756
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1757
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1758
|
-
DomainConfig: (_) => de_DomainConfig(_, context),
|
|
1759
|
-
});
|
|
1760
|
-
Object.assign(contents, doc);
|
|
1761
|
-
return contents;
|
|
1762
|
-
};
|
|
1763
|
-
exports.de_DescribeDomainConfigCommand = de_DescribeDomainConfigCommand;
|
|
1764
|
-
const de_DescribeDomainConfigCommandError = async (output, context) => {
|
|
1765
|
-
const parsedOutput = {
|
|
1766
|
-
...output,
|
|
1767
|
-
body: await parseErrorBody(output.body, context),
|
|
1768
|
-
};
|
|
1769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1770
|
-
switch (errorCode) {
|
|
1771
|
-
case "BaseException":
|
|
1772
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1773
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "InternalException":
|
|
1775
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1776
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1777
|
-
case "ResourceNotFoundException":
|
|
1778
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1779
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1780
|
-
case "ValidationException":
|
|
1781
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1782
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1783
|
-
default:
|
|
1784
|
-
const parsedBody = parsedOutput.body;
|
|
1785
|
-
return throwDefaultError({
|
|
1786
|
-
output,
|
|
1787
|
-
parsedBody,
|
|
1788
|
-
errorCode,
|
|
1789
|
-
});
|
|
1790
|
-
}
|
|
1791
|
-
};
|
|
1792
|
-
const de_DescribeDomainHealthCommand = async (output, context) => {
|
|
1793
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1794
|
-
return de_DescribeDomainHealthCommandError(output, context);
|
|
1795
|
-
}
|
|
1796
|
-
const contents = (0, smithy_client_1.map)({
|
|
1797
|
-
$metadata: deserializeMetadata(output),
|
|
1798
|
-
});
|
|
1799
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1800
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1801
|
-
ActiveAvailabilityZoneCount: smithy_client_1.expectString,
|
|
1802
|
-
AvailabilityZoneCount: smithy_client_1.expectString,
|
|
1803
|
-
ClusterHealth: smithy_client_1.expectString,
|
|
1804
|
-
DataNodeCount: smithy_client_1.expectString,
|
|
1805
|
-
DedicatedMaster: smithy_client_1.expectBoolean,
|
|
1806
|
-
DomainState: smithy_client_1.expectString,
|
|
1807
|
-
EnvironmentInformation: smithy_client_1._json,
|
|
1808
|
-
MasterEligibleNodeCount: smithy_client_1.expectString,
|
|
1809
|
-
MasterNode: smithy_client_1.expectString,
|
|
1810
|
-
StandByAvailabilityZoneCount: smithy_client_1.expectString,
|
|
1811
|
-
TotalShards: smithy_client_1.expectString,
|
|
1812
|
-
TotalUnAssignedShards: smithy_client_1.expectString,
|
|
1813
|
-
WarmNodeCount: smithy_client_1.expectString,
|
|
1814
|
-
});
|
|
1815
|
-
Object.assign(contents, doc);
|
|
1816
|
-
return contents;
|
|
1817
|
-
};
|
|
1818
|
-
exports.de_DescribeDomainHealthCommand = de_DescribeDomainHealthCommand;
|
|
1819
|
-
const de_DescribeDomainHealthCommandError = async (output, context) => {
|
|
1820
|
-
const parsedOutput = {
|
|
1821
|
-
...output,
|
|
1822
|
-
body: await parseErrorBody(output.body, context),
|
|
1823
|
-
};
|
|
1824
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1825
|
-
switch (errorCode) {
|
|
1826
|
-
case "BaseException":
|
|
1827
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1828
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1829
|
-
case "DisabledOperationException":
|
|
1830
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1831
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1832
|
-
case "InternalException":
|
|
1833
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1834
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1835
|
-
case "ResourceNotFoundException":
|
|
1836
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1837
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1838
|
-
case "ValidationException":
|
|
1839
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1840
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1841
|
-
default:
|
|
1842
|
-
const parsedBody = parsedOutput.body;
|
|
1843
|
-
return throwDefaultError({
|
|
1844
|
-
output,
|
|
1845
|
-
parsedBody,
|
|
1846
|
-
errorCode,
|
|
1847
|
-
});
|
|
1848
|
-
}
|
|
1849
|
-
};
|
|
1850
|
-
const de_DescribeDomainNodesCommand = async (output, context) => {
|
|
1851
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1852
|
-
return de_DescribeDomainNodesCommandError(output, context);
|
|
1853
|
-
}
|
|
1854
|
-
const contents = (0, smithy_client_1.map)({
|
|
1855
|
-
$metadata: deserializeMetadata(output),
|
|
1856
|
-
});
|
|
1857
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1858
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1859
|
-
DomainNodesStatusList: smithy_client_1._json,
|
|
1860
|
-
});
|
|
1861
|
-
Object.assign(contents, doc);
|
|
1862
|
-
return contents;
|
|
1863
|
-
};
|
|
1864
|
-
exports.de_DescribeDomainNodesCommand = de_DescribeDomainNodesCommand;
|
|
1865
|
-
const de_DescribeDomainNodesCommandError = async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context),
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "BaseException":
|
|
1873
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1874
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "DependencyFailureException":
|
|
1876
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
1877
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "DisabledOperationException":
|
|
1879
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1880
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "InternalException":
|
|
1882
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1883
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1884
|
-
case "ResourceNotFoundException":
|
|
1885
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1887
|
-
case "ValidationException":
|
|
1888
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1889
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1890
|
-
default:
|
|
1891
|
-
const parsedBody = parsedOutput.body;
|
|
1892
|
-
return throwDefaultError({
|
|
1893
|
-
output,
|
|
1894
|
-
parsedBody,
|
|
1895
|
-
errorCode,
|
|
1896
|
-
});
|
|
1897
|
-
}
|
|
1898
|
-
};
|
|
1899
|
-
const de_DescribeDomainsCommand = async (output, context) => {
|
|
1900
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1901
|
-
return de_DescribeDomainsCommandError(output, context);
|
|
1902
|
-
}
|
|
1903
|
-
const contents = (0, smithy_client_1.map)({
|
|
1904
|
-
$metadata: deserializeMetadata(output),
|
|
1905
|
-
});
|
|
1906
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1907
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1908
|
-
DomainStatusList: (_) => de_DomainStatusList(_, context),
|
|
1909
|
-
});
|
|
1910
|
-
Object.assign(contents, doc);
|
|
1911
|
-
return contents;
|
|
1912
|
-
};
|
|
1913
|
-
exports.de_DescribeDomainsCommand = de_DescribeDomainsCommand;
|
|
1914
|
-
const de_DescribeDomainsCommandError = async (output, context) => {
|
|
1915
|
-
const parsedOutput = {
|
|
1916
|
-
...output,
|
|
1917
|
-
body: await parseErrorBody(output.body, context),
|
|
1918
|
-
};
|
|
1919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1920
|
-
switch (errorCode) {
|
|
1921
|
-
case "BaseException":
|
|
1922
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1923
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1924
|
-
case "InternalException":
|
|
1925
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1926
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1927
|
-
case "ValidationException":
|
|
1928
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1929
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1930
|
-
default:
|
|
1931
|
-
const parsedBody = parsedOutput.body;
|
|
1932
|
-
return throwDefaultError({
|
|
1933
|
-
output,
|
|
1934
|
-
parsedBody,
|
|
1935
|
-
errorCode,
|
|
1936
|
-
});
|
|
1937
|
-
}
|
|
1938
|
-
};
|
|
1939
|
-
const de_DescribeDryRunProgressCommand = async (output, context) => {
|
|
1940
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1941
|
-
return de_DescribeDryRunProgressCommandError(output, context);
|
|
1942
|
-
}
|
|
1943
|
-
const contents = (0, smithy_client_1.map)({
|
|
1944
|
-
$metadata: deserializeMetadata(output),
|
|
1945
|
-
});
|
|
1946
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1947
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1948
|
-
DryRunConfig: (_) => de_DomainStatus(_, context),
|
|
1949
|
-
DryRunProgressStatus: smithy_client_1._json,
|
|
1950
|
-
DryRunResults: smithy_client_1._json,
|
|
1951
|
-
});
|
|
1952
|
-
Object.assign(contents, doc);
|
|
1953
|
-
return contents;
|
|
1954
|
-
};
|
|
1955
|
-
exports.de_DescribeDryRunProgressCommand = de_DescribeDryRunProgressCommand;
|
|
1956
|
-
const de_DescribeDryRunProgressCommandError = async (output, context) => {
|
|
1957
|
-
const parsedOutput = {
|
|
1958
|
-
...output,
|
|
1959
|
-
body: await parseErrorBody(output.body, context),
|
|
1960
|
-
};
|
|
1961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1962
|
-
switch (errorCode) {
|
|
1963
|
-
case "BaseException":
|
|
1964
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
1965
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
1966
|
-
case "DisabledOperationException":
|
|
1967
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
1968
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
1969
|
-
case "InternalException":
|
|
1970
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
1971
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
1972
|
-
case "ResourceNotFoundException":
|
|
1973
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
1974
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1975
|
-
case "ValidationException":
|
|
1976
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
1977
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1978
|
-
default:
|
|
1979
|
-
const parsedBody = parsedOutput.body;
|
|
1980
|
-
return throwDefaultError({
|
|
1981
|
-
output,
|
|
1982
|
-
parsedBody,
|
|
1983
|
-
errorCode,
|
|
1984
|
-
});
|
|
1985
|
-
}
|
|
1986
|
-
};
|
|
1987
|
-
const de_DescribeInboundConnectionsCommand = async (output, context) => {
|
|
1988
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1989
|
-
return de_DescribeInboundConnectionsCommandError(output, context);
|
|
1990
|
-
}
|
|
1991
|
-
const contents = (0, smithy_client_1.map)({
|
|
1992
|
-
$metadata: deserializeMetadata(output),
|
|
1993
|
-
});
|
|
1994
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1995
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1996
|
-
Connections: smithy_client_1._json,
|
|
1997
|
-
NextToken: smithy_client_1.expectString,
|
|
1998
|
-
});
|
|
1999
|
-
Object.assign(contents, doc);
|
|
2000
|
-
return contents;
|
|
2001
|
-
};
|
|
2002
|
-
exports.de_DescribeInboundConnectionsCommand = de_DescribeInboundConnectionsCommand;
|
|
2003
|
-
const de_DescribeInboundConnectionsCommandError = async (output, context) => {
|
|
2004
|
-
const parsedOutput = {
|
|
2005
|
-
...output,
|
|
2006
|
-
body: await parseErrorBody(output.body, context),
|
|
2007
|
-
};
|
|
2008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2009
|
-
switch (errorCode) {
|
|
2010
|
-
case "DisabledOperationException":
|
|
2011
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2012
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2013
|
-
case "InvalidPaginationTokenException":
|
|
2014
|
-
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2015
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2016
|
-
default:
|
|
2017
|
-
const parsedBody = parsedOutput.body;
|
|
2018
|
-
return throwDefaultError({
|
|
2019
|
-
output,
|
|
2020
|
-
parsedBody,
|
|
2021
|
-
errorCode,
|
|
2022
|
-
});
|
|
2023
|
-
}
|
|
2024
|
-
};
|
|
2025
|
-
const de_DescribeInstanceTypeLimitsCommand = async (output, context) => {
|
|
2026
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2027
|
-
return de_DescribeInstanceTypeLimitsCommandError(output, context);
|
|
2028
|
-
}
|
|
2029
|
-
const contents = (0, smithy_client_1.map)({
|
|
2030
|
-
$metadata: deserializeMetadata(output),
|
|
2031
|
-
});
|
|
2032
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2033
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2034
|
-
LimitsByRole: smithy_client_1._json,
|
|
2035
|
-
});
|
|
2036
|
-
Object.assign(contents, doc);
|
|
2037
|
-
return contents;
|
|
2038
|
-
};
|
|
2039
|
-
exports.de_DescribeInstanceTypeLimitsCommand = de_DescribeInstanceTypeLimitsCommand;
|
|
2040
|
-
const de_DescribeInstanceTypeLimitsCommandError = async (output, context) => {
|
|
2041
|
-
const parsedOutput = {
|
|
2042
|
-
...output,
|
|
2043
|
-
body: await parseErrorBody(output.body, context),
|
|
2044
|
-
};
|
|
2045
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
-
switch (errorCode) {
|
|
2047
|
-
case "BaseException":
|
|
2048
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2049
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2050
|
-
case "InternalException":
|
|
2051
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2052
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2053
|
-
case "InvalidTypeException":
|
|
2054
|
-
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
2055
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
2056
|
-
case "LimitExceededException":
|
|
2057
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
2058
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "ResourceNotFoundException":
|
|
2060
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2061
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "ValidationException":
|
|
2063
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2064
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2065
|
-
default:
|
|
2066
|
-
const parsedBody = parsedOutput.body;
|
|
2067
|
-
return throwDefaultError({
|
|
2068
|
-
output,
|
|
2069
|
-
parsedBody,
|
|
2070
|
-
errorCode,
|
|
2071
|
-
});
|
|
2072
|
-
}
|
|
2073
|
-
};
|
|
2074
|
-
const de_DescribeOutboundConnectionsCommand = async (output, context) => {
|
|
2075
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2076
|
-
return de_DescribeOutboundConnectionsCommandError(output, context);
|
|
2077
|
-
}
|
|
2078
|
-
const contents = (0, smithy_client_1.map)({
|
|
2079
|
-
$metadata: deserializeMetadata(output),
|
|
2080
|
-
});
|
|
2081
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2082
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2083
|
-
Connections: smithy_client_1._json,
|
|
2084
|
-
NextToken: smithy_client_1.expectString,
|
|
2085
|
-
});
|
|
2086
|
-
Object.assign(contents, doc);
|
|
2087
|
-
return contents;
|
|
2088
|
-
};
|
|
2089
|
-
exports.de_DescribeOutboundConnectionsCommand = de_DescribeOutboundConnectionsCommand;
|
|
2090
|
-
const de_DescribeOutboundConnectionsCommandError = async (output, context) => {
|
|
2091
|
-
const parsedOutput = {
|
|
2092
|
-
...output,
|
|
2093
|
-
body: await parseErrorBody(output.body, context),
|
|
2094
|
-
};
|
|
2095
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2096
|
-
switch (errorCode) {
|
|
2097
|
-
case "DisabledOperationException":
|
|
2098
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2099
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2100
|
-
case "InvalidPaginationTokenException":
|
|
2101
|
-
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2102
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2103
|
-
default:
|
|
2104
|
-
const parsedBody = parsedOutput.body;
|
|
2105
|
-
return throwDefaultError({
|
|
2106
|
-
output,
|
|
2107
|
-
parsedBody,
|
|
2108
|
-
errorCode,
|
|
2109
|
-
});
|
|
2110
|
-
}
|
|
2111
|
-
};
|
|
2112
|
-
const de_DescribePackagesCommand = async (output, context) => {
|
|
2113
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2114
|
-
return de_DescribePackagesCommandError(output, context);
|
|
2115
|
-
}
|
|
2116
|
-
const contents = (0, smithy_client_1.map)({
|
|
2117
|
-
$metadata: deserializeMetadata(output),
|
|
2118
|
-
});
|
|
2119
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2120
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2121
|
-
NextToken: smithy_client_1.expectString,
|
|
2122
|
-
PackageDetailsList: (_) => de_PackageDetailsList(_, context),
|
|
2123
|
-
});
|
|
2124
|
-
Object.assign(contents, doc);
|
|
2125
|
-
return contents;
|
|
2126
|
-
};
|
|
2127
|
-
exports.de_DescribePackagesCommand = de_DescribePackagesCommand;
|
|
2128
|
-
const de_DescribePackagesCommandError = async (output, context) => {
|
|
2129
|
-
const parsedOutput = {
|
|
2130
|
-
...output,
|
|
2131
|
-
body: await parseErrorBody(output.body, context),
|
|
2132
|
-
};
|
|
2133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2134
|
-
switch (errorCode) {
|
|
2135
|
-
case "AccessDeniedException":
|
|
2136
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2137
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "BaseException":
|
|
2139
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2140
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "InternalException":
|
|
2142
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2143
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2144
|
-
case "ResourceNotFoundException":
|
|
2145
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2146
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2147
|
-
case "ValidationException":
|
|
2148
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2149
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2150
|
-
default:
|
|
2151
|
-
const parsedBody = parsedOutput.body;
|
|
2152
|
-
return throwDefaultError({
|
|
2153
|
-
output,
|
|
2154
|
-
parsedBody,
|
|
2155
|
-
errorCode,
|
|
2156
|
-
});
|
|
2157
|
-
}
|
|
2158
|
-
};
|
|
2159
|
-
const de_DescribeReservedInstanceOfferingsCommand = async (output, context) => {
|
|
2160
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2161
|
-
return de_DescribeReservedInstanceOfferingsCommandError(output, context);
|
|
2162
|
-
}
|
|
2163
|
-
const contents = (0, smithy_client_1.map)({
|
|
2164
|
-
$metadata: deserializeMetadata(output),
|
|
2165
|
-
});
|
|
2166
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2167
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2168
|
-
NextToken: smithy_client_1.expectString,
|
|
2169
|
-
ReservedInstanceOfferings: (_) => de_ReservedInstanceOfferingList(_, context),
|
|
2170
|
-
});
|
|
2171
|
-
Object.assign(contents, doc);
|
|
2172
|
-
return contents;
|
|
2173
|
-
};
|
|
2174
|
-
exports.de_DescribeReservedInstanceOfferingsCommand = de_DescribeReservedInstanceOfferingsCommand;
|
|
2175
|
-
const de_DescribeReservedInstanceOfferingsCommandError = async (output, context) => {
|
|
2176
|
-
const parsedOutput = {
|
|
2177
|
-
...output,
|
|
2178
|
-
body: await parseErrorBody(output.body, context),
|
|
2179
|
-
};
|
|
2180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2181
|
-
switch (errorCode) {
|
|
2182
|
-
case "DisabledOperationException":
|
|
2183
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2184
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "InternalException":
|
|
2186
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2187
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "ResourceNotFoundException":
|
|
2189
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2190
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "ValidationException":
|
|
2192
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2193
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2194
|
-
default:
|
|
2195
|
-
const parsedBody = parsedOutput.body;
|
|
2196
|
-
return throwDefaultError({
|
|
2197
|
-
output,
|
|
2198
|
-
parsedBody,
|
|
2199
|
-
errorCode,
|
|
2200
|
-
});
|
|
2201
|
-
}
|
|
2202
|
-
};
|
|
2203
|
-
const de_DescribeReservedInstancesCommand = async (output, context) => {
|
|
2204
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2205
|
-
return de_DescribeReservedInstancesCommandError(output, context);
|
|
2206
|
-
}
|
|
2207
|
-
const contents = (0, smithy_client_1.map)({
|
|
2208
|
-
$metadata: deserializeMetadata(output),
|
|
2209
|
-
});
|
|
2210
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2211
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2212
|
-
NextToken: smithy_client_1.expectString,
|
|
2213
|
-
ReservedInstances: (_) => de_ReservedInstanceList(_, context),
|
|
2214
|
-
});
|
|
2215
|
-
Object.assign(contents, doc);
|
|
2216
|
-
return contents;
|
|
2217
|
-
};
|
|
2218
|
-
exports.de_DescribeReservedInstancesCommand = de_DescribeReservedInstancesCommand;
|
|
2219
|
-
const de_DescribeReservedInstancesCommandError = async (output, context) => {
|
|
2220
|
-
const parsedOutput = {
|
|
2221
|
-
...output,
|
|
2222
|
-
body: await parseErrorBody(output.body, context),
|
|
2223
|
-
};
|
|
2224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2225
|
-
switch (errorCode) {
|
|
2226
|
-
case "DisabledOperationException":
|
|
2227
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2228
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "InternalException":
|
|
2230
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2231
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "ResourceNotFoundException":
|
|
2233
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2234
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "ValidationException":
|
|
2236
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2237
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2238
|
-
default:
|
|
2239
|
-
const parsedBody = parsedOutput.body;
|
|
2240
|
-
return throwDefaultError({
|
|
2241
|
-
output,
|
|
2242
|
-
parsedBody,
|
|
2243
|
-
errorCode,
|
|
2244
|
-
});
|
|
2245
|
-
}
|
|
2246
|
-
};
|
|
2247
|
-
const de_DescribeVpcEndpointsCommand = async (output, context) => {
|
|
2248
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2249
|
-
return de_DescribeVpcEndpointsCommandError(output, context);
|
|
2250
|
-
}
|
|
2251
|
-
const contents = (0, smithy_client_1.map)({
|
|
2252
|
-
$metadata: deserializeMetadata(output),
|
|
2253
|
-
});
|
|
2254
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2255
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2256
|
-
VpcEndpointErrors: smithy_client_1._json,
|
|
2257
|
-
VpcEndpoints: smithy_client_1._json,
|
|
2258
|
-
});
|
|
2259
|
-
Object.assign(contents, doc);
|
|
2260
|
-
return contents;
|
|
2261
|
-
};
|
|
2262
|
-
exports.de_DescribeVpcEndpointsCommand = de_DescribeVpcEndpointsCommand;
|
|
2263
|
-
const de_DescribeVpcEndpointsCommandError = async (output, context) => {
|
|
2264
|
-
const parsedOutput = {
|
|
2265
|
-
...output,
|
|
2266
|
-
body: await parseErrorBody(output.body, context),
|
|
2267
|
-
};
|
|
2268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2269
|
-
switch (errorCode) {
|
|
2270
|
-
case "BaseException":
|
|
2271
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2272
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "DisabledOperationException":
|
|
2274
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2275
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "InternalException":
|
|
2277
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2278
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2279
|
-
case "ValidationException":
|
|
2280
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2281
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2282
|
-
default:
|
|
2283
|
-
const parsedBody = parsedOutput.body;
|
|
2284
|
-
return throwDefaultError({
|
|
2285
|
-
output,
|
|
2286
|
-
parsedBody,
|
|
2287
|
-
errorCode,
|
|
2288
|
-
});
|
|
2289
|
-
}
|
|
2290
|
-
};
|
|
2291
|
-
const de_DissociatePackageCommand = async (output, context) => {
|
|
2292
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
|
-
return de_DissociatePackageCommandError(output, context);
|
|
2294
|
-
}
|
|
2295
|
-
const contents = (0, smithy_client_1.map)({
|
|
2296
|
-
$metadata: deserializeMetadata(output),
|
|
2297
|
-
});
|
|
2298
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2299
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2300
|
-
DomainPackageDetails: (_) => de_DomainPackageDetails(_, context),
|
|
2301
|
-
});
|
|
2302
|
-
Object.assign(contents, doc);
|
|
2303
|
-
return contents;
|
|
2304
|
-
};
|
|
2305
|
-
exports.de_DissociatePackageCommand = de_DissociatePackageCommand;
|
|
2306
|
-
const de_DissociatePackageCommandError = async (output, context) => {
|
|
2307
|
-
const parsedOutput = {
|
|
2308
|
-
...output,
|
|
2309
|
-
body: await parseErrorBody(output.body, context),
|
|
2310
|
-
};
|
|
2311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2312
|
-
switch (errorCode) {
|
|
2313
|
-
case "AccessDeniedException":
|
|
2314
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2315
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "BaseException":
|
|
2317
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2318
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2319
|
-
case "ConflictException":
|
|
2320
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
2321
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2322
|
-
case "InternalException":
|
|
2323
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2324
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2325
|
-
case "ResourceNotFoundException":
|
|
2326
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2328
|
-
case "ValidationException":
|
|
2329
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2330
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2331
|
-
default:
|
|
2332
|
-
const parsedBody = parsedOutput.body;
|
|
2333
|
-
return throwDefaultError({
|
|
2334
|
-
output,
|
|
2335
|
-
parsedBody,
|
|
2336
|
-
errorCode,
|
|
2337
|
-
});
|
|
2338
|
-
}
|
|
2339
|
-
};
|
|
2340
|
-
const de_GetCompatibleVersionsCommand = async (output, context) => {
|
|
2341
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2342
|
-
return de_GetCompatibleVersionsCommandError(output, context);
|
|
2343
|
-
}
|
|
2344
|
-
const contents = (0, smithy_client_1.map)({
|
|
2345
|
-
$metadata: deserializeMetadata(output),
|
|
2346
|
-
});
|
|
2347
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2348
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2349
|
-
CompatibleVersions: smithy_client_1._json,
|
|
2350
|
-
});
|
|
2351
|
-
Object.assign(contents, doc);
|
|
2352
|
-
return contents;
|
|
2353
|
-
};
|
|
2354
|
-
exports.de_GetCompatibleVersionsCommand = de_GetCompatibleVersionsCommand;
|
|
2355
|
-
const de_GetCompatibleVersionsCommandError = async (output, context) => {
|
|
2356
|
-
const parsedOutput = {
|
|
2357
|
-
...output,
|
|
2358
|
-
body: await parseErrorBody(output.body, context),
|
|
2359
|
-
};
|
|
2360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2361
|
-
switch (errorCode) {
|
|
2362
|
-
case "BaseException":
|
|
2363
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2364
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "DisabledOperationException":
|
|
2366
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2367
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "InternalException":
|
|
2369
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2370
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ResourceNotFoundException":
|
|
2372
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2374
|
-
case "ValidationException":
|
|
2375
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2376
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2377
|
-
default:
|
|
2378
|
-
const parsedBody = parsedOutput.body;
|
|
2379
|
-
return throwDefaultError({
|
|
2380
|
-
output,
|
|
2381
|
-
parsedBody,
|
|
2382
|
-
errorCode,
|
|
2383
|
-
});
|
|
2384
|
-
}
|
|
2385
|
-
};
|
|
2386
|
-
const de_GetDataSourceCommand = async (output, context) => {
|
|
2387
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2388
|
-
return de_GetDataSourceCommandError(output, context);
|
|
2389
|
-
}
|
|
2390
|
-
const contents = (0, smithy_client_1.map)({
|
|
2391
|
-
$metadata: deserializeMetadata(output),
|
|
2392
|
-
});
|
|
2393
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2394
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2395
|
-
DataSourceType: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
2396
|
-
Description: smithy_client_1.expectString,
|
|
2397
|
-
Name: smithy_client_1.expectString,
|
|
2398
|
-
});
|
|
2399
|
-
Object.assign(contents, doc);
|
|
2400
|
-
return contents;
|
|
2401
|
-
};
|
|
2402
|
-
exports.de_GetDataSourceCommand = de_GetDataSourceCommand;
|
|
2403
|
-
const de_GetDataSourceCommandError = async (output, context) => {
|
|
2404
|
-
const parsedOutput = {
|
|
2405
|
-
...output,
|
|
2406
|
-
body: await parseErrorBody(output.body, context),
|
|
2407
|
-
};
|
|
2408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2409
|
-
switch (errorCode) {
|
|
2410
|
-
case "BaseException":
|
|
2411
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2412
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2413
|
-
case "DependencyFailureException":
|
|
2414
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
2415
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
2416
|
-
case "DisabledOperationException":
|
|
2417
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2418
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2419
|
-
case "InternalException":
|
|
2420
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2421
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2422
|
-
case "ResourceNotFoundException":
|
|
2423
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2424
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2425
|
-
case "ValidationException":
|
|
2426
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2427
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2428
|
-
default:
|
|
2429
|
-
const parsedBody = parsedOutput.body;
|
|
2430
|
-
return throwDefaultError({
|
|
2431
|
-
output,
|
|
2432
|
-
parsedBody,
|
|
2433
|
-
errorCode,
|
|
2434
|
-
});
|
|
2435
|
-
}
|
|
2436
|
-
};
|
|
2437
|
-
const de_GetDomainMaintenanceStatusCommand = async (output, context) => {
|
|
2438
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2439
|
-
return de_GetDomainMaintenanceStatusCommandError(output, context);
|
|
2440
|
-
}
|
|
2441
|
-
const contents = (0, smithy_client_1.map)({
|
|
2442
|
-
$metadata: deserializeMetadata(output),
|
|
2443
|
-
});
|
|
2444
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2445
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2446
|
-
Action: smithy_client_1.expectString,
|
|
2447
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2448
|
-
NodeId: smithy_client_1.expectString,
|
|
2449
|
-
Status: smithy_client_1.expectString,
|
|
2450
|
-
StatusMessage: smithy_client_1.expectString,
|
|
2451
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2452
|
-
});
|
|
2453
|
-
Object.assign(contents, doc);
|
|
2454
|
-
return contents;
|
|
2455
|
-
};
|
|
2456
|
-
exports.de_GetDomainMaintenanceStatusCommand = de_GetDomainMaintenanceStatusCommand;
|
|
2457
|
-
const de_GetDomainMaintenanceStatusCommandError = async (output, context) => {
|
|
2458
|
-
const parsedOutput = {
|
|
2459
|
-
...output,
|
|
2460
|
-
body: await parseErrorBody(output.body, context),
|
|
2461
|
-
};
|
|
2462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2463
|
-
switch (errorCode) {
|
|
2464
|
-
case "BaseException":
|
|
2465
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2466
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2467
|
-
case "DisabledOperationException":
|
|
2468
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2469
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2470
|
-
case "InternalException":
|
|
2471
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2472
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2473
|
-
case "ResourceNotFoundException":
|
|
2474
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2475
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2476
|
-
case "ValidationException":
|
|
2477
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2478
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2479
|
-
default:
|
|
2480
|
-
const parsedBody = parsedOutput.body;
|
|
2481
|
-
return throwDefaultError({
|
|
2482
|
-
output,
|
|
2483
|
-
parsedBody,
|
|
2484
|
-
errorCode,
|
|
2485
|
-
});
|
|
2486
|
-
}
|
|
2487
|
-
};
|
|
2488
|
-
const de_GetPackageVersionHistoryCommand = async (output, context) => {
|
|
2489
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2490
|
-
return de_GetPackageVersionHistoryCommandError(output, context);
|
|
2491
|
-
}
|
|
2492
|
-
const contents = (0, smithy_client_1.map)({
|
|
2493
|
-
$metadata: deserializeMetadata(output),
|
|
2494
|
-
});
|
|
2495
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2496
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2497
|
-
NextToken: smithy_client_1.expectString,
|
|
2498
|
-
PackageID: smithy_client_1.expectString,
|
|
2499
|
-
PackageVersionHistoryList: (_) => de_PackageVersionHistoryList(_, context),
|
|
2500
|
-
});
|
|
2501
|
-
Object.assign(contents, doc);
|
|
2502
|
-
return contents;
|
|
2503
|
-
};
|
|
2504
|
-
exports.de_GetPackageVersionHistoryCommand = de_GetPackageVersionHistoryCommand;
|
|
2505
|
-
const de_GetPackageVersionHistoryCommandError = async (output, context) => {
|
|
2506
|
-
const parsedOutput = {
|
|
2507
|
-
...output,
|
|
2508
|
-
body: await parseErrorBody(output.body, context),
|
|
2509
|
-
};
|
|
2510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2511
|
-
switch (errorCode) {
|
|
2512
|
-
case "AccessDeniedException":
|
|
2513
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2514
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2515
|
-
case "BaseException":
|
|
2516
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2517
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2518
|
-
case "InternalException":
|
|
2519
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2520
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2521
|
-
case "ResourceNotFoundException":
|
|
2522
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2523
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2524
|
-
case "ValidationException":
|
|
2525
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2526
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2527
|
-
default:
|
|
2528
|
-
const parsedBody = parsedOutput.body;
|
|
2529
|
-
return throwDefaultError({
|
|
2530
|
-
output,
|
|
2531
|
-
parsedBody,
|
|
2532
|
-
errorCode,
|
|
2533
|
-
});
|
|
2534
|
-
}
|
|
2535
|
-
};
|
|
2536
|
-
const de_GetUpgradeHistoryCommand = async (output, context) => {
|
|
2537
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2538
|
-
return de_GetUpgradeHistoryCommandError(output, context);
|
|
2539
|
-
}
|
|
2540
|
-
const contents = (0, smithy_client_1.map)({
|
|
2541
|
-
$metadata: deserializeMetadata(output),
|
|
2542
|
-
});
|
|
2543
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2544
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2545
|
-
NextToken: smithy_client_1.expectString,
|
|
2546
|
-
UpgradeHistories: (_) => de_UpgradeHistoryList(_, context),
|
|
2547
|
-
});
|
|
2548
|
-
Object.assign(contents, doc);
|
|
2549
|
-
return contents;
|
|
2550
|
-
};
|
|
2551
|
-
exports.de_GetUpgradeHistoryCommand = de_GetUpgradeHistoryCommand;
|
|
2552
|
-
const de_GetUpgradeHistoryCommandError = async (output, context) => {
|
|
2553
|
-
const parsedOutput = {
|
|
2554
|
-
...output,
|
|
2555
|
-
body: await parseErrorBody(output.body, context),
|
|
2556
|
-
};
|
|
2557
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2558
|
-
switch (errorCode) {
|
|
2559
|
-
case "BaseException":
|
|
2560
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2561
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2562
|
-
case "DisabledOperationException":
|
|
2563
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2564
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2565
|
-
case "InternalException":
|
|
2566
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2567
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2568
|
-
case "ResourceNotFoundException":
|
|
2569
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2570
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2571
|
-
case "ValidationException":
|
|
2572
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2573
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2574
|
-
default:
|
|
2575
|
-
const parsedBody = parsedOutput.body;
|
|
2576
|
-
return throwDefaultError({
|
|
2577
|
-
output,
|
|
2578
|
-
parsedBody,
|
|
2579
|
-
errorCode,
|
|
2580
|
-
});
|
|
2581
|
-
}
|
|
2582
|
-
};
|
|
2583
|
-
const de_GetUpgradeStatusCommand = async (output, context) => {
|
|
2584
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2585
|
-
return de_GetUpgradeStatusCommandError(output, context);
|
|
2586
|
-
}
|
|
2587
|
-
const contents = (0, smithy_client_1.map)({
|
|
2588
|
-
$metadata: deserializeMetadata(output),
|
|
2589
|
-
});
|
|
2590
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2591
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2592
|
-
StepStatus: smithy_client_1.expectString,
|
|
2593
|
-
UpgradeName: smithy_client_1.expectString,
|
|
2594
|
-
UpgradeStep: smithy_client_1.expectString,
|
|
2595
|
-
});
|
|
2596
|
-
Object.assign(contents, doc);
|
|
2597
|
-
return contents;
|
|
2598
|
-
};
|
|
2599
|
-
exports.de_GetUpgradeStatusCommand = de_GetUpgradeStatusCommand;
|
|
2600
|
-
const de_GetUpgradeStatusCommandError = async (output, context) => {
|
|
2601
|
-
const parsedOutput = {
|
|
2602
|
-
...output,
|
|
2603
|
-
body: await parseErrorBody(output.body, context),
|
|
2604
|
-
};
|
|
2605
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2606
|
-
switch (errorCode) {
|
|
2607
|
-
case "BaseException":
|
|
2608
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2609
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2610
|
-
case "DisabledOperationException":
|
|
2611
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2612
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2613
|
-
case "InternalException":
|
|
2614
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2615
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "ResourceNotFoundException":
|
|
2617
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2618
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "ValidationException":
|
|
2620
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2621
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2622
|
-
default:
|
|
2623
|
-
const parsedBody = parsedOutput.body;
|
|
2624
|
-
return throwDefaultError({
|
|
2625
|
-
output,
|
|
2626
|
-
parsedBody,
|
|
2627
|
-
errorCode,
|
|
2628
|
-
});
|
|
2629
|
-
}
|
|
2630
|
-
};
|
|
2631
|
-
const de_ListDataSourcesCommand = async (output, context) => {
|
|
2632
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2633
|
-
return de_ListDataSourcesCommandError(output, context);
|
|
2634
|
-
}
|
|
2635
|
-
const contents = (0, smithy_client_1.map)({
|
|
2636
|
-
$metadata: deserializeMetadata(output),
|
|
2637
|
-
});
|
|
2638
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2639
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2640
|
-
DataSources: smithy_client_1._json,
|
|
2641
|
-
});
|
|
2642
|
-
Object.assign(contents, doc);
|
|
2643
|
-
return contents;
|
|
2644
|
-
};
|
|
2645
|
-
exports.de_ListDataSourcesCommand = de_ListDataSourcesCommand;
|
|
2646
|
-
const de_ListDataSourcesCommandError = async (output, context) => {
|
|
2647
|
-
const parsedOutput = {
|
|
2648
|
-
...output,
|
|
2649
|
-
body: await parseErrorBody(output.body, context),
|
|
2650
|
-
};
|
|
2651
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2652
|
-
switch (errorCode) {
|
|
2653
|
-
case "BaseException":
|
|
2654
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2655
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2656
|
-
case "DependencyFailureException":
|
|
2657
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
2658
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
2659
|
-
case "DisabledOperationException":
|
|
2660
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2661
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2662
|
-
case "InternalException":
|
|
2663
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2664
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2665
|
-
case "ResourceNotFoundException":
|
|
2666
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2667
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2668
|
-
case "ValidationException":
|
|
2669
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2670
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2671
|
-
default:
|
|
2672
|
-
const parsedBody = parsedOutput.body;
|
|
2673
|
-
return throwDefaultError({
|
|
2674
|
-
output,
|
|
2675
|
-
parsedBody,
|
|
2676
|
-
errorCode,
|
|
2677
|
-
});
|
|
2678
|
-
}
|
|
2679
|
-
};
|
|
2680
|
-
const de_ListDomainMaintenancesCommand = async (output, context) => {
|
|
2681
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2682
|
-
return de_ListDomainMaintenancesCommandError(output, context);
|
|
2683
|
-
}
|
|
2684
|
-
const contents = (0, smithy_client_1.map)({
|
|
2685
|
-
$metadata: deserializeMetadata(output),
|
|
2686
|
-
});
|
|
2687
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2688
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2689
|
-
DomainMaintenances: (_) => de_DomainMaintenanceList(_, context),
|
|
2690
|
-
NextToken: smithy_client_1.expectString,
|
|
2691
|
-
});
|
|
2692
|
-
Object.assign(contents, doc);
|
|
2693
|
-
return contents;
|
|
2694
|
-
};
|
|
2695
|
-
exports.de_ListDomainMaintenancesCommand = de_ListDomainMaintenancesCommand;
|
|
2696
|
-
const de_ListDomainMaintenancesCommandError = async (output, context) => {
|
|
2697
|
-
const parsedOutput = {
|
|
2698
|
-
...output,
|
|
2699
|
-
body: await parseErrorBody(output.body, context),
|
|
2700
|
-
};
|
|
2701
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2702
|
-
switch (errorCode) {
|
|
2703
|
-
case "BaseException":
|
|
2704
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2705
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2706
|
-
case "DisabledOperationException":
|
|
2707
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
2708
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
2709
|
-
case "InternalException":
|
|
2710
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2711
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "ResourceNotFoundException":
|
|
2713
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2714
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ValidationException":
|
|
2716
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2717
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2718
|
-
default:
|
|
2719
|
-
const parsedBody = parsedOutput.body;
|
|
2720
|
-
return throwDefaultError({
|
|
2721
|
-
output,
|
|
2722
|
-
parsedBody,
|
|
2723
|
-
errorCode,
|
|
2724
|
-
});
|
|
2725
|
-
}
|
|
2726
|
-
};
|
|
2727
|
-
const de_ListDomainNamesCommand = async (output, context) => {
|
|
2728
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2729
|
-
return de_ListDomainNamesCommandError(output, context);
|
|
2730
|
-
}
|
|
2731
|
-
const contents = (0, smithy_client_1.map)({
|
|
2732
|
-
$metadata: deserializeMetadata(output),
|
|
2733
|
-
});
|
|
2734
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2735
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2736
|
-
DomainNames: smithy_client_1._json,
|
|
2737
|
-
});
|
|
2738
|
-
Object.assign(contents, doc);
|
|
2739
|
-
return contents;
|
|
2740
|
-
};
|
|
2741
|
-
exports.de_ListDomainNamesCommand = de_ListDomainNamesCommand;
|
|
2742
|
-
const de_ListDomainNamesCommandError = async (output, context) => {
|
|
2743
|
-
const parsedOutput = {
|
|
2744
|
-
...output,
|
|
2745
|
-
body: await parseErrorBody(output.body, context),
|
|
2746
|
-
};
|
|
2747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2748
|
-
switch (errorCode) {
|
|
2749
|
-
case "BaseException":
|
|
2750
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2751
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2752
|
-
case "ValidationException":
|
|
2753
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2754
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2755
|
-
default:
|
|
2756
|
-
const parsedBody = parsedOutput.body;
|
|
2757
|
-
return throwDefaultError({
|
|
2758
|
-
output,
|
|
2759
|
-
parsedBody,
|
|
2760
|
-
errorCode,
|
|
2761
|
-
});
|
|
2762
|
-
}
|
|
2763
|
-
};
|
|
2764
|
-
const de_ListDomainsForPackageCommand = async (output, context) => {
|
|
2765
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2766
|
-
return de_ListDomainsForPackageCommandError(output, context);
|
|
2767
|
-
}
|
|
2768
|
-
const contents = (0, smithy_client_1.map)({
|
|
2769
|
-
$metadata: deserializeMetadata(output),
|
|
2770
|
-
});
|
|
2771
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2772
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2773
|
-
DomainPackageDetailsList: (_) => de_DomainPackageDetailsList(_, context),
|
|
2774
|
-
NextToken: smithy_client_1.expectString,
|
|
2775
|
-
});
|
|
2776
|
-
Object.assign(contents, doc);
|
|
2777
|
-
return contents;
|
|
2778
|
-
};
|
|
2779
|
-
exports.de_ListDomainsForPackageCommand = de_ListDomainsForPackageCommand;
|
|
2780
|
-
const de_ListDomainsForPackageCommandError = async (output, context) => {
|
|
2781
|
-
const parsedOutput = {
|
|
2782
|
-
...output,
|
|
2783
|
-
body: await parseErrorBody(output.body, context),
|
|
2784
|
-
};
|
|
2785
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2786
|
-
switch (errorCode) {
|
|
2787
|
-
case "AccessDeniedException":
|
|
2788
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2789
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2790
|
-
case "BaseException":
|
|
2791
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2792
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2793
|
-
case "InternalException":
|
|
2794
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2795
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2796
|
-
case "ResourceNotFoundException":
|
|
2797
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2798
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2799
|
-
case "ValidationException":
|
|
2800
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2801
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2802
|
-
default:
|
|
2803
|
-
const parsedBody = parsedOutput.body;
|
|
2804
|
-
return throwDefaultError({
|
|
2805
|
-
output,
|
|
2806
|
-
parsedBody,
|
|
2807
|
-
errorCode,
|
|
2808
|
-
});
|
|
2809
|
-
}
|
|
2810
|
-
};
|
|
2811
|
-
const de_ListInstanceTypeDetailsCommand = async (output, context) => {
|
|
2812
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2813
|
-
return de_ListInstanceTypeDetailsCommandError(output, context);
|
|
2814
|
-
}
|
|
2815
|
-
const contents = (0, smithy_client_1.map)({
|
|
2816
|
-
$metadata: deserializeMetadata(output),
|
|
2817
|
-
});
|
|
2818
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2819
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2820
|
-
InstanceTypeDetails: smithy_client_1._json,
|
|
2821
|
-
NextToken: smithy_client_1.expectString,
|
|
2822
|
-
});
|
|
2823
|
-
Object.assign(contents, doc);
|
|
2824
|
-
return contents;
|
|
2825
|
-
};
|
|
2826
|
-
exports.de_ListInstanceTypeDetailsCommand = de_ListInstanceTypeDetailsCommand;
|
|
2827
|
-
const de_ListInstanceTypeDetailsCommandError = async (output, context) => {
|
|
2828
|
-
const parsedOutput = {
|
|
2829
|
-
...output,
|
|
2830
|
-
body: await parseErrorBody(output.body, context),
|
|
2831
|
-
};
|
|
2832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2833
|
-
switch (errorCode) {
|
|
2834
|
-
case "BaseException":
|
|
2835
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2836
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2837
|
-
case "InternalException":
|
|
2838
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2839
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "ResourceNotFoundException":
|
|
2841
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2842
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "ValidationException":
|
|
2844
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2845
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2846
|
-
default:
|
|
2847
|
-
const parsedBody = parsedOutput.body;
|
|
2848
|
-
return throwDefaultError({
|
|
2849
|
-
output,
|
|
2850
|
-
parsedBody,
|
|
2851
|
-
errorCode,
|
|
2852
|
-
});
|
|
2853
|
-
}
|
|
2854
|
-
};
|
|
2855
|
-
const de_ListPackagesForDomainCommand = async (output, context) => {
|
|
2856
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2857
|
-
return de_ListPackagesForDomainCommandError(output, context);
|
|
2858
|
-
}
|
|
2859
|
-
const contents = (0, smithy_client_1.map)({
|
|
2860
|
-
$metadata: deserializeMetadata(output),
|
|
2861
|
-
});
|
|
2862
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2863
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2864
|
-
DomainPackageDetailsList: (_) => de_DomainPackageDetailsList(_, context),
|
|
2865
|
-
NextToken: smithy_client_1.expectString,
|
|
2866
|
-
});
|
|
2867
|
-
Object.assign(contents, doc);
|
|
2868
|
-
return contents;
|
|
2869
|
-
};
|
|
2870
|
-
exports.de_ListPackagesForDomainCommand = de_ListPackagesForDomainCommand;
|
|
2871
|
-
const de_ListPackagesForDomainCommandError = async (output, context) => {
|
|
2872
|
-
const parsedOutput = {
|
|
2873
|
-
...output,
|
|
2874
|
-
body: await parseErrorBody(output.body, context),
|
|
2875
|
-
};
|
|
2876
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2877
|
-
switch (errorCode) {
|
|
2878
|
-
case "AccessDeniedException":
|
|
2879
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
2880
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2881
|
-
case "BaseException":
|
|
2882
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2883
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2884
|
-
case "InternalException":
|
|
2885
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2886
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "ResourceNotFoundException":
|
|
2888
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2889
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2890
|
-
case "ValidationException":
|
|
2891
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2892
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2893
|
-
default:
|
|
2894
|
-
const parsedBody = parsedOutput.body;
|
|
2895
|
-
return throwDefaultError({
|
|
2896
|
-
output,
|
|
2897
|
-
parsedBody,
|
|
2898
|
-
errorCode,
|
|
2899
|
-
});
|
|
2900
|
-
}
|
|
2901
|
-
};
|
|
2902
|
-
const de_ListScheduledActionsCommand = async (output, context) => {
|
|
2903
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2904
|
-
return de_ListScheduledActionsCommandError(output, context);
|
|
2905
|
-
}
|
|
2906
|
-
const contents = (0, smithy_client_1.map)({
|
|
2907
|
-
$metadata: deserializeMetadata(output),
|
|
2908
|
-
});
|
|
2909
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2910
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2911
|
-
NextToken: smithy_client_1.expectString,
|
|
2912
|
-
ScheduledActions: smithy_client_1._json,
|
|
2913
|
-
});
|
|
2914
|
-
Object.assign(contents, doc);
|
|
2915
|
-
return contents;
|
|
2916
|
-
};
|
|
2917
|
-
exports.de_ListScheduledActionsCommand = de_ListScheduledActionsCommand;
|
|
2918
|
-
const de_ListScheduledActionsCommandError = async (output, context) => {
|
|
2919
|
-
const parsedOutput = {
|
|
2920
|
-
...output,
|
|
2921
|
-
body: await parseErrorBody(output.body, context),
|
|
2922
|
-
};
|
|
2923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2924
|
-
switch (errorCode) {
|
|
2925
|
-
case "BaseException":
|
|
2926
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2927
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2928
|
-
case "InternalException":
|
|
2929
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2930
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2931
|
-
case "InvalidPaginationTokenException":
|
|
2932
|
-
case "com.amazonaws.opensearch#InvalidPaginationTokenException":
|
|
2933
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
2934
|
-
case "ResourceNotFoundException":
|
|
2935
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2936
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2937
|
-
case "ValidationException":
|
|
2938
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2939
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2940
|
-
default:
|
|
2941
|
-
const parsedBody = parsedOutput.body;
|
|
2942
|
-
return throwDefaultError({
|
|
2943
|
-
output,
|
|
2944
|
-
parsedBody,
|
|
2945
|
-
errorCode,
|
|
2946
|
-
});
|
|
2947
|
-
}
|
|
2948
|
-
};
|
|
2949
|
-
const de_ListTagsCommand = async (output, context) => {
|
|
2950
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2951
|
-
return de_ListTagsCommandError(output, context);
|
|
2952
|
-
}
|
|
2953
|
-
const contents = (0, smithy_client_1.map)({
|
|
2954
|
-
$metadata: deserializeMetadata(output),
|
|
2955
|
-
});
|
|
2956
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2957
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2958
|
-
TagList: smithy_client_1._json,
|
|
2959
|
-
});
|
|
2960
|
-
Object.assign(contents, doc);
|
|
2961
|
-
return contents;
|
|
2962
|
-
};
|
|
2963
|
-
exports.de_ListTagsCommand = de_ListTagsCommand;
|
|
2964
|
-
const de_ListTagsCommandError = async (output, context) => {
|
|
2965
|
-
const parsedOutput = {
|
|
2966
|
-
...output,
|
|
2967
|
-
body: await parseErrorBody(output.body, context),
|
|
2968
|
-
};
|
|
2969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2970
|
-
switch (errorCode) {
|
|
2971
|
-
case "BaseException":
|
|
2972
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
2973
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
2974
|
-
case "InternalException":
|
|
2975
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
2976
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
2977
|
-
case "ResourceNotFoundException":
|
|
2978
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
2979
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2980
|
-
case "ValidationException":
|
|
2981
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
2982
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2983
|
-
default:
|
|
2984
|
-
const parsedBody = parsedOutput.body;
|
|
2985
|
-
return throwDefaultError({
|
|
2986
|
-
output,
|
|
2987
|
-
parsedBody,
|
|
2988
|
-
errorCode,
|
|
2989
|
-
});
|
|
2990
|
-
}
|
|
2991
|
-
};
|
|
2992
|
-
const de_ListVersionsCommand = async (output, context) => {
|
|
2993
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2994
|
-
return de_ListVersionsCommandError(output, context);
|
|
2995
|
-
}
|
|
2996
|
-
const contents = (0, smithy_client_1.map)({
|
|
2997
|
-
$metadata: deserializeMetadata(output),
|
|
2998
|
-
});
|
|
2999
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3000
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3001
|
-
NextToken: smithy_client_1.expectString,
|
|
3002
|
-
Versions: smithy_client_1._json,
|
|
3003
|
-
});
|
|
3004
|
-
Object.assign(contents, doc);
|
|
3005
|
-
return contents;
|
|
3006
|
-
};
|
|
3007
|
-
exports.de_ListVersionsCommand = de_ListVersionsCommand;
|
|
3008
|
-
const de_ListVersionsCommandError = async (output, context) => {
|
|
3009
|
-
const parsedOutput = {
|
|
3010
|
-
...output,
|
|
3011
|
-
body: await parseErrorBody(output.body, context),
|
|
3012
|
-
};
|
|
3013
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3014
|
-
switch (errorCode) {
|
|
3015
|
-
case "BaseException":
|
|
3016
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3017
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3018
|
-
case "InternalException":
|
|
3019
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3020
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3021
|
-
case "ResourceNotFoundException":
|
|
3022
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3023
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3024
|
-
case "ValidationException":
|
|
3025
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3026
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3027
|
-
default:
|
|
3028
|
-
const parsedBody = parsedOutput.body;
|
|
3029
|
-
return throwDefaultError({
|
|
3030
|
-
output,
|
|
3031
|
-
parsedBody,
|
|
3032
|
-
errorCode,
|
|
3033
|
-
});
|
|
3034
|
-
}
|
|
3035
|
-
};
|
|
3036
|
-
const de_ListVpcEndpointAccessCommand = async (output, context) => {
|
|
3037
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3038
|
-
return de_ListVpcEndpointAccessCommandError(output, context);
|
|
3039
|
-
}
|
|
3040
|
-
const contents = (0, smithy_client_1.map)({
|
|
3041
|
-
$metadata: deserializeMetadata(output),
|
|
3042
|
-
});
|
|
3043
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3044
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3045
|
-
AuthorizedPrincipalList: smithy_client_1._json,
|
|
3046
|
-
NextToken: smithy_client_1.expectString,
|
|
3047
|
-
});
|
|
3048
|
-
Object.assign(contents, doc);
|
|
3049
|
-
return contents;
|
|
3050
|
-
};
|
|
3051
|
-
exports.de_ListVpcEndpointAccessCommand = de_ListVpcEndpointAccessCommand;
|
|
3052
|
-
const de_ListVpcEndpointAccessCommandError = async (output, context) => {
|
|
3053
|
-
const parsedOutput = {
|
|
3054
|
-
...output,
|
|
3055
|
-
body: await parseErrorBody(output.body, context),
|
|
3056
|
-
};
|
|
3057
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3058
|
-
switch (errorCode) {
|
|
3059
|
-
case "BaseException":
|
|
3060
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3061
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3062
|
-
case "DisabledOperationException":
|
|
3063
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3064
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3065
|
-
case "InternalException":
|
|
3066
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3067
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3068
|
-
case "ResourceNotFoundException":
|
|
3069
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3070
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3071
|
-
default:
|
|
3072
|
-
const parsedBody = parsedOutput.body;
|
|
3073
|
-
return throwDefaultError({
|
|
3074
|
-
output,
|
|
3075
|
-
parsedBody,
|
|
3076
|
-
errorCode,
|
|
3077
|
-
});
|
|
3078
|
-
}
|
|
3079
|
-
};
|
|
3080
|
-
const de_ListVpcEndpointsCommand = async (output, context) => {
|
|
3081
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3082
|
-
return de_ListVpcEndpointsCommandError(output, context);
|
|
3083
|
-
}
|
|
3084
|
-
const contents = (0, smithy_client_1.map)({
|
|
3085
|
-
$metadata: deserializeMetadata(output),
|
|
3086
|
-
});
|
|
3087
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3088
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3089
|
-
NextToken: smithy_client_1.expectString,
|
|
3090
|
-
VpcEndpointSummaryList: smithy_client_1._json,
|
|
3091
|
-
});
|
|
3092
|
-
Object.assign(contents, doc);
|
|
3093
|
-
return contents;
|
|
3094
|
-
};
|
|
3095
|
-
exports.de_ListVpcEndpointsCommand = de_ListVpcEndpointsCommand;
|
|
3096
|
-
const de_ListVpcEndpointsCommandError = async (output, context) => {
|
|
3097
|
-
const parsedOutput = {
|
|
3098
|
-
...output,
|
|
3099
|
-
body: await parseErrorBody(output.body, context),
|
|
3100
|
-
};
|
|
3101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3102
|
-
switch (errorCode) {
|
|
3103
|
-
case "BaseException":
|
|
3104
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3105
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3106
|
-
case "DisabledOperationException":
|
|
3107
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3108
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3109
|
-
case "InternalException":
|
|
3110
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3111
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3112
|
-
default:
|
|
3113
|
-
const parsedBody = parsedOutput.body;
|
|
3114
|
-
return throwDefaultError({
|
|
3115
|
-
output,
|
|
3116
|
-
parsedBody,
|
|
3117
|
-
errorCode,
|
|
3118
|
-
});
|
|
3119
|
-
}
|
|
3120
|
-
};
|
|
3121
|
-
const de_ListVpcEndpointsForDomainCommand = async (output, context) => {
|
|
3122
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3123
|
-
return de_ListVpcEndpointsForDomainCommandError(output, context);
|
|
3124
|
-
}
|
|
3125
|
-
const contents = (0, smithy_client_1.map)({
|
|
3126
|
-
$metadata: deserializeMetadata(output),
|
|
3127
|
-
});
|
|
3128
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3129
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3130
|
-
NextToken: smithy_client_1.expectString,
|
|
3131
|
-
VpcEndpointSummaryList: smithy_client_1._json,
|
|
3132
|
-
});
|
|
3133
|
-
Object.assign(contents, doc);
|
|
3134
|
-
return contents;
|
|
3135
|
-
};
|
|
3136
|
-
exports.de_ListVpcEndpointsForDomainCommand = de_ListVpcEndpointsForDomainCommand;
|
|
3137
|
-
const de_ListVpcEndpointsForDomainCommandError = async (output, context) => {
|
|
3138
|
-
const parsedOutput = {
|
|
3139
|
-
...output,
|
|
3140
|
-
body: await parseErrorBody(output.body, context),
|
|
3141
|
-
};
|
|
3142
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3143
|
-
switch (errorCode) {
|
|
3144
|
-
case "BaseException":
|
|
3145
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3146
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3147
|
-
case "DisabledOperationException":
|
|
3148
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3149
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3150
|
-
case "InternalException":
|
|
3151
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3152
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3153
|
-
case "ResourceNotFoundException":
|
|
3154
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3155
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3156
|
-
default:
|
|
3157
|
-
const parsedBody = parsedOutput.body;
|
|
3158
|
-
return throwDefaultError({
|
|
3159
|
-
output,
|
|
3160
|
-
parsedBody,
|
|
3161
|
-
errorCode,
|
|
3162
|
-
});
|
|
3163
|
-
}
|
|
3164
|
-
};
|
|
3165
|
-
const de_PurchaseReservedInstanceOfferingCommand = async (output, context) => {
|
|
3166
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3167
|
-
return de_PurchaseReservedInstanceOfferingCommandError(output, context);
|
|
3168
|
-
}
|
|
3169
|
-
const contents = (0, smithy_client_1.map)({
|
|
3170
|
-
$metadata: deserializeMetadata(output),
|
|
3171
|
-
});
|
|
3172
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3173
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3174
|
-
ReservationName: smithy_client_1.expectString,
|
|
3175
|
-
ReservedInstanceId: smithy_client_1.expectString,
|
|
3176
|
-
});
|
|
3177
|
-
Object.assign(contents, doc);
|
|
3178
|
-
return contents;
|
|
3179
|
-
};
|
|
3180
|
-
exports.de_PurchaseReservedInstanceOfferingCommand = de_PurchaseReservedInstanceOfferingCommand;
|
|
3181
|
-
const de_PurchaseReservedInstanceOfferingCommandError = async (output, context) => {
|
|
3182
|
-
const parsedOutput = {
|
|
3183
|
-
...output,
|
|
3184
|
-
body: await parseErrorBody(output.body, context),
|
|
3185
|
-
};
|
|
3186
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3187
|
-
switch (errorCode) {
|
|
3188
|
-
case "DisabledOperationException":
|
|
3189
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3190
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "InternalException":
|
|
3192
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3193
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "LimitExceededException":
|
|
3195
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
3196
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3197
|
-
case "ResourceAlreadyExistsException":
|
|
3198
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
3199
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "ResourceNotFoundException":
|
|
3201
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3202
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3203
|
-
case "ValidationException":
|
|
3204
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3205
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3206
|
-
default:
|
|
3207
|
-
const parsedBody = parsedOutput.body;
|
|
3208
|
-
return throwDefaultError({
|
|
3209
|
-
output,
|
|
3210
|
-
parsedBody,
|
|
3211
|
-
errorCode,
|
|
3212
|
-
});
|
|
3213
|
-
}
|
|
3214
|
-
};
|
|
3215
|
-
const de_RejectInboundConnectionCommand = async (output, context) => {
|
|
3216
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3217
|
-
return de_RejectInboundConnectionCommandError(output, context);
|
|
3218
|
-
}
|
|
3219
|
-
const contents = (0, smithy_client_1.map)({
|
|
3220
|
-
$metadata: deserializeMetadata(output),
|
|
3221
|
-
});
|
|
3222
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3223
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3224
|
-
Connection: smithy_client_1._json,
|
|
3225
|
-
});
|
|
3226
|
-
Object.assign(contents, doc);
|
|
3227
|
-
return contents;
|
|
3228
|
-
};
|
|
3229
|
-
exports.de_RejectInboundConnectionCommand = de_RejectInboundConnectionCommand;
|
|
3230
|
-
const de_RejectInboundConnectionCommandError = async (output, context) => {
|
|
3231
|
-
const parsedOutput = {
|
|
3232
|
-
...output,
|
|
3233
|
-
body: await parseErrorBody(output.body, context),
|
|
3234
|
-
};
|
|
3235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3236
|
-
switch (errorCode) {
|
|
3237
|
-
case "DisabledOperationException":
|
|
3238
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3239
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3240
|
-
case "ResourceNotFoundException":
|
|
3241
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3242
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3243
|
-
default:
|
|
3244
|
-
const parsedBody = parsedOutput.body;
|
|
3245
|
-
return throwDefaultError({
|
|
3246
|
-
output,
|
|
3247
|
-
parsedBody,
|
|
3248
|
-
errorCode,
|
|
3249
|
-
});
|
|
3250
|
-
}
|
|
3251
|
-
};
|
|
3252
|
-
const de_RemoveTagsCommand = async (output, context) => {
|
|
3253
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3254
|
-
return de_RemoveTagsCommandError(output, context);
|
|
3255
|
-
}
|
|
3256
|
-
const contents = (0, smithy_client_1.map)({
|
|
3257
|
-
$metadata: deserializeMetadata(output),
|
|
3258
|
-
});
|
|
3259
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3260
|
-
return contents;
|
|
3261
|
-
};
|
|
3262
|
-
exports.de_RemoveTagsCommand = de_RemoveTagsCommand;
|
|
3263
|
-
const de_RemoveTagsCommandError = async (output, context) => {
|
|
3264
|
-
const parsedOutput = {
|
|
3265
|
-
...output,
|
|
3266
|
-
body: await parseErrorBody(output.body, context),
|
|
3267
|
-
};
|
|
3268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3269
|
-
switch (errorCode) {
|
|
3270
|
-
case "BaseException":
|
|
3271
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3272
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3273
|
-
case "InternalException":
|
|
3274
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3275
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "ValidationException":
|
|
3277
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3279
|
-
default:
|
|
3280
|
-
const parsedBody = parsedOutput.body;
|
|
3281
|
-
return throwDefaultError({
|
|
3282
|
-
output,
|
|
3283
|
-
parsedBody,
|
|
3284
|
-
errorCode,
|
|
3285
|
-
});
|
|
3286
|
-
}
|
|
3287
|
-
};
|
|
3288
|
-
const de_RevokeVpcEndpointAccessCommand = async (output, context) => {
|
|
3289
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3290
|
-
return de_RevokeVpcEndpointAccessCommandError(output, context);
|
|
3291
|
-
}
|
|
3292
|
-
const contents = (0, smithy_client_1.map)({
|
|
3293
|
-
$metadata: deserializeMetadata(output),
|
|
3294
|
-
});
|
|
3295
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3296
|
-
return contents;
|
|
3297
|
-
};
|
|
3298
|
-
exports.de_RevokeVpcEndpointAccessCommand = de_RevokeVpcEndpointAccessCommand;
|
|
3299
|
-
const de_RevokeVpcEndpointAccessCommandError = async (output, context) => {
|
|
3300
|
-
const parsedOutput = {
|
|
3301
|
-
...output,
|
|
3302
|
-
body: await parseErrorBody(output.body, context),
|
|
3303
|
-
};
|
|
3304
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3305
|
-
switch (errorCode) {
|
|
3306
|
-
case "BaseException":
|
|
3307
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3308
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3309
|
-
case "DisabledOperationException":
|
|
3310
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3311
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3312
|
-
case "InternalException":
|
|
3313
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3314
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3315
|
-
case "ResourceNotFoundException":
|
|
3316
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3317
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3318
|
-
case "ValidationException":
|
|
3319
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3320
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3321
|
-
default:
|
|
3322
|
-
const parsedBody = parsedOutput.body;
|
|
3323
|
-
return throwDefaultError({
|
|
3324
|
-
output,
|
|
3325
|
-
parsedBody,
|
|
3326
|
-
errorCode,
|
|
3327
|
-
});
|
|
3328
|
-
}
|
|
3329
|
-
};
|
|
3330
|
-
const de_StartDomainMaintenanceCommand = async (output, context) => {
|
|
3331
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3332
|
-
return de_StartDomainMaintenanceCommandError(output, context);
|
|
3333
|
-
}
|
|
3334
|
-
const contents = (0, smithy_client_1.map)({
|
|
3335
|
-
$metadata: deserializeMetadata(output),
|
|
3336
|
-
});
|
|
3337
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3338
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3339
|
-
MaintenanceId: smithy_client_1.expectString,
|
|
3340
|
-
});
|
|
3341
|
-
Object.assign(contents, doc);
|
|
3342
|
-
return contents;
|
|
3343
|
-
};
|
|
3344
|
-
exports.de_StartDomainMaintenanceCommand = de_StartDomainMaintenanceCommand;
|
|
3345
|
-
const de_StartDomainMaintenanceCommandError = async (output, context) => {
|
|
3346
|
-
const parsedOutput = {
|
|
3347
|
-
...output,
|
|
3348
|
-
body: await parseErrorBody(output.body, context),
|
|
3349
|
-
};
|
|
3350
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3351
|
-
switch (errorCode) {
|
|
3352
|
-
case "BaseException":
|
|
3353
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3354
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3355
|
-
case "DisabledOperationException":
|
|
3356
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3357
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3358
|
-
case "InternalException":
|
|
3359
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3360
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3361
|
-
case "ResourceNotFoundException":
|
|
3362
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3363
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "ValidationException":
|
|
3365
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3366
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3367
|
-
default:
|
|
3368
|
-
const parsedBody = parsedOutput.body;
|
|
3369
|
-
return throwDefaultError({
|
|
3370
|
-
output,
|
|
3371
|
-
parsedBody,
|
|
3372
|
-
errorCode,
|
|
3373
|
-
});
|
|
3374
|
-
}
|
|
3375
|
-
};
|
|
3376
|
-
const de_StartServiceSoftwareUpdateCommand = async (output, context) => {
|
|
3377
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3378
|
-
return de_StartServiceSoftwareUpdateCommandError(output, context);
|
|
3379
|
-
}
|
|
3380
|
-
const contents = (0, smithy_client_1.map)({
|
|
3381
|
-
$metadata: deserializeMetadata(output),
|
|
3382
|
-
});
|
|
3383
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3384
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3385
|
-
ServiceSoftwareOptions: (_) => de_ServiceSoftwareOptions(_, context),
|
|
3386
|
-
});
|
|
3387
|
-
Object.assign(contents, doc);
|
|
3388
|
-
return contents;
|
|
3389
|
-
};
|
|
3390
|
-
exports.de_StartServiceSoftwareUpdateCommand = de_StartServiceSoftwareUpdateCommand;
|
|
3391
|
-
const de_StartServiceSoftwareUpdateCommandError = async (output, context) => {
|
|
3392
|
-
const parsedOutput = {
|
|
3393
|
-
...output,
|
|
3394
|
-
body: await parseErrorBody(output.body, context),
|
|
3395
|
-
};
|
|
3396
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3397
|
-
switch (errorCode) {
|
|
3398
|
-
case "BaseException":
|
|
3399
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3400
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3401
|
-
case "InternalException":
|
|
3402
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3403
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3404
|
-
case "ResourceNotFoundException":
|
|
3405
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3406
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3407
|
-
case "ValidationException":
|
|
3408
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3409
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3410
|
-
default:
|
|
3411
|
-
const parsedBody = parsedOutput.body;
|
|
3412
|
-
return throwDefaultError({
|
|
3413
|
-
output,
|
|
3414
|
-
parsedBody,
|
|
3415
|
-
errorCode,
|
|
3416
|
-
});
|
|
3417
|
-
}
|
|
3418
|
-
};
|
|
3419
|
-
const de_UpdateDataSourceCommand = async (output, context) => {
|
|
3420
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3421
|
-
return de_UpdateDataSourceCommandError(output, context);
|
|
3422
|
-
}
|
|
3423
|
-
const contents = (0, smithy_client_1.map)({
|
|
3424
|
-
$metadata: deserializeMetadata(output),
|
|
3425
|
-
});
|
|
3426
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3427
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3428
|
-
Message: smithy_client_1.expectString,
|
|
3429
|
-
});
|
|
3430
|
-
Object.assign(contents, doc);
|
|
3431
|
-
return contents;
|
|
3432
|
-
};
|
|
3433
|
-
exports.de_UpdateDataSourceCommand = de_UpdateDataSourceCommand;
|
|
3434
|
-
const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
3435
|
-
const parsedOutput = {
|
|
3436
|
-
...output,
|
|
3437
|
-
body: await parseErrorBody(output.body, context),
|
|
3438
|
-
};
|
|
3439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3440
|
-
switch (errorCode) {
|
|
3441
|
-
case "BaseException":
|
|
3442
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3443
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3444
|
-
case "DependencyFailureException":
|
|
3445
|
-
case "com.amazonaws.opensearch#DependencyFailureException":
|
|
3446
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "DisabledOperationException":
|
|
3448
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3449
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3450
|
-
case "InternalException":
|
|
3451
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3452
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3453
|
-
case "ResourceNotFoundException":
|
|
3454
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3455
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3456
|
-
case "ValidationException":
|
|
3457
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3458
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3459
|
-
default:
|
|
3460
|
-
const parsedBody = parsedOutput.body;
|
|
3461
|
-
return throwDefaultError({
|
|
3462
|
-
output,
|
|
3463
|
-
parsedBody,
|
|
3464
|
-
errorCode,
|
|
3465
|
-
});
|
|
3466
|
-
}
|
|
3467
|
-
};
|
|
3468
|
-
const de_UpdateDomainConfigCommand = async (output, context) => {
|
|
3469
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3470
|
-
return de_UpdateDomainConfigCommandError(output, context);
|
|
3471
|
-
}
|
|
3472
|
-
const contents = (0, smithy_client_1.map)({
|
|
3473
|
-
$metadata: deserializeMetadata(output),
|
|
3474
|
-
});
|
|
3475
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3476
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3477
|
-
DomainConfig: (_) => de_DomainConfig(_, context),
|
|
3478
|
-
DryRunProgressStatus: smithy_client_1._json,
|
|
3479
|
-
DryRunResults: smithy_client_1._json,
|
|
3480
|
-
});
|
|
3481
|
-
Object.assign(contents, doc);
|
|
3482
|
-
return contents;
|
|
3483
|
-
};
|
|
3484
|
-
exports.de_UpdateDomainConfigCommand = de_UpdateDomainConfigCommand;
|
|
3485
|
-
const de_UpdateDomainConfigCommandError = async (output, context) => {
|
|
3486
|
-
const parsedOutput = {
|
|
3487
|
-
...output,
|
|
3488
|
-
body: await parseErrorBody(output.body, context),
|
|
3489
|
-
};
|
|
3490
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3491
|
-
switch (errorCode) {
|
|
3492
|
-
case "BaseException":
|
|
3493
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3494
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3495
|
-
case "InternalException":
|
|
3496
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3497
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3498
|
-
case "InvalidTypeException":
|
|
3499
|
-
case "com.amazonaws.opensearch#InvalidTypeException":
|
|
3500
|
-
throw await de_InvalidTypeExceptionRes(parsedOutput, context);
|
|
3501
|
-
case "LimitExceededException":
|
|
3502
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
3503
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3504
|
-
case "ResourceNotFoundException":
|
|
3505
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3506
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3507
|
-
case "ValidationException":
|
|
3508
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3509
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3510
|
-
default:
|
|
3511
|
-
const parsedBody = parsedOutput.body;
|
|
3512
|
-
return throwDefaultError({
|
|
3513
|
-
output,
|
|
3514
|
-
parsedBody,
|
|
3515
|
-
errorCode,
|
|
3516
|
-
});
|
|
3517
|
-
}
|
|
3518
|
-
};
|
|
3519
|
-
const de_UpdatePackageCommand = async (output, context) => {
|
|
3520
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3521
|
-
return de_UpdatePackageCommandError(output, context);
|
|
3522
|
-
}
|
|
3523
|
-
const contents = (0, smithy_client_1.map)({
|
|
3524
|
-
$metadata: deserializeMetadata(output),
|
|
3525
|
-
});
|
|
3526
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3527
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3528
|
-
PackageDetails: (_) => de_PackageDetails(_, context),
|
|
3529
|
-
});
|
|
3530
|
-
Object.assign(contents, doc);
|
|
3531
|
-
return contents;
|
|
3532
|
-
};
|
|
3533
|
-
exports.de_UpdatePackageCommand = de_UpdatePackageCommand;
|
|
3534
|
-
const de_UpdatePackageCommandError = async (output, context) => {
|
|
3535
|
-
const parsedOutput = {
|
|
3536
|
-
...output,
|
|
3537
|
-
body: await parseErrorBody(output.body, context),
|
|
3538
|
-
};
|
|
3539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3540
|
-
switch (errorCode) {
|
|
3541
|
-
case "AccessDeniedException":
|
|
3542
|
-
case "com.amazonaws.opensearch#AccessDeniedException":
|
|
3543
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3544
|
-
case "BaseException":
|
|
3545
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3546
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3547
|
-
case "InternalException":
|
|
3548
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3549
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3550
|
-
case "LimitExceededException":
|
|
3551
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
3552
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3553
|
-
case "ResourceNotFoundException":
|
|
3554
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3555
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3556
|
-
case "ValidationException":
|
|
3557
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3558
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3559
|
-
default:
|
|
3560
|
-
const parsedBody = parsedOutput.body;
|
|
3561
|
-
return throwDefaultError({
|
|
3562
|
-
output,
|
|
3563
|
-
parsedBody,
|
|
3564
|
-
errorCode,
|
|
3565
|
-
});
|
|
3566
|
-
}
|
|
3567
|
-
};
|
|
3568
|
-
const de_UpdateScheduledActionCommand = async (output, context) => {
|
|
3569
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3570
|
-
return de_UpdateScheduledActionCommandError(output, context);
|
|
3571
|
-
}
|
|
3572
|
-
const contents = (0, smithy_client_1.map)({
|
|
3573
|
-
$metadata: deserializeMetadata(output),
|
|
3574
|
-
});
|
|
3575
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3576
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3577
|
-
ScheduledAction: smithy_client_1._json,
|
|
3578
|
-
});
|
|
3579
|
-
Object.assign(contents, doc);
|
|
3580
|
-
return contents;
|
|
3581
|
-
};
|
|
3582
|
-
exports.de_UpdateScheduledActionCommand = de_UpdateScheduledActionCommand;
|
|
3583
|
-
const de_UpdateScheduledActionCommandError = async (output, context) => {
|
|
3584
|
-
const parsedOutput = {
|
|
3585
|
-
...output,
|
|
3586
|
-
body: await parseErrorBody(output.body, context),
|
|
3587
|
-
};
|
|
3588
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3589
|
-
switch (errorCode) {
|
|
3590
|
-
case "BaseException":
|
|
3591
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3592
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3593
|
-
case "ConflictException":
|
|
3594
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
3595
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3596
|
-
case "InternalException":
|
|
3597
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3598
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3599
|
-
case "LimitExceededException":
|
|
3600
|
-
case "com.amazonaws.opensearch#LimitExceededException":
|
|
3601
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3602
|
-
case "ResourceNotFoundException":
|
|
3603
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3604
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3605
|
-
case "SlotNotAvailableException":
|
|
3606
|
-
case "com.amazonaws.opensearch#SlotNotAvailableException":
|
|
3607
|
-
throw await de_SlotNotAvailableExceptionRes(parsedOutput, context);
|
|
3608
|
-
case "ValidationException":
|
|
3609
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3610
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3611
|
-
default:
|
|
3612
|
-
const parsedBody = parsedOutput.body;
|
|
3613
|
-
return throwDefaultError({
|
|
3614
|
-
output,
|
|
3615
|
-
parsedBody,
|
|
3616
|
-
errorCode,
|
|
3617
|
-
});
|
|
3618
|
-
}
|
|
3619
|
-
};
|
|
3620
|
-
const de_UpdateVpcEndpointCommand = async (output, context) => {
|
|
3621
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3622
|
-
return de_UpdateVpcEndpointCommandError(output, context);
|
|
3623
|
-
}
|
|
3624
|
-
const contents = (0, smithy_client_1.map)({
|
|
3625
|
-
$metadata: deserializeMetadata(output),
|
|
3626
|
-
});
|
|
3627
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3628
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3629
|
-
VpcEndpoint: smithy_client_1._json,
|
|
3630
|
-
});
|
|
3631
|
-
Object.assign(contents, doc);
|
|
3632
|
-
return contents;
|
|
3633
|
-
};
|
|
3634
|
-
exports.de_UpdateVpcEndpointCommand = de_UpdateVpcEndpointCommand;
|
|
3635
|
-
const de_UpdateVpcEndpointCommandError = async (output, context) => {
|
|
3636
|
-
const parsedOutput = {
|
|
3637
|
-
...output,
|
|
3638
|
-
body: await parseErrorBody(output.body, context),
|
|
3639
|
-
};
|
|
3640
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3641
|
-
switch (errorCode) {
|
|
3642
|
-
case "BaseException":
|
|
3643
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3644
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3645
|
-
case "ConflictException":
|
|
3646
|
-
case "com.amazonaws.opensearch#ConflictException":
|
|
3647
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3648
|
-
case "DisabledOperationException":
|
|
3649
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3650
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3651
|
-
case "InternalException":
|
|
3652
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3653
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3654
|
-
case "ResourceNotFoundException":
|
|
3655
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3656
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3657
|
-
case "ValidationException":
|
|
3658
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3659
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3660
|
-
default:
|
|
3661
|
-
const parsedBody = parsedOutput.body;
|
|
3662
|
-
return throwDefaultError({
|
|
3663
|
-
output,
|
|
3664
|
-
parsedBody,
|
|
3665
|
-
errorCode,
|
|
3666
|
-
});
|
|
3667
|
-
}
|
|
3668
|
-
};
|
|
3669
|
-
const de_UpgradeDomainCommand = async (output, context) => {
|
|
3670
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3671
|
-
return de_UpgradeDomainCommandError(output, context);
|
|
3672
|
-
}
|
|
3673
|
-
const contents = (0, smithy_client_1.map)({
|
|
3674
|
-
$metadata: deserializeMetadata(output),
|
|
3675
|
-
});
|
|
3676
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3677
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3678
|
-
AdvancedOptions: smithy_client_1._json,
|
|
3679
|
-
ChangeProgressDetails: smithy_client_1._json,
|
|
3680
|
-
DomainName: smithy_client_1.expectString,
|
|
3681
|
-
PerformCheckOnly: smithy_client_1.expectBoolean,
|
|
3682
|
-
TargetVersion: smithy_client_1.expectString,
|
|
3683
|
-
UpgradeId: smithy_client_1.expectString,
|
|
3684
|
-
});
|
|
3685
|
-
Object.assign(contents, doc);
|
|
3686
|
-
return contents;
|
|
3687
|
-
};
|
|
3688
|
-
exports.de_UpgradeDomainCommand = de_UpgradeDomainCommand;
|
|
3689
|
-
const de_UpgradeDomainCommandError = async (output, context) => {
|
|
3690
|
-
const parsedOutput = {
|
|
3691
|
-
...output,
|
|
3692
|
-
body: await parseErrorBody(output.body, context),
|
|
3693
|
-
};
|
|
3694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3695
|
-
switch (errorCode) {
|
|
3696
|
-
case "BaseException":
|
|
3697
|
-
case "com.amazonaws.opensearch#BaseException":
|
|
3698
|
-
throw await de_BaseExceptionRes(parsedOutput, context);
|
|
3699
|
-
case "DisabledOperationException":
|
|
3700
|
-
case "com.amazonaws.opensearch#DisabledOperationException":
|
|
3701
|
-
throw await de_DisabledOperationExceptionRes(parsedOutput, context);
|
|
3702
|
-
case "InternalException":
|
|
3703
|
-
case "com.amazonaws.opensearch#InternalException":
|
|
3704
|
-
throw await de_InternalExceptionRes(parsedOutput, context);
|
|
3705
|
-
case "ResourceAlreadyExistsException":
|
|
3706
|
-
case "com.amazonaws.opensearch#ResourceAlreadyExistsException":
|
|
3707
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3708
|
-
case "ResourceNotFoundException":
|
|
3709
|
-
case "com.amazonaws.opensearch#ResourceNotFoundException":
|
|
3710
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3711
|
-
case "ValidationException":
|
|
3712
|
-
case "com.amazonaws.opensearch#ValidationException":
|
|
3713
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3714
|
-
default:
|
|
3715
|
-
const parsedBody = parsedOutput.body;
|
|
3716
|
-
return throwDefaultError({
|
|
3717
|
-
output,
|
|
3718
|
-
parsedBody,
|
|
3719
|
-
errorCode,
|
|
3720
|
-
});
|
|
3721
|
-
}
|
|
3722
|
-
};
|
|
3723
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(OpenSearchServiceException_1.OpenSearchServiceException);
|
|
3724
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3725
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3726
|
-
const data = parsedOutput.body;
|
|
3727
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3728
|
-
message: smithy_client_1.expectString,
|
|
3729
|
-
});
|
|
3730
|
-
Object.assign(contents, doc);
|
|
3731
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3732
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3733
|
-
...contents,
|
|
3734
|
-
});
|
|
3735
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3736
|
-
};
|
|
3737
|
-
const de_BaseExceptionRes = async (parsedOutput, context) => {
|
|
3738
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3739
|
-
const data = parsedOutput.body;
|
|
3740
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3741
|
-
message: smithy_client_1.expectString,
|
|
3742
|
-
});
|
|
3743
|
-
Object.assign(contents, doc);
|
|
3744
|
-
const exception = new models_0_1.BaseException({
|
|
3745
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3746
|
-
...contents,
|
|
3747
|
-
});
|
|
3748
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3749
|
-
};
|
|
3750
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3751
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3752
|
-
const data = parsedOutput.body;
|
|
3753
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3754
|
-
message: smithy_client_1.expectString,
|
|
3755
|
-
});
|
|
3756
|
-
Object.assign(contents, doc);
|
|
3757
|
-
const exception = new models_0_1.ConflictException({
|
|
3758
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3759
|
-
...contents,
|
|
3760
|
-
});
|
|
3761
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3762
|
-
};
|
|
3763
|
-
const de_DependencyFailureExceptionRes = async (parsedOutput, context) => {
|
|
3764
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3765
|
-
const data = parsedOutput.body;
|
|
3766
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3767
|
-
message: smithy_client_1.expectString,
|
|
3768
|
-
});
|
|
3769
|
-
Object.assign(contents, doc);
|
|
3770
|
-
const exception = new models_0_1.DependencyFailureException({
|
|
3771
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3772
|
-
...contents,
|
|
3773
|
-
});
|
|
3774
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3775
|
-
};
|
|
3776
|
-
const de_DisabledOperationExceptionRes = async (parsedOutput, context) => {
|
|
3777
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3778
|
-
const data = parsedOutput.body;
|
|
3779
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3780
|
-
message: smithy_client_1.expectString,
|
|
3781
|
-
});
|
|
3782
|
-
Object.assign(contents, doc);
|
|
3783
|
-
const exception = new models_0_1.DisabledOperationException({
|
|
3784
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3785
|
-
...contents,
|
|
3786
|
-
});
|
|
3787
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3788
|
-
};
|
|
3789
|
-
const de_InternalExceptionRes = async (parsedOutput, context) => {
|
|
3790
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3791
|
-
const data = parsedOutput.body;
|
|
3792
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3793
|
-
message: smithy_client_1.expectString,
|
|
3794
|
-
});
|
|
3795
|
-
Object.assign(contents, doc);
|
|
3796
|
-
const exception = new models_0_1.InternalException({
|
|
3797
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3798
|
-
...contents,
|
|
3799
|
-
});
|
|
3800
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3801
|
-
};
|
|
3802
|
-
const de_InvalidPaginationTokenExceptionRes = async (parsedOutput, context) => {
|
|
3803
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3804
|
-
const data = parsedOutput.body;
|
|
3805
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3806
|
-
message: smithy_client_1.expectString,
|
|
3807
|
-
});
|
|
3808
|
-
Object.assign(contents, doc);
|
|
3809
|
-
const exception = new models_0_1.InvalidPaginationTokenException({
|
|
3810
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3811
|
-
...contents,
|
|
3812
|
-
});
|
|
3813
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3814
|
-
};
|
|
3815
|
-
const de_InvalidTypeExceptionRes = async (parsedOutput, context) => {
|
|
3816
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3817
|
-
const data = parsedOutput.body;
|
|
3818
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3819
|
-
message: smithy_client_1.expectString,
|
|
3820
|
-
});
|
|
3821
|
-
Object.assign(contents, doc);
|
|
3822
|
-
const exception = new models_0_1.InvalidTypeException({
|
|
3823
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3824
|
-
...contents,
|
|
3825
|
-
});
|
|
3826
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3827
|
-
};
|
|
3828
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3829
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3830
|
-
const data = parsedOutput.body;
|
|
3831
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3832
|
-
message: smithy_client_1.expectString,
|
|
3833
|
-
});
|
|
3834
|
-
Object.assign(contents, doc);
|
|
3835
|
-
const exception = new models_0_1.LimitExceededException({
|
|
3836
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3837
|
-
...contents,
|
|
3838
|
-
});
|
|
3839
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3840
|
-
};
|
|
3841
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3842
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3843
|
-
const data = parsedOutput.body;
|
|
3844
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3845
|
-
message: smithy_client_1.expectString,
|
|
3846
|
-
});
|
|
3847
|
-
Object.assign(contents, doc);
|
|
3848
|
-
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
3849
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3850
|
-
...contents,
|
|
3851
|
-
});
|
|
3852
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3853
|
-
};
|
|
3854
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3855
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3856
|
-
const data = parsedOutput.body;
|
|
3857
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3858
|
-
message: smithy_client_1.expectString,
|
|
3859
|
-
});
|
|
3860
|
-
Object.assign(contents, doc);
|
|
3861
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3862
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3863
|
-
...contents,
|
|
3864
|
-
});
|
|
3865
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3866
|
-
};
|
|
3867
|
-
const de_SlotNotAvailableExceptionRes = async (parsedOutput, context) => {
|
|
3868
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3869
|
-
const data = parsedOutput.body;
|
|
3870
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3871
|
-
SlotSuggestions: smithy_client_1._json,
|
|
3872
|
-
message: smithy_client_1.expectString,
|
|
3873
|
-
});
|
|
3874
|
-
Object.assign(contents, doc);
|
|
3875
|
-
const exception = new models_0_1.SlotNotAvailableException({
|
|
3876
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3877
|
-
...contents,
|
|
3878
|
-
});
|
|
3879
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3880
|
-
};
|
|
3881
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3882
|
-
const contents = (0, smithy_client_1.map)({});
|
|
3883
|
-
const data = parsedOutput.body;
|
|
3884
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3885
|
-
message: smithy_client_1.expectString,
|
|
3886
|
-
});
|
|
3887
|
-
Object.assign(contents, doc);
|
|
3888
|
-
const exception = new models_0_1.ValidationException({
|
|
3889
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3890
|
-
...contents,
|
|
3891
|
-
});
|
|
3892
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3893
|
-
};
|
|
3894
|
-
const se_AutoTuneMaintenanceSchedule = (input, context) => {
|
|
3895
|
-
return (0, smithy_client_1.take)(input, {
|
|
3896
|
-
CronExpressionForRecurrence: [],
|
|
3897
|
-
Duration: smithy_client_1._json,
|
|
3898
|
-
StartAt: (_) => Math.round(_.getTime() / 1000),
|
|
3899
|
-
});
|
|
3900
|
-
};
|
|
3901
|
-
const se_AutoTuneMaintenanceScheduleList = (input, context) => {
|
|
3902
|
-
return input
|
|
3903
|
-
.filter((e) => e != null)
|
|
3904
|
-
.map((entry) => {
|
|
3905
|
-
return se_AutoTuneMaintenanceSchedule(entry, context);
|
|
3906
|
-
});
|
|
3907
|
-
};
|
|
3908
|
-
const se_AutoTuneOptions = (input, context) => {
|
|
3909
|
-
return (0, smithy_client_1.take)(input, {
|
|
3910
|
-
DesiredState: [],
|
|
3911
|
-
MaintenanceSchedules: (_) => se_AutoTuneMaintenanceScheduleList(_, context),
|
|
3912
|
-
RollbackOnDisable: [],
|
|
3913
|
-
UseOffPeakWindow: [],
|
|
3914
|
-
});
|
|
3915
|
-
};
|
|
3916
|
-
const se_AutoTuneOptionsInput = (input, context) => {
|
|
3917
|
-
return (0, smithy_client_1.take)(input, {
|
|
3918
|
-
DesiredState: [],
|
|
3919
|
-
MaintenanceSchedules: (_) => se_AutoTuneMaintenanceScheduleList(_, context),
|
|
3920
|
-
UseOffPeakWindow: [],
|
|
3921
|
-
});
|
|
3922
|
-
};
|
|
3923
|
-
const de_AccessPoliciesStatus = (output, context) => {
|
|
3924
|
-
return (0, smithy_client_1.take)(output, {
|
|
3925
|
-
Options: smithy_client_1.expectString,
|
|
3926
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
3927
|
-
});
|
|
3928
|
-
};
|
|
3929
|
-
const de_AdvancedOptionsStatus = (output, context) => {
|
|
3930
|
-
return (0, smithy_client_1.take)(output, {
|
|
3931
|
-
Options: smithy_client_1._json,
|
|
3932
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
3933
|
-
});
|
|
3934
|
-
};
|
|
3935
|
-
const de_AdvancedSecurityOptions = (output, context) => {
|
|
3936
|
-
return (0, smithy_client_1.take)(output, {
|
|
3937
|
-
AnonymousAuthDisableDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3938
|
-
AnonymousAuthEnabled: smithy_client_1.expectBoolean,
|
|
3939
|
-
Enabled: smithy_client_1.expectBoolean,
|
|
3940
|
-
InternalUserDatabaseEnabled: smithy_client_1.expectBoolean,
|
|
3941
|
-
SAMLOptions: smithy_client_1._json,
|
|
3942
|
-
});
|
|
3943
|
-
};
|
|
3944
|
-
const de_AdvancedSecurityOptionsStatus = (output, context) => {
|
|
3945
|
-
return (0, smithy_client_1.take)(output, {
|
|
3946
|
-
Options: (_) => de_AdvancedSecurityOptions(_, context),
|
|
3947
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
3948
|
-
});
|
|
3949
|
-
};
|
|
3950
|
-
const de_AutoTune = (output, context) => {
|
|
3951
|
-
return (0, smithy_client_1.take)(output, {
|
|
3952
|
-
AutoTuneDetails: (_) => de_AutoTuneDetails(_, context),
|
|
3953
|
-
AutoTuneType: smithy_client_1.expectString,
|
|
3954
|
-
});
|
|
3955
|
-
};
|
|
3956
|
-
const de_AutoTuneDetails = (output, context) => {
|
|
3957
|
-
return (0, smithy_client_1.take)(output, {
|
|
3958
|
-
ScheduledAutoTuneDetails: (_) => de_ScheduledAutoTuneDetails(_, context),
|
|
3959
|
-
});
|
|
3960
|
-
};
|
|
3961
|
-
const de_AutoTuneList = (output, context) => {
|
|
3962
|
-
const retVal = (output || [])
|
|
3963
|
-
.filter((e) => e != null)
|
|
3964
|
-
.map((entry) => {
|
|
3965
|
-
return de_AutoTune(entry, context);
|
|
3966
|
-
});
|
|
3967
|
-
return retVal;
|
|
3968
|
-
};
|
|
3969
|
-
const de_AutoTuneMaintenanceSchedule = (output, context) => {
|
|
3970
|
-
return (0, smithy_client_1.take)(output, {
|
|
3971
|
-
CronExpressionForRecurrence: smithy_client_1.expectString,
|
|
3972
|
-
Duration: smithy_client_1._json,
|
|
3973
|
-
StartAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
3974
|
-
});
|
|
3975
|
-
};
|
|
3976
|
-
const de_AutoTuneMaintenanceScheduleList = (output, context) => {
|
|
3977
|
-
const retVal = (output || [])
|
|
3978
|
-
.filter((e) => e != null)
|
|
3979
|
-
.map((entry) => {
|
|
3980
|
-
return de_AutoTuneMaintenanceSchedule(entry, context);
|
|
3981
|
-
});
|
|
3982
|
-
return retVal;
|
|
3983
|
-
};
|
|
3984
|
-
const de_AutoTuneOptions = (output, context) => {
|
|
3985
|
-
return (0, smithy_client_1.take)(output, {
|
|
3986
|
-
DesiredState: smithy_client_1.expectString,
|
|
3987
|
-
MaintenanceSchedules: (_) => de_AutoTuneMaintenanceScheduleList(_, context),
|
|
3988
|
-
RollbackOnDisable: smithy_client_1.expectString,
|
|
3989
|
-
UseOffPeakWindow: smithy_client_1.expectBoolean,
|
|
3990
|
-
});
|
|
3991
|
-
};
|
|
3992
|
-
const de_AutoTuneOptionsStatus = (output, context) => {
|
|
3993
|
-
return (0, smithy_client_1.take)(output, {
|
|
3994
|
-
Options: (_) => de_AutoTuneOptions(_, context),
|
|
3995
|
-
Status: (_) => de_AutoTuneStatus(_, context),
|
|
3996
|
-
});
|
|
3997
|
-
};
|
|
3998
|
-
const de_AutoTuneStatus = (output, context) => {
|
|
3999
|
-
return (0, smithy_client_1.take)(output, {
|
|
4000
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4001
|
-
ErrorMessage: smithy_client_1.expectString,
|
|
4002
|
-
PendingDeletion: smithy_client_1.expectBoolean,
|
|
4003
|
-
State: smithy_client_1.expectString,
|
|
4004
|
-
UpdateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4005
|
-
UpdateVersion: smithy_client_1.expectInt32,
|
|
4006
|
-
});
|
|
4007
|
-
};
|
|
4008
|
-
const de_ChangeProgressStage = (output, context) => {
|
|
4009
|
-
return (0, smithy_client_1.take)(output, {
|
|
4010
|
-
Description: smithy_client_1.expectString,
|
|
4011
|
-
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4012
|
-
Name: smithy_client_1.expectString,
|
|
4013
|
-
Status: smithy_client_1.expectString,
|
|
4014
|
-
});
|
|
4015
|
-
};
|
|
4016
|
-
const de_ChangeProgressStageList = (output, context) => {
|
|
4017
|
-
const retVal = (output || [])
|
|
4018
|
-
.filter((e) => e != null)
|
|
4019
|
-
.map((entry) => {
|
|
4020
|
-
return de_ChangeProgressStage(entry, context);
|
|
4021
|
-
});
|
|
4022
|
-
return retVal;
|
|
4023
|
-
};
|
|
4024
|
-
const de_ChangeProgressStatusDetails = (output, context) => {
|
|
4025
|
-
return (0, smithy_client_1.take)(output, {
|
|
4026
|
-
ChangeId: smithy_client_1.expectString,
|
|
4027
|
-
ChangeProgressStages: (_) => de_ChangeProgressStageList(_, context),
|
|
4028
|
-
CompletedProperties: smithy_client_1._json,
|
|
4029
|
-
PendingProperties: smithy_client_1._json,
|
|
4030
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4031
|
-
Status: smithy_client_1.expectString,
|
|
4032
|
-
TotalNumberOfStages: smithy_client_1.expectInt32,
|
|
4033
|
-
});
|
|
4034
|
-
};
|
|
4035
|
-
const de_ClusterConfigStatus = (output, context) => {
|
|
4036
|
-
return (0, smithy_client_1.take)(output, {
|
|
4037
|
-
Options: smithy_client_1._json,
|
|
4038
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4039
|
-
});
|
|
4040
|
-
};
|
|
4041
|
-
const de_CognitoOptionsStatus = (output, context) => {
|
|
4042
|
-
return (0, smithy_client_1.take)(output, {
|
|
4043
|
-
Options: smithy_client_1._json,
|
|
4044
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4045
|
-
});
|
|
4046
|
-
};
|
|
4047
|
-
const de_DomainConfig = (output, context) => {
|
|
4048
|
-
return (0, smithy_client_1.take)(output, {
|
|
4049
|
-
AccessPolicies: (_) => de_AccessPoliciesStatus(_, context),
|
|
4050
|
-
AdvancedOptions: (_) => de_AdvancedOptionsStatus(_, context),
|
|
4051
|
-
AdvancedSecurityOptions: (_) => de_AdvancedSecurityOptionsStatus(_, context),
|
|
4052
|
-
AutoTuneOptions: (_) => de_AutoTuneOptionsStatus(_, context),
|
|
4053
|
-
ChangeProgressDetails: smithy_client_1._json,
|
|
4054
|
-
ClusterConfig: (_) => de_ClusterConfigStatus(_, context),
|
|
4055
|
-
CognitoOptions: (_) => de_CognitoOptionsStatus(_, context),
|
|
4056
|
-
DomainEndpointOptions: (_) => de_DomainEndpointOptionsStatus(_, context),
|
|
4057
|
-
EBSOptions: (_) => de_EBSOptionsStatus(_, context),
|
|
4058
|
-
EncryptionAtRestOptions: (_) => de_EncryptionAtRestOptionsStatus(_, context),
|
|
4059
|
-
EngineVersion: (_) => de_VersionStatus(_, context),
|
|
4060
|
-
IPAddressType: (_) => de_IPAddressTypeStatus(_, context),
|
|
4061
|
-
LogPublishingOptions: (_) => de_LogPublishingOptionsStatus(_, context),
|
|
4062
|
-
NodeToNodeEncryptionOptions: (_) => de_NodeToNodeEncryptionOptionsStatus(_, context),
|
|
4063
|
-
OffPeakWindowOptions: (_) => de_OffPeakWindowOptionsStatus(_, context),
|
|
4064
|
-
SnapshotOptions: (_) => de_SnapshotOptionsStatus(_, context),
|
|
4065
|
-
SoftwareUpdateOptions: (_) => de_SoftwareUpdateOptionsStatus(_, context),
|
|
4066
|
-
VPCOptions: (_) => de_VPCDerivedInfoStatus(_, context),
|
|
4067
|
-
});
|
|
4068
|
-
};
|
|
4069
|
-
const de_DomainEndpointOptionsStatus = (output, context) => {
|
|
4070
|
-
return (0, smithy_client_1.take)(output, {
|
|
4071
|
-
Options: smithy_client_1._json,
|
|
4072
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4073
|
-
});
|
|
4074
|
-
};
|
|
4075
|
-
const de_DomainMaintenanceDetails = (output, context) => {
|
|
4076
|
-
return (0, smithy_client_1.take)(output, {
|
|
4077
|
-
Action: smithy_client_1.expectString,
|
|
4078
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4079
|
-
DomainName: smithy_client_1.expectString,
|
|
4080
|
-
MaintenanceId: smithy_client_1.expectString,
|
|
4081
|
-
NodeId: smithy_client_1.expectString,
|
|
4082
|
-
Status: smithy_client_1.expectString,
|
|
4083
|
-
StatusMessage: smithy_client_1.expectString,
|
|
4084
|
-
UpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4085
|
-
});
|
|
4086
|
-
};
|
|
4087
|
-
const de_DomainMaintenanceList = (output, context) => {
|
|
4088
|
-
const retVal = (output || [])
|
|
4089
|
-
.filter((e) => e != null)
|
|
4090
|
-
.map((entry) => {
|
|
4091
|
-
return de_DomainMaintenanceDetails(entry, context);
|
|
4092
|
-
});
|
|
4093
|
-
return retVal;
|
|
4094
|
-
};
|
|
4095
|
-
const de_DomainPackageDetails = (output, context) => {
|
|
4096
|
-
return (0, smithy_client_1.take)(output, {
|
|
4097
|
-
DomainName: smithy_client_1.expectString,
|
|
4098
|
-
DomainPackageStatus: smithy_client_1.expectString,
|
|
4099
|
-
ErrorDetails: smithy_client_1._json,
|
|
4100
|
-
LastUpdated: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4101
|
-
PackageID: smithy_client_1.expectString,
|
|
4102
|
-
PackageName: smithy_client_1.expectString,
|
|
4103
|
-
PackageType: smithy_client_1.expectString,
|
|
4104
|
-
PackageVersion: smithy_client_1.expectString,
|
|
4105
|
-
ReferencePath: smithy_client_1.expectString,
|
|
4106
|
-
});
|
|
4107
|
-
};
|
|
4108
|
-
const de_DomainPackageDetailsList = (output, context) => {
|
|
4109
|
-
const retVal = (output || [])
|
|
4110
|
-
.filter((e) => e != null)
|
|
4111
|
-
.map((entry) => {
|
|
4112
|
-
return de_DomainPackageDetails(entry, context);
|
|
4113
|
-
});
|
|
4114
|
-
return retVal;
|
|
4115
|
-
};
|
|
4116
|
-
const de_DomainStatus = (output, context) => {
|
|
4117
|
-
return (0, smithy_client_1.take)(output, {
|
|
4118
|
-
ARN: smithy_client_1.expectString,
|
|
4119
|
-
AccessPolicies: smithy_client_1.expectString,
|
|
4120
|
-
AdvancedOptions: smithy_client_1._json,
|
|
4121
|
-
AdvancedSecurityOptions: (_) => de_AdvancedSecurityOptions(_, context),
|
|
4122
|
-
AutoTuneOptions: smithy_client_1._json,
|
|
4123
|
-
ChangeProgressDetails: smithy_client_1._json,
|
|
4124
|
-
ClusterConfig: smithy_client_1._json,
|
|
4125
|
-
CognitoOptions: smithy_client_1._json,
|
|
4126
|
-
Created: smithy_client_1.expectBoolean,
|
|
4127
|
-
Deleted: smithy_client_1.expectBoolean,
|
|
4128
|
-
DomainEndpointOptions: smithy_client_1._json,
|
|
4129
|
-
DomainId: smithy_client_1.expectString,
|
|
4130
|
-
DomainName: smithy_client_1.expectString,
|
|
4131
|
-
EBSOptions: smithy_client_1._json,
|
|
4132
|
-
EncryptionAtRestOptions: smithy_client_1._json,
|
|
4133
|
-
Endpoint: smithy_client_1.expectString,
|
|
4134
|
-
EndpointV2: smithy_client_1.expectString,
|
|
4135
|
-
Endpoints: smithy_client_1._json,
|
|
4136
|
-
EngineVersion: smithy_client_1.expectString,
|
|
4137
|
-
IPAddressType: smithy_client_1.expectString,
|
|
4138
|
-
LogPublishingOptions: smithy_client_1._json,
|
|
4139
|
-
NodeToNodeEncryptionOptions: smithy_client_1._json,
|
|
4140
|
-
OffPeakWindowOptions: smithy_client_1._json,
|
|
4141
|
-
Processing: smithy_client_1.expectBoolean,
|
|
4142
|
-
ServiceSoftwareOptions: (_) => de_ServiceSoftwareOptions(_, context),
|
|
4143
|
-
SnapshotOptions: smithy_client_1._json,
|
|
4144
|
-
SoftwareUpdateOptions: smithy_client_1._json,
|
|
4145
|
-
UpgradeProcessing: smithy_client_1.expectBoolean,
|
|
4146
|
-
VPCOptions: smithy_client_1._json,
|
|
4147
|
-
});
|
|
4148
|
-
};
|
|
4149
|
-
const de_DomainStatusList = (output, context) => {
|
|
4150
|
-
const retVal = (output || [])
|
|
4151
|
-
.filter((e) => e != null)
|
|
4152
|
-
.map((entry) => {
|
|
4153
|
-
return de_DomainStatus(entry, context);
|
|
4154
|
-
});
|
|
4155
|
-
return retVal;
|
|
4156
|
-
};
|
|
4157
|
-
const de_EBSOptionsStatus = (output, context) => {
|
|
4158
|
-
return (0, smithy_client_1.take)(output, {
|
|
4159
|
-
Options: smithy_client_1._json,
|
|
4160
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4161
|
-
});
|
|
4162
|
-
};
|
|
4163
|
-
const de_EncryptionAtRestOptionsStatus = (output, context) => {
|
|
4164
|
-
return (0, smithy_client_1.take)(output, {
|
|
4165
|
-
Options: smithy_client_1._json,
|
|
4166
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4167
|
-
});
|
|
4168
|
-
};
|
|
4169
|
-
const de_IPAddressTypeStatus = (output, context) => {
|
|
4170
|
-
return (0, smithy_client_1.take)(output, {
|
|
4171
|
-
Options: smithy_client_1.expectString,
|
|
4172
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4173
|
-
});
|
|
4174
|
-
};
|
|
4175
|
-
const de_LogPublishingOptionsStatus = (output, context) => {
|
|
4176
|
-
return (0, smithy_client_1.take)(output, {
|
|
4177
|
-
Options: smithy_client_1._json,
|
|
4178
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4179
|
-
});
|
|
4180
|
-
};
|
|
4181
|
-
const de_NodeToNodeEncryptionOptionsStatus = (output, context) => {
|
|
4182
|
-
return (0, smithy_client_1.take)(output, {
|
|
4183
|
-
Options: smithy_client_1._json,
|
|
4184
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4185
|
-
});
|
|
4186
|
-
};
|
|
4187
|
-
const de_OffPeakWindowOptionsStatus = (output, context) => {
|
|
4188
|
-
return (0, smithy_client_1.take)(output, {
|
|
4189
|
-
Options: smithy_client_1._json,
|
|
4190
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4191
|
-
});
|
|
4192
|
-
};
|
|
4193
|
-
const de_OptionStatus = (output, context) => {
|
|
4194
|
-
return (0, smithy_client_1.take)(output, {
|
|
4195
|
-
CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4196
|
-
PendingDeletion: smithy_client_1.expectBoolean,
|
|
4197
|
-
State: smithy_client_1.expectString,
|
|
4198
|
-
UpdateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4199
|
-
UpdateVersion: smithy_client_1.expectInt32,
|
|
4200
|
-
});
|
|
4201
|
-
};
|
|
4202
|
-
const de_PackageDetails = (output, context) => {
|
|
4203
|
-
return (0, smithy_client_1.take)(output, {
|
|
4204
|
-
AvailablePackageVersion: smithy_client_1.expectString,
|
|
4205
|
-
AvailablePluginProperties: smithy_client_1._json,
|
|
4206
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4207
|
-
EngineVersion: smithy_client_1.expectString,
|
|
4208
|
-
ErrorDetails: smithy_client_1._json,
|
|
4209
|
-
LastUpdatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4210
|
-
PackageDescription: smithy_client_1.expectString,
|
|
4211
|
-
PackageID: smithy_client_1.expectString,
|
|
4212
|
-
PackageName: smithy_client_1.expectString,
|
|
4213
|
-
PackageStatus: smithy_client_1.expectString,
|
|
4214
|
-
PackageType: smithy_client_1.expectString,
|
|
4215
|
-
});
|
|
4216
|
-
};
|
|
4217
|
-
const de_PackageDetailsList = (output, context) => {
|
|
4218
|
-
const retVal = (output || [])
|
|
4219
|
-
.filter((e) => e != null)
|
|
4220
|
-
.map((entry) => {
|
|
4221
|
-
return de_PackageDetails(entry, context);
|
|
4222
|
-
});
|
|
4223
|
-
return retVal;
|
|
4224
|
-
};
|
|
4225
|
-
const de_PackageVersionHistory = (output, context) => {
|
|
4226
|
-
return (0, smithy_client_1.take)(output, {
|
|
4227
|
-
CommitMessage: smithy_client_1.expectString,
|
|
4228
|
-
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4229
|
-
PackageVersion: smithy_client_1.expectString,
|
|
4230
|
-
PluginProperties: smithy_client_1._json,
|
|
4231
|
-
});
|
|
4232
|
-
};
|
|
4233
|
-
const de_PackageVersionHistoryList = (output, context) => {
|
|
4234
|
-
const retVal = (output || [])
|
|
4235
|
-
.filter((e) => e != null)
|
|
4236
|
-
.map((entry) => {
|
|
4237
|
-
return de_PackageVersionHistory(entry, context);
|
|
4238
|
-
});
|
|
4239
|
-
return retVal;
|
|
4240
|
-
};
|
|
4241
|
-
const de_RecurringCharge = (output, context) => {
|
|
4242
|
-
return (0, smithy_client_1.take)(output, {
|
|
4243
|
-
RecurringChargeAmount: smithy_client_1.limitedParseDouble,
|
|
4244
|
-
RecurringChargeFrequency: smithy_client_1.expectString,
|
|
4245
|
-
});
|
|
4246
|
-
};
|
|
4247
|
-
const de_RecurringChargeList = (output, context) => {
|
|
4248
|
-
const retVal = (output || [])
|
|
4249
|
-
.filter((e) => e != null)
|
|
4250
|
-
.map((entry) => {
|
|
4251
|
-
return de_RecurringCharge(entry, context);
|
|
4252
|
-
});
|
|
4253
|
-
return retVal;
|
|
4254
|
-
};
|
|
4255
|
-
const de_ReservedInstance = (output, context) => {
|
|
4256
|
-
return (0, smithy_client_1.take)(output, {
|
|
4257
|
-
BillingSubscriptionId: smithy_client_1.expectLong,
|
|
4258
|
-
CurrencyCode: smithy_client_1.expectString,
|
|
4259
|
-
Duration: smithy_client_1.expectInt32,
|
|
4260
|
-
FixedPrice: smithy_client_1.limitedParseDouble,
|
|
4261
|
-
InstanceCount: smithy_client_1.expectInt32,
|
|
4262
|
-
InstanceType: smithy_client_1.expectString,
|
|
4263
|
-
PaymentOption: smithy_client_1.expectString,
|
|
4264
|
-
RecurringCharges: (_) => de_RecurringChargeList(_, context),
|
|
4265
|
-
ReservationName: smithy_client_1.expectString,
|
|
4266
|
-
ReservedInstanceId: smithy_client_1.expectString,
|
|
4267
|
-
ReservedInstanceOfferingId: smithy_client_1.expectString,
|
|
4268
|
-
StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4269
|
-
State: smithy_client_1.expectString,
|
|
4270
|
-
UsagePrice: smithy_client_1.limitedParseDouble,
|
|
4271
|
-
});
|
|
4272
|
-
};
|
|
4273
|
-
const de_ReservedInstanceList = (output, context) => {
|
|
4274
|
-
const retVal = (output || [])
|
|
4275
|
-
.filter((e) => e != null)
|
|
4276
|
-
.map((entry) => {
|
|
4277
|
-
return de_ReservedInstance(entry, context);
|
|
4278
|
-
});
|
|
4279
|
-
return retVal;
|
|
4280
|
-
};
|
|
4281
|
-
const de_ReservedInstanceOffering = (output, context) => {
|
|
4282
|
-
return (0, smithy_client_1.take)(output, {
|
|
4283
|
-
CurrencyCode: smithy_client_1.expectString,
|
|
4284
|
-
Duration: smithy_client_1.expectInt32,
|
|
4285
|
-
FixedPrice: smithy_client_1.limitedParseDouble,
|
|
4286
|
-
InstanceType: smithy_client_1.expectString,
|
|
4287
|
-
PaymentOption: smithy_client_1.expectString,
|
|
4288
|
-
RecurringCharges: (_) => de_RecurringChargeList(_, context),
|
|
4289
|
-
ReservedInstanceOfferingId: smithy_client_1.expectString,
|
|
4290
|
-
UsagePrice: smithy_client_1.limitedParseDouble,
|
|
4291
|
-
});
|
|
4292
|
-
};
|
|
4293
|
-
const de_ReservedInstanceOfferingList = (output, context) => {
|
|
4294
|
-
const retVal = (output || [])
|
|
4295
|
-
.filter((e) => e != null)
|
|
4296
|
-
.map((entry) => {
|
|
4297
|
-
return de_ReservedInstanceOffering(entry, context);
|
|
4298
|
-
});
|
|
4299
|
-
return retVal;
|
|
4300
|
-
};
|
|
4301
|
-
const de_ScheduledAutoTuneDetails = (output, context) => {
|
|
4302
|
-
return (0, smithy_client_1.take)(output, {
|
|
4303
|
-
Action: smithy_client_1.expectString,
|
|
4304
|
-
ActionType: smithy_client_1.expectString,
|
|
4305
|
-
Date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4306
|
-
Severity: smithy_client_1.expectString,
|
|
4307
|
-
});
|
|
4308
|
-
};
|
|
4309
|
-
const de_ServiceSoftwareOptions = (output, context) => {
|
|
4310
|
-
return (0, smithy_client_1.take)(output, {
|
|
4311
|
-
AutomatedUpdateDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4312
|
-
Cancellable: smithy_client_1.expectBoolean,
|
|
4313
|
-
CurrentVersion: smithy_client_1.expectString,
|
|
4314
|
-
Description: smithy_client_1.expectString,
|
|
4315
|
-
NewVersion: smithy_client_1.expectString,
|
|
4316
|
-
OptionalDeployment: smithy_client_1.expectBoolean,
|
|
4317
|
-
UpdateAvailable: smithy_client_1.expectBoolean,
|
|
4318
|
-
UpdateStatus: smithy_client_1.expectString,
|
|
4319
|
-
});
|
|
4320
|
-
};
|
|
4321
|
-
const de_SnapshotOptionsStatus = (output, context) => {
|
|
4322
|
-
return (0, smithy_client_1.take)(output, {
|
|
4323
|
-
Options: smithy_client_1._json,
|
|
4324
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4325
|
-
});
|
|
4326
|
-
};
|
|
4327
|
-
const de_SoftwareUpdateOptionsStatus = (output, context) => {
|
|
4328
|
-
return (0, smithy_client_1.take)(output, {
|
|
4329
|
-
Options: smithy_client_1._json,
|
|
4330
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4331
|
-
});
|
|
4332
|
-
};
|
|
4333
|
-
const de_UpgradeHistory = (output, context) => {
|
|
4334
|
-
return (0, smithy_client_1.take)(output, {
|
|
4335
|
-
StartTimestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
4336
|
-
StepsList: (_) => de_UpgradeStepsList(_, context),
|
|
4337
|
-
UpgradeName: smithy_client_1.expectString,
|
|
4338
|
-
UpgradeStatus: smithy_client_1.expectString,
|
|
4339
|
-
});
|
|
4340
|
-
};
|
|
4341
|
-
const de_UpgradeHistoryList = (output, context) => {
|
|
4342
|
-
const retVal = (output || [])
|
|
4343
|
-
.filter((e) => e != null)
|
|
4344
|
-
.map((entry) => {
|
|
4345
|
-
return de_UpgradeHistory(entry, context);
|
|
4346
|
-
});
|
|
4347
|
-
return retVal;
|
|
4348
|
-
};
|
|
4349
|
-
const de_UpgradeStepItem = (output, context) => {
|
|
4350
|
-
return (0, smithy_client_1.take)(output, {
|
|
4351
|
-
Issues: smithy_client_1._json,
|
|
4352
|
-
ProgressPercent: smithy_client_1.limitedParseDouble,
|
|
4353
|
-
UpgradeStep: smithy_client_1.expectString,
|
|
4354
|
-
UpgradeStepStatus: smithy_client_1.expectString,
|
|
4355
|
-
});
|
|
4356
|
-
};
|
|
4357
|
-
const de_UpgradeStepsList = (output, context) => {
|
|
4358
|
-
const retVal = (output || [])
|
|
4359
|
-
.filter((e) => e != null)
|
|
4360
|
-
.map((entry) => {
|
|
4361
|
-
return de_UpgradeStepItem(entry, context);
|
|
4362
|
-
});
|
|
4363
|
-
return retVal;
|
|
4364
|
-
};
|
|
4365
|
-
const de_VersionStatus = (output, context) => {
|
|
4366
|
-
return (0, smithy_client_1.take)(output, {
|
|
4367
|
-
Options: smithy_client_1.expectString,
|
|
4368
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4369
|
-
});
|
|
4370
|
-
};
|
|
4371
|
-
const de_VPCDerivedInfoStatus = (output, context) => {
|
|
4372
|
-
return (0, smithy_client_1.take)(output, {
|
|
4373
|
-
Options: smithy_client_1._json,
|
|
4374
|
-
Status: (_) => de_OptionStatus(_, context),
|
|
4375
|
-
});
|
|
4376
|
-
};
|
|
4377
|
-
const deserializeMetadata = (output) => ({
|
|
4378
|
-
httpStatusCode: output.statusCode,
|
|
4379
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4380
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4381
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4382
|
-
});
|
|
4383
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4384
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4385
|
-
value !== null &&
|
|
4386
|
-
value !== "" &&
|
|
4387
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4388
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4389
|
-
const _A = "Action";
|
|
4390
|
-
const _ARN = "ARN";
|
|
4391
|
-
const _CI = "ChangeId";
|
|
4392
|
-
const _DN = "DomainName";
|
|
4393
|
-
const _DRI = "DryRunId";
|
|
4394
|
-
const _ET = "EngineType";
|
|
4395
|
-
const _IT = "InstanceType";
|
|
4396
|
-
const _LDRC = "LoadDryRunConfig";
|
|
4397
|
-
const _MI = "MaintenanceId";
|
|
4398
|
-
const _MR = "MaxResults";
|
|
4399
|
-
const _NT = "NextToken";
|
|
4400
|
-
const _RAZ = "RetrieveAZs";
|
|
4401
|
-
const _RII = "ReservedInstanceId";
|
|
4402
|
-
const _RIOI = "ReservedInstanceOfferingId";
|
|
4403
|
-
const _S = "Status";
|
|
4404
|
-
const _a = "action";
|
|
4405
|
-
const _ar = "arn";
|
|
4406
|
-
const _c = "changeid";
|
|
4407
|
-
const _dN = "domainName";
|
|
4408
|
-
const _dRI = "dryRunId";
|
|
4409
|
-
const _eT = "engineType";
|
|
4410
|
-
const _iT = "instanceType";
|
|
4411
|
-
const _lDRC = "loadDryRunConfig";
|
|
4412
|
-
const _mI = "maintenanceId";
|
|
4413
|
-
const _mR = "maxResults";
|
|
4414
|
-
const _nT = "nextToken";
|
|
4415
|
-
const _oI = "offeringId";
|
|
4416
|
-
const _rAZ = "retrieveAZs";
|
|
4417
|
-
const _rI = "reservationId";
|
|
4418
|
-
const _s = "status";
|
|
4419
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4420
|
-
if (encoded.length) {
|
|
4421
|
-
return JSON.parse(encoded);
|
|
4422
|
-
}
|
|
4423
|
-
return {};
|
|
4424
|
-
});
|
|
4425
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4426
|
-
const value = await parseBody(errorBody, context);
|
|
4427
|
-
value.message = value.message ?? value.Message;
|
|
4428
|
-
return value;
|
|
4429
|
-
};
|
|
4430
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4431
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4432
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4433
|
-
let cleanValue = rawValue;
|
|
4434
|
-
if (typeof cleanValue === "number") {
|
|
4435
|
-
cleanValue = cleanValue.toString();
|
|
4436
|
-
}
|
|
4437
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4438
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4439
|
-
}
|
|
4440
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4441
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4442
|
-
}
|
|
4443
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4444
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4445
|
-
}
|
|
4446
|
-
return cleanValue;
|
|
4447
|
-
};
|
|
4448
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4449
|
-
if (headerKey !== undefined) {
|
|
4450
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4451
|
-
}
|
|
4452
|
-
if (data.code !== undefined) {
|
|
4453
|
-
return sanitizeErrorCode(data.code);
|
|
4454
|
-
}
|
|
4455
|
-
if (data["__type"] !== undefined) {
|
|
4456
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4457
|
-
}
|
|
4458
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|