@aws-sdk/client-iot-jobs-data-plane 3.927.0 → 3.929.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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getRuntimeConfig = void 0;
4
4
  const core_1 = require("@aws-sdk/core");
5
+ const protocols_1 = require("@aws-sdk/core/protocols");
5
6
  const smithy_client_1 = require("@smithy/smithy-client");
6
7
  const url_parser_1 = require("@smithy/url-parser");
7
8
  const util_base64_1 = require("@smithy/util-base64");
@@ -25,6 +26,7 @@ const getRuntimeConfig = (config) => {
25
26
  },
26
27
  ],
27
28
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
29
+ protocol: config?.protocol ?? new protocols_1.AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.iotjobsdataplane" }),
28
30
  serviceId: config?.serviceId ?? "IoT Jobs Data Plane",
29
31
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
30
32
  utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
@@ -4,6 +4,7 @@ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detec
4
4
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
5
5
  import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
+ import { getSchemaSerdePlugin } from "@smithy/core/schema";
7
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
8
9
  import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
9
10
  import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
@@ -28,6 +29,7 @@ export class IoTJobsDataPlaneClient extends __Client {
28
29
  const _config_7 = resolveHttpAuthSchemeConfig(_config_6);
29
30
  const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
30
31
  this.config = _config_8;
32
+ this.middlewareStack.use(getSchemaSerdePlugin(this.config));
31
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
32
34
  this.middlewareStack.use(getRetryPlugin(this.config));
33
35
  this.middlewareStack.use(getContentLengthPlugin(this.config));
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_DescribeJobExecutionCommand, se_DescribeJobExecutionCommand } from "../protocols/Aws_restJson1";
4
+ import { DescribeJobExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class DescribeJobExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("IotLaserThingJobManagerExternalService", "DescribeJobExecution", {})
17
13
  .n("IoTJobsDataPlaneClient", "DescribeJobExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_DescribeJobExecutionCommand)
20
- .de(de_DescribeJobExecutionCommand)
14
+ .sc(DescribeJobExecution)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_GetPendingJobExecutionsCommand, se_GetPendingJobExecutionsCommand } from "../protocols/Aws_restJson1";
4
+ import { GetPendingJobExecutions } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class GetPendingJobExecutionsCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("IotLaserThingJobManagerExternalService", "GetPendingJobExecutions", {})
17
13
  .n("IoTJobsDataPlaneClient", "GetPendingJobExecutionsCommand")
18
- .f(void 0, void 0)
19
- .ser(se_GetPendingJobExecutionsCommand)
20
- .de(de_GetPendingJobExecutionsCommand)
14
+ .sc(GetPendingJobExecutions)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartCommandExecutionCommand, se_StartCommandExecutionCommand } from "../protocols/Aws_restJson1";
4
+ import { StartCommandExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartCommandExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("IotLaserThingJobManagerExternalService", "StartCommandExecution", {})
17
13
  .n("IoTJobsDataPlaneClient", "StartCommandExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartCommandExecutionCommand)
20
- .de(de_StartCommandExecutionCommand)
14
+ .sc(StartCommandExecution)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_StartNextPendingJobExecutionCommand, se_StartNextPendingJobExecutionCommand, } from "../protocols/Aws_restJson1";
4
+ import { StartNextPendingJobExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class StartNextPendingJobExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("IotLaserThingJobManagerExternalService", "StartNextPendingJobExecution", {})
17
13
  .n("IoTJobsDataPlaneClient", "StartNextPendingJobExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_StartNextPendingJobExecutionCommand)
20
- .de(de_StartNextPendingJobExecutionCommand)
14
+ .sc(StartNextPendingJobExecution)
21
15
  .build() {
22
16
  }
@@ -1,22 +1,16 @@
1
1
  import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
2
  import { Command as $Command } from "@smithy/smithy-client";
4
3
  import { commonParams } from "../endpoint/EndpointParameters";
5
- import { de_UpdateJobExecutionCommand, se_UpdateJobExecutionCommand } from "../protocols/Aws_restJson1";
4
+ import { UpdateJobExecution } from "../schemas/schemas_0";
6
5
  export { $Command };
7
6
  export class UpdateJobExecutionCommand extends $Command
8
7
  .classBuilder()
9
8
  .ep(commonParams)
10
9
  .m(function (Command, cs, config, o) {
11
- return [
12
- getSerdePlugin(config, this.serialize, this.deserialize),
13
- getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
- ];
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
15
11
  })
16
12
  .s("IotLaserThingJobManagerExternalService", "UpdateJobExecution", {})
17
13
  .n("IoTJobsDataPlaneClient", "UpdateJobExecutionCommand")
18
- .f(void 0, void 0)
19
- .ser(se_UpdateJobExecutionCommand)
20
- .de(de_UpdateJobExecutionCommand)
14
+ .sc(UpdateJobExecution)
21
15
  .build() {
22
16
  }
@@ -1,4 +1,5 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core";
2
+ import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
2
3
  import { NoOpLogger } from "@smithy/smithy-client";
3
4
  import { parseUrl } from "@smithy/url-parser";
4
5
  import { fromBase64, toBase64 } from "@smithy/util-base64";
@@ -22,6 +23,7 @@ export const getRuntimeConfig = (config) => {
22
23
  },
23
24
  ],
24
25
  logger: config?.logger ?? new NoOpLogger(),
26
+ protocol: config?.protocol ?? new AwsRestJsonProtocol({ defaultNamespace: "com.amazonaws.iotjobsdataplane" }),
25
27
  serviceId: config?.serviceId ?? "IoT Jobs Data Plane",
26
28
  urlParser: config?.urlParser ?? parseUrl,
27
29
  utf8Decoder: config?.utf8Decoder ?? fromUtf8,
@@ -0,0 +1,372 @@
1
+ const _B = "B";
2
+ const _BIN = "BIN";
3
+ const _CE = "ConflictException";
4
+ const _CEPM = "CommandExecutionParameterMap";
5
+ const _CPV = "CommandParameterValue";
6
+ const _CVE = "CertificateValidationException";
7
+ const _D = "D";
8
+ const _DJE = "DescribeJobExecution";
9
+ const _DJER = "DescribeJobExecutionRequest";
10
+ const _DJERe = "DescribeJobExecutionResponse";
11
+ const _GPJE = "GetPendingJobExecutions";
12
+ const _GPJER = "GetPendingJobExecutionsRequest";
13
+ const _GPJERe = "GetPendingJobExecutionsResponse";
14
+ const _I = "I";
15
+ const _IRE = "InvalidRequestException";
16
+ const _ISE = "InternalServerException";
17
+ const _ISTE = "InvalidStateTransitionException";
18
+ const _JE = "JobExecution";
19
+ const _JES = "JobExecutionState";
20
+ const _JESL = "JobExecutionSummaryList";
21
+ const _JESo = "JobExecutionSummary";
22
+ const _L = "L";
23
+ const _RNFE = "ResourceNotFoundException";
24
+ const _S = "S";
25
+ const _SCE = "StartCommandExecution";
26
+ const _SCER = "StartCommandExecutionRequest";
27
+ const _SCERt = "StartCommandExecutionResponse";
28
+ const _SNPJE = "StartNextPendingJobExecution";
29
+ const _SNPJER = "StartNextPendingJobExecutionRequest";
30
+ const _SNPJERt = "StartNextPendingJobExecutionResponse";
31
+ const _SQEE = "ServiceQuotaExceededException";
32
+ const _SUE = "ServiceUnavailableException";
33
+ const _TE = "ThrottlingException";
34
+ const _TSE = "TerminalStateException";
35
+ const _UJE = "UpdateJobExecution";
36
+ const _UJER = "UpdateJobExecutionRequest";
37
+ const _UJERp = "UpdateJobExecutionResponse";
38
+ const _UL = "UL";
39
+ const _VE = "ValidationException";
40
+ const _aSBTO = "approximateSecondsBeforeTimedOut";
41
+ const _c = "client";
42
+ const _cA = "commandArn";
43
+ const _cT = "clientToken";
44
+ const _e = "error";
45
+ const _eI = "executionId";
46
+ const _eN = "executionNumber";
47
+ const _eS = "executionState";
48
+ const _eTS = "executionTimeoutSeconds";
49
+ const _eV = "expectedVersion";
50
+ const _ex = "execution";
51
+ const _h = "http";
52
+ const _hE = "httpError";
53
+ const _hQ = "httpQuery";
54
+ const _iJD = "includeJobDocument";
55
+ const _iJES = "includeJobExecutionState";
56
+ const _iPJ = "inProgressJobs";
57
+ const _jD = "jobDocument";
58
+ const _jI = "jobId";
59
+ const _lUA = "lastUpdatedAt";
60
+ const _m = "message";
61
+ const _p = "parameters";
62
+ const _pa = "payload";
63
+ const _qA = "queuedAt";
64
+ const _qJ = "queuedJobs";
65
+ const _rI = "resourceId";
66
+ const _s = "server";
67
+ const _sA = "startedAt";
68
+ const _sD = "statusDetails";
69
+ const _sTIM = "stepTimeoutInMinutes";
70
+ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.iotjobsdataplane";
71
+ const _st = "status";
72
+ const _tA = "targetArn";
73
+ const _tN = "thingName";
74
+ const _vN = "versionNumber";
75
+ const n0 = "com.amazonaws.iotjobsdataplane";
76
+ import { TypeRegistry } from "@smithy/core/schema";
77
+ import { CertificateValidationException as __CertificateValidationException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidRequestException as __InvalidRequestException, InvalidStateTransitionException as __InvalidStateTransitionException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, TerminalStateException as __TerminalStateException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
78
+ import { IoTJobsDataPlaneServiceException as __IoTJobsDataPlaneServiceException } from "../models/IoTJobsDataPlaneServiceException";
79
+ export var CertificateValidationException = [
80
+ -3,
81
+ n0,
82
+ _CVE,
83
+ {
84
+ [_e]: _c,
85
+ [_hE]: 400,
86
+ },
87
+ [_m],
88
+ [0],
89
+ ];
90
+ TypeRegistry.for(n0).registerError(CertificateValidationException, __CertificateValidationException);
91
+ export var CommandParameterValue = [
92
+ 3,
93
+ n0,
94
+ _CPV,
95
+ 0,
96
+ [_S, _B, _I, _L, _D, _BIN, _UL],
97
+ [0, 2, 1, 1, 1, 21, 0],
98
+ ];
99
+ export var ConflictException = [
100
+ -3,
101
+ n0,
102
+ _CE,
103
+ {
104
+ [_e]: _c,
105
+ [_hE]: 409,
106
+ },
107
+ [_m, _rI],
108
+ [0, 0],
109
+ ];
110
+ TypeRegistry.for(n0).registerError(ConflictException, __ConflictException);
111
+ export var DescribeJobExecutionRequest = [
112
+ 3,
113
+ n0,
114
+ _DJER,
115
+ 0,
116
+ [_jI, _tN, _iJD, _eN],
117
+ [
118
+ [0, 1],
119
+ [0, 1],
120
+ [
121
+ 2,
122
+ {
123
+ [_hQ]: _iJD,
124
+ },
125
+ ],
126
+ [
127
+ 1,
128
+ {
129
+ [_hQ]: _eN,
130
+ },
131
+ ],
132
+ ],
133
+ ];
134
+ export var DescribeJobExecutionResponse = [3, n0, _DJERe, 0, [_ex], [() => JobExecution]];
135
+ export var GetPendingJobExecutionsRequest = [3, n0, _GPJER, 0, [_tN], [[0, 1]]];
136
+ export var GetPendingJobExecutionsResponse = [
137
+ 3,
138
+ n0,
139
+ _GPJERe,
140
+ 0,
141
+ [_iPJ, _qJ],
142
+ [() => JobExecutionSummaryList, () => JobExecutionSummaryList],
143
+ ];
144
+ export var InternalServerException = [
145
+ -3,
146
+ n0,
147
+ _ISE,
148
+ {
149
+ [_e]: _s,
150
+ [_hE]: 500,
151
+ },
152
+ [_m],
153
+ [0],
154
+ ];
155
+ TypeRegistry.for(n0).registerError(InternalServerException, __InternalServerException);
156
+ export var InvalidRequestException = [
157
+ -3,
158
+ n0,
159
+ _IRE,
160
+ {
161
+ [_e]: _c,
162
+ [_hE]: 400,
163
+ },
164
+ [_m],
165
+ [0],
166
+ ];
167
+ TypeRegistry.for(n0).registerError(InvalidRequestException, __InvalidRequestException);
168
+ export var InvalidStateTransitionException = [
169
+ -3,
170
+ n0,
171
+ _ISTE,
172
+ {
173
+ [_e]: _c,
174
+ [_hE]: 409,
175
+ },
176
+ [_m],
177
+ [0],
178
+ ];
179
+ TypeRegistry.for(n0).registerError(InvalidStateTransitionException, __InvalidStateTransitionException);
180
+ export var JobExecution = [
181
+ 3,
182
+ n0,
183
+ _JE,
184
+ 0,
185
+ [_jI, _tN, _st, _sD, _qA, _sA, _lUA, _aSBTO, _vN, _eN, _jD],
186
+ [0, 0, 0, 128 | 0, 1, 1, 1, 1, 1, 1, 0],
187
+ ];
188
+ export var JobExecutionState = [3, n0, _JES, 0, [_st, _sD, _vN], [0, 128 | 0, 1]];
189
+ export var JobExecutionSummary = [
190
+ 3,
191
+ n0,
192
+ _JESo,
193
+ 0,
194
+ [_jI, _qA, _sA, _lUA, _vN, _eN],
195
+ [0, 1, 1, 1, 1, 1],
196
+ ];
197
+ export var ResourceNotFoundException = [
198
+ -3,
199
+ n0,
200
+ _RNFE,
201
+ {
202
+ [_e]: _c,
203
+ [_hE]: 404,
204
+ },
205
+ [_m],
206
+ [0],
207
+ ];
208
+ TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
209
+ export var ServiceQuotaExceededException = [
210
+ -3,
211
+ n0,
212
+ _SQEE,
213
+ {
214
+ [_e]: _c,
215
+ [_hE]: 402,
216
+ },
217
+ [_m],
218
+ [0],
219
+ ];
220
+ TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
221
+ export var ServiceUnavailableException = [
222
+ -3,
223
+ n0,
224
+ _SUE,
225
+ {
226
+ [_e]: _s,
227
+ [_hE]: 503,
228
+ },
229
+ [_m],
230
+ [0],
231
+ ];
232
+ TypeRegistry.for(n0).registerError(ServiceUnavailableException, __ServiceUnavailableException);
233
+ export var StartCommandExecutionRequest = [
234
+ 3,
235
+ n0,
236
+ _SCER,
237
+ 0,
238
+ [_tA, _cA, _p, _eTS, _cT],
239
+ [0, 0, () => CommandExecutionParameterMap, 1, [0, 4]],
240
+ ];
241
+ export var StartCommandExecutionResponse = [3, n0, _SCERt, 0, [_eI], [0]];
242
+ export var StartNextPendingJobExecutionRequest = [
243
+ 3,
244
+ n0,
245
+ _SNPJER,
246
+ 0,
247
+ [_tN, _sD, _sTIM],
248
+ [[0, 1], 128 | 0, 1],
249
+ ];
250
+ export var StartNextPendingJobExecutionResponse = [
251
+ 3,
252
+ n0,
253
+ _SNPJERt,
254
+ 0,
255
+ [_ex],
256
+ [() => JobExecution],
257
+ ];
258
+ export var TerminalStateException = [
259
+ -3,
260
+ n0,
261
+ _TSE,
262
+ {
263
+ [_e]: _c,
264
+ [_hE]: 410,
265
+ },
266
+ [_m],
267
+ [0],
268
+ ];
269
+ TypeRegistry.for(n0).registerError(TerminalStateException, __TerminalStateException);
270
+ export var ThrottlingException = [
271
+ -3,
272
+ n0,
273
+ _TE,
274
+ {
275
+ [_e]: _c,
276
+ [_hE]: 429,
277
+ },
278
+ [_m, _pa],
279
+ [0, 21],
280
+ ];
281
+ TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
282
+ export var UpdateJobExecutionRequest = [
283
+ 3,
284
+ n0,
285
+ _UJER,
286
+ 0,
287
+ [_jI, _tN, _st, _sD, _sTIM, _eV, _iJES, _iJD, _eN],
288
+ [[0, 1], [0, 1], 0, 128 | 0, 1, 1, 2, 2, 1],
289
+ ];
290
+ export var UpdateJobExecutionResponse = [
291
+ 3,
292
+ n0,
293
+ _UJERp,
294
+ 0,
295
+ [_eS, _jD],
296
+ [() => JobExecutionState, 0],
297
+ ];
298
+ export var ValidationException = [
299
+ -3,
300
+ n0,
301
+ _VE,
302
+ {
303
+ [_e]: _c,
304
+ [_hE]: 400,
305
+ },
306
+ [_m],
307
+ [0],
308
+ ];
309
+ TypeRegistry.for(n0).registerError(ValidationException, __ValidationException);
310
+ export var __Unit = "unit";
311
+ export var IoTJobsDataPlaneServiceException = [
312
+ -3,
313
+ _sm,
314
+ "IoTJobsDataPlaneServiceException",
315
+ 0,
316
+ [],
317
+ [],
318
+ ];
319
+ TypeRegistry.for(_sm).registerError(IoTJobsDataPlaneServiceException, __IoTJobsDataPlaneServiceException);
320
+ export var JobExecutionSummaryList = [1, n0, _JESL, 0, () => JobExecutionSummary];
321
+ export var CommandExecutionParameterMap = [2, n0, _CEPM, 0, 0, () => CommandParameterValue];
322
+ export var DetailsMap = 128 | 0;
323
+ export var DescribeJobExecution = [
324
+ 9,
325
+ n0,
326
+ _DJE,
327
+ {
328
+ [_h]: ["GET", "/things/{thingName}/jobs/{jobId}", 200],
329
+ },
330
+ () => DescribeJobExecutionRequest,
331
+ () => DescribeJobExecutionResponse,
332
+ ];
333
+ export var GetPendingJobExecutions = [
334
+ 9,
335
+ n0,
336
+ _GPJE,
337
+ {
338
+ [_h]: ["GET", "/things/{thingName}/jobs", 200],
339
+ },
340
+ () => GetPendingJobExecutionsRequest,
341
+ () => GetPendingJobExecutionsResponse,
342
+ ];
343
+ export var StartCommandExecution = [
344
+ 9,
345
+ n0,
346
+ _SCE,
347
+ {
348
+ [_h]: ["POST", "/command-executions", 200],
349
+ },
350
+ () => StartCommandExecutionRequest,
351
+ () => StartCommandExecutionResponse,
352
+ ];
353
+ export var StartNextPendingJobExecution = [
354
+ 9,
355
+ n0,
356
+ _SNPJE,
357
+ {
358
+ [_h]: ["PUT", "/things/{thingName}/jobs/$next", 200],
359
+ },
360
+ () => StartNextPendingJobExecutionRequest,
361
+ () => StartNextPendingJobExecutionResponse,
362
+ ];
363
+ export var UpdateJobExecution = [
364
+ 9,
365
+ n0,
366
+ _UJE,
367
+ {
368
+ [_h]: ["POST", "/things/{thingName}/jobs/{jobId}", 200],
369
+ },
370
+ () => UpdateJobExecutionRequest,
371
+ () => UpdateJobExecutionResponse,
372
+ ];
@@ -5,7 +5,7 @@ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-
5
5
  import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
6
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
7
  import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
9
  import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { DescribeJobExecutionCommandInput, DescribeJobExecutionCommandOutput } from "./commands/DescribeJobExecutionCommand";
11
11
  import { GetPendingJobExecutionsCommandInput, GetPendingJobExecutionsCommandOutput } from "./commands/GetPendingJobExecutionsCommand";
@@ -146,6 +146,15 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
146
146
  * Optional extensions
147
147
  */
148
148
  extensions?: RuntimeExtension[];
149
+ /**
150
+ * The protocol controlling the message type (e.g. HTTP) and format (e.g. JSON)
151
+ * may be overridden. A default will always be set by the client.
152
+ * Available options depend on the service's supported protocols and will not be validated by
153
+ * the client.
154
+ * @alpha
155
+ *
156
+ */
157
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
149
158
  /**
150
159
  * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
151
160
  */
@@ -29,6 +29,7 @@ export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) =>
29
29
  profile?: string;
30
30
  logger: import("@smithy/types").Logger;
31
31
  extensions: import("./runtimeExtensions").RuntimeExtension[];
32
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
32
33
  customUserAgent?: string | import("@smithy/types").UserAgent;
33
34
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
34
35
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
@@ -31,6 +31,7 @@ export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) =>
31
31
  profile?: string;
32
32
  logger: import("@smithy/types").Logger;
33
33
  extensions: import("./runtimeExtensions").RuntimeExtension[];
34
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
34
35
  customUserAgent?: string | import("@smithy/types").UserAgent;
35
36
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2;
36
37
  endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
@@ -27,6 +27,7 @@ export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) =>
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
29
29
  extensions: import("./runtimeExtensions").RuntimeExtension[];
30
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
30
31
  defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider<import("@smithy/smithy-client").DefaultsMode>;
31
32
  customUserAgent?: string | import("@smithy/types").UserAgent;
32
33
  userAgentAppId?: string | undefined | import("@smithy/types").Provider<string | undefined>;
@@ -14,6 +14,7 @@ export declare const getRuntimeConfig: (config: IoTJobsDataPlaneClientConfig) =>
14
14
  httpAuthSchemeProvider: import("./auth/httpAuthSchemeProvider").IoTJobsDataPlaneHttpAuthSchemeProvider;
15
15
  httpAuthSchemes: import("@smithy/types").HttpAuthScheme[];
16
16
  logger: import("@smithy/types").Logger;
17
+ protocol: import("@smithy/types").ClientProtocol<import("@smithy/types").HttpRequest, import("@smithy/types").HttpResponse>;
17
18
  serviceId: string;
18
19
  urlParser: import("@smithy/types").UrlParser;
19
20
  utf8Decoder: import("@smithy/types").Decoder;
@@ -0,0 +1,36 @@
1
+ import { StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
2
+ export declare var CertificateValidationException: StaticErrorSchema;
3
+ export declare var CommandParameterValue: StaticStructureSchema;
4
+ export declare var ConflictException: StaticErrorSchema;
5
+ export declare var DescribeJobExecutionRequest: StaticStructureSchema;
6
+ export declare var DescribeJobExecutionResponse: StaticStructureSchema;
7
+ export declare var GetPendingJobExecutionsRequest: StaticStructureSchema;
8
+ export declare var GetPendingJobExecutionsResponse: StaticStructureSchema;
9
+ export declare var InternalServerException: StaticErrorSchema;
10
+ export declare var InvalidRequestException: StaticErrorSchema;
11
+ export declare var InvalidStateTransitionException: StaticErrorSchema;
12
+ export declare var JobExecution: StaticStructureSchema;
13
+ export declare var JobExecutionState: StaticStructureSchema;
14
+ export declare var JobExecutionSummary: StaticStructureSchema;
15
+ export declare var ResourceNotFoundException: StaticErrorSchema;
16
+ export declare var ServiceQuotaExceededException: StaticErrorSchema;
17
+ export declare var ServiceUnavailableException: StaticErrorSchema;
18
+ export declare var StartCommandExecutionRequest: StaticStructureSchema;
19
+ export declare var StartCommandExecutionResponse: StaticStructureSchema;
20
+ export declare var StartNextPendingJobExecutionRequest: StaticStructureSchema;
21
+ export declare var StartNextPendingJobExecutionResponse: StaticStructureSchema;
22
+ export declare var TerminalStateException: StaticErrorSchema;
23
+ export declare var ThrottlingException: StaticErrorSchema;
24
+ export declare var UpdateJobExecutionRequest: StaticStructureSchema;
25
+ export declare var UpdateJobExecutionResponse: StaticStructureSchema;
26
+ export declare var ValidationException: StaticErrorSchema;
27
+ export declare var __Unit: "unit";
28
+ export declare var IoTJobsDataPlaneServiceException: StaticErrorSchema;
29
+ export declare var JobExecutionSummaryList: StaticListSchema;
30
+ export declare var CommandExecutionParameterMap: StaticMapSchema;
31
+ export declare var DetailsMap: number;
32
+ export declare var DescribeJobExecution: StaticOperationSchema;
33
+ export declare var GetPendingJobExecutions: StaticOperationSchema;
34
+ export declare var StartCommandExecution: StaticOperationSchema;
35
+ export declare var StartNextPendingJobExecution: StaticOperationSchema;
36
+ export declare var UpdateJobExecution: StaticOperationSchema;
@@ -30,10 +30,13 @@ import {
30
30
  BodyLengthCalculator as __BodyLengthCalculator,
31
31
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
32
  ChecksumConstructor as __ChecksumConstructor,
33
+ ClientProtocol,
33
34
  Decoder as __Decoder,
34
35
  Encoder as __Encoder,
35
36
  HashConstructor as __HashConstructor,
36
37
  HttpHandlerOptions as __HttpHandlerOptions,
38
+ HttpRequest,
39
+ HttpResponse,
37
40
  Logger as __Logger,
38
41
  Provider as __Provider,
39
42
  Provider,
@@ -108,6 +111,7 @@ export interface ClientDefaults
108
111
  retryMode?: string | __Provider<string>;
109
112
  logger?: __Logger;
110
113
  extensions?: RuntimeExtension[];
114
+ protocol?: ClientProtocol<HttpRequest, HttpResponse>;
111
115
  defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
112
116
  }
113
117
  export type IoTJobsDataPlaneClientConfigType = Partial<