@aws-sdk/client-emr-containers 3.476.0 → 3.478.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/pagination/ListJobRunsPaginator.js +2 -24
- package/dist-cjs/pagination/ListJobTemplatesPaginator.js +2 -24
- package/dist-cjs/pagination/ListManagedEndpointsPaginator.js +2 -24
- package/dist-cjs/pagination/ListVirtualClustersPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +137 -305
- package/dist-es/pagination/ListJobRunsPaginator.js +2 -23
- package/dist-es/pagination/ListJobTemplatesPaginator.js +2 -23
- package/dist-es/pagination/ListManagedEndpointsPaginator.js +2 -23
- package/dist-es/pagination/ListVirtualClustersPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +138 -306
- package/dist-types/pagination/ListJobRunsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListJobTemplatesPaginator.d.ts +1 -1
- package/dist-types/pagination/ListManagedEndpointsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListVirtualClustersPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListJobRunsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListJobTemplatesPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListManagedEndpointsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListVirtualClustersPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,33 +1,25 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
2
|
-
import {
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset,
|
|
2
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
5
|
import { EMRContainersServiceException as __BaseException } from "../models/EMRContainersServiceException";
|
|
6
6
|
import { InternalServerException, RequestThrottledException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
7
7
|
export const se_CancelJobRunCommand = async (input, context) => {
|
|
8
|
-
const
|
|
8
|
+
const b = rb(input, context);
|
|
9
9
|
const headers = {};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
10
|
+
b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}");
|
|
11
|
+
b.p("id", () => input.id, "{id}", false);
|
|
12
|
+
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
14
13
|
let body;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hostname,
|
|
18
|
-
port,
|
|
19
|
-
method: "DELETE",
|
|
20
|
-
headers,
|
|
21
|
-
path: resolvedPath,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
14
|
+
b.m("DELETE").h(headers).b(body);
|
|
15
|
+
return b.build();
|
|
24
16
|
};
|
|
25
17
|
export const se_CreateJobTemplateCommand = async (input, context) => {
|
|
26
|
-
const
|
|
18
|
+
const b = rb(input, context);
|
|
27
19
|
const headers = {
|
|
28
20
|
"content-type": "application/json",
|
|
29
21
|
};
|
|
30
|
-
|
|
22
|
+
b.bp("/jobtemplates");
|
|
31
23
|
let body;
|
|
32
24
|
body = JSON.stringify(take(input, {
|
|
33
25
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -36,24 +28,16 @@ export const se_CreateJobTemplateCommand = async (input, context) => {
|
|
|
36
28
|
name: [],
|
|
37
29
|
tags: (_) => _json(_),
|
|
38
30
|
}));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
hostname,
|
|
42
|
-
port,
|
|
43
|
-
method: "POST",
|
|
44
|
-
headers,
|
|
45
|
-
path: resolvedPath,
|
|
46
|
-
body,
|
|
47
|
-
});
|
|
31
|
+
b.m("POST").h(headers).b(body);
|
|
32
|
+
return b.build();
|
|
48
33
|
};
|
|
49
34
|
export const se_CreateManagedEndpointCommand = async (input, context) => {
|
|
50
|
-
const
|
|
35
|
+
const b = rb(input, context);
|
|
51
36
|
const headers = {
|
|
52
37
|
"content-type": "application/json",
|
|
53
38
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
39
|
+
b.bp("/virtualclusters/{virtualClusterId}/endpoints");
|
|
40
|
+
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
57
41
|
let body;
|
|
58
42
|
body = JSON.stringify(take(input, {
|
|
59
43
|
certificateArn: [],
|
|
@@ -65,22 +49,15 @@ export const se_CreateManagedEndpointCommand = async (input, context) => {
|
|
|
65
49
|
tags: (_) => _json(_),
|
|
66
50
|
type: [],
|
|
67
51
|
}));
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
hostname,
|
|
71
|
-
port,
|
|
72
|
-
method: "POST",
|
|
73
|
-
headers,
|
|
74
|
-
path: resolvedPath,
|
|
75
|
-
body,
|
|
76
|
-
});
|
|
52
|
+
b.m("POST").h(headers).b(body);
|
|
53
|
+
return b.build();
|
|
77
54
|
};
|
|
78
55
|
export const se_CreateVirtualClusterCommand = async (input, context) => {
|
|
79
|
-
const
|
|
56
|
+
const b = rb(input, context);
|
|
80
57
|
const headers = {
|
|
81
58
|
"content-type": "application/json",
|
|
82
59
|
};
|
|
83
|
-
|
|
60
|
+
b.bp("/virtualclusters");
|
|
84
61
|
let body;
|
|
85
62
|
body = JSON.stringify(take(input, {
|
|
86
63
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -88,143 +65,83 @@ export const se_CreateVirtualClusterCommand = async (input, context) => {
|
|
|
88
65
|
name: [],
|
|
89
66
|
tags: (_) => _json(_),
|
|
90
67
|
}));
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
hostname,
|
|
94
|
-
port,
|
|
95
|
-
method: "POST",
|
|
96
|
-
headers,
|
|
97
|
-
path: resolvedPath,
|
|
98
|
-
body,
|
|
99
|
-
});
|
|
68
|
+
b.m("POST").h(headers).b(body);
|
|
69
|
+
return b.build();
|
|
100
70
|
};
|
|
101
71
|
export const se_DeleteJobTemplateCommand = async (input, context) => {
|
|
102
|
-
const
|
|
72
|
+
const b = rb(input, context);
|
|
103
73
|
const headers = {};
|
|
104
|
-
|
|
105
|
-
|
|
74
|
+
b.bp("/jobtemplates/{id}");
|
|
75
|
+
b.p("id", () => input.id, "{id}", false);
|
|
106
76
|
let body;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
hostname,
|
|
110
|
-
port,
|
|
111
|
-
method: "DELETE",
|
|
112
|
-
headers,
|
|
113
|
-
path: resolvedPath,
|
|
114
|
-
body,
|
|
115
|
-
});
|
|
77
|
+
b.m("DELETE").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
116
79
|
};
|
|
117
80
|
export const se_DeleteManagedEndpointCommand = async (input, context) => {
|
|
118
|
-
const
|
|
81
|
+
const b = rb(input, context);
|
|
119
82
|
const headers = {};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
83
|
+
b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}");
|
|
84
|
+
b.p("id", () => input.id, "{id}", false);
|
|
85
|
+
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
124
86
|
let body;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
hostname,
|
|
128
|
-
port,
|
|
129
|
-
method: "DELETE",
|
|
130
|
-
headers,
|
|
131
|
-
path: resolvedPath,
|
|
132
|
-
body,
|
|
133
|
-
});
|
|
87
|
+
b.m("DELETE").h(headers).b(body);
|
|
88
|
+
return b.build();
|
|
134
89
|
};
|
|
135
90
|
export const se_DeleteVirtualClusterCommand = async (input, context) => {
|
|
136
|
-
const
|
|
91
|
+
const b = rb(input, context);
|
|
137
92
|
const headers = {};
|
|
138
|
-
|
|
139
|
-
|
|
93
|
+
b.bp("/virtualclusters/{id}");
|
|
94
|
+
b.p("id", () => input.id, "{id}", false);
|
|
140
95
|
let body;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
hostname,
|
|
144
|
-
port,
|
|
145
|
-
method: "DELETE",
|
|
146
|
-
headers,
|
|
147
|
-
path: resolvedPath,
|
|
148
|
-
body,
|
|
149
|
-
});
|
|
96
|
+
b.m("DELETE").h(headers).b(body);
|
|
97
|
+
return b.build();
|
|
150
98
|
};
|
|
151
99
|
export const se_DescribeJobRunCommand = async (input, context) => {
|
|
152
|
-
const
|
|
100
|
+
const b = rb(input, context);
|
|
153
101
|
const headers = {};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
102
|
+
b.bp("/virtualclusters/{virtualClusterId}/jobruns/{id}");
|
|
103
|
+
b.p("id", () => input.id, "{id}", false);
|
|
104
|
+
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
158
105
|
let body;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
hostname,
|
|
162
|
-
port,
|
|
163
|
-
method: "GET",
|
|
164
|
-
headers,
|
|
165
|
-
path: resolvedPath,
|
|
166
|
-
body,
|
|
167
|
-
});
|
|
106
|
+
b.m("GET").h(headers).b(body);
|
|
107
|
+
return b.build();
|
|
168
108
|
};
|
|
169
109
|
export const se_DescribeJobTemplateCommand = async (input, context) => {
|
|
170
|
-
const
|
|
110
|
+
const b = rb(input, context);
|
|
171
111
|
const headers = {};
|
|
172
|
-
|
|
173
|
-
|
|
112
|
+
b.bp("/jobtemplates/{id}");
|
|
113
|
+
b.p("id", () => input.id, "{id}", false);
|
|
174
114
|
let body;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
hostname,
|
|
178
|
-
port,
|
|
179
|
-
method: "GET",
|
|
180
|
-
headers,
|
|
181
|
-
path: resolvedPath,
|
|
182
|
-
body,
|
|
183
|
-
});
|
|
115
|
+
b.m("GET").h(headers).b(body);
|
|
116
|
+
return b.build();
|
|
184
117
|
};
|
|
185
118
|
export const se_DescribeManagedEndpointCommand = async (input, context) => {
|
|
186
|
-
const
|
|
119
|
+
const b = rb(input, context);
|
|
187
120
|
const headers = {};
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
121
|
+
b.bp("/virtualclusters/{virtualClusterId}/endpoints/{id}");
|
|
122
|
+
b.p("id", () => input.id, "{id}", false);
|
|
123
|
+
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
192
124
|
let body;
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
hostname,
|
|
196
|
-
port,
|
|
197
|
-
method: "GET",
|
|
198
|
-
headers,
|
|
199
|
-
path: resolvedPath,
|
|
200
|
-
body,
|
|
201
|
-
});
|
|
125
|
+
b.m("GET").h(headers).b(body);
|
|
126
|
+
return b.build();
|
|
202
127
|
};
|
|
203
128
|
export const se_DescribeVirtualClusterCommand = async (input, context) => {
|
|
204
|
-
const
|
|
129
|
+
const b = rb(input, context);
|
|
205
130
|
const headers = {};
|
|
206
|
-
|
|
207
|
-
|
|
131
|
+
b.bp("/virtualclusters/{id}");
|
|
132
|
+
b.p("id", () => input.id, "{id}", false);
|
|
208
133
|
let body;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
hostname,
|
|
212
|
-
port,
|
|
213
|
-
method: "GET",
|
|
214
|
-
headers,
|
|
215
|
-
path: resolvedPath,
|
|
216
|
-
body,
|
|
217
|
-
});
|
|
134
|
+
b.m("GET").h(headers).b(body);
|
|
135
|
+
return b.build();
|
|
218
136
|
};
|
|
219
137
|
export const se_GetManagedEndpointSessionCredentialsCommand = async (input, context) => {
|
|
220
|
-
const
|
|
138
|
+
const b = rb(input, context);
|
|
221
139
|
const headers = {
|
|
222
140
|
"content-type": "application/json",
|
|
223
141
|
};
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterIdentifier", () => input.virtualClusterIdentifier, "{virtualClusterIdentifier}", false);
|
|
142
|
+
b.bp("/virtualclusters/{virtualClusterIdentifier}/endpoints/{endpointIdentifier}/credentials");
|
|
143
|
+
b.p("endpointIdentifier", () => input.endpointIdentifier, "{endpointIdentifier}", false);
|
|
144
|
+
b.p("virtualClusterIdentifier", () => input.virtualClusterIdentifier, "{virtualClusterIdentifier}", false);
|
|
228
145
|
let body;
|
|
229
146
|
body = JSON.stringify(take(input, {
|
|
230
147
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -233,163 +150,90 @@ export const se_GetManagedEndpointSessionCredentialsCommand = async (input, cont
|
|
|
233
150
|
executionRoleArn: [],
|
|
234
151
|
logContext: [],
|
|
235
152
|
}));
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
hostname,
|
|
239
|
-
port,
|
|
240
|
-
method: "POST",
|
|
241
|
-
headers,
|
|
242
|
-
path: resolvedPath,
|
|
243
|
-
body,
|
|
244
|
-
});
|
|
153
|
+
b.m("POST").h(headers).b(body);
|
|
154
|
+
return b.build();
|
|
245
155
|
};
|
|
246
156
|
export const se_ListJobRunsCommand = async (input, context) => {
|
|
247
|
-
const
|
|
157
|
+
const b = rb(input, context);
|
|
248
158
|
const headers = {};
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
159
|
+
b.bp("/virtualclusters/{virtualClusterId}/jobruns");
|
|
160
|
+
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
252
161
|
const query = map({
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
],
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
() => (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
260
|
-
],
|
|
261
|
-
name: [, input.name],
|
|
262
|
-
states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
|
|
263
|
-
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
264
|
-
nextToken: [, input.nextToken],
|
|
162
|
+
[_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
|
|
163
|
+
[_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
|
|
164
|
+
[_n]: [, input[_n]],
|
|
165
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
166
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
167
|
+
[_nT]: [, input[_nT]],
|
|
265
168
|
});
|
|
266
169
|
let body;
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
hostname,
|
|
270
|
-
port,
|
|
271
|
-
method: "GET",
|
|
272
|
-
headers,
|
|
273
|
-
path: resolvedPath,
|
|
274
|
-
query,
|
|
275
|
-
body,
|
|
276
|
-
});
|
|
170
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
171
|
+
return b.build();
|
|
277
172
|
};
|
|
278
173
|
export const se_ListJobTemplatesCommand = async (input, context) => {
|
|
279
|
-
const
|
|
174
|
+
const b = rb(input, context);
|
|
280
175
|
const headers = {};
|
|
281
|
-
|
|
176
|
+
b.bp("/jobtemplates");
|
|
282
177
|
const query = map({
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
],
|
|
287
|
-
createdBefore: [
|
|
288
|
-
() => input.createdBefore !== void 0,
|
|
289
|
-
() => (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
290
|
-
],
|
|
291
|
-
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
292
|
-
nextToken: [, input.nextToken],
|
|
178
|
+
[_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
|
|
179
|
+
[_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
|
|
180
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
181
|
+
[_nT]: [, input[_nT]],
|
|
293
182
|
});
|
|
294
183
|
let body;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
hostname,
|
|
298
|
-
port,
|
|
299
|
-
method: "GET",
|
|
300
|
-
headers,
|
|
301
|
-
path: resolvedPath,
|
|
302
|
-
query,
|
|
303
|
-
body,
|
|
304
|
-
});
|
|
184
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
185
|
+
return b.build();
|
|
305
186
|
};
|
|
306
187
|
export const se_ListManagedEndpointsCommand = async (input, context) => {
|
|
307
|
-
const
|
|
188
|
+
const b = rb(input, context);
|
|
308
189
|
const headers = {};
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
190
|
+
b.bp("/virtualclusters/{virtualClusterId}/endpoints");
|
|
191
|
+
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
312
192
|
const query = map({
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
],
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
() => (input.createdAfter.toISOString().split(".")[0] + "Z").toString(),
|
|
320
|
-
],
|
|
321
|
-
types: [() => input.types !== void 0, () => (input.types || []).map((_entry) => _entry)],
|
|
322
|
-
states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
|
|
323
|
-
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
324
|
-
nextToken: [, input.nextToken],
|
|
193
|
+
[_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
|
|
194
|
+
[_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
|
|
195
|
+
[_t]: [() => input.types !== void 0, () => (input[_t] || []).map((_entry) => _entry)],
|
|
196
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
197
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
198
|
+
[_nT]: [, input[_nT]],
|
|
325
199
|
});
|
|
326
200
|
let body;
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
hostname,
|
|
330
|
-
port,
|
|
331
|
-
method: "GET",
|
|
332
|
-
headers,
|
|
333
|
-
path: resolvedPath,
|
|
334
|
-
query,
|
|
335
|
-
body,
|
|
336
|
-
});
|
|
201
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
202
|
+
return b.build();
|
|
337
203
|
};
|
|
338
204
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
339
|
-
const
|
|
205
|
+
const b = rb(input, context);
|
|
340
206
|
const headers = {};
|
|
341
|
-
|
|
342
|
-
|
|
207
|
+
b.bp("/tags/{resourceArn}");
|
|
208
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
343
209
|
let body;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
hostname,
|
|
347
|
-
port,
|
|
348
|
-
method: "GET",
|
|
349
|
-
headers,
|
|
350
|
-
path: resolvedPath,
|
|
351
|
-
body,
|
|
352
|
-
});
|
|
210
|
+
b.m("GET").h(headers).b(body);
|
|
211
|
+
return b.build();
|
|
353
212
|
};
|
|
354
213
|
export const se_ListVirtualClustersCommand = async (input, context) => {
|
|
355
|
-
const
|
|
214
|
+
const b = rb(input, context);
|
|
356
215
|
const headers = {};
|
|
357
|
-
|
|
216
|
+
b.bp("/virtualclusters");
|
|
358
217
|
const query = map({
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
],
|
|
365
|
-
|
|
366
|
-
() => input.createdBefore !== void 0,
|
|
367
|
-
() => (input.createdBefore.toISOString().split(".")[0] + "Z").toString(),
|
|
368
|
-
],
|
|
369
|
-
states: [() => input.states !== void 0, () => (input.states || []).map((_entry) => _entry)],
|
|
370
|
-
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
371
|
-
nextToken: [, input.nextToken],
|
|
218
|
+
[_cPI]: [, input[_cPI]],
|
|
219
|
+
[_cPT]: [, input[_cPT]],
|
|
220
|
+
[_cA]: [() => input.createdAfter !== void 0, () => (input[_cA].toISOString().split(".")[0] + "Z").toString()],
|
|
221
|
+
[_cB]: [() => input.createdBefore !== void 0, () => (input[_cB].toISOString().split(".")[0] + "Z").toString()],
|
|
222
|
+
[_s]: [() => input.states !== void 0, () => (input[_s] || []).map((_entry) => _entry)],
|
|
223
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
224
|
+
[_nT]: [, input[_nT]],
|
|
372
225
|
});
|
|
373
226
|
let body;
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
hostname,
|
|
377
|
-
port,
|
|
378
|
-
method: "GET",
|
|
379
|
-
headers,
|
|
380
|
-
path: resolvedPath,
|
|
381
|
-
query,
|
|
382
|
-
body,
|
|
383
|
-
});
|
|
227
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
228
|
+
return b.build();
|
|
384
229
|
};
|
|
385
230
|
export const se_StartJobRunCommand = async (input, context) => {
|
|
386
|
-
const
|
|
231
|
+
const b = rb(input, context);
|
|
387
232
|
const headers = {
|
|
388
233
|
"content-type": "application/json",
|
|
389
234
|
};
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
resolvedPath = __resolvedPath(resolvedPath, input, "virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
235
|
+
b.bp("/virtualclusters/{virtualClusterId}/jobruns");
|
|
236
|
+
b.p("virtualClusterId", () => input.virtualClusterId, "{virtualClusterId}", false);
|
|
393
237
|
let body;
|
|
394
238
|
body = JSON.stringify(take(input, {
|
|
395
239
|
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -403,59 +247,37 @@ export const se_StartJobRunCommand = async (input, context) => {
|
|
|
403
247
|
retryPolicyConfiguration: (_) => _json(_),
|
|
404
248
|
tags: (_) => _json(_),
|
|
405
249
|
}));
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
hostname,
|
|
409
|
-
port,
|
|
410
|
-
method: "POST",
|
|
411
|
-
headers,
|
|
412
|
-
path: resolvedPath,
|
|
413
|
-
body,
|
|
414
|
-
});
|
|
250
|
+
b.m("POST").h(headers).b(body);
|
|
251
|
+
return b.build();
|
|
415
252
|
};
|
|
416
253
|
export const se_TagResourceCommand = async (input, context) => {
|
|
417
|
-
const
|
|
254
|
+
const b = rb(input, context);
|
|
418
255
|
const headers = {
|
|
419
256
|
"content-type": "application/json",
|
|
420
257
|
};
|
|
421
|
-
|
|
422
|
-
|
|
258
|
+
b.bp("/tags/{resourceArn}");
|
|
259
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
423
260
|
let body;
|
|
424
261
|
body = JSON.stringify(take(input, {
|
|
425
262
|
tags: (_) => _json(_),
|
|
426
263
|
}));
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
hostname,
|
|
430
|
-
port,
|
|
431
|
-
method: "POST",
|
|
432
|
-
headers,
|
|
433
|
-
path: resolvedPath,
|
|
434
|
-
body,
|
|
435
|
-
});
|
|
264
|
+
b.m("POST").h(headers).b(body);
|
|
265
|
+
return b.build();
|
|
436
266
|
};
|
|
437
267
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
438
|
-
const
|
|
268
|
+
const b = rb(input, context);
|
|
439
269
|
const headers = {};
|
|
440
|
-
|
|
441
|
-
|
|
270
|
+
b.bp("/tags/{resourceArn}");
|
|
271
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
442
272
|
const query = map({
|
|
443
|
-
|
|
273
|
+
[_tK]: [
|
|
444
274
|
__expectNonNull(input.tagKeys, `tagKeys`) != null,
|
|
445
|
-
() => (input
|
|
275
|
+
() => (input[_tK] || []).map((_entry) => _entry),
|
|
446
276
|
],
|
|
447
277
|
});
|
|
448
278
|
let body;
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
hostname,
|
|
452
|
-
port,
|
|
453
|
-
method: "DELETE",
|
|
454
|
-
headers,
|
|
455
|
-
path: resolvedPath,
|
|
456
|
-
query,
|
|
457
|
-
body,
|
|
458
|
-
});
|
|
279
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
280
|
+
return b.build();
|
|
459
281
|
};
|
|
460
282
|
export const de_CancelJobRunCommand = async (output, context) => {
|
|
461
283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -1465,6 +1287,16 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1465
1287
|
value !== "" &&
|
|
1466
1288
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
1467
1289
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1290
|
+
const _cA = "createdAfter";
|
|
1291
|
+
const _cB = "createdBefore";
|
|
1292
|
+
const _cPI = "containerProviderId";
|
|
1293
|
+
const _cPT = "containerProviderType";
|
|
1294
|
+
const _mR = "maxResults";
|
|
1295
|
+
const _n = "name";
|
|
1296
|
+
const _nT = "nextToken";
|
|
1297
|
+
const _s = "states";
|
|
1298
|
+
const _t = "types";
|
|
1299
|
+
const _tK = "tagKeys";
|
|
1468
1300
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1469
1301
|
if (encoded.length) {
|
|
1470
1302
|
return JSON.parse(encoded);
|
|
@@ -4,4 +4,4 @@ import { EMRContainersPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListJobRuns: (config: EMRContainersPaginationConfiguration, input: ListJobRunsCommandInput, ...rest: any[]) => Paginator<ListJobRunsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { EMRContainersPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListJobTemplates: (config: EMRContainersPaginationConfiguration, input: ListJobTemplatesCommandInput, ...rest: any[]) => Paginator<ListJobTemplatesCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { EMRContainersPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListManagedEndpoints: (config: EMRContainersPaginationConfiguration, input: ListManagedEndpointsCommandInput, ...rest: any[]) => Paginator<ListManagedEndpointsCommandOutput>;
|
|
@@ -4,4 +4,4 @@ import { EMRContainersPaginationConfiguration } from "./Interfaces";
|
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListVirtualClusters: (config: EMRContainersPaginationConfiguration, input: ListVirtualClustersCommandInput, ...rest: any[]) => Paginator<ListVirtualClustersCommandOutput>;
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ListJobRunsCommandOutput,
|
|
5
5
|
} from "../commands/ListJobRunsCommand";
|
|
6
6
|
import { EMRContainersPaginationConfiguration } from "./Interfaces";
|
|
7
|
-
export declare
|
|
7
|
+
export declare const paginateListJobRuns: (
|
|
8
8
|
config: EMRContainersPaginationConfiguration,
|
|
9
9
|
input: ListJobRunsCommandInput,
|
|
10
|
-
...
|
|
11
|
-
)
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListJobRunsCommandOutput>;
|