@aws-sdk/client-iot-jobs-data-plane 3.934.0 → 3.936.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/index.js CHANGED
@@ -143,16 +143,6 @@ let ConflictException$1 = class ConflictException extends IoTJobsDataPlaneServic
143
143
  this.resourceId = opts.resourceId;
144
144
  }
145
145
  };
146
- const JobExecutionStatus = {
147
- CANCELED: "CANCELED",
148
- FAILED: "FAILED",
149
- IN_PROGRESS: "IN_PROGRESS",
150
- QUEUED: "QUEUED",
151
- REJECTED: "REJECTED",
152
- REMOVED: "REMOVED",
153
- SUCCEEDED: "SUCCEEDED",
154
- TIMED_OUT: "TIMED_OUT",
155
- };
156
146
  let InvalidRequestException$1 = class InvalidRequestException extends IoTJobsDataPlaneServiceException$1 {
157
147
  name = "InvalidRequestException";
158
148
  $fault = "client";
@@ -703,6 +693,17 @@ class IoTJobsDataPlane extends IoTJobsDataPlaneClient {
703
693
  }
704
694
  smithyClient.createAggregatedClient(commands, IoTJobsDataPlane);
705
695
 
696
+ const JobExecutionStatus = {
697
+ CANCELED: "CANCELED",
698
+ FAILED: "FAILED",
699
+ IN_PROGRESS: "IN_PROGRESS",
700
+ QUEUED: "QUEUED",
701
+ REJECTED: "REJECTED",
702
+ REMOVED: "REMOVED",
703
+ SUCCEEDED: "SUCCEEDED",
704
+ TIMED_OUT: "TIMED_OUT",
705
+ };
706
+
706
707
  Object.defineProperty(exports, "$Command", {
707
708
  enumerable: true,
708
709
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from "./IoTJobsDataPlaneClient";
2
2
  export * from "./IoTJobsDataPlane";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/enums";
5
+ export * from "./models/errors";
5
6
  export { IoTJobsDataPlaneServiceException } from "./models/IoTJobsDataPlaneServiceException";
@@ -0,0 +1,10 @@
1
+ export const JobExecutionStatus = {
2
+ CANCELED: "CANCELED",
3
+ FAILED: "FAILED",
4
+ IN_PROGRESS: "IN_PROGRESS",
5
+ QUEUED: "QUEUED",
6
+ REJECTED: "REJECTED",
7
+ REMOVED: "REMOVED",
8
+ SUCCEEDED: "SUCCEEDED",
9
+ TIMED_OUT: "TIMED_OUT",
10
+ };
@@ -0,0 +1,137 @@
1
+ import { IoTJobsDataPlaneServiceException as __BaseException } from "./IoTJobsDataPlaneServiceException";
2
+ export class CertificateValidationException extends __BaseException {
3
+ name = "CertificateValidationException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "CertificateValidationException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, CertificateValidationException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ constructor(opts) {
19
+ super({
20
+ name: "ConflictException",
21
+ $fault: "client",
22
+ ...opts,
23
+ });
24
+ Object.setPrototypeOf(this, ConflictException.prototype);
25
+ this.resourceId = opts.resourceId;
26
+ }
27
+ }
28
+ export class InvalidRequestException extends __BaseException {
29
+ name = "InvalidRequestException";
30
+ $fault = "client";
31
+ constructor(opts) {
32
+ super({
33
+ name: "InvalidRequestException",
34
+ $fault: "client",
35
+ ...opts,
36
+ });
37
+ Object.setPrototypeOf(this, InvalidRequestException.prototype);
38
+ }
39
+ }
40
+ export class ResourceNotFoundException extends __BaseException {
41
+ name = "ResourceNotFoundException";
42
+ $fault = "client";
43
+ constructor(opts) {
44
+ super({
45
+ name: "ResourceNotFoundException",
46
+ $fault: "client",
47
+ ...opts,
48
+ });
49
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
50
+ }
51
+ }
52
+ export class ServiceUnavailableException extends __BaseException {
53
+ name = "ServiceUnavailableException";
54
+ $fault = "server";
55
+ constructor(opts) {
56
+ super({
57
+ name: "ServiceUnavailableException",
58
+ $fault: "server",
59
+ ...opts,
60
+ });
61
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
62
+ }
63
+ }
64
+ export class TerminalStateException extends __BaseException {
65
+ name = "TerminalStateException";
66
+ $fault = "client";
67
+ constructor(opts) {
68
+ super({
69
+ name: "TerminalStateException",
70
+ $fault: "client",
71
+ ...opts,
72
+ });
73
+ Object.setPrototypeOf(this, TerminalStateException.prototype);
74
+ }
75
+ }
76
+ export class ThrottlingException extends __BaseException {
77
+ name = "ThrottlingException";
78
+ $fault = "client";
79
+ payload;
80
+ constructor(opts) {
81
+ super({
82
+ name: "ThrottlingException",
83
+ $fault: "client",
84
+ ...opts,
85
+ });
86
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
87
+ this.payload = opts.payload;
88
+ }
89
+ }
90
+ export class InternalServerException extends __BaseException {
91
+ name = "InternalServerException";
92
+ $fault = "server";
93
+ constructor(opts) {
94
+ super({
95
+ name: "InternalServerException",
96
+ $fault: "server",
97
+ ...opts,
98
+ });
99
+ Object.setPrototypeOf(this, InternalServerException.prototype);
100
+ }
101
+ }
102
+ export class InvalidStateTransitionException extends __BaseException {
103
+ name = "InvalidStateTransitionException";
104
+ $fault = "client";
105
+ constructor(opts) {
106
+ super({
107
+ name: "InvalidStateTransitionException",
108
+ $fault: "client",
109
+ ...opts,
110
+ });
111
+ Object.setPrototypeOf(this, InvalidStateTransitionException.prototype);
112
+ }
113
+ }
114
+ export class ServiceQuotaExceededException extends __BaseException {
115
+ name = "ServiceQuotaExceededException";
116
+ $fault = "client";
117
+ constructor(opts) {
118
+ super({
119
+ name: "ServiceQuotaExceededException",
120
+ $fault: "client",
121
+ ...opts,
122
+ });
123
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
124
+ }
125
+ }
126
+ export class ValidationException extends __BaseException {
127
+ name = "ValidationException";
128
+ $fault = "client";
129
+ constructor(opts) {
130
+ super({
131
+ name: "ValidationException",
132
+ $fault: "client",
133
+ ...opts,
134
+ });
135
+ Object.setPrototypeOf(this, ValidationException.prototype);
136
+ }
137
+ }
@@ -1,147 +1 @@
1
- import { IoTJobsDataPlaneServiceException as __BaseException } from "./IoTJobsDataPlaneServiceException";
2
- export class CertificateValidationException extends __BaseException {
3
- name = "CertificateValidationException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "CertificateValidationException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, CertificateValidationException.prototype);
12
- }
13
- }
14
- export class ConflictException extends __BaseException {
15
- name = "ConflictException";
16
- $fault = "client";
17
- resourceId;
18
- constructor(opts) {
19
- super({
20
- name: "ConflictException",
21
- $fault: "client",
22
- ...opts,
23
- });
24
- Object.setPrototypeOf(this, ConflictException.prototype);
25
- this.resourceId = opts.resourceId;
26
- }
27
- }
28
- export const JobExecutionStatus = {
29
- CANCELED: "CANCELED",
30
- FAILED: "FAILED",
31
- IN_PROGRESS: "IN_PROGRESS",
32
- QUEUED: "QUEUED",
33
- REJECTED: "REJECTED",
34
- REMOVED: "REMOVED",
35
- SUCCEEDED: "SUCCEEDED",
36
- TIMED_OUT: "TIMED_OUT",
37
- };
38
- export class InvalidRequestException extends __BaseException {
39
- name = "InvalidRequestException";
40
- $fault = "client";
41
- constructor(opts) {
42
- super({
43
- name: "InvalidRequestException",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, InvalidRequestException.prototype);
48
- }
49
- }
50
- export class ResourceNotFoundException extends __BaseException {
51
- name = "ResourceNotFoundException";
52
- $fault = "client";
53
- constructor(opts) {
54
- super({
55
- name: "ResourceNotFoundException",
56
- $fault: "client",
57
- ...opts,
58
- });
59
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
- }
61
- }
62
- export class ServiceUnavailableException extends __BaseException {
63
- name = "ServiceUnavailableException";
64
- $fault = "server";
65
- constructor(opts) {
66
- super({
67
- name: "ServiceUnavailableException",
68
- $fault: "server",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
72
- }
73
- }
74
- export class TerminalStateException extends __BaseException {
75
- name = "TerminalStateException";
76
- $fault = "client";
77
- constructor(opts) {
78
- super({
79
- name: "TerminalStateException",
80
- $fault: "client",
81
- ...opts,
82
- });
83
- Object.setPrototypeOf(this, TerminalStateException.prototype);
84
- }
85
- }
86
- export class ThrottlingException extends __BaseException {
87
- name = "ThrottlingException";
88
- $fault = "client";
89
- payload;
90
- constructor(opts) {
91
- super({
92
- name: "ThrottlingException",
93
- $fault: "client",
94
- ...opts,
95
- });
96
- Object.setPrototypeOf(this, ThrottlingException.prototype);
97
- this.payload = opts.payload;
98
- }
99
- }
100
- export class InternalServerException extends __BaseException {
101
- name = "InternalServerException";
102
- $fault = "server";
103
- constructor(opts) {
104
- super({
105
- name: "InternalServerException",
106
- $fault: "server",
107
- ...opts,
108
- });
109
- Object.setPrototypeOf(this, InternalServerException.prototype);
110
- }
111
- }
112
- export class InvalidStateTransitionException extends __BaseException {
113
- name = "InvalidStateTransitionException";
114
- $fault = "client";
115
- constructor(opts) {
116
- super({
117
- name: "InvalidStateTransitionException",
118
- $fault: "client",
119
- ...opts,
120
- });
121
- Object.setPrototypeOf(this, InvalidStateTransitionException.prototype);
122
- }
123
- }
124
- export class ServiceQuotaExceededException extends __BaseException {
125
- name = "ServiceQuotaExceededException";
126
- $fault = "client";
127
- constructor(opts) {
128
- super({
129
- name: "ServiceQuotaExceededException",
130
- $fault: "client",
131
- ...opts,
132
- });
133
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
134
- }
135
- }
136
- export class ValidationException extends __BaseException {
137
- name = "ValidationException";
138
- $fault = "client";
139
- constructor(opts) {
140
- super({
141
- name: "ValidationException",
142
- $fault: "client",
143
- ...opts,
144
- });
145
- Object.setPrototypeOf(this, ValidationException.prototype);
146
- }
147
- }
1
+ export {};
@@ -74,7 +74,7 @@ const _tN = "thingName";
74
74
  const _vN = "versionNumber";
75
75
  const n0 = "com.amazonaws.iotjobsdataplane";
76
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";
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/errors";
78
78
  import { IoTJobsDataPlaneServiceException as __IoTJobsDataPlaneServiceException } from "../models/IoTJobsDataPlaneServiceException";
79
79
  export var CertificateValidationException = [
80
80
  -3,
@@ -29,5 +29,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
29
29
  export type { RuntimeExtension } from "./runtimeExtensions";
30
30
  export type { IoTJobsDataPlaneExtensionConfiguration } from "./extensionConfiguration";
31
31
  export * from "./commands";
32
- export * from "./models";
32
+ export * from "./models/enums";
33
+ export * from "./models/errors";
34
+ export type * from "./models/models_0";
33
35
  export { IoTJobsDataPlaneServiceException } from "./models/IoTJobsDataPlaneServiceException";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const JobExecutionStatus: {
6
+ readonly CANCELED: "CANCELED";
7
+ readonly FAILED: "FAILED";
8
+ readonly IN_PROGRESS: "IN_PROGRESS";
9
+ readonly QUEUED: "QUEUED";
10
+ readonly REJECTED: "REJECTED";
11
+ readonly REMOVED: "REMOVED";
12
+ readonly SUCCEEDED: "SUCCEEDED";
13
+ readonly TIMED_OUT: "TIMED_OUT";
14
+ };
15
+ /**
16
+ * @public
17
+ */
18
+ export type JobExecutionStatus = (typeof JobExecutionStatus)[keyof typeof JobExecutionStatus];
@@ -0,0 +1,147 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { IoTJobsDataPlaneServiceException as __BaseException } from "./IoTJobsDataPlaneServiceException";
3
+ /**
4
+ * <p>The certificate is invalid.</p>
5
+ * @public
6
+ */
7
+ export declare class CertificateValidationException extends __BaseException {
8
+ readonly name: "CertificateValidationException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<CertificateValidationException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>A conflict has occurred when performing the API request.</p>
17
+ * @public
18
+ */
19
+ export declare class ConflictException extends __BaseException {
20
+ readonly name: "ConflictException";
21
+ readonly $fault: "client";
22
+ /**
23
+ * <p>A conflict occurred while performing the API request on the resource ID.</p>
24
+ * @public
25
+ */
26
+ resourceId?: string | undefined;
27
+ /**
28
+ * @internal
29
+ */
30
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
31
+ }
32
+ /**
33
+ * <p>The contents of the request were invalid.</p>
34
+ * @public
35
+ */
36
+ export declare class InvalidRequestException extends __BaseException {
37
+ readonly name: "InvalidRequestException";
38
+ readonly $fault: "client";
39
+ /**
40
+ * @internal
41
+ */
42
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
43
+ }
44
+ /**
45
+ * <p>The specified resource does not exist.</p>
46
+ * @public
47
+ */
48
+ export declare class ResourceNotFoundException extends __BaseException {
49
+ readonly name: "ResourceNotFoundException";
50
+ readonly $fault: "client";
51
+ /**
52
+ * @internal
53
+ */
54
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
55
+ }
56
+ /**
57
+ * <p>The service is temporarily unavailable.</p>
58
+ * @public
59
+ */
60
+ export declare class ServiceUnavailableException extends __BaseException {
61
+ readonly name: "ServiceUnavailableException";
62
+ readonly $fault: "server";
63
+ /**
64
+ * @internal
65
+ */
66
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
67
+ }
68
+ /**
69
+ * <p>The job is in a terminal state.</p>
70
+ * @public
71
+ */
72
+ export declare class TerminalStateException extends __BaseException {
73
+ readonly name: "TerminalStateException";
74
+ readonly $fault: "client";
75
+ /**
76
+ * @internal
77
+ */
78
+ constructor(opts: __ExceptionOptionType<TerminalStateException, __BaseException>);
79
+ }
80
+ /**
81
+ * <p>The rate exceeds the limit.</p>
82
+ * @public
83
+ */
84
+ export declare class ThrottlingException extends __BaseException {
85
+ readonly name: "ThrottlingException";
86
+ readonly $fault: "client";
87
+ /**
88
+ * <p>The payload associated with the exception.</p>
89
+ * @public
90
+ */
91
+ payload?: Uint8Array | undefined;
92
+ /**
93
+ * @internal
94
+ */
95
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
96
+ }
97
+ /**
98
+ * <p>An internal server error occurred when performing the API request.</p>
99
+ * @public
100
+ */
101
+ export declare class InternalServerException extends __BaseException {
102
+ readonly name: "InternalServerException";
103
+ readonly $fault: "server";
104
+ /**
105
+ * @internal
106
+ */
107
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
108
+ }
109
+ /**
110
+ * <p>An update attempted to change the job execution to a state that is invalid because of
111
+ * the job execution's current state (for example, an attempt to change a request in state
112
+ * SUCCESS to state IN_PROGRESS). In this case, the body of the error message also contains
113
+ * the executionState field.</p>
114
+ * @public
115
+ */
116
+ export declare class InvalidStateTransitionException extends __BaseException {
117
+ readonly name: "InvalidStateTransitionException";
118
+ readonly $fault: "client";
119
+ /**
120
+ * @internal
121
+ */
122
+ constructor(opts: __ExceptionOptionType<InvalidStateTransitionException, __BaseException>);
123
+ }
124
+ /**
125
+ * <p>The service quota has been exceeded for this request.</p>
126
+ * @public
127
+ */
128
+ export declare class ServiceQuotaExceededException extends __BaseException {
129
+ readonly name: "ServiceQuotaExceededException";
130
+ readonly $fault: "client";
131
+ /**
132
+ * @internal
133
+ */
134
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
135
+ }
136
+ /**
137
+ * <p>A validation error occurred when performing the API request.</p>
138
+ * @public
139
+ */
140
+ export declare class ValidationException extends __BaseException {
141
+ readonly name: "ValidationException";
142
+ readonly $fault: "client";
143
+ /**
144
+ * @internal
145
+ */
146
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
147
+ }
@@ -1,17 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { IoTJobsDataPlaneServiceException as __BaseException } from "./IoTJobsDataPlaneServiceException";
3
- /**
4
- * <p>The certificate is invalid.</p>
5
- * @public
6
- */
7
- export declare class CertificateValidationException extends __BaseException {
8
- readonly name: "CertificateValidationException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<CertificateValidationException, __BaseException>);
14
- }
1
+ import { JobExecutionStatus } from "./enums";
15
2
  /**
16
3
  * <p>The list of values used to describe a specific command parameter.</p>
17
4
  * @public
@@ -59,23 +46,6 @@ export interface CommandParameterValue {
59
46
  */
60
47
  UL?: string | undefined;
61
48
  }
62
- /**
63
- * <p>A conflict has occurred when performing the API request.</p>
64
- * @public
65
- */
66
- export declare class ConflictException extends __BaseException {
67
- readonly name: "ConflictException";
68
- readonly $fault: "client";
69
- /**
70
- * <p>A conflict occurred while performing the API request on the resource ID.</p>
71
- * @public
72
- */
73
- resourceId?: string | undefined;
74
- /**
75
- * @internal
76
- */
77
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
78
- }
79
49
  /**
80
50
  * @public
81
51
  */
@@ -103,24 +73,6 @@ export interface DescribeJobExecutionRequest {
103
73
  */
104
74
  executionNumber?: number | undefined;
105
75
  }
106
- /**
107
- * @public
108
- * @enum
109
- */
110
- export declare const JobExecutionStatus: {
111
- readonly CANCELED: "CANCELED";
112
- readonly FAILED: "FAILED";
113
- readonly IN_PROGRESS: "IN_PROGRESS";
114
- readonly QUEUED: "QUEUED";
115
- readonly REJECTED: "REJECTED";
116
- readonly REMOVED: "REMOVED";
117
- readonly SUCCEEDED: "SUCCEEDED";
118
- readonly TIMED_OUT: "TIMED_OUT";
119
- };
120
- /**
121
- * @public
122
- */
123
- export type JobExecutionStatus = (typeof JobExecutionStatus)[keyof typeof JobExecutionStatus];
124
76
  /**
125
77
  * <p>Contains data about a job execution.</p>
126
78
  * @public
@@ -200,71 +152,6 @@ export interface DescribeJobExecutionResponse {
200
152
  */
201
153
  execution?: JobExecution | undefined;
202
154
  }
203
- /**
204
- * <p>The contents of the request were invalid.</p>
205
- * @public
206
- */
207
- export declare class InvalidRequestException extends __BaseException {
208
- readonly name: "InvalidRequestException";
209
- readonly $fault: "client";
210
- /**
211
- * @internal
212
- */
213
- constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
214
- }
215
- /**
216
- * <p>The specified resource does not exist.</p>
217
- * @public
218
- */
219
- export declare class ResourceNotFoundException extends __BaseException {
220
- readonly name: "ResourceNotFoundException";
221
- readonly $fault: "client";
222
- /**
223
- * @internal
224
- */
225
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
226
- }
227
- /**
228
- * <p>The service is temporarily unavailable.</p>
229
- * @public
230
- */
231
- export declare class ServiceUnavailableException extends __BaseException {
232
- readonly name: "ServiceUnavailableException";
233
- readonly $fault: "server";
234
- /**
235
- * @internal
236
- */
237
- constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
238
- }
239
- /**
240
- * <p>The job is in a terminal state.</p>
241
- * @public
242
- */
243
- export declare class TerminalStateException extends __BaseException {
244
- readonly name: "TerminalStateException";
245
- readonly $fault: "client";
246
- /**
247
- * @internal
248
- */
249
- constructor(opts: __ExceptionOptionType<TerminalStateException, __BaseException>);
250
- }
251
- /**
252
- * <p>The rate exceeds the limit.</p>
253
- * @public
254
- */
255
- export declare class ThrottlingException extends __BaseException {
256
- readonly name: "ThrottlingException";
257
- readonly $fault: "client";
258
- /**
259
- * <p>The payload associated with the exception.</p>
260
- * @public
261
- */
262
- payload?: Uint8Array | undefined;
263
- /**
264
- * @internal
265
- */
266
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
267
- }
268
155
  /**
269
156
  * @public
270
157
  */
@@ -328,45 +215,6 @@ export interface GetPendingJobExecutionsResponse {
328
215
  */
329
216
  queuedJobs?: JobExecutionSummary[] | undefined;
330
217
  }
331
- /**
332
- * <p>An internal server error occurred when performing the API request.</p>
333
- * @public
334
- */
335
- export declare class InternalServerException extends __BaseException {
336
- readonly name: "InternalServerException";
337
- readonly $fault: "server";
338
- /**
339
- * @internal
340
- */
341
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
342
- }
343
- /**
344
- * <p>An update attempted to change the job execution to a state that is invalid because of
345
- * the job execution's current state (for example, an attempt to change a request in state
346
- * SUCCESS to state IN_PROGRESS). In this case, the body of the error message also contains
347
- * the executionState field.</p>
348
- * @public
349
- */
350
- export declare class InvalidStateTransitionException extends __BaseException {
351
- readonly name: "InvalidStateTransitionException";
352
- readonly $fault: "client";
353
- /**
354
- * @internal
355
- */
356
- constructor(opts: __ExceptionOptionType<InvalidStateTransitionException, __BaseException>);
357
- }
358
- /**
359
- * <p>The service quota has been exceeded for this request.</p>
360
- * @public
361
- */
362
- export declare class ServiceQuotaExceededException extends __BaseException {
363
- readonly name: "ServiceQuotaExceededException";
364
- readonly $fault: "client";
365
- /**
366
- * @internal
367
- */
368
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
369
- }
370
218
  /**
371
219
  * @public
372
220
  */
@@ -418,18 +266,6 @@ export interface StartCommandExecutionResponse {
418
266
  */
419
267
  executionId?: string | undefined;
420
268
  }
421
- /**
422
- * <p>A validation error occurred when performing the API request.</p>
423
- * @public
424
- */
425
- export declare class ValidationException extends __BaseException {
426
- readonly name: "ValidationException";
427
- readonly $fault: "client";
428
- /**
429
- * @internal
430
- */
431
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
432
- }
433
269
  /**
434
270
  * @public
435
271
  */
@@ -4,5 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { IoTJobsDataPlaneExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/enums";
8
+ export * from "./models/errors";
9
+ export * from "./models/models_0";
8
10
  export { IoTJobsDataPlaneServiceException } from "./models/IoTJobsDataPlaneServiceException";
@@ -0,0 +1,12 @@
1
+ export declare const JobExecutionStatus: {
2
+ readonly CANCELED: "CANCELED";
3
+ readonly FAILED: "FAILED";
4
+ readonly IN_PROGRESS: "IN_PROGRESS";
5
+ readonly QUEUED: "QUEUED";
6
+ readonly REJECTED: "REJECTED";
7
+ readonly REMOVED: "REMOVED";
8
+ readonly SUCCEEDED: "SUCCEEDED";
9
+ readonly TIMED_OUT: "TIMED_OUT";
10
+ };
11
+ export type JobExecutionStatus =
12
+ (typeof JobExecutionStatus)[keyof typeof JobExecutionStatus];
@@ -0,0 +1,82 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { IoTJobsDataPlaneServiceException as __BaseException } from "./IoTJobsDataPlaneServiceException";
3
+ export declare class CertificateValidationException extends __BaseException {
4
+ readonly name: "CertificateValidationException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<CertificateValidationException, __BaseException>
8
+ );
9
+ }
10
+ export declare class ConflictException extends __BaseException {
11
+ readonly name: "ConflictException";
12
+ readonly $fault: "client";
13
+ resourceId?: string | undefined;
14
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
15
+ }
16
+ export declare class InvalidRequestException extends __BaseException {
17
+ readonly name: "InvalidRequestException";
18
+ readonly $fault: "client";
19
+ constructor(
20
+ opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
21
+ );
22
+ }
23
+ export declare class ResourceNotFoundException extends __BaseException {
24
+ readonly name: "ResourceNotFoundException";
25
+ readonly $fault: "client";
26
+ constructor(
27
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
28
+ );
29
+ }
30
+ export declare class ServiceUnavailableException extends __BaseException {
31
+ readonly name: "ServiceUnavailableException";
32
+ readonly $fault: "server";
33
+ constructor(
34
+ opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
35
+ );
36
+ }
37
+ export declare class TerminalStateException extends __BaseException {
38
+ readonly name: "TerminalStateException";
39
+ readonly $fault: "client";
40
+ constructor(
41
+ opts: __ExceptionOptionType<TerminalStateException, __BaseException>
42
+ );
43
+ }
44
+ export declare class ThrottlingException extends __BaseException {
45
+ readonly name: "ThrottlingException";
46
+ readonly $fault: "client";
47
+ payload?: Uint8Array | undefined;
48
+ constructor(
49
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
50
+ );
51
+ }
52
+ export declare class InternalServerException extends __BaseException {
53
+ readonly name: "InternalServerException";
54
+ readonly $fault: "server";
55
+ constructor(
56
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
57
+ );
58
+ }
59
+ export declare class InvalidStateTransitionException extends __BaseException {
60
+ readonly name: "InvalidStateTransitionException";
61
+ readonly $fault: "client";
62
+ constructor(
63
+ opts: __ExceptionOptionType<
64
+ InvalidStateTransitionException,
65
+ __BaseException
66
+ >
67
+ );
68
+ }
69
+ export declare class ServiceQuotaExceededException extends __BaseException {
70
+ readonly name: "ServiceQuotaExceededException";
71
+ readonly $fault: "client";
72
+ constructor(
73
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
74
+ );
75
+ }
76
+ export declare class ValidationException extends __BaseException {
77
+ readonly name: "ValidationException";
78
+ readonly $fault: "client";
79
+ constructor(
80
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
81
+ );
82
+ }
@@ -1,12 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { IoTJobsDataPlaneServiceException as __BaseException } from "./IoTJobsDataPlaneServiceException";
3
- export declare class CertificateValidationException extends __BaseException {
4
- readonly name: "CertificateValidationException";
5
- readonly $fault: "client";
6
- constructor(
7
- opts: __ExceptionOptionType<CertificateValidationException, __BaseException>
8
- );
9
- }
1
+ import { JobExecutionStatus } from "./enums";
10
2
  export interface CommandParameterValue {
11
3
  S?: string | undefined;
12
4
  B?: boolean | undefined;
@@ -16,30 +8,12 @@ export interface CommandParameterValue {
16
8
  BIN?: Uint8Array | undefined;
17
9
  UL?: string | undefined;
18
10
  }
19
- export declare class ConflictException extends __BaseException {
20
- readonly name: "ConflictException";
21
- readonly $fault: "client";
22
- resourceId?: string | undefined;
23
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
24
- }
25
11
  export interface DescribeJobExecutionRequest {
26
12
  jobId: string | undefined;
27
13
  thingName: string | undefined;
28
14
  includeJobDocument?: boolean | undefined;
29
15
  executionNumber?: number | undefined;
30
16
  }
31
- export declare const JobExecutionStatus: {
32
- readonly CANCELED: "CANCELED";
33
- readonly FAILED: "FAILED";
34
- readonly IN_PROGRESS: "IN_PROGRESS";
35
- readonly QUEUED: "QUEUED";
36
- readonly REJECTED: "REJECTED";
37
- readonly REMOVED: "REMOVED";
38
- readonly SUCCEEDED: "SUCCEEDED";
39
- readonly TIMED_OUT: "TIMED_OUT";
40
- };
41
- export type JobExecutionStatus =
42
- (typeof JobExecutionStatus)[keyof typeof JobExecutionStatus];
43
17
  export interface JobExecution {
44
18
  jobId?: string | undefined;
45
19
  thingName?: string | undefined;
@@ -56,42 +30,6 @@ export interface JobExecution {
56
30
  export interface DescribeJobExecutionResponse {
57
31
  execution?: JobExecution | undefined;
58
32
  }
59
- export declare class InvalidRequestException extends __BaseException {
60
- readonly name: "InvalidRequestException";
61
- readonly $fault: "client";
62
- constructor(
63
- opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
64
- );
65
- }
66
- export declare class ResourceNotFoundException extends __BaseException {
67
- readonly name: "ResourceNotFoundException";
68
- readonly $fault: "client";
69
- constructor(
70
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
71
- );
72
- }
73
- export declare class ServiceUnavailableException extends __BaseException {
74
- readonly name: "ServiceUnavailableException";
75
- readonly $fault: "server";
76
- constructor(
77
- opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
78
- );
79
- }
80
- export declare class TerminalStateException extends __BaseException {
81
- readonly name: "TerminalStateException";
82
- readonly $fault: "client";
83
- constructor(
84
- opts: __ExceptionOptionType<TerminalStateException, __BaseException>
85
- );
86
- }
87
- export declare class ThrottlingException extends __BaseException {
88
- readonly name: "ThrottlingException";
89
- readonly $fault: "client";
90
- payload?: Uint8Array | undefined;
91
- constructor(
92
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
93
- );
94
- }
95
33
  export interface GetPendingJobExecutionsRequest {
96
34
  thingName: string | undefined;
97
35
  }
@@ -107,30 +45,6 @@ export interface GetPendingJobExecutionsResponse {
107
45
  inProgressJobs?: JobExecutionSummary[] | undefined;
108
46
  queuedJobs?: JobExecutionSummary[] | undefined;
109
47
  }
110
- export declare class InternalServerException extends __BaseException {
111
- readonly name: "InternalServerException";
112
- readonly $fault: "server";
113
- constructor(
114
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
115
- );
116
- }
117
- export declare class InvalidStateTransitionException extends __BaseException {
118
- readonly name: "InvalidStateTransitionException";
119
- readonly $fault: "client";
120
- constructor(
121
- opts: __ExceptionOptionType<
122
- InvalidStateTransitionException,
123
- __BaseException
124
- >
125
- );
126
- }
127
- export declare class ServiceQuotaExceededException extends __BaseException {
128
- readonly name: "ServiceQuotaExceededException";
129
- readonly $fault: "client";
130
- constructor(
131
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
132
- );
133
- }
134
48
  export interface StartCommandExecutionRequest {
135
49
  targetArn: string | undefined;
136
50
  commandArn: string | undefined;
@@ -141,13 +55,6 @@ export interface StartCommandExecutionRequest {
141
55
  export interface StartCommandExecutionResponse {
142
56
  executionId?: string | undefined;
143
57
  }
144
- export declare class ValidationException extends __BaseException {
145
- readonly name: "ValidationException";
146
- readonly $fault: "client";
147
- constructor(
148
- opts: __ExceptionOptionType<ValidationException, __BaseException>
149
- );
150
- }
151
58
  export interface StartNextPendingJobExecutionRequest {
152
59
  thingName: string | undefined;
153
60
  statusDetails?: Record<string, string> | undefined;
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.934.0",
4
+ "version": "3.936.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,38 +20,38 @@
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.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.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.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.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.934.0",
23
+ "@aws-sdk/core": "3.936.0",
24
+ "@aws-sdk/credential-provider-node": "3.936.0",
25
+ "@aws-sdk/middleware-host-header": "3.936.0",
26
+ "@aws-sdk/middleware-logger": "3.936.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
+ "@aws-sdk/middleware-user-agent": "3.936.0",
29
+ "@aws-sdk/region-config-resolver": "3.936.0",
30
+ "@aws-sdk/types": "3.936.0",
31
+ "@aws-sdk/util-endpoints": "3.936.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.936.0",
33
+ "@aws-sdk/util-user-agent-node": "3.936.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
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",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
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.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";