@aws-sdk/client-iot-jobs-data-plane 3.928.0 → 3.930.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.
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  profile?: string;
41
41
  logger: import("@smithy/types").Logger;
42
42
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
+ protocol: import("@smithy/types").ClientProtocol<
44
+ import("@smithy/types").HttpRequest,
45
+ import("@smithy/types").HttpResponse
46
+ >;
43
47
  customUserAgent?: string | import("@smithy/types").UserAgent;
44
48
  userAgentAppId?:
45
49
  | string
@@ -40,6 +40,10 @@ export declare const getRuntimeConfig: (
40
40
  profile?: string;
41
41
  logger: import("@smithy/types").Logger;
42
42
  extensions: import("./runtimeExtensions").RuntimeExtension[];
43
+ protocol: import("@smithy/types").ClientProtocol<
44
+ import("@smithy/types").HttpRequest,
45
+ import("@smithy/types").HttpResponse
46
+ >;
43
47
  customUserAgent?: string | import("@smithy/types").UserAgent;
44
48
  retryStrategy?:
45
49
  | import("@smithy/types").RetryStrategy
@@ -39,6 +39,10 @@ export declare const getRuntimeConfig: (
39
39
  retryMode: string | import("@smithy/types").Provider<string>;
40
40
  logger: import("@smithy/types").Logger;
41
41
  extensions: import("./runtimeExtensions").RuntimeExtension[];
42
+ protocol: import("@smithy/types").ClientProtocol<
43
+ import("@smithy/types").HttpRequest,
44
+ import("@smithy/types").HttpResponse
45
+ >;
42
46
  defaultsMode:
43
47
  | import("@smithy/smithy-client").DefaultsMode
44
48
  | import("@smithy/types").Provider<
@@ -16,6 +16,10 @@ export declare const getRuntimeConfig: (
16
16
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IoTJobsDataPlaneHttpAuthSchemeProvider;
17
17
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
18
18
  logger: import("@smithy/types").Logger;
19
+ protocol: import("@smithy/types").ClientProtocol<
20
+ import("@smithy/types").HttpRequest,
21
+ import("@smithy/types").HttpResponse
22
+ >;
19
23
  serviceId: string;
20
24
  urlParser: import("@smithy/types").UrlParser;
21
25
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,42 @@
1
+ import {
2
+ StaticErrorSchema,
3
+ StaticListSchema,
4
+ StaticMapSchema,
5
+ StaticOperationSchema,
6
+ StaticStructureSchema,
7
+ } from "@smithy/types";
8
+ export declare var CertificateValidationException: StaticErrorSchema;
9
+ export declare var CommandParameterValue: StaticStructureSchema;
10
+ export declare var ConflictException: StaticErrorSchema;
11
+ export declare var DescribeJobExecutionRequest: StaticStructureSchema;
12
+ export declare var DescribeJobExecutionResponse: StaticStructureSchema;
13
+ export declare var GetPendingJobExecutionsRequest: StaticStructureSchema;
14
+ export declare var GetPendingJobExecutionsResponse: StaticStructureSchema;
15
+ export declare var InternalServerException: StaticErrorSchema;
16
+ export declare var InvalidRequestException: StaticErrorSchema;
17
+ export declare var InvalidStateTransitionException: StaticErrorSchema;
18
+ export declare var JobExecution: StaticStructureSchema;
19
+ export declare var JobExecutionState: StaticStructureSchema;
20
+ export declare var JobExecutionSummary: StaticStructureSchema;
21
+ export declare var ResourceNotFoundException: StaticErrorSchema;
22
+ export declare var ServiceQuotaExceededException: StaticErrorSchema;
23
+ export declare var ServiceUnavailableException: StaticErrorSchema;
24
+ export declare var StartCommandExecutionRequest: StaticStructureSchema;
25
+ export declare var StartCommandExecutionResponse: StaticStructureSchema;
26
+ export declare var StartNextPendingJobExecutionRequest: StaticStructureSchema;
27
+ export declare var StartNextPendingJobExecutionResponse: StaticStructureSchema;
28
+ export declare var TerminalStateException: StaticErrorSchema;
29
+ export declare var ThrottlingException: StaticErrorSchema;
30
+ export declare var UpdateJobExecutionRequest: StaticStructureSchema;
31
+ export declare var UpdateJobExecutionResponse: StaticStructureSchema;
32
+ export declare var ValidationException: StaticErrorSchema;
33
+ export declare var __Unit: "unit";
34
+ export declare var IoTJobsDataPlaneServiceException: StaticErrorSchema;
35
+ export declare var JobExecutionSummaryList: StaticListSchema;
36
+ export declare var CommandExecutionParameterMap: StaticMapSchema;
37
+ export declare var DetailsMap: number;
38
+ export declare var DescribeJobExecution: StaticOperationSchema;
39
+ export declare var GetPendingJobExecutions: StaticOperationSchema;
40
+ export declare var StartCommandExecution: StaticOperationSchema;
41
+ export declare var StartNextPendingJobExecution: StaticOperationSchema;
42
+ export declare var UpdateJobExecution: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-jobs-data-plane",
3
3
  "description": "AWS SDK for JavaScript Iot Jobs Data Plane Client for Node.js, Browser and React Native",
4
- "version": "3.928.0",
4
+ "version": "3.930.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-iot-jobs-data-plane",
@@ -20,43 +20,42 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.928.0",
24
- "@aws-sdk/credential-provider-node": "3.928.0",
25
- "@aws-sdk/middleware-host-header": "3.922.0",
26
- "@aws-sdk/middleware-logger": "3.922.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.922.0",
28
- "@aws-sdk/middleware-user-agent": "3.928.0",
29
- "@aws-sdk/region-config-resolver": "3.925.0",
30
- "@aws-sdk/types": "3.922.0",
31
- "@aws-sdk/util-endpoints": "3.922.0",
32
- "@aws-sdk/util-user-agent-browser": "3.922.0",
33
- "@aws-sdk/util-user-agent-node": "3.928.0",
34
- "@smithy/config-resolver": "^4.4.2",
35
- "@smithy/core": "^3.17.2",
36
- "@smithy/fetch-http-handler": "^5.3.5",
37
- "@smithy/hash-node": "^4.2.4",
38
- "@smithy/invalid-dependency": "^4.2.4",
39
- "@smithy/middleware-content-length": "^4.2.4",
40
- "@smithy/middleware-endpoint": "^4.3.6",
41
- "@smithy/middleware-retry": "^4.4.6",
42
- "@smithy/middleware-serde": "^4.2.4",
43
- "@smithy/middleware-stack": "^4.2.4",
44
- "@smithy/node-config-provider": "^4.3.4",
45
- "@smithy/node-http-handler": "^4.4.4",
46
- "@smithy/protocol-http": "^5.3.4",
47
- "@smithy/smithy-client": "^4.9.2",
48
- "@smithy/types": "^4.8.1",
49
- "@smithy/url-parser": "^4.2.4",
23
+ "@aws-sdk/core": "3.930.0",
24
+ "@aws-sdk/credential-provider-node": "3.930.0",
25
+ "@aws-sdk/middleware-host-header": "3.930.0",
26
+ "@aws-sdk/middleware-logger": "3.930.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.930.0",
28
+ "@aws-sdk/middleware-user-agent": "3.930.0",
29
+ "@aws-sdk/region-config-resolver": "3.930.0",
30
+ "@aws-sdk/types": "3.930.0",
31
+ "@aws-sdk/util-endpoints": "3.930.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.930.0",
33
+ "@aws-sdk/util-user-agent-node": "3.930.0",
34
+ "@smithy/config-resolver": "^4.4.3",
35
+ "@smithy/core": "^3.18.2",
36
+ "@smithy/fetch-http-handler": "^5.3.6",
37
+ "@smithy/hash-node": "^4.2.5",
38
+ "@smithy/invalid-dependency": "^4.2.5",
39
+ "@smithy/middleware-content-length": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.9",
41
+ "@smithy/middleware-retry": "^4.4.9",
42
+ "@smithy/middleware-serde": "^4.2.5",
43
+ "@smithy/middleware-stack": "^4.2.5",
44
+ "@smithy/node-config-provider": "^4.3.5",
45
+ "@smithy/node-http-handler": "^4.4.5",
46
+ "@smithy/protocol-http": "^5.3.5",
47
+ "@smithy/smithy-client": "^4.9.5",
48
+ "@smithy/types": "^4.9.0",
49
+ "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.5",
54
- "@smithy/util-defaults-mode-node": "^4.2.8",
55
- "@smithy/util-endpoints": "^3.2.4",
56
- "@smithy/util-middleware": "^4.2.4",
57
- "@smithy/util-retry": "^4.2.4",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.8",
54
+ "@smithy/util-defaults-mode-node": "^4.2.11",
55
+ "@smithy/util-endpoints": "^3.2.5",
56
+ "@smithy/util-middleware": "^4.2.5",
57
+ "@smithy/util-retry": "^4.2.5",
58
58
  "@smithy/util-utf8": "^4.2.0",
59
- "@smithy/uuid": "^1.1.0",
60
59
  "tslib": "^2.6.2"
61
60
  },
62
61
  "devDependencies": {
@@ -1,378 +0,0 @@
1
- import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
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, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
- import { v4 as generateIdempotencyToken } from "@smithy/uuid";
5
- import { IoTJobsDataPlaneServiceException as __BaseException } from "../models/IoTJobsDataPlaneServiceException";
6
- import { CertificateValidationException, ConflictException, InternalServerException, InvalidRequestException, InvalidStateTransitionException, ResourceNotFoundException, ServiceQuotaExceededException, ServiceUnavailableException, TerminalStateException, ThrottlingException, ValidationException, } from "../models/models_0";
7
- export const se_DescribeJobExecutionCommand = async (input, context) => {
8
- const b = rb(input, context);
9
- const headers = {};
10
- b.bp("/things/{thingName}/jobs/{jobId}");
11
- b.p("jobId", () => input.jobId, "{jobId}", false);
12
- b.p("thingName", () => input.thingName, "{thingName}", false);
13
- const query = map({
14
- [_iJD]: [() => input.includeJobDocument !== void 0, () => input[_iJD].toString()],
15
- [_eN]: [() => input.executionNumber !== void 0, () => input[_eN].toString()],
16
- });
17
- let body;
18
- b.m("GET").h(headers).q(query).b(body);
19
- return b.build();
20
- };
21
- export const se_GetPendingJobExecutionsCommand = async (input, context) => {
22
- const b = rb(input, context);
23
- const headers = {};
24
- b.bp("/things/{thingName}/jobs");
25
- b.p("thingName", () => input.thingName, "{thingName}", false);
26
- let body;
27
- b.m("GET").h(headers).b(body);
28
- return b.build();
29
- };
30
- export const se_StartCommandExecutionCommand = async (input, context) => {
31
- const b = rb(input, context);
32
- const headers = {
33
- "content-type": "application/json",
34
- };
35
- b.bp("/command-executions");
36
- let body;
37
- body = JSON.stringify(take(input, {
38
- clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
39
- commandArn: [],
40
- executionTimeoutSeconds: [],
41
- parameters: (_) => se_CommandExecutionParameterMap(_, context),
42
- targetArn: [],
43
- }));
44
- b.m("POST").h(headers).b(body);
45
- return b.build();
46
- };
47
- export const se_StartNextPendingJobExecutionCommand = async (input, context) => {
48
- const b = rb(input, context);
49
- const headers = {
50
- "content-type": "application/json",
51
- };
52
- b.bp("/things/{thingName}/jobs/$next");
53
- b.p("thingName", () => input.thingName, "{thingName}", false);
54
- let body;
55
- body = JSON.stringify(take(input, {
56
- statusDetails: (_) => _json(_),
57
- stepTimeoutInMinutes: [],
58
- }));
59
- b.m("PUT").h(headers).b(body);
60
- return b.build();
61
- };
62
- export const se_UpdateJobExecutionCommand = async (input, context) => {
63
- const b = rb(input, context);
64
- const headers = {
65
- "content-type": "application/json",
66
- };
67
- b.bp("/things/{thingName}/jobs/{jobId}");
68
- b.p("jobId", () => input.jobId, "{jobId}", false);
69
- b.p("thingName", () => input.thingName, "{thingName}", false);
70
- let body;
71
- body = JSON.stringify(take(input, {
72
- executionNumber: [],
73
- expectedVersion: [],
74
- includeJobDocument: [],
75
- includeJobExecutionState: [],
76
- status: [],
77
- statusDetails: (_) => _json(_),
78
- stepTimeoutInMinutes: [],
79
- }));
80
- b.m("POST").h(headers).b(body);
81
- return b.build();
82
- };
83
- export const de_DescribeJobExecutionCommand = async (output, context) => {
84
- if (output.statusCode !== 200 && output.statusCode >= 300) {
85
- return de_CommandError(output, context);
86
- }
87
- const contents = map({
88
- $metadata: deserializeMetadata(output),
89
- });
90
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
91
- const doc = take(data, {
92
- execution: _json,
93
- });
94
- Object.assign(contents, doc);
95
- return contents;
96
- };
97
- export const de_GetPendingJobExecutionsCommand = async (output, context) => {
98
- if (output.statusCode !== 200 && output.statusCode >= 300) {
99
- return de_CommandError(output, context);
100
- }
101
- const contents = map({
102
- $metadata: deserializeMetadata(output),
103
- });
104
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
105
- const doc = take(data, {
106
- inProgressJobs: _json,
107
- queuedJobs: _json,
108
- });
109
- Object.assign(contents, doc);
110
- return contents;
111
- };
112
- export const de_StartCommandExecutionCommand = async (output, context) => {
113
- if (output.statusCode !== 200 && output.statusCode >= 300) {
114
- return de_CommandError(output, context);
115
- }
116
- const contents = map({
117
- $metadata: deserializeMetadata(output),
118
- });
119
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
120
- const doc = take(data, {
121
- executionId: __expectString,
122
- });
123
- Object.assign(contents, doc);
124
- return contents;
125
- };
126
- export const de_StartNextPendingJobExecutionCommand = async (output, context) => {
127
- if (output.statusCode !== 200 && output.statusCode >= 300) {
128
- return de_CommandError(output, context);
129
- }
130
- const contents = map({
131
- $metadata: deserializeMetadata(output),
132
- });
133
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
134
- const doc = take(data, {
135
- execution: _json,
136
- });
137
- Object.assign(contents, doc);
138
- return contents;
139
- };
140
- export const de_UpdateJobExecutionCommand = async (output, context) => {
141
- if (output.statusCode !== 200 && output.statusCode >= 300) {
142
- return de_CommandError(output, context);
143
- }
144
- const contents = map({
145
- $metadata: deserializeMetadata(output),
146
- });
147
- const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
148
- const doc = take(data, {
149
- executionState: _json,
150
- jobDocument: __expectString,
151
- });
152
- Object.assign(contents, doc);
153
- return contents;
154
- };
155
- const de_CommandError = async (output, context) => {
156
- const parsedOutput = {
157
- ...output,
158
- body: await parseErrorBody(output.body, context),
159
- };
160
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
161
- switch (errorCode) {
162
- case "CertificateValidationException":
163
- case "com.amazonaws.iotjobsdataplane#CertificateValidationException":
164
- throw await de_CertificateValidationExceptionRes(parsedOutput, context);
165
- case "InvalidRequestException":
166
- case "com.amazonaws.iotjobsdataplane#InvalidRequestException":
167
- throw await de_InvalidRequestExceptionRes(parsedOutput, context);
168
- case "ResourceNotFoundException":
169
- case "com.amazonaws.iotjobsdataplane#ResourceNotFoundException":
170
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
171
- case "ServiceUnavailableException":
172
- case "com.amazonaws.iotjobsdataplane#ServiceUnavailableException":
173
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
174
- case "TerminalStateException":
175
- case "com.amazonaws.iotjobsdataplane#TerminalStateException":
176
- throw await de_TerminalStateExceptionRes(parsedOutput, context);
177
- case "ThrottlingException":
178
- case "com.amazonaws.iotjobsdataplane#ThrottlingException":
179
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
180
- case "ConflictException":
181
- case "com.amazonaws.iotjobsdataplane#ConflictException":
182
- throw await de_ConflictExceptionRes(parsedOutput, context);
183
- case "InternalServerException":
184
- case "com.amazonaws.iotjobsdataplane#InternalServerException":
185
- throw await de_InternalServerExceptionRes(parsedOutput, context);
186
- case "ServiceQuotaExceededException":
187
- case "com.amazonaws.iotjobsdataplane#ServiceQuotaExceededException":
188
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
189
- case "ValidationException":
190
- case "com.amazonaws.iotjobsdataplane#ValidationException":
191
- throw await de_ValidationExceptionRes(parsedOutput, context);
192
- case "InvalidStateTransitionException":
193
- case "com.amazonaws.iotjobsdataplane#InvalidStateTransitionException":
194
- throw await de_InvalidStateTransitionExceptionRes(parsedOutput, context);
195
- default:
196
- const parsedBody = parsedOutput.body;
197
- return throwDefaultError({
198
- output,
199
- parsedBody,
200
- errorCode,
201
- });
202
- }
203
- };
204
- const throwDefaultError = withBaseException(__BaseException);
205
- const de_CertificateValidationExceptionRes = async (parsedOutput, context) => {
206
- const contents = map({});
207
- const data = parsedOutput.body;
208
- const doc = take(data, {
209
- message: __expectString,
210
- });
211
- Object.assign(contents, doc);
212
- const exception = new CertificateValidationException({
213
- $metadata: deserializeMetadata(parsedOutput),
214
- ...contents,
215
- });
216
- return __decorateServiceException(exception, parsedOutput.body);
217
- };
218
- const de_ConflictExceptionRes = async (parsedOutput, context) => {
219
- const contents = map({});
220
- const data = parsedOutput.body;
221
- const doc = take(data, {
222
- message: __expectString,
223
- resourceId: __expectString,
224
- });
225
- Object.assign(contents, doc);
226
- const exception = new ConflictException({
227
- $metadata: deserializeMetadata(parsedOutput),
228
- ...contents,
229
- });
230
- return __decorateServiceException(exception, parsedOutput.body);
231
- };
232
- const de_InternalServerExceptionRes = async (parsedOutput, context) => {
233
- const contents = map({});
234
- const data = parsedOutput.body;
235
- const doc = take(data, {
236
- message: __expectString,
237
- });
238
- Object.assign(contents, doc);
239
- const exception = new InternalServerException({
240
- $metadata: deserializeMetadata(parsedOutput),
241
- ...contents,
242
- });
243
- return __decorateServiceException(exception, parsedOutput.body);
244
- };
245
- const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
246
- const contents = map({});
247
- const data = parsedOutput.body;
248
- const doc = take(data, {
249
- message: __expectString,
250
- });
251
- Object.assign(contents, doc);
252
- const exception = new InvalidRequestException({
253
- $metadata: deserializeMetadata(parsedOutput),
254
- ...contents,
255
- });
256
- return __decorateServiceException(exception, parsedOutput.body);
257
- };
258
- const de_InvalidStateTransitionExceptionRes = async (parsedOutput, context) => {
259
- const contents = map({});
260
- const data = parsedOutput.body;
261
- const doc = take(data, {
262
- message: __expectString,
263
- });
264
- Object.assign(contents, doc);
265
- const exception = new InvalidStateTransitionException({
266
- $metadata: deserializeMetadata(parsedOutput),
267
- ...contents,
268
- });
269
- return __decorateServiceException(exception, parsedOutput.body);
270
- };
271
- const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
272
- const contents = map({});
273
- const data = parsedOutput.body;
274
- const doc = take(data, {
275
- message: __expectString,
276
- });
277
- Object.assign(contents, doc);
278
- const exception = new ResourceNotFoundException({
279
- $metadata: deserializeMetadata(parsedOutput),
280
- ...contents,
281
- });
282
- return __decorateServiceException(exception, parsedOutput.body);
283
- };
284
- const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
285
- const contents = map({});
286
- const data = parsedOutput.body;
287
- const doc = take(data, {
288
- message: __expectString,
289
- });
290
- Object.assign(contents, doc);
291
- const exception = new ServiceQuotaExceededException({
292
- $metadata: deserializeMetadata(parsedOutput),
293
- ...contents,
294
- });
295
- return __decorateServiceException(exception, parsedOutput.body);
296
- };
297
- const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
298
- const contents = map({});
299
- const data = parsedOutput.body;
300
- const doc = take(data, {
301
- message: __expectString,
302
- });
303
- Object.assign(contents, doc);
304
- const exception = new ServiceUnavailableException({
305
- $metadata: deserializeMetadata(parsedOutput),
306
- ...contents,
307
- });
308
- return __decorateServiceException(exception, parsedOutput.body);
309
- };
310
- const de_TerminalStateExceptionRes = async (parsedOutput, context) => {
311
- const contents = map({});
312
- const data = parsedOutput.body;
313
- const doc = take(data, {
314
- message: __expectString,
315
- });
316
- Object.assign(contents, doc);
317
- const exception = new TerminalStateException({
318
- $metadata: deserializeMetadata(parsedOutput),
319
- ...contents,
320
- });
321
- return __decorateServiceException(exception, parsedOutput.body);
322
- };
323
- const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
324
- const contents = map({});
325
- const data = parsedOutput.body;
326
- const doc = take(data, {
327
- message: __expectString,
328
- payload: context.base64Decoder,
329
- });
330
- Object.assign(contents, doc);
331
- const exception = new ThrottlingException({
332
- $metadata: deserializeMetadata(parsedOutput),
333
- ...contents,
334
- });
335
- return __decorateServiceException(exception, parsedOutput.body);
336
- };
337
- const de_ValidationExceptionRes = async (parsedOutput, context) => {
338
- const contents = map({});
339
- const data = parsedOutput.body;
340
- const doc = take(data, {
341
- message: __expectString,
342
- });
343
- Object.assign(contents, doc);
344
- const exception = new ValidationException({
345
- $metadata: deserializeMetadata(parsedOutput),
346
- ...contents,
347
- });
348
- return __decorateServiceException(exception, parsedOutput.body);
349
- };
350
- const se_CommandExecutionParameterMap = (input, context) => {
351
- return Object.entries(input).reduce((acc, [key, value]) => {
352
- if (value === null) {
353
- return acc;
354
- }
355
- acc[key] = se_CommandParameterValue(value, context);
356
- return acc;
357
- }, {});
358
- };
359
- const se_CommandParameterValue = (input, context) => {
360
- return take(input, {
361
- B: [],
362
- BIN: context.base64Encoder,
363
- D: __serializeFloat,
364
- I: [],
365
- L: [],
366
- S: [],
367
- UL: [],
368
- });
369
- };
370
- const deserializeMetadata = (output) => ({
371
- httpStatusCode: output.statusCode,
372
- requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
373
- extendedRequestId: output.headers["x-amz-id-2"],
374
- cfId: output.headers["x-amz-cf-id"],
375
- });
376
- const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
377
- const _eN = "executionNumber";
378
- const _iJD = "includeJobDocument";
@@ -1,47 +0,0 @@
1
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
- import { SerdeContext as __SerdeContext } from "@smithy/types";
3
- import { DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput } from "../commands/DescribeJobExecutionCommand";
4
- import { GetPendingJobExecutionsCommandInput, GetPendingJobExecutionsCommandOutput } from "../commands/GetPendingJobExecutionsCommand";
5
- import { StartCommandExecutionCommandInput, StartCommandExecutionCommandOutput } from "../commands/StartCommandExecutionCommand";
6
- import { StartNextPendingJobExecutionCommandInput, StartNextPendingJobExecutionCommandOutput } from "../commands/StartNextPendingJobExecutionCommand";
7
- import { UpdateJobExecutionCommandInput, UpdateJobExecutionCommandOutput } from "../commands/UpdateJobExecutionCommand";
8
- /**
9
- * serializeAws_restJson1DescribeJobExecutionCommand
10
- */
11
- export declare const se_DescribeJobExecutionCommand: (input: DescribeJobExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
12
- /**
13
- * serializeAws_restJson1GetPendingJobExecutionsCommand
14
- */
15
- export declare const se_GetPendingJobExecutionsCommand: (input: GetPendingJobExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
- /**
17
- * serializeAws_restJson1StartCommandExecutionCommand
18
- */
19
- export declare const se_StartCommandExecutionCommand: (input: StartCommandExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
20
- /**
21
- * serializeAws_restJson1StartNextPendingJobExecutionCommand
22
- */
23
- export declare const se_StartNextPendingJobExecutionCommand: (input: StartNextPendingJobExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
24
- /**
25
- * serializeAws_restJson1UpdateJobExecutionCommand
26
- */
27
- export declare const se_UpdateJobExecutionCommand: (input: UpdateJobExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
28
- /**
29
- * deserializeAws_restJson1DescribeJobExecutionCommand
30
- */
31
- export declare const de_DescribeJobExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeJobExecutionCommandOutput>;
32
- /**
33
- * deserializeAws_restJson1GetPendingJobExecutionsCommand
34
- */
35
- export declare const de_GetPendingJobExecutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPendingJobExecutionsCommandOutput>;
36
- /**
37
- * deserializeAws_restJson1StartCommandExecutionCommand
38
- */
39
- export declare const de_StartCommandExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartCommandExecutionCommandOutput>;
40
- /**
41
- * deserializeAws_restJson1StartNextPendingJobExecutionCommand
42
- */
43
- export declare const de_StartNextPendingJobExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartNextPendingJobExecutionCommandOutput>;
44
- /**
45
- * deserializeAws_restJson1UpdateJobExecutionCommand
46
- */
47
- export declare const de_UpdateJobExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateJobExecutionCommandOutput>;
@@ -1,65 +0,0 @@
1
- import {
2
- HttpRequest as __HttpRequest,
3
- HttpResponse as __HttpResponse,
4
- } from "@smithy/protocol-http";
5
- import { SerdeContext as __SerdeContext } from "@smithy/types";
6
- import {
7
- DescribeJobExecutionCommandInput,
8
- DescribeJobExecutionCommandOutput,
9
- } from "../commands/DescribeJobExecutionCommand";
10
- import {
11
- GetPendingJobExecutionsCommandInput,
12
- GetPendingJobExecutionsCommandOutput,
13
- } from "../commands/GetPendingJobExecutionsCommand";
14
- import {
15
- StartCommandExecutionCommandInput,
16
- StartCommandExecutionCommandOutput,
17
- } from "../commands/StartCommandExecutionCommand";
18
- import {
19
- StartNextPendingJobExecutionCommandInput,
20
- StartNextPendingJobExecutionCommandOutput,
21
- } from "../commands/StartNextPendingJobExecutionCommand";
22
- import {
23
- UpdateJobExecutionCommandInput,
24
- UpdateJobExecutionCommandOutput,
25
- } from "../commands/UpdateJobExecutionCommand";
26
- export declare const se_DescribeJobExecutionCommand: (
27
- input: DescribeJobExecutionCommandInput,
28
- context: __SerdeContext
29
- ) => Promise<__HttpRequest>;
30
- export declare const se_GetPendingJobExecutionsCommand: (
31
- input: GetPendingJobExecutionsCommandInput,
32
- context: __SerdeContext
33
- ) => Promise<__HttpRequest>;
34
- export declare const se_StartCommandExecutionCommand: (
35
- input: StartCommandExecutionCommandInput,
36
- context: __SerdeContext
37
- ) => Promise<__HttpRequest>;
38
- export declare const se_StartNextPendingJobExecutionCommand: (
39
- input: StartNextPendingJobExecutionCommandInput,
40
- context: __SerdeContext
41
- ) => Promise<__HttpRequest>;
42
- export declare const se_UpdateJobExecutionCommand: (
43
- input: UpdateJobExecutionCommandInput,
44
- context: __SerdeContext
45
- ) => Promise<__HttpRequest>;
46
- export declare const de_DescribeJobExecutionCommand: (
47
- output: __HttpResponse,
48
- context: __SerdeContext
49
- ) => Promise<DescribeJobExecutionCommandOutput>;
50
- export declare const de_GetPendingJobExecutionsCommand: (
51
- output: __HttpResponse,
52
- context: __SerdeContext
53
- ) => Promise<GetPendingJobExecutionsCommandOutput>;
54
- export declare const de_StartCommandExecutionCommand: (
55
- output: __HttpResponse,
56
- context: __SerdeContext
57
- ) => Promise<StartCommandExecutionCommandOutput>;
58
- export declare const de_StartNextPendingJobExecutionCommand: (
59
- output: __HttpResponse,
60
- context: __SerdeContext
61
- ) => Promise<StartNextPendingJobExecutionCommandOutput>;
62
- export declare const de_UpdateJobExecutionCommand: (
63
- output: __HttpResponse,
64
- context: __SerdeContext
65
- ) => Promise<UpdateJobExecutionCommandOutput>;