@aws-sdk/client-iot-data-plane 3.1054.0 → 3.1056.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/README.md +21 -0
- package/dist-cjs/index.js +46 -0
- package/dist-cjs/models/errors.js +14 -1
- package/dist-cjs/schemas/schemas_0.js +83 -1
- package/dist-es/IoTDataPlane.js +8 -0
- package/dist-es/commands/GetConnectionCommand.js +16 -0
- package/dist-es/commands/ListSubscriptionsCommand.js +16 -0
- package/dist-es/commands/SendDirectMessageCommand.js +16 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +83 -1
- package/dist-types/IoTDataPlane.d.ts +28 -0
- package/dist-types/IoTDataPlaneClient.d.ts +5 -2
- package/dist-types/commands/DeleteConnectionCommand.d.ts +1 -0
- package/dist-types/commands/GetConnectionCommand.d.ts +106 -0
- package/dist-types/commands/ListSubscriptionsCommand.d.ts +100 -0
- package/dist-types/commands/SendDirectMessageCommand.d.ts +122 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/errors.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +259 -2
- package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +11 -0
- package/dist-types/ts3.4/IoTDataPlane.d.ts +58 -0
- package/dist-types/ts3.4/IoTDataPlaneClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +52 -0
- package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/SendDirectMessageCommand.d.ts +62 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/errors.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +49 -0
- package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -205,6 +205,13 @@ DeleteThingShadow
|
|
|
205
205
|
</details>
|
|
206
206
|
<details>
|
|
207
207
|
<summary>
|
|
208
|
+
GetConnection
|
|
209
|
+
</summary>
|
|
210
|
+
|
|
211
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-data-plane/command/GetConnectionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-data-plane/Interface/GetConnectionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-data-plane/Interface/GetConnectionCommandOutput/)
|
|
212
|
+
</details>
|
|
213
|
+
<details>
|
|
214
|
+
<summary>
|
|
208
215
|
GetRetainedMessage
|
|
209
216
|
</summary>
|
|
210
217
|
|
|
@@ -233,6 +240,13 @@ ListRetainedMessages
|
|
|
233
240
|
</details>
|
|
234
241
|
<details>
|
|
235
242
|
<summary>
|
|
243
|
+
ListSubscriptions
|
|
244
|
+
</summary>
|
|
245
|
+
|
|
246
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-data-plane/command/ListSubscriptionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-data-plane/Interface/ListSubscriptionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-data-plane/Interface/ListSubscriptionsCommandOutput/)
|
|
247
|
+
</details>
|
|
248
|
+
<details>
|
|
249
|
+
<summary>
|
|
236
250
|
Publish
|
|
237
251
|
</summary>
|
|
238
252
|
|
|
@@ -240,6 +254,13 @@ Publish
|
|
|
240
254
|
</details>
|
|
241
255
|
<details>
|
|
242
256
|
<summary>
|
|
257
|
+
SendDirectMessage
|
|
258
|
+
</summary>
|
|
259
|
+
|
|
260
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/iot-data-plane/command/SendDirectMessageCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-data-plane/Interface/SendDirectMessageCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-iot-data-plane/Interface/SendDirectMessageCommandOutput/)
|
|
261
|
+
</details>
|
|
262
|
+
<details>
|
|
263
|
+
<summary>
|
|
243
264
|
UpdateThingShadow
|
|
244
265
|
</summary>
|
|
245
266
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -132,6 +132,18 @@ class DeleteThingShadowCommand extends client.Command
|
|
|
132
132
|
.build() {
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
class GetConnectionCommand extends client.Command
|
|
136
|
+
.classBuilder()
|
|
137
|
+
.ep(commonParams)
|
|
138
|
+
.m(function (Command, cs, config, o) {
|
|
139
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
140
|
+
})
|
|
141
|
+
.s("IotMoonrakerService", "GetConnection", {})
|
|
142
|
+
.n("IoTDataPlaneClient", "GetConnectionCommand")
|
|
143
|
+
.sc(schemas_0.GetConnection$)
|
|
144
|
+
.build() {
|
|
145
|
+
}
|
|
146
|
+
|
|
135
147
|
class GetRetainedMessageCommand extends client.Command
|
|
136
148
|
.classBuilder()
|
|
137
149
|
.ep(commonParams)
|
|
@@ -180,6 +192,18 @@ class ListRetainedMessagesCommand extends client.Command
|
|
|
180
192
|
.build() {
|
|
181
193
|
}
|
|
182
194
|
|
|
195
|
+
class ListSubscriptionsCommand extends client.Command
|
|
196
|
+
.classBuilder()
|
|
197
|
+
.ep(commonParams)
|
|
198
|
+
.m(function (Command, cs, config, o) {
|
|
199
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
200
|
+
})
|
|
201
|
+
.s("IotMoonrakerService", "ListSubscriptions", {})
|
|
202
|
+
.n("IoTDataPlaneClient", "ListSubscriptionsCommand")
|
|
203
|
+
.sc(schemas_0.ListSubscriptions$)
|
|
204
|
+
.build() {
|
|
205
|
+
}
|
|
206
|
+
|
|
183
207
|
class PublishCommand extends client.Command
|
|
184
208
|
.classBuilder()
|
|
185
209
|
.ep(commonParams)
|
|
@@ -192,6 +216,18 @@ class PublishCommand extends client.Command
|
|
|
192
216
|
.build() {
|
|
193
217
|
}
|
|
194
218
|
|
|
219
|
+
class SendDirectMessageCommand extends client.Command
|
|
220
|
+
.classBuilder()
|
|
221
|
+
.ep(commonParams)
|
|
222
|
+
.m(function (Command, cs, config, o) {
|
|
223
|
+
return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
224
|
+
})
|
|
225
|
+
.s("IotMoonrakerService", "SendDirectMessage", {})
|
|
226
|
+
.n("IoTDataPlaneClient", "SendDirectMessageCommand")
|
|
227
|
+
.sc(schemas_0.SendDirectMessage$)
|
|
228
|
+
.build() {
|
|
229
|
+
}
|
|
230
|
+
|
|
195
231
|
class UpdateThingShadowCommand extends client.Command
|
|
196
232
|
.classBuilder()
|
|
197
233
|
.ep(commonParams)
|
|
@@ -206,18 +242,24 @@ class UpdateThingShadowCommand extends client.Command
|
|
|
206
242
|
|
|
207
243
|
const paginateListRetainedMessages = core.createPaginator(IoTDataPlaneClient, ListRetainedMessagesCommand, "nextToken", "nextToken", "maxResults");
|
|
208
244
|
|
|
245
|
+
const paginateListSubscriptions = core.createPaginator(IoTDataPlaneClient, ListSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
|
|
246
|
+
|
|
209
247
|
const commands = {
|
|
210
248
|
DeleteConnectionCommand,
|
|
211
249
|
DeleteThingShadowCommand,
|
|
250
|
+
GetConnectionCommand,
|
|
212
251
|
GetRetainedMessageCommand,
|
|
213
252
|
GetThingShadowCommand,
|
|
214
253
|
ListNamedShadowsForThingCommand,
|
|
215
254
|
ListRetainedMessagesCommand,
|
|
255
|
+
ListSubscriptionsCommand,
|
|
216
256
|
PublishCommand,
|
|
257
|
+
SendDirectMessageCommand,
|
|
217
258
|
UpdateThingShadowCommand,
|
|
218
259
|
};
|
|
219
260
|
const paginators = {
|
|
220
261
|
paginateListRetainedMessages,
|
|
262
|
+
paginateListSubscriptions,
|
|
221
263
|
};
|
|
222
264
|
class IoTDataPlane extends IoTDataPlaneClient {
|
|
223
265
|
}
|
|
@@ -233,16 +275,20 @@ exports.__Client = client.Client;
|
|
|
233
275
|
exports.IoTDataPlaneServiceException = IoTDataPlaneServiceException.IoTDataPlaneServiceException;
|
|
234
276
|
exports.DeleteConnectionCommand = DeleteConnectionCommand;
|
|
235
277
|
exports.DeleteThingShadowCommand = DeleteThingShadowCommand;
|
|
278
|
+
exports.GetConnectionCommand = GetConnectionCommand;
|
|
236
279
|
exports.GetRetainedMessageCommand = GetRetainedMessageCommand;
|
|
237
280
|
exports.GetThingShadowCommand = GetThingShadowCommand;
|
|
238
281
|
exports.IoTDataPlane = IoTDataPlane;
|
|
239
282
|
exports.IoTDataPlaneClient = IoTDataPlaneClient;
|
|
240
283
|
exports.ListNamedShadowsForThingCommand = ListNamedShadowsForThingCommand;
|
|
241
284
|
exports.ListRetainedMessagesCommand = ListRetainedMessagesCommand;
|
|
285
|
+
exports.ListSubscriptionsCommand = ListSubscriptionsCommand;
|
|
242
286
|
exports.PayloadFormatIndicator = PayloadFormatIndicator;
|
|
243
287
|
exports.PublishCommand = PublishCommand;
|
|
288
|
+
exports.SendDirectMessageCommand = SendDirectMessageCommand;
|
|
244
289
|
exports.UpdateThingShadowCommand = UpdateThingShadowCommand;
|
|
245
290
|
exports.paginateListRetainedMessages = paginateListRetainedMessages;
|
|
291
|
+
exports.paginateListSubscriptions = paginateListSubscriptions;
|
|
246
292
|
Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&
|
|
247
293
|
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
|
|
248
294
|
Object.defineProperty(exports, '__proto__', {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RequestEntityTooLargeException = exports.UnsupportedDocumentEncodingException = exports.UnauthorizedException = exports.ServiceUnavailableException = exports.MethodNotAllowedException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InternalFailureException = exports.ForbiddenException = exports.ConflictException = void 0;
|
|
3
|
+
exports.RequestEntityTooLargeException = exports.GatewayTimeoutException = exports.UnsupportedDocumentEncodingException = exports.UnauthorizedException = exports.ServiceUnavailableException = exports.MethodNotAllowedException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InvalidRequestException = exports.InternalFailureException = exports.ForbiddenException = exports.ConflictException = void 0;
|
|
4
4
|
const IoTDataPlaneServiceException_1 = require("./IoTDataPlaneServiceException");
|
|
5
5
|
class ConflictException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
6
6
|
name = "ConflictException";
|
|
@@ -132,6 +132,19 @@ class UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException_
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
exports.UnsupportedDocumentEncodingException = UnsupportedDocumentEncodingException;
|
|
135
|
+
class GatewayTimeoutException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
136
|
+
name = "GatewayTimeoutException";
|
|
137
|
+
$fault = "server";
|
|
138
|
+
constructor(opts) {
|
|
139
|
+
super({
|
|
140
|
+
name: "GatewayTimeoutException",
|
|
141
|
+
$fault: "server",
|
|
142
|
+
...opts,
|
|
143
|
+
});
|
|
144
|
+
Object.setPrototypeOf(this, GatewayTimeoutException.prototype);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.GatewayTimeoutException = GatewayTimeoutException;
|
|
135
148
|
class RequestEntityTooLargeException extends IoTDataPlaneServiceException_1.IoTDataPlaneServiceException {
|
|
136
149
|
name = "RequestEntityTooLargeException";
|
|
137
150
|
$fault = "client";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateThingShadow$ = exports.Publish$ = exports.ListRetainedMessages$ = exports.ListNamedShadowsForThing$ = exports.GetThingShadow$ = exports.GetRetainedMessage$ = exports.DeleteThingShadow$ = exports.DeleteConnection$ = exports.UpdateThingShadowResponse$ = exports.UpdateThingShadowRequest$ = exports.RetainedMessageSummary$ = exports.PublishRequest$ = exports.ListRetainedMessagesResponse$ = exports.ListRetainedMessagesRequest$ = exports.ListNamedShadowsForThingResponse$ = exports.ListNamedShadowsForThingRequest$ = exports.GetThingShadowResponse$ = exports.GetThingShadowRequest$ = exports.GetRetainedMessageResponse$ = exports.GetRetainedMessageRequest$ = exports.DeleteThingShadowResponse$ = exports.DeleteThingShadowRequest$ = exports.DeleteConnectionRequest$ = exports.errorTypeRegistries = exports.UnsupportedDocumentEncodingException$ = exports.UnauthorizedException$ = exports.ThrottlingException$ = exports.ServiceUnavailableException$ = exports.ResourceNotFoundException$ = exports.RequestEntityTooLargeException$ = exports.MethodNotAllowedException$ = exports.InvalidRequestException$ = exports.InternalFailureException$ = exports.ForbiddenException$ = exports.ConflictException$ = exports.IoTDataPlaneServiceException$ = void 0;
|
|
3
|
+
exports.UpdateThingShadow$ = exports.SendDirectMessage$ = exports.Publish$ = exports.ListSubscriptions$ = exports.ListRetainedMessages$ = exports.ListNamedShadowsForThing$ = exports.GetThingShadow$ = exports.GetRetainedMessage$ = exports.GetConnection$ = exports.DeleteThingShadow$ = exports.DeleteConnection$ = exports.UpdateThingShadowResponse$ = exports.UpdateThingShadowRequest$ = exports.SubscriptionSummary$ = exports.SendDirectMessageResponse$ = exports.SendDirectMessageRequest$ = exports.RetainedMessageSummary$ = exports.PublishRequest$ = exports.ListSubscriptionsResponse$ = exports.ListSubscriptionsRequest$ = exports.ListRetainedMessagesResponse$ = exports.ListRetainedMessagesRequest$ = exports.ListNamedShadowsForThingResponse$ = exports.ListNamedShadowsForThingRequest$ = exports.GetThingShadowResponse$ = exports.GetThingShadowRequest$ = exports.GetRetainedMessageResponse$ = exports.GetRetainedMessageRequest$ = exports.GetConnectionResponse$ = exports.GetConnectionRequest$ = exports.DeleteThingShadowResponse$ = exports.DeleteThingShadowRequest$ = exports.DeleteConnectionRequest$ = exports.errorTypeRegistries = exports.UnsupportedDocumentEncodingException$ = exports.UnauthorizedException$ = exports.ThrottlingException$ = exports.ServiceUnavailableException$ = exports.ResourceNotFoundException$ = exports.RequestEntityTooLargeException$ = exports.MethodNotAllowedException$ = exports.InvalidRequestException$ = exports.InternalFailureException$ = exports.GatewayTimeoutException$ = exports.ForbiddenException$ = exports.ConflictException$ = exports.IoTDataPlaneServiceException$ = void 0;
|
|
4
4
|
const _CE = "ConflictException";
|
|
5
5
|
const _DC = "DeleteConnection";
|
|
6
6
|
const _DCR = "DeleteConnectionRequest";
|
|
@@ -8,9 +8,13 @@ const _DTS = "DeleteThingShadow";
|
|
|
8
8
|
const _DTSR = "DeleteThingShadowRequest";
|
|
9
9
|
const _DTSRe = "DeleteThingShadowResponse";
|
|
10
10
|
const _FE = "ForbiddenException";
|
|
11
|
+
const _GC = "GetConnection";
|
|
12
|
+
const _GCR = "GetConnectionRequest";
|
|
13
|
+
const _GCRe = "GetConnectionResponse";
|
|
11
14
|
const _GRM = "GetRetainedMessage";
|
|
12
15
|
const _GRMR = "GetRetainedMessageRequest";
|
|
13
16
|
const _GRMRe = "GetRetainedMessageResponse";
|
|
17
|
+
const _GTE = "GatewayTimeoutException";
|
|
14
18
|
const _GTS = "GetThingShadow";
|
|
15
19
|
const _GTSR = "GetThingShadowRequest";
|
|
16
20
|
const _GTSRe = "GetThingShadowResponse";
|
|
@@ -22,6 +26,9 @@ const _LNSFTRi = "ListNamedShadowsForThingResponse";
|
|
|
22
26
|
const _LRM = "ListRetainedMessages";
|
|
23
27
|
const _LRMR = "ListRetainedMessagesRequest";
|
|
24
28
|
const _LRMRi = "ListRetainedMessagesResponse";
|
|
29
|
+
const _LS = "ListSubscriptions";
|
|
30
|
+
const _LSR = "ListSubscriptionsRequest";
|
|
31
|
+
const _LSRi = "ListSubscriptionsResponse";
|
|
25
32
|
const _MNAE = "MethodNotAllowedException";
|
|
26
33
|
const _P = "Publish";
|
|
27
34
|
const _PR = "PublishRequest";
|
|
@@ -29,7 +36,12 @@ const _RETLE = "RequestEntityTooLargeException";
|
|
|
29
36
|
const _RML = "RetainedMessageList";
|
|
30
37
|
const _RMS = "RetainedMessageSummary";
|
|
31
38
|
const _RNFE = "ResourceNotFoundException";
|
|
39
|
+
const _SDM = "SendDirectMessage";
|
|
40
|
+
const _SDMR = "SendDirectMessageRequest";
|
|
41
|
+
const _SDMRe = "SendDirectMessageResponse";
|
|
32
42
|
const _SJUP = "SynthesizedJsonUserProperties";
|
|
43
|
+
const _SL = "SubscriptionList";
|
|
44
|
+
const _SS = "SubscriptionSummary";
|
|
33
45
|
const _SUE = "ServiceUnavailableException";
|
|
34
46
|
const _TE = "ThrottlingException";
|
|
35
47
|
const _UDEE = "UnsupportedDocumentEncodingException";
|
|
@@ -42,12 +54,19 @@ const _c = "client";
|
|
|
42
54
|
const _cD = "correlationData";
|
|
43
55
|
const _cI = "clientId";
|
|
44
56
|
const _cS = "cleanSession";
|
|
57
|
+
const _cSo = "connectedSince";
|
|
45
58
|
const _cT = "contentType";
|
|
59
|
+
const _co = "connected";
|
|
60
|
+
const _con = "confirmation";
|
|
61
|
+
const _dR = "disconnectReason";
|
|
62
|
+
const _dS = "disconnectedSince";
|
|
46
63
|
const _e = "error";
|
|
47
64
|
const _h = "http";
|
|
48
65
|
const _hE = "httpError";
|
|
49
66
|
const _hH = "httpHeader";
|
|
50
67
|
const _hQ = "httpQuery";
|
|
68
|
+
const _iSI = "includeSocketInformation";
|
|
69
|
+
const _kAD = "keepAliveDuration";
|
|
51
70
|
const _lMT = "lastModifiedTime";
|
|
52
71
|
const _m = "message";
|
|
53
72
|
const _mE = "messageExpiry";
|
|
@@ -66,12 +85,22 @@ const _rT = "retainedTopics";
|
|
|
66
85
|
const _rTe = "responseTopic";
|
|
67
86
|
const _re = "retain";
|
|
68
87
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane";
|
|
88
|
+
const _sE = "sessionExpiry";
|
|
89
|
+
const _sI = "sourceIp";
|
|
69
90
|
const _sN = "shadowName";
|
|
91
|
+
const _sP = "sourcePort";
|
|
70
92
|
const _se = "server";
|
|
93
|
+
const _su = "subscriptions";
|
|
71
94
|
const _t = "topic";
|
|
95
|
+
const _tF = "topicFilter";
|
|
96
|
+
const _tI = "targetIp";
|
|
97
|
+
const _tIr = "traceId";
|
|
72
98
|
const _tN = "thingName";
|
|
99
|
+
const _tP = "targetPort";
|
|
73
100
|
const _ti = "timestamp";
|
|
101
|
+
const _tim = "timeout";
|
|
74
102
|
const _uP = "userProperties";
|
|
103
|
+
const _vEI = "vpcEndpointId";
|
|
75
104
|
const _xamcd = "x-amz-mqtt5-correlation-data";
|
|
76
105
|
const _xampfi = "x-amz-mqtt5-payload-format-indicator";
|
|
77
106
|
const _xamup = "x-amz-mqtt5-user-properties";
|
|
@@ -95,6 +124,12 @@ exports.ForbiddenException$ = [-3, n0, _FE,
|
|
|
95
124
|
[0]
|
|
96
125
|
];
|
|
97
126
|
n0_registry.registerError(exports.ForbiddenException$, errors_1.ForbiddenException);
|
|
127
|
+
exports.GatewayTimeoutException$ = [-3, n0, _GTE,
|
|
128
|
+
{ [_e]: _se, [_hE]: 504 },
|
|
129
|
+
[_m],
|
|
130
|
+
[0]
|
|
131
|
+
];
|
|
132
|
+
n0_registry.registerError(exports.GatewayTimeoutException$, errors_1.GatewayTimeoutException);
|
|
98
133
|
exports.InternalFailureException$ = [-3, n0, _IFE,
|
|
99
134
|
{ [_e]: _se, [_hE]: 500 },
|
|
100
135
|
[_m],
|
|
@@ -169,6 +204,16 @@ exports.DeleteThingShadowResponse$ = [3, n0, _DTSRe,
|
|
|
169
204
|
[_p],
|
|
170
205
|
[[21, 16]], 1
|
|
171
206
|
];
|
|
207
|
+
exports.GetConnectionRequest$ = [3, n0, _GCR,
|
|
208
|
+
0,
|
|
209
|
+
[_cI, _iSI],
|
|
210
|
+
[[0, 1], [2, { [_hQ]: _iSI }]], 1
|
|
211
|
+
];
|
|
212
|
+
exports.GetConnectionResponse$ = [3, n0, _GCRe,
|
|
213
|
+
0,
|
|
214
|
+
[_co, _tN, _cS, _sI, _sP, _tI, _tP, _kAD, _cSo, _dS, _dR, _sE, _cI, _vEI],
|
|
215
|
+
[2, 0, 2, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0]
|
|
216
|
+
];
|
|
172
217
|
exports.GetRetainedMessageRequest$ = [3, n0, _GRMR,
|
|
173
218
|
0,
|
|
174
219
|
[_t],
|
|
@@ -209,6 +254,16 @@ exports.ListRetainedMessagesResponse$ = [3, n0, _LRMRi,
|
|
|
209
254
|
[_rT, _nT],
|
|
210
255
|
[() => RetainedMessageList, 0]
|
|
211
256
|
];
|
|
257
|
+
exports.ListSubscriptionsRequest$ = [3, n0, _LSR,
|
|
258
|
+
0,
|
|
259
|
+
[_cI, _nT, _mR],
|
|
260
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
|
|
261
|
+
];
|
|
262
|
+
exports.ListSubscriptionsResponse$ = [3, n0, _LSRi,
|
|
263
|
+
0,
|
|
264
|
+
[_su, _nT],
|
|
265
|
+
[() => SubscriptionList, 0]
|
|
266
|
+
];
|
|
212
267
|
exports.PublishRequest$ = [3, n0, _PR,
|
|
213
268
|
0,
|
|
214
269
|
[_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
|
|
@@ -219,6 +274,21 @@ exports.RetainedMessageSummary$ = [3, n0, _RMS,
|
|
|
219
274
|
[_t, _pSa, _q, _lMT],
|
|
220
275
|
[0, 1, 1, 1]
|
|
221
276
|
];
|
|
277
|
+
exports.SendDirectMessageRequest$ = [3, n0, _SDMR,
|
|
278
|
+
0,
|
|
279
|
+
[_cI, _t, _cT, _rTe, _con, _tim, _p, _uP, _pFI, _cD],
|
|
280
|
+
[[0, 1], [0, { [_hQ]: _t }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [2, { [_hQ]: _con }], [1, { [_hQ]: _tim }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hH]: _xamcd }]], 2
|
|
281
|
+
];
|
|
282
|
+
exports.SendDirectMessageResponse$ = [3, n0, _SDMRe,
|
|
283
|
+
0,
|
|
284
|
+
[_m, _tIr],
|
|
285
|
+
[0, 0]
|
|
286
|
+
];
|
|
287
|
+
exports.SubscriptionSummary$ = [3, n0, _SS,
|
|
288
|
+
0,
|
|
289
|
+
[_tF, _q],
|
|
290
|
+
[0, 1], 2
|
|
291
|
+
];
|
|
222
292
|
exports.UpdateThingShadowRequest$ = [3, n0, _UTSR,
|
|
223
293
|
0,
|
|
224
294
|
[_tN, _p, _sN],
|
|
@@ -234,12 +304,18 @@ var NamedShadowList = 64 | 0;
|
|
|
234
304
|
var RetainedMessageList = [1, n0, _RML,
|
|
235
305
|
0, () => exports.RetainedMessageSummary$
|
|
236
306
|
];
|
|
307
|
+
var SubscriptionList = [1, n0, _SL,
|
|
308
|
+
0, () => exports.SubscriptionSummary$
|
|
309
|
+
];
|
|
237
310
|
exports.DeleteConnection$ = [9, n0, _DC,
|
|
238
311
|
{ [_h]: ["DELETE", "/connections/{clientId}", 200] }, () => exports.DeleteConnectionRequest$, () => __Unit
|
|
239
312
|
];
|
|
240
313
|
exports.DeleteThingShadow$ = [9, n0, _DTS,
|
|
241
314
|
{ [_h]: ["DELETE", "/things/{thingName}/shadow", 200] }, () => exports.DeleteThingShadowRequest$, () => exports.DeleteThingShadowResponse$
|
|
242
315
|
];
|
|
316
|
+
exports.GetConnection$ = [9, n0, _GC,
|
|
317
|
+
{ [_h]: ["GET", "/connections/{clientId}", 200] }, () => exports.GetConnectionRequest$, () => exports.GetConnectionResponse$
|
|
318
|
+
];
|
|
243
319
|
exports.GetRetainedMessage$ = [9, n0, _GRM,
|
|
244
320
|
{ [_h]: ["GET", "/retainedMessage/{topic}", 200] }, () => exports.GetRetainedMessageRequest$, () => exports.GetRetainedMessageResponse$
|
|
245
321
|
];
|
|
@@ -252,9 +328,15 @@ exports.ListNamedShadowsForThing$ = [9, n0, _LNSFT,
|
|
|
252
328
|
exports.ListRetainedMessages$ = [9, n0, _LRM,
|
|
253
329
|
{ [_h]: ["GET", "/retainedMessage", 200] }, () => exports.ListRetainedMessagesRequest$, () => exports.ListRetainedMessagesResponse$
|
|
254
330
|
];
|
|
331
|
+
exports.ListSubscriptions$ = [9, n0, _LS,
|
|
332
|
+
{ [_h]: ["GET", "/connections/{clientId}/subscriptions", 200] }, () => exports.ListSubscriptionsRequest$, () => exports.ListSubscriptionsResponse$
|
|
333
|
+
];
|
|
255
334
|
exports.Publish$ = [9, n0, _P,
|
|
256
335
|
{ [_h]: ["POST", "/topics/{topic}", 200] }, () => exports.PublishRequest$, () => __Unit
|
|
257
336
|
];
|
|
337
|
+
exports.SendDirectMessage$ = [9, n0, _SDM,
|
|
338
|
+
{ [_h]: ["POST", "/connections/{clientId}/messages", 200] }, () => exports.SendDirectMessageRequest$, () => exports.SendDirectMessageResponse$
|
|
339
|
+
];
|
|
258
340
|
exports.UpdateThingShadow$ = [9, n0, _UTS,
|
|
259
341
|
{ [_h]: ["POST", "/things/{thingName}/shadow", 200] }, () => exports.UpdateThingShadowRequest$, () => exports.UpdateThingShadowResponse$
|
|
260
342
|
];
|
package/dist-es/IoTDataPlane.js
CHANGED
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { DeleteConnectionCommand, } from "./commands/DeleteConnectionCommand";
|
|
3
3
|
import { DeleteThingShadowCommand, } from "./commands/DeleteThingShadowCommand";
|
|
4
|
+
import { GetConnectionCommand, } from "./commands/GetConnectionCommand";
|
|
4
5
|
import { GetRetainedMessageCommand, } from "./commands/GetRetainedMessageCommand";
|
|
5
6
|
import { GetThingShadowCommand, } from "./commands/GetThingShadowCommand";
|
|
6
7
|
import { ListNamedShadowsForThingCommand, } from "./commands/ListNamedShadowsForThingCommand";
|
|
7
8
|
import { ListRetainedMessagesCommand, } from "./commands/ListRetainedMessagesCommand";
|
|
9
|
+
import { ListSubscriptionsCommand, } from "./commands/ListSubscriptionsCommand";
|
|
8
10
|
import { PublishCommand } from "./commands/PublishCommand";
|
|
11
|
+
import { SendDirectMessageCommand, } from "./commands/SendDirectMessageCommand";
|
|
9
12
|
import { UpdateThingShadowCommand, } from "./commands/UpdateThingShadowCommand";
|
|
10
13
|
import { IoTDataPlaneClient } from "./IoTDataPlaneClient";
|
|
11
14
|
import { paginateListRetainedMessages } from "./pagination/ListRetainedMessagesPaginator";
|
|
15
|
+
import { paginateListSubscriptions } from "./pagination/ListSubscriptionsPaginator";
|
|
12
16
|
const commands = {
|
|
13
17
|
DeleteConnectionCommand,
|
|
14
18
|
DeleteThingShadowCommand,
|
|
19
|
+
GetConnectionCommand,
|
|
15
20
|
GetRetainedMessageCommand,
|
|
16
21
|
GetThingShadowCommand,
|
|
17
22
|
ListNamedShadowsForThingCommand,
|
|
18
23
|
ListRetainedMessagesCommand,
|
|
24
|
+
ListSubscriptionsCommand,
|
|
19
25
|
PublishCommand,
|
|
26
|
+
SendDirectMessageCommand,
|
|
20
27
|
UpdateThingShadowCommand,
|
|
21
28
|
};
|
|
22
29
|
const paginators = {
|
|
23
30
|
paginateListRetainedMessages,
|
|
31
|
+
paginateListSubscriptions,
|
|
24
32
|
};
|
|
25
33
|
export class IoTDataPlane extends IoTDataPlaneClient {
|
|
26
34
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { GetConnection$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetConnectionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("IotMoonrakerService", "GetConnection", {})
|
|
13
|
+
.n("IoTDataPlaneClient", "GetConnectionCommand")
|
|
14
|
+
.sc(GetConnection$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { ListSubscriptions$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class ListSubscriptionsCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("IotMoonrakerService", "ListSubscriptions", {})
|
|
13
|
+
.n("IoTDataPlaneClient", "ListSubscriptionsCommand")
|
|
14
|
+
.sc(ListSubscriptions$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { SendDirectMessage$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class SendDirectMessageCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("IotMoonrakerService", "SendDirectMessage", {})
|
|
13
|
+
.n("IoTDataPlaneClient", "SendDirectMessageCommand")
|
|
14
|
+
.sc(SendDirectMessage$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from "./DeleteConnectionCommand";
|
|
2
2
|
export * from "./DeleteThingShadowCommand";
|
|
3
|
+
export * from "./GetConnectionCommand";
|
|
3
4
|
export * from "./GetRetainedMessageCommand";
|
|
4
5
|
export * from "./GetThingShadowCommand";
|
|
5
6
|
export * from "./ListNamedShadowsForThingCommand";
|
|
6
7
|
export * from "./ListRetainedMessagesCommand";
|
|
8
|
+
export * from "./ListSubscriptionsCommand";
|
|
7
9
|
export * from "./PublishCommand";
|
|
10
|
+
export * from "./SendDirectMessageCommand";
|
|
8
11
|
export * from "./UpdateThingShadowCommand";
|
package/dist-es/models/errors.js
CHANGED
|
@@ -119,6 +119,18 @@ export class UnsupportedDocumentEncodingException extends __BaseException {
|
|
|
119
119
|
Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
+
export class GatewayTimeoutException extends __BaseException {
|
|
123
|
+
name = "GatewayTimeoutException";
|
|
124
|
+
$fault = "server";
|
|
125
|
+
constructor(opts) {
|
|
126
|
+
super({
|
|
127
|
+
name: "GatewayTimeoutException",
|
|
128
|
+
$fault: "server",
|
|
129
|
+
...opts,
|
|
130
|
+
});
|
|
131
|
+
Object.setPrototypeOf(this, GatewayTimeoutException.prototype);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
122
134
|
export class RequestEntityTooLargeException extends __BaseException {
|
|
123
135
|
name = "RequestEntityTooLargeException";
|
|
124
136
|
$fault = "client";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListSubscriptionsCommand, } from "../commands/ListSubscriptionsCommand";
|
|
3
|
+
import { IoTDataPlaneClient } from "../IoTDataPlaneClient";
|
|
4
|
+
export const paginateListSubscriptions = createPaginator(IoTDataPlaneClient, ListSubscriptionsCommand, "nextToken", "nextToken", "maxResults");
|