@aws-sdk/client-iot-data-plane 3.934.0 → 3.935.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
@@ -237,10 +237,6 @@ let UnsupportedDocumentEncodingException$1 = class UnsupportedDocumentEncodingEx
237
237
  Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
238
238
  }
239
239
  };
240
- const PayloadFormatIndicator = {
241
- UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
242
- UTF8_DATA: "UTF8_DATA",
243
- };
244
240
  let RequestEntityTooLargeException$1 = class RequestEntityTooLargeException extends IoTDataPlaneServiceException$1 {
245
241
  name = "RequestEntityTooLargeException";
246
242
  $fault = "client";
@@ -869,6 +865,11 @@ smithyClient.createAggregatedClient(commands, IoTDataPlane);
869
865
 
870
866
  const paginateListRetainedMessages = core.createPaginator(IoTDataPlaneClient, ListRetainedMessagesCommand, "nextToken", "nextToken", "maxResults");
871
867
 
868
+ const PayloadFormatIndicator = {
869
+ UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
870
+ UTF8_DATA: "UTF8_DATA",
871
+ };
872
+
872
873
  Object.defineProperty(exports, "$Command", {
873
874
  enumerable: true,
874
875
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -2,5 +2,6 @@ export * from "./IoTDataPlaneClient";
2
2
  export * from "./IoTDataPlane";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
- export * from "./models";
5
+ export * from "./models/enums";
6
+ export * from "./models/errors";
6
7
  export { IoTDataPlaneServiceException } from "./models/IoTDataPlaneServiceException";
@@ -0,0 +1,4 @@
1
+ export const PayloadFormatIndicator = {
2
+ UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
3
+ UTF8_DATA: "UTF8_DATA",
4
+ };
@@ -0,0 +1,133 @@
1
+ import { IoTDataPlaneServiceException as __BaseException } from "./IoTDataPlaneServiceException";
2
+ export class ConflictException extends __BaseException {
3
+ name = "ConflictException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "ConflictException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, ConflictException.prototype);
12
+ }
13
+ }
14
+ export class ForbiddenException extends __BaseException {
15
+ name = "ForbiddenException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ForbiddenException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, ForbiddenException.prototype);
24
+ }
25
+ }
26
+ export class InternalFailureException extends __BaseException {
27
+ name = "InternalFailureException";
28
+ $fault = "server";
29
+ constructor(opts) {
30
+ super({
31
+ name: "InternalFailureException",
32
+ $fault: "server",
33
+ ...opts,
34
+ });
35
+ Object.setPrototypeOf(this, InternalFailureException.prototype);
36
+ }
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 ThrottlingException extends __BaseException {
63
+ name = "ThrottlingException";
64
+ $fault = "client";
65
+ constructor(opts) {
66
+ super({
67
+ name: "ThrottlingException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
72
+ }
73
+ }
74
+ export class MethodNotAllowedException extends __BaseException {
75
+ name = "MethodNotAllowedException";
76
+ $fault = "client";
77
+ constructor(opts) {
78
+ super({
79
+ name: "MethodNotAllowedException",
80
+ $fault: "client",
81
+ ...opts,
82
+ });
83
+ Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
84
+ }
85
+ }
86
+ export class ServiceUnavailableException extends __BaseException {
87
+ name = "ServiceUnavailableException";
88
+ $fault = "server";
89
+ constructor(opts) {
90
+ super({
91
+ name: "ServiceUnavailableException",
92
+ $fault: "server",
93
+ ...opts,
94
+ });
95
+ Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
96
+ }
97
+ }
98
+ export class UnauthorizedException extends __BaseException {
99
+ name = "UnauthorizedException";
100
+ $fault = "client";
101
+ constructor(opts) {
102
+ super({
103
+ name: "UnauthorizedException",
104
+ $fault: "client",
105
+ ...opts,
106
+ });
107
+ Object.setPrototypeOf(this, UnauthorizedException.prototype);
108
+ }
109
+ }
110
+ export class UnsupportedDocumentEncodingException extends __BaseException {
111
+ name = "UnsupportedDocumentEncodingException";
112
+ $fault = "client";
113
+ constructor(opts) {
114
+ super({
115
+ name: "UnsupportedDocumentEncodingException",
116
+ $fault: "client",
117
+ ...opts,
118
+ });
119
+ Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
120
+ }
121
+ }
122
+ export class RequestEntityTooLargeException extends __BaseException {
123
+ name = "RequestEntityTooLargeException";
124
+ $fault = "client";
125
+ constructor(opts) {
126
+ super({
127
+ name: "RequestEntityTooLargeException",
128
+ $fault: "client",
129
+ ...opts,
130
+ });
131
+ Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
132
+ }
133
+ }
@@ -1,137 +1 @@
1
- import { IoTDataPlaneServiceException as __BaseException } from "./IoTDataPlaneServiceException";
2
- export class ConflictException extends __BaseException {
3
- name = "ConflictException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "ConflictException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, ConflictException.prototype);
12
- }
13
- }
14
- export class ForbiddenException extends __BaseException {
15
- name = "ForbiddenException";
16
- $fault = "client";
17
- constructor(opts) {
18
- super({
19
- name: "ForbiddenException",
20
- $fault: "client",
21
- ...opts,
22
- });
23
- Object.setPrototypeOf(this, ForbiddenException.prototype);
24
- }
25
- }
26
- export class InternalFailureException extends __BaseException {
27
- name = "InternalFailureException";
28
- $fault = "server";
29
- constructor(opts) {
30
- super({
31
- name: "InternalFailureException",
32
- $fault: "server",
33
- ...opts,
34
- });
35
- Object.setPrototypeOf(this, InternalFailureException.prototype);
36
- }
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 ThrottlingException extends __BaseException {
63
- name = "ThrottlingException";
64
- $fault = "client";
65
- constructor(opts) {
66
- super({
67
- name: "ThrottlingException",
68
- $fault: "client",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, ThrottlingException.prototype);
72
- }
73
- }
74
- export class MethodNotAllowedException extends __BaseException {
75
- name = "MethodNotAllowedException";
76
- $fault = "client";
77
- constructor(opts) {
78
- super({
79
- name: "MethodNotAllowedException",
80
- $fault: "client",
81
- ...opts,
82
- });
83
- Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
84
- }
85
- }
86
- export class ServiceUnavailableException extends __BaseException {
87
- name = "ServiceUnavailableException";
88
- $fault = "server";
89
- constructor(opts) {
90
- super({
91
- name: "ServiceUnavailableException",
92
- $fault: "server",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
96
- }
97
- }
98
- export class UnauthorizedException extends __BaseException {
99
- name = "UnauthorizedException";
100
- $fault = "client";
101
- constructor(opts) {
102
- super({
103
- name: "UnauthorizedException",
104
- $fault: "client",
105
- ...opts,
106
- });
107
- Object.setPrototypeOf(this, UnauthorizedException.prototype);
108
- }
109
- }
110
- export class UnsupportedDocumentEncodingException extends __BaseException {
111
- name = "UnsupportedDocumentEncodingException";
112
- $fault = "client";
113
- constructor(opts) {
114
- super({
115
- name: "UnsupportedDocumentEncodingException",
116
- $fault: "client",
117
- ...opts,
118
- });
119
- Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
120
- }
121
- }
122
- export const PayloadFormatIndicator = {
123
- UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
124
- UTF8_DATA: "UTF8_DATA",
125
- };
126
- export class RequestEntityTooLargeException extends __BaseException {
127
- name = "RequestEntityTooLargeException";
128
- $fault = "client";
129
- constructor(opts) {
130
- super({
131
- name: "RequestEntityTooLargeException",
132
- $fault: "client",
133
- ...opts,
134
- });
135
- Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
136
- }
137
- }
1
+ export {};
@@ -74,7 +74,7 @@ const _xampfi = "x-amz-mqtt5-payload-format-indicator";
74
74
  const _xamup = "x-amz-mqtt5-user-properties";
75
75
  const n0 = "com.amazonaws.iotdataplane";
76
76
  import { TypeRegistry } from "@smithy/core/schema";
77
- import { ConflictException as __ConflictException, ForbiddenException as __ForbiddenException, InternalFailureException as __InternalFailureException, InvalidRequestException as __InvalidRequestException, MethodNotAllowedException as __MethodNotAllowedException, RequestEntityTooLargeException as __RequestEntityTooLargeException, ResourceNotFoundException as __ResourceNotFoundException, ServiceUnavailableException as __ServiceUnavailableException, ThrottlingException as __ThrottlingException, UnauthorizedException as __UnauthorizedException, UnsupportedDocumentEncodingException as __UnsupportedDocumentEncodingException, } from "../models/index";
77
+ import { ConflictException as __ConflictException, ForbiddenException as __ForbiddenException, InternalFailureException as __InternalFailureException, InvalidRequestException as __InvalidRequestException, MethodNotAllowedException as __MethodNotAllowedException, RequestEntityTooLargeException as __RequestEntityTooLargeException, ResourceNotFoundException as __ResourceNotFoundException, ServiceUnavailableException as __ServiceUnavailableException, ThrottlingException as __ThrottlingException, UnauthorizedException as __UnauthorizedException, UnsupportedDocumentEncodingException as __UnsupportedDocumentEncodingException, } from "../models/errors";
78
78
  import { IoTDataPlaneServiceException as __IoTDataPlaneServiceException } from "../models/IoTDataPlaneServiceException";
79
79
  export var SynthesizedJsonUserProperties = [
80
80
  0,
@@ -20,5 +20,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
20
20
  export type { IoTDataPlaneExtensionConfiguration } from "./extensionConfiguration";
21
21
  export * from "./commands";
22
22
  export * from "./pagination";
23
- export * from "./models";
23
+ export * from "./models/enums";
24
+ export * from "./models/errors";
25
+ export type * from "./models/models_0";
24
26
  export { IoTDataPlaneServiceException } from "./models/IoTDataPlaneServiceException";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const PayloadFormatIndicator: {
6
+ readonly UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES";
7
+ readonly UTF8_DATA: "UTF8_DATA";
8
+ };
9
+ /**
10
+ * @public
11
+ */
12
+ export type PayloadFormatIndicator = (typeof PayloadFormatIndicator)[keyof typeof PayloadFormatIndicator];
@@ -0,0 +1,134 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { IoTDataPlaneServiceException as __BaseException } from "./IoTDataPlaneServiceException";
3
+ /**
4
+ * <p>The specified version does not match the version of the document.</p>
5
+ * @public
6
+ */
7
+ export declare class ConflictException extends __BaseException {
8
+ readonly name: "ConflictException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>The caller isn't authorized to make the request.</p>
17
+ * @public
18
+ */
19
+ export declare class ForbiddenException extends __BaseException {
20
+ readonly name: "ForbiddenException";
21
+ readonly $fault: "client";
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
26
+ }
27
+ /**
28
+ * <p>An unexpected error has occurred.</p>
29
+ * @public
30
+ */
31
+ export declare class InternalFailureException extends __BaseException {
32
+ readonly name: "InternalFailureException";
33
+ readonly $fault: "server";
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>The request is not valid.</p>
41
+ * @public
42
+ */
43
+ export declare class InvalidRequestException extends __BaseException {
44
+ readonly name: "InvalidRequestException";
45
+ readonly $fault: "client";
46
+ /**
47
+ * @internal
48
+ */
49
+ constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
50
+ }
51
+ /**
52
+ * <p>The specified resource does not exist.</p>
53
+ * @public
54
+ */
55
+ export declare class ResourceNotFoundException extends __BaseException {
56
+ readonly name: "ResourceNotFoundException";
57
+ readonly $fault: "client";
58
+ /**
59
+ * @internal
60
+ */
61
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
62
+ }
63
+ /**
64
+ * <p>The rate exceeds the limit.</p>
65
+ * @public
66
+ */
67
+ export declare class ThrottlingException extends __BaseException {
68
+ readonly name: "ThrottlingException";
69
+ readonly $fault: "client";
70
+ /**
71
+ * @internal
72
+ */
73
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
74
+ }
75
+ /**
76
+ * <p>The specified combination of HTTP verb and URI is not supported.</p>
77
+ * @public
78
+ */
79
+ export declare class MethodNotAllowedException extends __BaseException {
80
+ readonly name: "MethodNotAllowedException";
81
+ readonly $fault: "client";
82
+ /**
83
+ * @internal
84
+ */
85
+ constructor(opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>);
86
+ }
87
+ /**
88
+ * <p>The service is temporarily unavailable.</p>
89
+ * @public
90
+ */
91
+ export declare class ServiceUnavailableException extends __BaseException {
92
+ readonly name: "ServiceUnavailableException";
93
+ readonly $fault: "server";
94
+ /**
95
+ * @internal
96
+ */
97
+ constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
98
+ }
99
+ /**
100
+ * <p>You are not authorized to perform this operation.</p>
101
+ * @public
102
+ */
103
+ export declare class UnauthorizedException extends __BaseException {
104
+ readonly name: "UnauthorizedException";
105
+ readonly $fault: "client";
106
+ /**
107
+ * @internal
108
+ */
109
+ constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
110
+ }
111
+ /**
112
+ * <p>The document encoding is not supported.</p>
113
+ * @public
114
+ */
115
+ export declare class UnsupportedDocumentEncodingException extends __BaseException {
116
+ readonly name: "UnsupportedDocumentEncodingException";
117
+ readonly $fault: "client";
118
+ /**
119
+ * @internal
120
+ */
121
+ constructor(opts: __ExceptionOptionType<UnsupportedDocumentEncodingException, __BaseException>);
122
+ }
123
+ /**
124
+ * <p>The payload exceeds the maximum size allowed.</p>
125
+ * @public
126
+ */
127
+ export declare class RequestEntityTooLargeException extends __BaseException {
128
+ readonly name: "RequestEntityTooLargeException";
129
+ readonly $fault: "client";
130
+ /**
131
+ * @internal
132
+ */
133
+ constructor(opts: __ExceptionOptionType<RequestEntityTooLargeException, __BaseException>);
134
+ }
@@ -1,17 +1,5 @@
1
- import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion, ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { IoTDataPlaneServiceException as __BaseException } from "./IoTDataPlaneServiceException";
3
- /**
4
- * <p>The specified version does not match the version of the document.</p>
5
- * @public
6
- */
7
- export declare class ConflictException extends __BaseException {
8
- readonly name: "ConflictException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
14
- }
1
+ import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
2
+ import { PayloadFormatIndicator } from "./enums";
15
3
  /**
16
4
  * @public
17
5
  */
@@ -32,66 +20,6 @@ export interface DeleteConnectionRequest {
32
20
  */
33
21
  preventWillMessage?: boolean | undefined;
34
22
  }
35
- /**
36
- * <p>The caller isn't authorized to make the request.</p>
37
- * @public
38
- */
39
- export declare class ForbiddenException extends __BaseException {
40
- readonly name: "ForbiddenException";
41
- readonly $fault: "client";
42
- /**
43
- * @internal
44
- */
45
- constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
46
- }
47
- /**
48
- * <p>An unexpected error has occurred.</p>
49
- * @public
50
- */
51
- export declare class InternalFailureException extends __BaseException {
52
- readonly name: "InternalFailureException";
53
- readonly $fault: "server";
54
- /**
55
- * @internal
56
- */
57
- constructor(opts: __ExceptionOptionType<InternalFailureException, __BaseException>);
58
- }
59
- /**
60
- * <p>The request is not valid.</p>
61
- * @public
62
- */
63
- export declare class InvalidRequestException extends __BaseException {
64
- readonly name: "InvalidRequestException";
65
- readonly $fault: "client";
66
- /**
67
- * @internal
68
- */
69
- constructor(opts: __ExceptionOptionType<InvalidRequestException, __BaseException>);
70
- }
71
- /**
72
- * <p>The specified resource does not exist.</p>
73
- * @public
74
- */
75
- export declare class ResourceNotFoundException extends __BaseException {
76
- readonly name: "ResourceNotFoundException";
77
- readonly $fault: "client";
78
- /**
79
- * @internal
80
- */
81
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
82
- }
83
- /**
84
- * <p>The rate exceeds the limit.</p>
85
- * @public
86
- */
87
- export declare class ThrottlingException extends __BaseException {
88
- readonly name: "ThrottlingException";
89
- readonly $fault: "client";
90
- /**
91
- * @internal
92
- */
93
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
94
- }
95
23
  /**
96
24
  * <p>The input for the DeleteThingShadow operation.</p>
97
25
  * @public
@@ -119,54 +47,6 @@ export interface DeleteThingShadowResponse {
119
47
  */
120
48
  payload: Uint8Array | undefined;
121
49
  }
122
- /**
123
- * <p>The specified combination of HTTP verb and URI is not supported.</p>
124
- * @public
125
- */
126
- export declare class MethodNotAllowedException extends __BaseException {
127
- readonly name: "MethodNotAllowedException";
128
- readonly $fault: "client";
129
- /**
130
- * @internal
131
- */
132
- constructor(opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>);
133
- }
134
- /**
135
- * <p>The service is temporarily unavailable.</p>
136
- * @public
137
- */
138
- export declare class ServiceUnavailableException extends __BaseException {
139
- readonly name: "ServiceUnavailableException";
140
- readonly $fault: "server";
141
- /**
142
- * @internal
143
- */
144
- constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
145
- }
146
- /**
147
- * <p>You are not authorized to perform this operation.</p>
148
- * @public
149
- */
150
- export declare class UnauthorizedException extends __BaseException {
151
- readonly name: "UnauthorizedException";
152
- readonly $fault: "client";
153
- /**
154
- * @internal
155
- */
156
- constructor(opts: __ExceptionOptionType<UnauthorizedException, __BaseException>);
157
- }
158
- /**
159
- * <p>The document encoding is not supported.</p>
160
- * @public
161
- */
162
- export declare class UnsupportedDocumentEncodingException extends __BaseException {
163
- readonly name: "UnsupportedDocumentEncodingException";
164
- readonly $fault: "client";
165
- /**
166
- * @internal
167
- */
168
- constructor(opts: __ExceptionOptionType<UnsupportedDocumentEncodingException, __BaseException>);
169
- }
170
50
  /**
171
51
  * <p>The input for the GetRetainedMessage operation.</p>
172
52
  * @public
@@ -341,18 +221,6 @@ export interface ListRetainedMessagesResponse {
341
221
  */
342
222
  nextToken?: string | undefined;
343
223
  }
344
- /**
345
- * @public
346
- * @enum
347
- */
348
- export declare const PayloadFormatIndicator: {
349
- readonly UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES";
350
- readonly UTF8_DATA: "UTF8_DATA";
351
- };
352
- /**
353
- * @public
354
- */
355
- export type PayloadFormatIndicator = (typeof PayloadFormatIndicator)[keyof typeof PayloadFormatIndicator];
356
224
  /**
357
225
  * <p>The input for the Publish operation.</p>
358
226
  * @public
@@ -431,18 +299,6 @@ export interface PublishRequest {
431
299
  */
432
300
  messageExpiry?: number | undefined;
433
301
  }
434
- /**
435
- * <p>The payload exceeds the maximum size allowed.</p>
436
- * @public
437
- */
438
- export declare class RequestEntityTooLargeException extends __BaseException {
439
- readonly name: "RequestEntityTooLargeException";
440
- readonly $fault: "client";
441
- /**
442
- * @internal
443
- */
444
- constructor(opts: __ExceptionOptionType<RequestEntityTooLargeException, __BaseException>);
445
- }
446
302
  /**
447
303
  * <p>The input for the UpdateThingShadow operation.</p>
448
304
  * @public
@@ -5,5 +5,7 @@ export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { IoTDataPlaneExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
- export * from "./models";
8
+ export * from "./models/enums";
9
+ export * from "./models/errors";
10
+ export * from "./models/models_0";
9
11
  export { IoTDataPlaneServiceException } from "./models/IoTDataPlaneServiceException";
@@ -0,0 +1,6 @@
1
+ export declare const PayloadFormatIndicator: {
2
+ readonly UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES";
3
+ readonly UTF8_DATA: "UTF8_DATA";
4
+ };
5
+ export type PayloadFormatIndicator =
6
+ (typeof PayloadFormatIndicator)[keyof typeof PayloadFormatIndicator];
@@ -0,0 +1,78 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { IoTDataPlaneServiceException as __BaseException } from "./IoTDataPlaneServiceException";
3
+ export declare class ConflictException extends __BaseException {
4
+ readonly name: "ConflictException";
5
+ readonly $fault: "client";
6
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
7
+ }
8
+ export declare class ForbiddenException extends __BaseException {
9
+ readonly name: "ForbiddenException";
10
+ readonly $fault: "client";
11
+ constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
12
+ }
13
+ export declare class InternalFailureException extends __BaseException {
14
+ readonly name: "InternalFailureException";
15
+ readonly $fault: "server";
16
+ constructor(
17
+ opts: __ExceptionOptionType<InternalFailureException, __BaseException>
18
+ );
19
+ }
20
+ export declare class InvalidRequestException extends __BaseException {
21
+ readonly name: "InvalidRequestException";
22
+ readonly $fault: "client";
23
+ constructor(
24
+ opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
25
+ );
26
+ }
27
+ export declare class ResourceNotFoundException extends __BaseException {
28
+ readonly name: "ResourceNotFoundException";
29
+ readonly $fault: "client";
30
+ constructor(
31
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
32
+ );
33
+ }
34
+ export declare class ThrottlingException extends __BaseException {
35
+ readonly name: "ThrottlingException";
36
+ readonly $fault: "client";
37
+ constructor(
38
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
39
+ );
40
+ }
41
+ export declare class MethodNotAllowedException extends __BaseException {
42
+ readonly name: "MethodNotAllowedException";
43
+ readonly $fault: "client";
44
+ constructor(
45
+ opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>
46
+ );
47
+ }
48
+ export declare class ServiceUnavailableException extends __BaseException {
49
+ readonly name: "ServiceUnavailableException";
50
+ readonly $fault: "server";
51
+ constructor(
52
+ opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
53
+ );
54
+ }
55
+ export declare class UnauthorizedException extends __BaseException {
56
+ readonly name: "UnauthorizedException";
57
+ readonly $fault: "client";
58
+ constructor(
59
+ opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
60
+ );
61
+ }
62
+ export declare class UnsupportedDocumentEncodingException extends __BaseException {
63
+ readonly name: "UnsupportedDocumentEncodingException";
64
+ readonly $fault: "client";
65
+ constructor(
66
+ opts: __ExceptionOptionType<
67
+ UnsupportedDocumentEncodingException,
68
+ __BaseException
69
+ >
70
+ );
71
+ }
72
+ export declare class RequestEntityTooLargeException extends __BaseException {
73
+ readonly name: "RequestEntityTooLargeException";
74
+ readonly $fault: "client";
75
+ constructor(
76
+ opts: __ExceptionOptionType<RequestEntityTooLargeException, __BaseException>
77
+ );
78
+ }
@@ -1,51 +1,10 @@
1
- import {
2
- AutomaticJsonStringConversion as __AutomaticJsonStringConversion,
3
- ExceptionOptionType as __ExceptionOptionType,
4
- } from "@smithy/smithy-client";
5
- import { IoTDataPlaneServiceException as __BaseException } from "./IoTDataPlaneServiceException";
6
- export declare class ConflictException extends __BaseException {
7
- readonly name: "ConflictException";
8
- readonly $fault: "client";
9
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
10
- }
1
+ import { AutomaticJsonStringConversion as __AutomaticJsonStringConversion } from "@smithy/smithy-client";
2
+ import { PayloadFormatIndicator } from "./enums";
11
3
  export interface DeleteConnectionRequest {
12
4
  clientId: string | undefined;
13
5
  cleanSession?: boolean | undefined;
14
6
  preventWillMessage?: boolean | undefined;
15
7
  }
16
- export declare class ForbiddenException extends __BaseException {
17
- readonly name: "ForbiddenException";
18
- readonly $fault: "client";
19
- constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
20
- }
21
- export declare class InternalFailureException extends __BaseException {
22
- readonly name: "InternalFailureException";
23
- readonly $fault: "server";
24
- constructor(
25
- opts: __ExceptionOptionType<InternalFailureException, __BaseException>
26
- );
27
- }
28
- export declare class InvalidRequestException extends __BaseException {
29
- readonly name: "InvalidRequestException";
30
- readonly $fault: "client";
31
- constructor(
32
- opts: __ExceptionOptionType<InvalidRequestException, __BaseException>
33
- );
34
- }
35
- export declare class ResourceNotFoundException extends __BaseException {
36
- readonly name: "ResourceNotFoundException";
37
- readonly $fault: "client";
38
- constructor(
39
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
40
- );
41
- }
42
- export declare class ThrottlingException extends __BaseException {
43
- readonly name: "ThrottlingException";
44
- readonly $fault: "client";
45
- constructor(
46
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
47
- );
48
- }
49
8
  export interface DeleteThingShadowRequest {
50
9
  thingName: string | undefined;
51
10
  shadowName?: string | undefined;
@@ -53,37 +12,6 @@ export interface DeleteThingShadowRequest {
53
12
  export interface DeleteThingShadowResponse {
54
13
  payload: Uint8Array | undefined;
55
14
  }
56
- export declare class MethodNotAllowedException extends __BaseException {
57
- readonly name: "MethodNotAllowedException";
58
- readonly $fault: "client";
59
- constructor(
60
- opts: __ExceptionOptionType<MethodNotAllowedException, __BaseException>
61
- );
62
- }
63
- export declare class ServiceUnavailableException extends __BaseException {
64
- readonly name: "ServiceUnavailableException";
65
- readonly $fault: "server";
66
- constructor(
67
- opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
68
- );
69
- }
70
- export declare class UnauthorizedException extends __BaseException {
71
- readonly name: "UnauthorizedException";
72
- readonly $fault: "client";
73
- constructor(
74
- opts: __ExceptionOptionType<UnauthorizedException, __BaseException>
75
- );
76
- }
77
- export declare class UnsupportedDocumentEncodingException extends __BaseException {
78
- readonly name: "UnsupportedDocumentEncodingException";
79
- readonly $fault: "client";
80
- constructor(
81
- opts: __ExceptionOptionType<
82
- UnsupportedDocumentEncodingException,
83
- __BaseException
84
- >
85
- );
86
- }
87
15
  export interface GetRetainedMessageRequest {
88
16
  topic: string | undefined;
89
17
  }
@@ -125,12 +53,6 @@ export interface ListRetainedMessagesResponse {
125
53
  retainedTopics?: RetainedMessageSummary[] | undefined;
126
54
  nextToken?: string | undefined;
127
55
  }
128
- export declare const PayloadFormatIndicator: {
129
- readonly UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES";
130
- readonly UTF8_DATA: "UTF8_DATA";
131
- };
132
- export type PayloadFormatIndicator =
133
- (typeof PayloadFormatIndicator)[keyof typeof PayloadFormatIndicator];
134
56
  export interface PublishRequest {
135
57
  topic: string | undefined;
136
58
  qos?: number | undefined;
@@ -143,13 +65,6 @@ export interface PublishRequest {
143
65
  correlationData?: string | undefined;
144
66
  messageExpiry?: number | undefined;
145
67
  }
146
- export declare class RequestEntityTooLargeException extends __BaseException {
147
- readonly name: "RequestEntityTooLargeException";
148
- readonly $fault: "client";
149
- constructor(
150
- opts: __ExceptionOptionType<RequestEntityTooLargeException, __BaseException>
151
- );
152
- }
153
68
  export interface UpdateThingShadowRequest {
154
69
  thingName: string | undefined;
155
70
  shadowName?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iot-data-plane",
3
3
  "description": "AWS SDK for JavaScript Iot Data Plane Client for Node.js, Browser and React Native",
4
- "version": "3.934.0",
4
+ "version": "3.935.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-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",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.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";