@aws-sdk/client-emr-containers 3.489.0 → 3.495.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/EMRContainers.js +1 -51
- package/dist-cjs/EMRContainersClient.js +1 -43
- package/dist-cjs/commands/CancelJobRunCommand.js +1 -28
- package/dist-cjs/commands/CreateJobTemplateCommand.js +1 -29
- package/dist-cjs/commands/CreateManagedEndpointCommand.js +1 -29
- package/dist-cjs/commands/CreateVirtualClusterCommand.js +1 -28
- package/dist-cjs/commands/DeleteJobTemplateCommand.js +1 -28
- package/dist-cjs/commands/DeleteManagedEndpointCommand.js +1 -28
- package/dist-cjs/commands/DeleteVirtualClusterCommand.js +1 -28
- package/dist-cjs/commands/DescribeJobRunCommand.js +1 -29
- package/dist-cjs/commands/DescribeJobTemplateCommand.js +1 -29
- package/dist-cjs/commands/DescribeManagedEndpointCommand.js +1 -29
- package/dist-cjs/commands/DescribeVirtualClusterCommand.js +1 -28
- package/dist-cjs/commands/GetManagedEndpointSessionCredentialsCommand.js +1 -29
- package/dist-cjs/commands/ListJobRunsCommand.js +1 -29
- package/dist-cjs/commands/ListJobTemplatesCommand.js +1 -29
- package/dist-cjs/commands/ListManagedEndpointsCommand.js +1 -29
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListVirtualClustersCommand.js +1 -28
- package/dist-cjs/commands/StartJobRunCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -23
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +2216 -11
- package/dist-cjs/models/EMRContainersServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -244
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListJobRunsPaginator.js +1 -7
- package/dist-cjs/pagination/ListJobTemplatesPaginator.js +1 -7
- package/dist-cjs/pagination/ListManagedEndpointsPaginator.js +1 -7
- package/dist-cjs/pagination/ListVirtualClustersPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -8
- package/dist-cjs/protocols/Aws_restJson1.js +1 -1382
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,1382 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StartJobRunCommand = exports.de_ListVirtualClustersCommand = exports.de_ListTagsForResourceCommand = exports.de_ListManagedEndpointsCommand = exports.de_ListJobTemplatesCommand = exports.de_ListJobRunsCommand = exports.de_GetManagedEndpointSessionCredentialsCommand = exports.de_DescribeVirtualClusterCommand = exports.de_DescribeManagedEndpointCommand = exports.de_DescribeJobTemplateCommand = exports.de_DescribeJobRunCommand = exports.de_DeleteVirtualClusterCommand = exports.de_DeleteManagedEndpointCommand = exports.de_DeleteJobTemplateCommand = exports.de_CreateVirtualClusterCommand = exports.de_CreateManagedEndpointCommand = exports.de_CreateJobTemplateCommand = exports.de_CancelJobRunCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StartJobRunCommand = exports.se_ListVirtualClustersCommand = exports.se_ListTagsForResourceCommand = exports.se_ListManagedEndpointsCommand = exports.se_ListJobTemplatesCommand = exports.se_ListJobRunsCommand = exports.se_GetManagedEndpointSessionCredentialsCommand = exports.se_DescribeVirtualClusterCommand = exports.se_DescribeManagedEndpointCommand = exports.se_DescribeJobTemplateCommand = exports.se_DescribeJobRunCommand = exports.se_DeleteVirtualClusterCommand = exports.se_DeleteManagedEndpointCommand = exports.se_DeleteJobTemplateCommand = exports.se_CreateVirtualClusterCommand = exports.se_CreateManagedEndpointCommand = exports.se_CreateJobTemplateCommand = exports.se_CancelJobRunCommand = void 0;
|
|
4
|
-
const core_1 = require("@aws-sdk/core");
|
|
5
|
-
const core_2 = require("@smithy/core");
|
|
6
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
-
const uuid_1 = require("uuid");
|
|
8
|
-
const EMRContainersServiceException_1 = require("../models/EMRContainersServiceException");
|
|
9
|
-
const models_0_1 = require("../models/models_0");
|
|
10
|
-
const se_CancelJobRunCommand = async (input, context) => {
|
|
11
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
-
const headers = {};
|
|
13
|
-
b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}");
|
|
14
|
-
b.p("id", () => input.id, "{id}", false);
|
|
15
|
-
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
16
|
-
let body;
|
|
17
|
-
b.m("DELETE").h(headers).b(body);
|
|
18
|
-
return b.build();
|
|
19
|
-
};
|
|
20
|
-
exports.se_CancelJobRunCommand = se_CancelJobRunCommand;
|
|
21
|
-
const se_CreateJobTemplateCommand = async (input, context) => {
|
|
22
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
23
|
-
const headers = {
|
|
24
|
-
"content-type": "application/json",
|
|
25
|
-
};
|
|
26
|
-
b.bp("/jobtemplates");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
29
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
30
|
-
jobTemplateData: (_) => se_JobTemplateData(_, context),
|
|
31
|
-
kmsKeyArn: [],
|
|
32
|
-
name: [],
|
|
33
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
34
|
-
}));
|
|
35
|
-
b.m("POST").h(headers).b(body);
|
|
36
|
-
return b.build();
|
|
37
|
-
};
|
|
38
|
-
exports.se_CreateJobTemplateCommand = se_CreateJobTemplateCommand;
|
|
39
|
-
const se_CreateManagedEndpointCommand = async (input, context) => {
|
|
40
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
41
|
-
const headers = {
|
|
42
|
-
"content-type": "application/json",
|
|
43
|
-
};
|
|
44
|
-
b.bp("/virtualclusters/{virtualClusterId}/endpoints");
|
|
45
|
-
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
48
|
-
certificateArn: [],
|
|
49
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
50
|
-
configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
|
|
51
|
-
executionRoleArn: [],
|
|
52
|
-
name: [],
|
|
53
|
-
releaseLabel: [],
|
|
54
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
55
|
-
type: [],
|
|
56
|
-
}));
|
|
57
|
-
b.m("POST").h(headers).b(body);
|
|
58
|
-
return b.build();
|
|
59
|
-
};
|
|
60
|
-
exports.se_CreateManagedEndpointCommand = se_CreateManagedEndpointCommand;
|
|
61
|
-
const se_CreateVirtualClusterCommand = async (input, context) => {
|
|
62
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
63
|
-
const headers = {
|
|
64
|
-
"content-type": "application/json",
|
|
65
|
-
};
|
|
66
|
-
b.bp("/virtualclusters");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
69
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
70
|
-
containerProvider: (_) => (0, smithy_client_1._json)(_),
|
|
71
|
-
name: [],
|
|
72
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
73
|
-
}));
|
|
74
|
-
b.m("POST").h(headers).b(body);
|
|
75
|
-
return b.build();
|
|
76
|
-
};
|
|
77
|
-
exports.se_CreateVirtualClusterCommand = se_CreateVirtualClusterCommand;
|
|
78
|
-
const se_DeleteJobTemplateCommand = async (input, context) => {
|
|
79
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
80
|
-
const headers = {};
|
|
81
|
-
b.bp("/jobtemplates/{id}");
|
|
82
|
-
b.p("id", () => input.id, "{id}", false);
|
|
83
|
-
let body;
|
|
84
|
-
b.m("DELETE").h(headers).b(body);
|
|
85
|
-
return b.build();
|
|
86
|
-
};
|
|
87
|
-
exports.se_DeleteJobTemplateCommand = se_DeleteJobTemplateCommand;
|
|
88
|
-
const se_DeleteManagedEndpointCommand = async (input, context) => {
|
|
89
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
90
|
-
const headers = {};
|
|
91
|
-
b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}");
|
|
92
|
-
b.p("id", () => input.id, "{id}", false);
|
|
93
|
-
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
94
|
-
let body;
|
|
95
|
-
b.m("DELETE").h(headers).b(body);
|
|
96
|
-
return b.build();
|
|
97
|
-
};
|
|
98
|
-
exports.se_DeleteManagedEndpointCommand = se_DeleteManagedEndpointCommand;
|
|
99
|
-
const se_DeleteVirtualClusterCommand = async (input, context) => {
|
|
100
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
101
|
-
const headers = {};
|
|
102
|
-
b.bp("/virtualclusters/{id}");
|
|
103
|
-
b.p("id", () => input.id, "{id}", false);
|
|
104
|
-
let body;
|
|
105
|
-
b.m("DELETE").h(headers).b(body);
|
|
106
|
-
return b.build();
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeleteVirtualClusterCommand = se_DeleteVirtualClusterCommand;
|
|
109
|
-
const se_DescribeJobRunCommand = async (input, context) => {
|
|
110
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
111
|
-
const headers = {};
|
|
112
|
-
b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}");
|
|
113
|
-
b.p("id", () => input.id, "{id}", false);
|
|
114
|
-
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
115
|
-
let body;
|
|
116
|
-
b.m("GET").h(headers).b(body);
|
|
117
|
-
return b.build();
|
|
118
|
-
};
|
|
119
|
-
exports.se_DescribeJobRunCommand = se_DescribeJobRunCommand;
|
|
120
|
-
const se_DescribeJobTemplateCommand = async (input, context) => {
|
|
121
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
122
|
-
const headers = {};
|
|
123
|
-
b.bp("/jobtemplates/{id}");
|
|
124
|
-
b.p("id", () => input.id, "{id}", false);
|
|
125
|
-
let body;
|
|
126
|
-
b.m("GET").h(headers).b(body);
|
|
127
|
-
return b.build();
|
|
128
|
-
};
|
|
129
|
-
exports.se_DescribeJobTemplateCommand = se_DescribeJobTemplateCommand;
|
|
130
|
-
const se_DescribeManagedEndpointCommand = async (input, context) => {
|
|
131
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
132
|
-
const headers = {};
|
|
133
|
-
b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}");
|
|
134
|
-
b.p("id", () => input.id, "{id}", false);
|
|
135
|
-
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
136
|
-
let body;
|
|
137
|
-
b.m("GET").h(headers).b(body);
|
|
138
|
-
return b.build();
|
|
139
|
-
};
|
|
140
|
-
exports.se_DescribeManagedEndpointCommand = se_DescribeManagedEndpointCommand;
|
|
141
|
-
const se_DescribeVirtualClusterCommand = async (input, context) => {
|
|
142
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
143
|
-
const headers = {};
|
|
144
|
-
b.bp("/virtualclusters/{id}");
|
|
145
|
-
b.p("id", () => input.id, "{id}", false);
|
|
146
|
-
let body;
|
|
147
|
-
b.m("GET").h(headers).b(body);
|
|
148
|
-
return b.build();
|
|
149
|
-
};
|
|
150
|
-
exports.se_DescribeVirtualClusterCommand = se_DescribeVirtualClusterCommand;
|
|
151
|
-
const se_GetManagedEndpointSessionCredentialsCommand = async (input, context) => {
|
|
152
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
153
|
-
const headers = {
|
|
154
|
-
"content-type": "application/json",
|
|
155
|
-
};
|
|
156
|
-
b.bp("/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials");
|
|
157
|
-
b.p("endpointIdentifier", () => input.endpointIdentifier, "{endpointIdentifier}", false);
|
|
158
|
-
b.p("virtualClusterIdentifier", () => input.virtualClusterIdentifier, "{virtualClusterIdentifier}", false);
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
161
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
162
|
-
credentialType: [],
|
|
163
|
-
durationInSeconds: [],
|
|
164
|
-
executionRoleArn: [],
|
|
165
|
-
logContext: [],
|
|
166
|
-
}));
|
|
167
|
-
b.m("POST").h(headers).b(body);
|
|
168
|
-
return b.build();
|
|
169
|
-
};
|
|
170
|
-
exports.se_GetManagedEndpointSessionCredentialsCommand = se_GetManagedEndpointSessionCredentialsCommand;
|
|
171
|
-
const se_ListJobRunsCommand = async (input, context) => {
|
|
172
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
173
|
-
const headers = {};
|
|
174
|
-
b.bp("/virtualclusters/{virtualClusterId}/jobruns");
|
|
175
|
-
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
176
|
-
const query = (0, smithy_client_1.map)({
|
|
177
|
-
[_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
|
|
178
|
-
[_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
|
|
179
|
-
[_n]: [, input[_n]],
|
|
180
|
-
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
181
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
182
|
-
[_nT]: [, input[_nT]],
|
|
183
|
-
});
|
|
184
|
-
let body;
|
|
185
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
186
|
-
return b.build();
|
|
187
|
-
};
|
|
188
|
-
exports.se_ListJobRunsCommand = se_ListJobRunsCommand;
|
|
189
|
-
const se_ListJobTemplatesCommand = async (input, context) => {
|
|
190
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
191
|
-
const headers = {};
|
|
192
|
-
b.bp("/jobtemplates");
|
|
193
|
-
const query = (0, smithy_client_1.map)({
|
|
194
|
-
[_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
|
|
195
|
-
[_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
|
|
196
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
197
|
-
[_nT]: [, input[_nT]],
|
|
198
|
-
});
|
|
199
|
-
let body;
|
|
200
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
201
|
-
return b.build();
|
|
202
|
-
};
|
|
203
|
-
exports.se_ListJobTemplatesCommand = se_ListJobTemplatesCommand;
|
|
204
|
-
const se_ListManagedEndpointsCommand = async (input, context) => {
|
|
205
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
206
|
-
const headers = {};
|
|
207
|
-
b.bp("/virtualclusters/{virtualClusterId}/endpoints");
|
|
208
|
-
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
209
|
-
const query = (0, smithy_client_1.map)({
|
|
210
|
-
[_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
|
|
211
|
-
[_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
|
|
212
|
-
[_t]: [() => input.types !== void 0, () => (input[_t] || []).map((_entry) => _entry)],
|
|
213
|
-
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
214
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
215
|
-
[_nT]: [, input[_nT]],
|
|
216
|
-
});
|
|
217
|
-
let body;
|
|
218
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
219
|
-
return b.build();
|
|
220
|
-
};
|
|
221
|
-
exports.se_ListManagedEndpointsCommand = se_ListManagedEndpointsCommand;
|
|
222
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
223
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
224
|
-
const headers = {};
|
|
225
|
-
b.bp("/tags/{resourceArn}");
|
|
226
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
227
|
-
let body;
|
|
228
|
-
b.m("GET").h(headers).b(body);
|
|
229
|
-
return b.build();
|
|
230
|
-
};
|
|
231
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
232
|
-
const se_ListVirtualClustersCommand = async (input, context) => {
|
|
233
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
234
|
-
const headers = {};
|
|
235
|
-
b.bp("/virtualclusters");
|
|
236
|
-
const query = (0, smithy_client_1.map)({
|
|
237
|
-
[_cPI]: [, input[_cPI]],
|
|
238
|
-
[_cPT]: [, input[_cPT]],
|
|
239
|
-
[_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
|
|
240
|
-
[_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
|
|
241
|
-
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
242
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
243
|
-
[_nT]: [, input[_nT]],
|
|
244
|
-
});
|
|
245
|
-
let body;
|
|
246
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
247
|
-
return b.build();
|
|
248
|
-
};
|
|
249
|
-
exports.se_ListVirtualClustersCommand = se_ListVirtualClustersCommand;
|
|
250
|
-
const se_StartJobRunCommand = async (input, context) => {
|
|
251
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
252
|
-
const headers = {
|
|
253
|
-
"content-type": "application/json",
|
|
254
|
-
};
|
|
255
|
-
b.bp("/virtualclusters/{virtualClusterId}/jobruns");
|
|
256
|
-
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
257
|
-
let body;
|
|
258
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
259
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
260
|
-
configurationOverrides: (_) => se_ConfigurationOverrides(_, context),
|
|
261
|
-
executionRoleArn: [],
|
|
262
|
-
jobDriver: (_) => (0, smithy_client_1._json)(_),
|
|
263
|
-
jobTemplateId: [],
|
|
264
|
-
jobTemplateParameters: (_) => (0, smithy_client_1._json)(_),
|
|
265
|
-
name: [],
|
|
266
|
-
releaseLabel: [],
|
|
267
|
-
retryPolicyConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
268
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
269
|
-
}));
|
|
270
|
-
b.m("POST").h(headers).b(body);
|
|
271
|
-
return b.build();
|
|
272
|
-
};
|
|
273
|
-
exports.se_StartJobRunCommand = se_StartJobRunCommand;
|
|
274
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
275
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
276
|
-
const headers = {
|
|
277
|
-
"content-type": "application/json",
|
|
278
|
-
};
|
|
279
|
-
b.bp("/tags/{resourceArn}");
|
|
280
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
281
|
-
let body;
|
|
282
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
283
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
284
|
-
}));
|
|
285
|
-
b.m("POST").h(headers).b(body);
|
|
286
|
-
return b.build();
|
|
287
|
-
};
|
|
288
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
289
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
290
|
-
const b = (0, core_2.requestBuilder)(input, context);
|
|
291
|
-
const headers = {};
|
|
292
|
-
b.bp("/tags/{resourceArn}");
|
|
293
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
294
|
-
const query = (0, smithy_client_1.map)({
|
|
295
|
-
[_tK]: [
|
|
296
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
297
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
298
|
-
],
|
|
299
|
-
});
|
|
300
|
-
let body;
|
|
301
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
302
|
-
return b.build();
|
|
303
|
-
};
|
|
304
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
305
|
-
const de_CancelJobRunCommand = async (output, context) => {
|
|
306
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
307
|
-
return de_CancelJobRunCommandError(output, context);
|
|
308
|
-
}
|
|
309
|
-
const contents = (0, smithy_client_1.map)({
|
|
310
|
-
$metadata: deserializeMetadata(output),
|
|
311
|
-
});
|
|
312
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
313
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
314
|
-
id: smithy_client_1.expectString,
|
|
315
|
-
virtualClusterId: smithy_client_1.expectString,
|
|
316
|
-
});
|
|
317
|
-
Object.assign(contents, doc);
|
|
318
|
-
return contents;
|
|
319
|
-
};
|
|
320
|
-
exports.de_CancelJobRunCommand = de_CancelJobRunCommand;
|
|
321
|
-
const de_CancelJobRunCommandError = async (output, context) => {
|
|
322
|
-
const parsedOutput = {
|
|
323
|
-
...output,
|
|
324
|
-
body: await parseErrorBody(output.body, context),
|
|
325
|
-
};
|
|
326
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
327
|
-
switch (errorCode) {
|
|
328
|
-
case "InternalServerException":
|
|
329
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
331
|
-
case "ValidationException":
|
|
332
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
333
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
334
|
-
default:
|
|
335
|
-
const parsedBody = parsedOutput.body;
|
|
336
|
-
return throwDefaultError({
|
|
337
|
-
output,
|
|
338
|
-
parsedBody,
|
|
339
|
-
errorCode,
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
};
|
|
343
|
-
const de_CreateJobTemplateCommand = async (output, context) => {
|
|
344
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
345
|
-
return de_CreateJobTemplateCommandError(output, context);
|
|
346
|
-
}
|
|
347
|
-
const contents = (0, smithy_client_1.map)({
|
|
348
|
-
$metadata: deserializeMetadata(output),
|
|
349
|
-
});
|
|
350
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
351
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
352
|
-
arn: smithy_client_1.expectString,
|
|
353
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
354
|
-
id: smithy_client_1.expectString,
|
|
355
|
-
name: smithy_client_1.expectString,
|
|
356
|
-
});
|
|
357
|
-
Object.assign(contents, doc);
|
|
358
|
-
return contents;
|
|
359
|
-
};
|
|
360
|
-
exports.de_CreateJobTemplateCommand = de_CreateJobTemplateCommand;
|
|
361
|
-
const de_CreateJobTemplateCommandError = async (output, context) => {
|
|
362
|
-
const parsedOutput = {
|
|
363
|
-
...output,
|
|
364
|
-
body: await parseErrorBody(output.body, context),
|
|
365
|
-
};
|
|
366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
367
|
-
switch (errorCode) {
|
|
368
|
-
case "InternalServerException":
|
|
369
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
370
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
371
|
-
case "ResourceNotFoundException":
|
|
372
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
374
|
-
case "ValidationException":
|
|
375
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
376
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
377
|
-
default:
|
|
378
|
-
const parsedBody = parsedOutput.body;
|
|
379
|
-
return throwDefaultError({
|
|
380
|
-
output,
|
|
381
|
-
parsedBody,
|
|
382
|
-
errorCode,
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
};
|
|
386
|
-
const de_CreateManagedEndpointCommand = async (output, context) => {
|
|
387
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
388
|
-
return de_CreateManagedEndpointCommandError(output, context);
|
|
389
|
-
}
|
|
390
|
-
const contents = (0, smithy_client_1.map)({
|
|
391
|
-
$metadata: deserializeMetadata(output),
|
|
392
|
-
});
|
|
393
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
394
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
395
|
-
arn: smithy_client_1.expectString,
|
|
396
|
-
id: smithy_client_1.expectString,
|
|
397
|
-
name: smithy_client_1.expectString,
|
|
398
|
-
virtualClusterId: smithy_client_1.expectString,
|
|
399
|
-
});
|
|
400
|
-
Object.assign(contents, doc);
|
|
401
|
-
return contents;
|
|
402
|
-
};
|
|
403
|
-
exports.de_CreateManagedEndpointCommand = de_CreateManagedEndpointCommand;
|
|
404
|
-
const de_CreateManagedEndpointCommandError = async (output, context) => {
|
|
405
|
-
const parsedOutput = {
|
|
406
|
-
...output,
|
|
407
|
-
body: await parseErrorBody(output.body, context),
|
|
408
|
-
};
|
|
409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
410
|
-
switch (errorCode) {
|
|
411
|
-
case "InternalServerException":
|
|
412
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
413
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
414
|
-
case "ResourceNotFoundException":
|
|
415
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
416
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
417
|
-
case "ValidationException":
|
|
418
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
419
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
420
|
-
default:
|
|
421
|
-
const parsedBody = parsedOutput.body;
|
|
422
|
-
return throwDefaultError({
|
|
423
|
-
output,
|
|
424
|
-
parsedBody,
|
|
425
|
-
errorCode,
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
const de_CreateVirtualClusterCommand = async (output, context) => {
|
|
430
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
431
|
-
return de_CreateVirtualClusterCommandError(output, context);
|
|
432
|
-
}
|
|
433
|
-
const contents = (0, smithy_client_1.map)({
|
|
434
|
-
$metadata: deserializeMetadata(output),
|
|
435
|
-
});
|
|
436
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
437
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
438
|
-
arn: smithy_client_1.expectString,
|
|
439
|
-
id: smithy_client_1.expectString,
|
|
440
|
-
name: smithy_client_1.expectString,
|
|
441
|
-
});
|
|
442
|
-
Object.assign(contents, doc);
|
|
443
|
-
return contents;
|
|
444
|
-
};
|
|
445
|
-
exports.de_CreateVirtualClusterCommand = de_CreateVirtualClusterCommand;
|
|
446
|
-
const de_CreateVirtualClusterCommandError = async (output, context) => {
|
|
447
|
-
const parsedOutput = {
|
|
448
|
-
...output,
|
|
449
|
-
body: await parseErrorBody(output.body, context),
|
|
450
|
-
};
|
|
451
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
452
|
-
switch (errorCode) {
|
|
453
|
-
case "InternalServerException":
|
|
454
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
455
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
456
|
-
case "ResourceNotFoundException":
|
|
457
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
458
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
459
|
-
case "ValidationException":
|
|
460
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
461
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
462
|
-
default:
|
|
463
|
-
const parsedBody = parsedOutput.body;
|
|
464
|
-
return throwDefaultError({
|
|
465
|
-
output,
|
|
466
|
-
parsedBody,
|
|
467
|
-
errorCode,
|
|
468
|
-
});
|
|
469
|
-
}
|
|
470
|
-
};
|
|
471
|
-
const de_DeleteJobTemplateCommand = async (output, context) => {
|
|
472
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
473
|
-
return de_DeleteJobTemplateCommandError(output, context);
|
|
474
|
-
}
|
|
475
|
-
const contents = (0, smithy_client_1.map)({
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
});
|
|
478
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
479
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
480
|
-
id: smithy_client_1.expectString,
|
|
481
|
-
});
|
|
482
|
-
Object.assign(contents, doc);
|
|
483
|
-
return contents;
|
|
484
|
-
};
|
|
485
|
-
exports.de_DeleteJobTemplateCommand = de_DeleteJobTemplateCommand;
|
|
486
|
-
const de_DeleteJobTemplateCommandError = async (output, context) => {
|
|
487
|
-
const parsedOutput = {
|
|
488
|
-
...output,
|
|
489
|
-
body: await parseErrorBody(output.body, context),
|
|
490
|
-
};
|
|
491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
492
|
-
switch (errorCode) {
|
|
493
|
-
case "InternalServerException":
|
|
494
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
495
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ValidationException":
|
|
497
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
498
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
499
|
-
default:
|
|
500
|
-
const parsedBody = parsedOutput.body;
|
|
501
|
-
return throwDefaultError({
|
|
502
|
-
output,
|
|
503
|
-
parsedBody,
|
|
504
|
-
errorCode,
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
const de_DeleteManagedEndpointCommand = async (output, context) => {
|
|
509
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
510
|
-
return de_DeleteManagedEndpointCommandError(output, context);
|
|
511
|
-
}
|
|
512
|
-
const contents = (0, smithy_client_1.map)({
|
|
513
|
-
$metadata: deserializeMetadata(output),
|
|
514
|
-
});
|
|
515
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
516
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
517
|
-
id: smithy_client_1.expectString,
|
|
518
|
-
virtualClusterId: smithy_client_1.expectString,
|
|
519
|
-
});
|
|
520
|
-
Object.assign(contents, doc);
|
|
521
|
-
return contents;
|
|
522
|
-
};
|
|
523
|
-
exports.de_DeleteManagedEndpointCommand = de_DeleteManagedEndpointCommand;
|
|
524
|
-
const de_DeleteManagedEndpointCommandError = async (output, context) => {
|
|
525
|
-
const parsedOutput = {
|
|
526
|
-
...output,
|
|
527
|
-
body: await parseErrorBody(output.body, context),
|
|
528
|
-
};
|
|
529
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
530
|
-
switch (errorCode) {
|
|
531
|
-
case "InternalServerException":
|
|
532
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
533
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
534
|
-
case "ValidationException":
|
|
535
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
536
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
537
|
-
default:
|
|
538
|
-
const parsedBody = parsedOutput.body;
|
|
539
|
-
return throwDefaultError({
|
|
540
|
-
output,
|
|
541
|
-
parsedBody,
|
|
542
|
-
errorCode,
|
|
543
|
-
});
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
const de_DeleteVirtualClusterCommand = async (output, context) => {
|
|
547
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
548
|
-
return de_DeleteVirtualClusterCommandError(output, context);
|
|
549
|
-
}
|
|
550
|
-
const contents = (0, smithy_client_1.map)({
|
|
551
|
-
$metadata: deserializeMetadata(output),
|
|
552
|
-
});
|
|
553
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
554
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
555
|
-
id: smithy_client_1.expectString,
|
|
556
|
-
});
|
|
557
|
-
Object.assign(contents, doc);
|
|
558
|
-
return contents;
|
|
559
|
-
};
|
|
560
|
-
exports.de_DeleteVirtualClusterCommand = de_DeleteVirtualClusterCommand;
|
|
561
|
-
const de_DeleteVirtualClusterCommandError = async (output, context) => {
|
|
562
|
-
const parsedOutput = {
|
|
563
|
-
...output,
|
|
564
|
-
body: await parseErrorBody(output.body, context),
|
|
565
|
-
};
|
|
566
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
567
|
-
switch (errorCode) {
|
|
568
|
-
case "InternalServerException":
|
|
569
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
570
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
571
|
-
case "ValidationException":
|
|
572
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
573
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
574
|
-
default:
|
|
575
|
-
const parsedBody = parsedOutput.body;
|
|
576
|
-
return throwDefaultError({
|
|
577
|
-
output,
|
|
578
|
-
parsedBody,
|
|
579
|
-
errorCode,
|
|
580
|
-
});
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
const de_DescribeJobRunCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
585
|
-
return de_DescribeJobRunCommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const contents = (0, smithy_client_1.map)({
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
});
|
|
590
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
591
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
592
|
-
jobRun: (_) => de_JobRun(_, context),
|
|
593
|
-
});
|
|
594
|
-
Object.assign(contents, doc);
|
|
595
|
-
return contents;
|
|
596
|
-
};
|
|
597
|
-
exports.de_DescribeJobRunCommand = de_DescribeJobRunCommand;
|
|
598
|
-
const de_DescribeJobRunCommandError = async (output, context) => {
|
|
599
|
-
const parsedOutput = {
|
|
600
|
-
...output,
|
|
601
|
-
body: await parseErrorBody(output.body, context),
|
|
602
|
-
};
|
|
603
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
604
|
-
switch (errorCode) {
|
|
605
|
-
case "InternalServerException":
|
|
606
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
607
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
608
|
-
case "ResourceNotFoundException":
|
|
609
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
610
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
611
|
-
case "ValidationException":
|
|
612
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
613
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
614
|
-
default:
|
|
615
|
-
const parsedBody = parsedOutput.body;
|
|
616
|
-
return throwDefaultError({
|
|
617
|
-
output,
|
|
618
|
-
parsedBody,
|
|
619
|
-
errorCode,
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
};
|
|
623
|
-
const de_DescribeJobTemplateCommand = async (output, context) => {
|
|
624
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
625
|
-
return de_DescribeJobTemplateCommandError(output, context);
|
|
626
|
-
}
|
|
627
|
-
const contents = (0, smithy_client_1.map)({
|
|
628
|
-
$metadata: deserializeMetadata(output),
|
|
629
|
-
});
|
|
630
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
631
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
632
|
-
jobTemplate: (_) => de_JobTemplate(_, context),
|
|
633
|
-
});
|
|
634
|
-
Object.assign(contents, doc);
|
|
635
|
-
return contents;
|
|
636
|
-
};
|
|
637
|
-
exports.de_DescribeJobTemplateCommand = de_DescribeJobTemplateCommand;
|
|
638
|
-
const de_DescribeJobTemplateCommandError = async (output, context) => {
|
|
639
|
-
const parsedOutput = {
|
|
640
|
-
...output,
|
|
641
|
-
body: await parseErrorBody(output.body, context),
|
|
642
|
-
};
|
|
643
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
-
switch (errorCode) {
|
|
645
|
-
case "InternalServerException":
|
|
646
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
647
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
648
|
-
case "ResourceNotFoundException":
|
|
649
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
650
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
651
|
-
case "ValidationException":
|
|
652
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
653
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
654
|
-
default:
|
|
655
|
-
const parsedBody = parsedOutput.body;
|
|
656
|
-
return throwDefaultError({
|
|
657
|
-
output,
|
|
658
|
-
parsedBody,
|
|
659
|
-
errorCode,
|
|
660
|
-
});
|
|
661
|
-
}
|
|
662
|
-
};
|
|
663
|
-
const de_DescribeManagedEndpointCommand = async (output, context) => {
|
|
664
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
665
|
-
return de_DescribeManagedEndpointCommandError(output, context);
|
|
666
|
-
}
|
|
667
|
-
const contents = (0, smithy_client_1.map)({
|
|
668
|
-
$metadata: deserializeMetadata(output),
|
|
669
|
-
});
|
|
670
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
671
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
672
|
-
endpoint: (_) => de_Endpoint(_, context),
|
|
673
|
-
});
|
|
674
|
-
Object.assign(contents, doc);
|
|
675
|
-
return contents;
|
|
676
|
-
};
|
|
677
|
-
exports.de_DescribeManagedEndpointCommand = de_DescribeManagedEndpointCommand;
|
|
678
|
-
const de_DescribeManagedEndpointCommandError = async (output, context) => {
|
|
679
|
-
const parsedOutput = {
|
|
680
|
-
...output,
|
|
681
|
-
body: await parseErrorBody(output.body, context),
|
|
682
|
-
};
|
|
683
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
|
-
switch (errorCode) {
|
|
685
|
-
case "InternalServerException":
|
|
686
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
687
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
688
|
-
case "ResourceNotFoundException":
|
|
689
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
690
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
691
|
-
case "ValidationException":
|
|
692
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
693
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
694
|
-
default:
|
|
695
|
-
const parsedBody = parsedOutput.body;
|
|
696
|
-
return throwDefaultError({
|
|
697
|
-
output,
|
|
698
|
-
parsedBody,
|
|
699
|
-
errorCode,
|
|
700
|
-
});
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
const de_DescribeVirtualClusterCommand = async (output, context) => {
|
|
704
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
705
|
-
return de_DescribeVirtualClusterCommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const contents = (0, smithy_client_1.map)({
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
});
|
|
710
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
711
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
712
|
-
virtualCluster: (_) => de_VirtualCluster(_, context),
|
|
713
|
-
});
|
|
714
|
-
Object.assign(contents, doc);
|
|
715
|
-
return contents;
|
|
716
|
-
};
|
|
717
|
-
exports.de_DescribeVirtualClusterCommand = de_DescribeVirtualClusterCommand;
|
|
718
|
-
const de_DescribeVirtualClusterCommandError = async (output, context) => {
|
|
719
|
-
const parsedOutput = {
|
|
720
|
-
...output,
|
|
721
|
-
body: await parseErrorBody(output.body, context),
|
|
722
|
-
};
|
|
723
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
724
|
-
switch (errorCode) {
|
|
725
|
-
case "InternalServerException":
|
|
726
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
727
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
728
|
-
case "ResourceNotFoundException":
|
|
729
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
730
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
731
|
-
case "ValidationException":
|
|
732
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
733
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
734
|
-
default:
|
|
735
|
-
const parsedBody = parsedOutput.body;
|
|
736
|
-
return throwDefaultError({
|
|
737
|
-
output,
|
|
738
|
-
parsedBody,
|
|
739
|
-
errorCode,
|
|
740
|
-
});
|
|
741
|
-
}
|
|
742
|
-
};
|
|
743
|
-
const de_GetManagedEndpointSessionCredentialsCommand = async (output, context) => {
|
|
744
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
745
|
-
return de_GetManagedEndpointSessionCredentialsCommandError(output, context);
|
|
746
|
-
}
|
|
747
|
-
const contents = (0, smithy_client_1.map)({
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
});
|
|
750
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
751
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
752
|
-
credentials: (_) => (0, smithy_client_1._json)((0, core_1.awsExpectUnion)(_)),
|
|
753
|
-
expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
754
|
-
id: smithy_client_1.expectString,
|
|
755
|
-
});
|
|
756
|
-
Object.assign(contents, doc);
|
|
757
|
-
return contents;
|
|
758
|
-
};
|
|
759
|
-
exports.de_GetManagedEndpointSessionCredentialsCommand = de_GetManagedEndpointSessionCredentialsCommand;
|
|
760
|
-
const de_GetManagedEndpointSessionCredentialsCommandError = async (output, context) => {
|
|
761
|
-
const parsedOutput = {
|
|
762
|
-
...output,
|
|
763
|
-
body: await parseErrorBody(output.body, context),
|
|
764
|
-
};
|
|
765
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
766
|
-
switch (errorCode) {
|
|
767
|
-
case "InternalServerException":
|
|
768
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
769
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
770
|
-
case "RequestThrottledException":
|
|
771
|
-
case "com.amazonaws.emrcontainers#RequestThrottledException":
|
|
772
|
-
throw await de_RequestThrottledExceptionRes(parsedOutput, context);
|
|
773
|
-
case "ResourceNotFoundException":
|
|
774
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
775
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
776
|
-
case "ValidationException":
|
|
777
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
778
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
779
|
-
default:
|
|
780
|
-
const parsedBody = parsedOutput.body;
|
|
781
|
-
return throwDefaultError({
|
|
782
|
-
output,
|
|
783
|
-
parsedBody,
|
|
784
|
-
errorCode,
|
|
785
|
-
});
|
|
786
|
-
}
|
|
787
|
-
};
|
|
788
|
-
const de_ListJobRunsCommand = async (output, context) => {
|
|
789
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
-
return de_ListJobRunsCommandError(output, context);
|
|
791
|
-
}
|
|
792
|
-
const contents = (0, smithy_client_1.map)({
|
|
793
|
-
$metadata: deserializeMetadata(output),
|
|
794
|
-
});
|
|
795
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
796
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
797
|
-
jobRuns: (_) => de_JobRuns(_, context),
|
|
798
|
-
nextToken: smithy_client_1.expectString,
|
|
799
|
-
});
|
|
800
|
-
Object.assign(contents, doc);
|
|
801
|
-
return contents;
|
|
802
|
-
};
|
|
803
|
-
exports.de_ListJobRunsCommand = de_ListJobRunsCommand;
|
|
804
|
-
const de_ListJobRunsCommandError = async (output, context) => {
|
|
805
|
-
const parsedOutput = {
|
|
806
|
-
...output,
|
|
807
|
-
body: await parseErrorBody(output.body, context),
|
|
808
|
-
};
|
|
809
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
810
|
-
switch (errorCode) {
|
|
811
|
-
case "InternalServerException":
|
|
812
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
813
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
814
|
-
case "ValidationException":
|
|
815
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
816
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
817
|
-
default:
|
|
818
|
-
const parsedBody = parsedOutput.body;
|
|
819
|
-
return throwDefaultError({
|
|
820
|
-
output,
|
|
821
|
-
parsedBody,
|
|
822
|
-
errorCode,
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
};
|
|
826
|
-
const de_ListJobTemplatesCommand = async (output, context) => {
|
|
827
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
-
return de_ListJobTemplatesCommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const contents = (0, smithy_client_1.map)({
|
|
831
|
-
$metadata: deserializeMetadata(output),
|
|
832
|
-
});
|
|
833
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
834
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
835
|
-
nextToken: smithy_client_1.expectString,
|
|
836
|
-
templates: (_) => de_JobTemplates(_, context),
|
|
837
|
-
});
|
|
838
|
-
Object.assign(contents, doc);
|
|
839
|
-
return contents;
|
|
840
|
-
};
|
|
841
|
-
exports.de_ListJobTemplatesCommand = de_ListJobTemplatesCommand;
|
|
842
|
-
const de_ListJobTemplatesCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "InternalServerException":
|
|
850
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
851
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ValidationException":
|
|
853
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
855
|
-
default:
|
|
856
|
-
const parsedBody = parsedOutput.body;
|
|
857
|
-
return throwDefaultError({
|
|
858
|
-
output,
|
|
859
|
-
parsedBody,
|
|
860
|
-
errorCode,
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
|
-
const de_ListManagedEndpointsCommand = async (output, context) => {
|
|
865
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return de_ListManagedEndpointsCommandError(output, context);
|
|
867
|
-
}
|
|
868
|
-
const contents = (0, smithy_client_1.map)({
|
|
869
|
-
$metadata: deserializeMetadata(output),
|
|
870
|
-
});
|
|
871
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
872
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
873
|
-
endpoints: (_) => de_Endpoints(_, context),
|
|
874
|
-
nextToken: smithy_client_1.expectString,
|
|
875
|
-
});
|
|
876
|
-
Object.assign(contents, doc);
|
|
877
|
-
return contents;
|
|
878
|
-
};
|
|
879
|
-
exports.de_ListManagedEndpointsCommand = de_ListManagedEndpointsCommand;
|
|
880
|
-
const de_ListManagedEndpointsCommandError = async (output, context) => {
|
|
881
|
-
const parsedOutput = {
|
|
882
|
-
...output,
|
|
883
|
-
body: await parseErrorBody(output.body, context),
|
|
884
|
-
};
|
|
885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
886
|
-
switch (errorCode) {
|
|
887
|
-
case "InternalServerException":
|
|
888
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
889
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ValidationException":
|
|
891
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
892
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
893
|
-
default:
|
|
894
|
-
const parsedBody = parsedOutput.body;
|
|
895
|
-
return throwDefaultError({
|
|
896
|
-
output,
|
|
897
|
-
parsedBody,
|
|
898
|
-
errorCode,
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
};
|
|
902
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
903
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
904
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
905
|
-
}
|
|
906
|
-
const contents = (0, smithy_client_1.map)({
|
|
907
|
-
$metadata: deserializeMetadata(output),
|
|
908
|
-
});
|
|
909
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
910
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
911
|
-
tags: smithy_client_1._json,
|
|
912
|
-
});
|
|
913
|
-
Object.assign(contents, doc);
|
|
914
|
-
return contents;
|
|
915
|
-
};
|
|
916
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
917
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
918
|
-
const parsedOutput = {
|
|
919
|
-
...output,
|
|
920
|
-
body: await parseErrorBody(output.body, context),
|
|
921
|
-
};
|
|
922
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
923
|
-
switch (errorCode) {
|
|
924
|
-
case "InternalServerException":
|
|
925
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
926
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
927
|
-
case "ResourceNotFoundException":
|
|
928
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
929
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
930
|
-
case "ValidationException":
|
|
931
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
932
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
933
|
-
default:
|
|
934
|
-
const parsedBody = parsedOutput.body;
|
|
935
|
-
return throwDefaultError({
|
|
936
|
-
output,
|
|
937
|
-
parsedBody,
|
|
938
|
-
errorCode,
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
};
|
|
942
|
-
const de_ListVirtualClustersCommand = async (output, context) => {
|
|
943
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
944
|
-
return de_ListVirtualClustersCommandError(output, context);
|
|
945
|
-
}
|
|
946
|
-
const contents = (0, smithy_client_1.map)({
|
|
947
|
-
$metadata: deserializeMetadata(output),
|
|
948
|
-
});
|
|
949
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
950
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
951
|
-
nextToken: smithy_client_1.expectString,
|
|
952
|
-
virtualClusters: (_) => de_VirtualClusters(_, context),
|
|
953
|
-
});
|
|
954
|
-
Object.assign(contents, doc);
|
|
955
|
-
return contents;
|
|
956
|
-
};
|
|
957
|
-
exports.de_ListVirtualClustersCommand = de_ListVirtualClustersCommand;
|
|
958
|
-
const de_ListVirtualClustersCommandError = async (output, context) => {
|
|
959
|
-
const parsedOutput = {
|
|
960
|
-
...output,
|
|
961
|
-
body: await parseErrorBody(output.body, context),
|
|
962
|
-
};
|
|
963
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
964
|
-
switch (errorCode) {
|
|
965
|
-
case "InternalServerException":
|
|
966
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
967
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
968
|
-
case "ValidationException":
|
|
969
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
970
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
971
|
-
default:
|
|
972
|
-
const parsedBody = parsedOutput.body;
|
|
973
|
-
return throwDefaultError({
|
|
974
|
-
output,
|
|
975
|
-
parsedBody,
|
|
976
|
-
errorCode,
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
};
|
|
980
|
-
const de_StartJobRunCommand = async (output, context) => {
|
|
981
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
|
-
return de_StartJobRunCommandError(output, context);
|
|
983
|
-
}
|
|
984
|
-
const contents = (0, smithy_client_1.map)({
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
});
|
|
987
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
988
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
989
|
-
arn: smithy_client_1.expectString,
|
|
990
|
-
id: smithy_client_1.expectString,
|
|
991
|
-
name: smithy_client_1.expectString,
|
|
992
|
-
virtualClusterId: smithy_client_1.expectString,
|
|
993
|
-
});
|
|
994
|
-
Object.assign(contents, doc);
|
|
995
|
-
return contents;
|
|
996
|
-
};
|
|
997
|
-
exports.de_StartJobRunCommand = de_StartJobRunCommand;
|
|
998
|
-
const de_StartJobRunCommandError = async (output, context) => {
|
|
999
|
-
const parsedOutput = {
|
|
1000
|
-
...output,
|
|
1001
|
-
body: await parseErrorBody(output.body, context),
|
|
1002
|
-
};
|
|
1003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1004
|
-
switch (errorCode) {
|
|
1005
|
-
case "InternalServerException":
|
|
1006
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1007
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1008
|
-
case "ResourceNotFoundException":
|
|
1009
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1010
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1011
|
-
case "ValidationException":
|
|
1012
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1013
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1014
|
-
default:
|
|
1015
|
-
const parsedBody = parsedOutput.body;
|
|
1016
|
-
return throwDefaultError({
|
|
1017
|
-
output,
|
|
1018
|
-
parsedBody,
|
|
1019
|
-
errorCode,
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
};
|
|
1023
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
1024
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1025
|
-
return de_TagResourceCommandError(output, context);
|
|
1026
|
-
}
|
|
1027
|
-
const contents = (0, smithy_client_1.map)({
|
|
1028
|
-
$metadata: deserializeMetadata(output),
|
|
1029
|
-
});
|
|
1030
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1031
|
-
return contents;
|
|
1032
|
-
};
|
|
1033
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
1034
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1035
|
-
const parsedOutput = {
|
|
1036
|
-
...output,
|
|
1037
|
-
body: await parseErrorBody(output.body, context),
|
|
1038
|
-
};
|
|
1039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1040
|
-
switch (errorCode) {
|
|
1041
|
-
case "InternalServerException":
|
|
1042
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1043
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1044
|
-
case "ResourceNotFoundException":
|
|
1045
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1046
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1047
|
-
case "ValidationException":
|
|
1048
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1049
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1050
|
-
default:
|
|
1051
|
-
const parsedBody = parsedOutput.body;
|
|
1052
|
-
return throwDefaultError({
|
|
1053
|
-
output,
|
|
1054
|
-
parsedBody,
|
|
1055
|
-
errorCode,
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
};
|
|
1059
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
1060
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1061
|
-
return de_UntagResourceCommandError(output, context);
|
|
1062
|
-
}
|
|
1063
|
-
const contents = (0, smithy_client_1.map)({
|
|
1064
|
-
$metadata: deserializeMetadata(output),
|
|
1065
|
-
});
|
|
1066
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1067
|
-
return contents;
|
|
1068
|
-
};
|
|
1069
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
1070
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1071
|
-
const parsedOutput = {
|
|
1072
|
-
...output,
|
|
1073
|
-
body: await parseErrorBody(output.body, context),
|
|
1074
|
-
};
|
|
1075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
|
-
switch (errorCode) {
|
|
1077
|
-
case "InternalServerException":
|
|
1078
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1079
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "ResourceNotFoundException":
|
|
1081
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1082
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ValidationException":
|
|
1084
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1085
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1086
|
-
default:
|
|
1087
|
-
const parsedBody = parsedOutput.body;
|
|
1088
|
-
return throwDefaultError({
|
|
1089
|
-
output,
|
|
1090
|
-
parsedBody,
|
|
1091
|
-
errorCode,
|
|
1092
|
-
});
|
|
1093
|
-
}
|
|
1094
|
-
};
|
|
1095
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(EMRContainersServiceException_1.EMRContainersServiceException);
|
|
1096
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1097
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1098
|
-
const data = parsedOutput.body;
|
|
1099
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1100
|
-
message: smithy_client_1.expectString,
|
|
1101
|
-
});
|
|
1102
|
-
Object.assign(contents, doc);
|
|
1103
|
-
const exception = new models_0_1.InternalServerException({
|
|
1104
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1105
|
-
...contents,
|
|
1106
|
-
});
|
|
1107
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1108
|
-
};
|
|
1109
|
-
const de_RequestThrottledExceptionRes = async (parsedOutput, context) => {
|
|
1110
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1111
|
-
const data = parsedOutput.body;
|
|
1112
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1113
|
-
message: smithy_client_1.expectString,
|
|
1114
|
-
});
|
|
1115
|
-
Object.assign(contents, doc);
|
|
1116
|
-
const exception = new models_0_1.RequestThrottledException({
|
|
1117
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1118
|
-
...contents,
|
|
1119
|
-
});
|
|
1120
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1121
|
-
};
|
|
1122
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1123
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1124
|
-
const data = parsedOutput.body;
|
|
1125
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1126
|
-
message: smithy_client_1.expectString,
|
|
1127
|
-
});
|
|
1128
|
-
Object.assign(contents, doc);
|
|
1129
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
1130
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1131
|
-
...contents,
|
|
1132
|
-
});
|
|
1133
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1134
|
-
};
|
|
1135
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1136
|
-
const contents = (0, smithy_client_1.map)({});
|
|
1137
|
-
const data = parsedOutput.body;
|
|
1138
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1139
|
-
message: smithy_client_1.expectString,
|
|
1140
|
-
});
|
|
1141
|
-
Object.assign(contents, doc);
|
|
1142
|
-
const exception = new models_0_1.ValidationException({
|
|
1143
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1144
|
-
...contents,
|
|
1145
|
-
});
|
|
1146
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
1147
|
-
};
|
|
1148
|
-
const se_Configuration = (input, context) => {
|
|
1149
|
-
return (0, smithy_client_1.take)(input, {
|
|
1150
|
-
classification: [],
|
|
1151
|
-
configurations: (_) => se_ConfigurationList(_, context),
|
|
1152
|
-
properties: smithy_client_1._json,
|
|
1153
|
-
});
|
|
1154
|
-
};
|
|
1155
|
-
const se_ConfigurationList = (input, context) => {
|
|
1156
|
-
return input
|
|
1157
|
-
.filter((e) => e != null)
|
|
1158
|
-
.map((entry) => {
|
|
1159
|
-
return se_Configuration(entry, context);
|
|
1160
|
-
});
|
|
1161
|
-
};
|
|
1162
|
-
const se_ConfigurationOverrides = (input, context) => {
|
|
1163
|
-
return (0, smithy_client_1.take)(input, {
|
|
1164
|
-
applicationConfiguration: (_) => se_ConfigurationList(_, context),
|
|
1165
|
-
monitoringConfiguration: smithy_client_1._json,
|
|
1166
|
-
});
|
|
1167
|
-
};
|
|
1168
|
-
const se_JobTemplateData = (input, context) => {
|
|
1169
|
-
return (0, smithy_client_1.take)(input, {
|
|
1170
|
-
configurationOverrides: (_) => se_ParametricConfigurationOverrides(_, context),
|
|
1171
|
-
executionRoleArn: [],
|
|
1172
|
-
jobDriver: smithy_client_1._json,
|
|
1173
|
-
jobTags: smithy_client_1._json,
|
|
1174
|
-
parameterConfiguration: smithy_client_1._json,
|
|
1175
|
-
releaseLabel: [],
|
|
1176
|
-
});
|
|
1177
|
-
};
|
|
1178
|
-
const se_ParametricConfigurationOverrides = (input, context) => {
|
|
1179
|
-
return (0, smithy_client_1.take)(input, {
|
|
1180
|
-
applicationConfiguration: (_) => se_ConfigurationList(_, context),
|
|
1181
|
-
monitoringConfiguration: smithy_client_1._json,
|
|
1182
|
-
});
|
|
1183
|
-
};
|
|
1184
|
-
const de_Configuration = (output, context) => {
|
|
1185
|
-
return (0, smithy_client_1.take)(output, {
|
|
1186
|
-
classification: smithy_client_1.expectString,
|
|
1187
|
-
configurations: (_) => de_ConfigurationList(_, context),
|
|
1188
|
-
properties: smithy_client_1._json,
|
|
1189
|
-
});
|
|
1190
|
-
};
|
|
1191
|
-
const de_ConfigurationList = (output, context) => {
|
|
1192
|
-
const retVal = (output || [])
|
|
1193
|
-
.filter((e) => e != null)
|
|
1194
|
-
.map((entry) => {
|
|
1195
|
-
return de_Configuration(entry, context);
|
|
1196
|
-
});
|
|
1197
|
-
return retVal;
|
|
1198
|
-
};
|
|
1199
|
-
const de_ConfigurationOverrides = (output, context) => {
|
|
1200
|
-
return (0, smithy_client_1.take)(output, {
|
|
1201
|
-
applicationConfiguration: (_) => de_ConfigurationList(_, context),
|
|
1202
|
-
monitoringConfiguration: smithy_client_1._json,
|
|
1203
|
-
});
|
|
1204
|
-
};
|
|
1205
|
-
const de_Endpoint = (output, context) => {
|
|
1206
|
-
return (0, smithy_client_1.take)(output, {
|
|
1207
|
-
arn: smithy_client_1.expectString,
|
|
1208
|
-
certificateArn: smithy_client_1.expectString,
|
|
1209
|
-
certificateAuthority: smithy_client_1._json,
|
|
1210
|
-
configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
|
|
1211
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1212
|
-
executionRoleArn: smithy_client_1.expectString,
|
|
1213
|
-
failureReason: smithy_client_1.expectString,
|
|
1214
|
-
id: smithy_client_1.expectString,
|
|
1215
|
-
name: smithy_client_1.expectString,
|
|
1216
|
-
releaseLabel: smithy_client_1.expectString,
|
|
1217
|
-
securityGroup: smithy_client_1.expectString,
|
|
1218
|
-
serverUrl: smithy_client_1.expectString,
|
|
1219
|
-
state: smithy_client_1.expectString,
|
|
1220
|
-
stateDetails: smithy_client_1.expectString,
|
|
1221
|
-
subnetIds: smithy_client_1._json,
|
|
1222
|
-
tags: smithy_client_1._json,
|
|
1223
|
-
type: smithy_client_1.expectString,
|
|
1224
|
-
virtualClusterId: smithy_client_1.expectString,
|
|
1225
|
-
});
|
|
1226
|
-
};
|
|
1227
|
-
const de_Endpoints = (output, context) => {
|
|
1228
|
-
const retVal = (output || [])
|
|
1229
|
-
.filter((e) => e != null)
|
|
1230
|
-
.map((entry) => {
|
|
1231
|
-
return de_Endpoint(entry, context);
|
|
1232
|
-
});
|
|
1233
|
-
return retVal;
|
|
1234
|
-
};
|
|
1235
|
-
const de_JobRun = (output, context) => {
|
|
1236
|
-
return (0, smithy_client_1.take)(output, {
|
|
1237
|
-
arn: smithy_client_1.expectString,
|
|
1238
|
-
clientToken: smithy_client_1.expectString,
|
|
1239
|
-
configurationOverrides: (_) => de_ConfigurationOverrides(_, context),
|
|
1240
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1241
|
-
createdBy: smithy_client_1.expectString,
|
|
1242
|
-
executionRoleArn: smithy_client_1.expectString,
|
|
1243
|
-
failureReason: smithy_client_1.expectString,
|
|
1244
|
-
finishedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1245
|
-
id: smithy_client_1.expectString,
|
|
1246
|
-
jobDriver: smithy_client_1._json,
|
|
1247
|
-
name: smithy_client_1.expectString,
|
|
1248
|
-
releaseLabel: smithy_client_1.expectString,
|
|
1249
|
-
retryPolicyConfiguration: smithy_client_1._json,
|
|
1250
|
-
retryPolicyExecution: smithy_client_1._json,
|
|
1251
|
-
state: smithy_client_1.expectString,
|
|
1252
|
-
stateDetails: smithy_client_1.expectString,
|
|
1253
|
-
tags: smithy_client_1._json,
|
|
1254
|
-
virtualClusterId: smithy_client_1.expectString,
|
|
1255
|
-
});
|
|
1256
|
-
};
|
|
1257
|
-
const de_JobRuns = (output, context) => {
|
|
1258
|
-
const retVal = (output || [])
|
|
1259
|
-
.filter((e) => e != null)
|
|
1260
|
-
.map((entry) => {
|
|
1261
|
-
return de_JobRun(entry, context);
|
|
1262
|
-
});
|
|
1263
|
-
return retVal;
|
|
1264
|
-
};
|
|
1265
|
-
const de_JobTemplate = (output, context) => {
|
|
1266
|
-
return (0, smithy_client_1.take)(output, {
|
|
1267
|
-
arn: smithy_client_1.expectString,
|
|
1268
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1269
|
-
createdBy: smithy_client_1.expectString,
|
|
1270
|
-
decryptionError: smithy_client_1.expectString,
|
|
1271
|
-
id: smithy_client_1.expectString,
|
|
1272
|
-
jobTemplateData: (_) => de_JobTemplateData(_, context),
|
|
1273
|
-
kmsKeyArn: smithy_client_1.expectString,
|
|
1274
|
-
name: smithy_client_1.expectString,
|
|
1275
|
-
tags: smithy_client_1._json,
|
|
1276
|
-
});
|
|
1277
|
-
};
|
|
1278
|
-
const de_JobTemplateData = (output, context) => {
|
|
1279
|
-
return (0, smithy_client_1.take)(output, {
|
|
1280
|
-
configurationOverrides: (_) => de_ParametricConfigurationOverrides(_, context),
|
|
1281
|
-
executionRoleArn: smithy_client_1.expectString,
|
|
1282
|
-
jobDriver: smithy_client_1._json,
|
|
1283
|
-
jobTags: smithy_client_1._json,
|
|
1284
|
-
parameterConfiguration: smithy_client_1._json,
|
|
1285
|
-
releaseLabel: smithy_client_1.expectString,
|
|
1286
|
-
});
|
|
1287
|
-
};
|
|
1288
|
-
const de_JobTemplates = (output, context) => {
|
|
1289
|
-
const retVal = (output || [])
|
|
1290
|
-
.filter((e) => e != null)
|
|
1291
|
-
.map((entry) => {
|
|
1292
|
-
return de_JobTemplate(entry, context);
|
|
1293
|
-
});
|
|
1294
|
-
return retVal;
|
|
1295
|
-
};
|
|
1296
|
-
const de_ParametricConfigurationOverrides = (output, context) => {
|
|
1297
|
-
return (0, smithy_client_1.take)(output, {
|
|
1298
|
-
applicationConfiguration: (_) => de_ConfigurationList(_, context),
|
|
1299
|
-
monitoringConfiguration: smithy_client_1._json,
|
|
1300
|
-
});
|
|
1301
|
-
};
|
|
1302
|
-
const de_VirtualCluster = (output, context) => {
|
|
1303
|
-
return (0, smithy_client_1.take)(output, {
|
|
1304
|
-
arn: smithy_client_1.expectString,
|
|
1305
|
-
containerProvider: smithy_client_1._json,
|
|
1306
|
-
createdAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1307
|
-
id: smithy_client_1.expectString,
|
|
1308
|
-
name: smithy_client_1.expectString,
|
|
1309
|
-
state: smithy_client_1.expectString,
|
|
1310
|
-
tags: smithy_client_1._json,
|
|
1311
|
-
});
|
|
1312
|
-
};
|
|
1313
|
-
const de_VirtualClusters = (output, context) => {
|
|
1314
|
-
const retVal = (output || [])
|
|
1315
|
-
.filter((e) => e != null)
|
|
1316
|
-
.map((entry) => {
|
|
1317
|
-
return de_VirtualCluster(entry, context);
|
|
1318
|
-
});
|
|
1319
|
-
return retVal;
|
|
1320
|
-
};
|
|
1321
|
-
const deserializeMetadata = (output) => ({
|
|
1322
|
-
httpStatusCode: output.statusCode,
|
|
1323
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1324
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1325
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1326
|
-
});
|
|
1327
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1328
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
1329
|
-
value !== null &&
|
|
1330
|
-
value !== "" &&
|
|
1331
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1332
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1333
|
-
const _cA = "createdAfter";
|
|
1334
|
-
const _cB = "createdBefore";
|
|
1335
|
-
const _cPI = "containerProviderId";
|
|
1336
|
-
const _cPT = "containerProviderType";
|
|
1337
|
-
const _mR = "maxResults";
|
|
1338
|
-
const _n = "name";
|
|
1339
|
-
const _nT = "nextToken";
|
|
1340
|
-
const _s = "states";
|
|
1341
|
-
const _t = "types";
|
|
1342
|
-
const _tK = "tagKeys";
|
|
1343
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1344
|
-
if (encoded.length) {
|
|
1345
|
-
return JSON.parse(encoded);
|
|
1346
|
-
}
|
|
1347
|
-
return {};
|
|
1348
|
-
});
|
|
1349
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1350
|
-
const value = await parseBody(errorBody, context);
|
|
1351
|
-
value.message = value.message ?? value.Message;
|
|
1352
|
-
return value;
|
|
1353
|
-
};
|
|
1354
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1355
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1356
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1357
|
-
let cleanValue = rawValue;
|
|
1358
|
-
if (typeof cleanValue === "number") {
|
|
1359
|
-
cleanValue = cleanValue.toString();
|
|
1360
|
-
}
|
|
1361
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1362
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1363
|
-
}
|
|
1364
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1365
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1366
|
-
}
|
|
1367
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1368
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1369
|
-
}
|
|
1370
|
-
return cleanValue;
|
|
1371
|
-
};
|
|
1372
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1373
|
-
if (headerKey !== undefined) {
|
|
1374
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1375
|
-
}
|
|
1376
|
-
if (data.code !== undefined) {
|
|
1377
|
-
return sanitizeErrorCode(data.code);
|
|
1378
|
-
}
|
|
1379
|
-
if (data["__type"] !== undefined) {
|
|
1380
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1381
|
-
}
|
|
1382
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|