@aws-sdk/client-iot-data-plane 3.1055.0 → 3.1057.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.
Files changed (37) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/index.js +46 -0
  3. package/dist-cjs/models/errors.js +14 -1
  4. package/dist-cjs/schemas/schemas_0.js +83 -1
  5. package/dist-es/IoTDataPlane.js +8 -0
  6. package/dist-es/commands/GetConnectionCommand.js +16 -0
  7. package/dist-es/commands/ListSubscriptionsCommand.js +16 -0
  8. package/dist-es/commands/SendDirectMessageCommand.js +16 -0
  9. package/dist-es/commands/index.js +3 -0
  10. package/dist-es/models/errors.js +12 -0
  11. package/dist-es/pagination/ListSubscriptionsPaginator.js +4 -0
  12. package/dist-es/pagination/index.js +1 -0
  13. package/dist-es/schemas/schemas_0.js +83 -1
  14. package/dist-types/IoTDataPlane.d.ts +28 -0
  15. package/dist-types/IoTDataPlaneClient.d.ts +5 -2
  16. package/dist-types/commands/DeleteConnectionCommand.d.ts +1 -0
  17. package/dist-types/commands/GetConnectionCommand.d.ts +106 -0
  18. package/dist-types/commands/ListSubscriptionsCommand.d.ts +100 -0
  19. package/dist-types/commands/SendDirectMessageCommand.d.ts +122 -0
  20. package/dist-types/commands/index.d.ts +3 -0
  21. package/dist-types/models/errors.d.ts +12 -0
  22. package/dist-types/models/models_0.d.ts +259 -2
  23. package/dist-types/pagination/ListSubscriptionsPaginator.d.ts +7 -0
  24. package/dist-types/pagination/index.d.ts +1 -0
  25. package/dist-types/schemas/schemas_0.d.ts +11 -0
  26. package/dist-types/ts3.4/IoTDataPlane.d.ts +58 -0
  27. package/dist-types/ts3.4/IoTDataPlaneClient.d.ts +18 -0
  28. package/dist-types/ts3.4/commands/GetConnectionCommand.d.ts +52 -0
  29. package/dist-types/ts3.4/commands/ListSubscriptionsCommand.d.ts +53 -0
  30. package/dist-types/ts3.4/commands/SendDirectMessageCommand.d.ts +62 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  32. package/dist-types/ts3.4/models/errors.d.ts +7 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +49 -0
  34. package/dist-types/ts3.4/pagination/ListSubscriptionsPaginator.d.ts +11 -0
  35. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  36. package/dist-types/ts3.4/schemas/schemas_0.d.ts +11 -0
  37. package/package.json +6 -6
@@ -6,16 +6,17 @@ import type { PayloadFormatIndicator } from "./enums";
6
6
  export interface DeleteConnectionRequest {
7
7
  /**
8
8
  * <p>The unique identifier of the MQTT client to disconnect. The client ID can't start with a dollar sign ($).</p>
9
+ * <p>MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.</p>
9
10
  * @public
10
11
  */
11
12
  clientId: string | undefined;
12
13
  /**
13
- * <p>Specifies whether to remove the client's session state when disconnecting. Set to <code>TRUE</code> to delete all session information, including subscriptions and queued messages. Set to <code>FALSE</code> to preserve the session state. By default, this is set to <code>FALSE</code> (preserves the session state).</p>
14
+ * <p>Specifies whether to remove the client's persistent session state when disconnecting. Set to <code>TRUE</code> to delete all session information, including subscriptions and queued messages. Set to <code>FALSE</code> to preserve the session state for <a href="https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html#mqtt-persistent-sessions">persistent sessions</a>. For clean sessions this parameter will be ignored. By default, this is set to <code>FALSE</code> (preserves the session state).</p>
14
15
  * @public
15
16
  */
16
17
  cleanSession?: boolean | undefined;
17
18
  /**
18
- * <p>Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set to <code>TRUE</code> to prevent publishing the LWT message. Set to <code>FALSE</code> to allow publishing. By default, this is set to <code>FALSE</code> (allows publishing the LWT message).</p>
19
+ * <p>Controls if Amazon Web Services IoT Core publishes the client's Last Will and Testament (LWT) message upon disconnection. Set to <code>TRUE</code> to prevent publishing the LWT message. Set to <code>FALSE</code> to ensure that LWT is published. By default, this is set to <code>FALSE</code> (LWT message is published).</p>
19
20
  * @public
20
21
  */
21
22
  preventWillMessage?: boolean | undefined;
@@ -47,6 +48,97 @@ export interface DeleteThingShadowResponse {
47
48
  */
48
49
  payload: Uint8Array | undefined;
49
50
  }
51
+ /**
52
+ * @public
53
+ */
54
+ export interface GetConnectionRequest {
55
+ /**
56
+ * <p>The unique identifier of the MQTT client to retrieve connection information. The client ID can't start with a dollar sign ($).</p>
57
+ * <p>MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.</p>
58
+ * @public
59
+ */
60
+ clientId: string | undefined;
61
+ /**
62
+ * <p>Specifies if socket information (sourcePort, targetPort, sourceIp, targetIp) should be included in the GetConnection response. Set to <code>TRUE</code> to include socket information. Set to <code>FALSE</code> to omit socket information. By default, this is set to <code>FALSE</code>. See the <a href="https://docs.aws.amazon.com/iot/latest/developerguide/mqtt.html#mqtt-client-disconnect">developer guide</a> for how to authorize this parameter.</p>
63
+ * @public
64
+ */
65
+ includeSocketInformation?: boolean | undefined;
66
+ }
67
+ /**
68
+ * @public
69
+ */
70
+ export interface GetConnectionResponse {
71
+ /**
72
+ * <p>The connection state of the client. Returns <code>true</code> if the client is currently connected, or <code>false</code> if the client is not connected.</p>
73
+ * @public
74
+ */
75
+ connected?: boolean | undefined;
76
+ /**
77
+ * <p>The name of the thing associated with the principal of the MQTT client, if applicable.</p>
78
+ * @public
79
+ */
80
+ thingName?: string | undefined;
81
+ /**
82
+ * <p>Indicates whether the client is using a clean session. Returns <code>true</code> for clean sessions or <code>false</code> for persistent sessions.</p>
83
+ * @public
84
+ */
85
+ cleanSession?: boolean | undefined;
86
+ /**
87
+ * <p>The IP address of the client that initiated the connection.</p>
88
+ * @public
89
+ */
90
+ sourceIp?: string | undefined;
91
+ /**
92
+ * <p>The client's source port.</p>
93
+ * @public
94
+ */
95
+ sourcePort?: number | undefined;
96
+ /**
97
+ * <p>The IP address of the Amazon Web Services IoT Core endpoint that the client connected to. For clients connected to VPC endpoints, this is the private IP address of the network interface the client is connected to.</p>
98
+ * @public
99
+ */
100
+ targetIp?: string | undefined;
101
+ /**
102
+ * <p>The port number of the Amazon Web Services IoT Core endpoint that the client connected to.</p>
103
+ * @public
104
+ */
105
+ targetPort?: number | undefined;
106
+ /**
107
+ * <p>The keep-alive interval in seconds that the client specified when establishing the connection.</p>
108
+ * @public
109
+ */
110
+ keepAliveDuration?: number | undefined;
111
+ /**
112
+ * <p>Unix timestamp (in milliseconds) indicating when the client connected. Present only when connected is true.</p>
113
+ * @public
114
+ */
115
+ connectedSince?: number | undefined;
116
+ /**
117
+ * <p>Unix timestamp (in milliseconds) indicating when the client disconnected. Present only when connected is false. This information is available for 30 minutes after the client disconnects.</p>
118
+ * @public
119
+ */
120
+ disconnectedSince?: number | undefined;
121
+ /**
122
+ * <p>The reason for the last disconnection, if the client is currently disconnected. See the <a href="https://docs.aws.amazon.com/iot/latest/developerguide/life-cycle-events.html#connect-disconnect">developer guide</a> for valid disconnect reasons.</p>
123
+ * @public
124
+ */
125
+ disconnectReason?: string | undefined;
126
+ /**
127
+ * <p>The session expiry interval in seconds for the MQTT client connection. This is configured by the user. This value indicates how long the session will remain active after the client disconnects.</p>
128
+ * @public
129
+ */
130
+ sessionExpiry?: number | undefined;
131
+ /**
132
+ * <p>The unique identifier of the MQTT client. This is the same client ID that was used when the client established the connection.</p>
133
+ * @public
134
+ */
135
+ clientId?: string | undefined;
136
+ /**
137
+ * <p>The ID of the VPC endpoint. Present for clients connected to IoT Core via a <a href="https://docs.aws.amazon.com/iot/latest/developerguide/IoTCore-VPC.html">VPC endpoint</a>. </p>
138
+ * @public
139
+ */
140
+ vpcEndpointId?: string | undefined;
141
+ }
50
142
  /**
51
143
  * <p>The input for the GetRetainedMessage operation.</p>
52
144
  * @public
@@ -221,6 +313,60 @@ export interface ListRetainedMessagesResponse {
221
313
  */
222
314
  nextToken?: string | undefined;
223
315
  }
316
+ /**
317
+ * @public
318
+ */
319
+ export interface ListSubscriptionsRequest {
320
+ /**
321
+ * <p>The unique identifier of the MQTT client to list subscriptions for. The client ID can't start with a dollar sign ($).</p>
322
+ * <p>MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.</p>
323
+ * @public
324
+ */
325
+ clientId: string | undefined;
326
+ /**
327
+ * <p>To retrieve the next set of results, the <code>nextToken</code>
328
+ * value from a previous response; otherwise <b>null</b> to receive
329
+ * the first set of results.</p>
330
+ * @public
331
+ */
332
+ nextToken?: string | undefined;
333
+ /**
334
+ * <p>The maximum number of subscriptions to return in a single request. By default, this is set to 20.</p>
335
+ * @public
336
+ */
337
+ maxResults?: number | undefined;
338
+ }
339
+ /**
340
+ * <p>Contains information about a subscription for an MQTT client, including the topic filter and Quality of Service (QoS) level.</p>
341
+ * @public
342
+ */
343
+ export interface SubscriptionSummary {
344
+ /**
345
+ * <p>The topic filter pattern that the client is subscribed to. May include MQTT wildcards such as + (single-level) and # (multi-level).</p>
346
+ * @public
347
+ */
348
+ topicFilter: string | undefined;
349
+ /**
350
+ * <p>The Quality of Service (QoS) level for the subscription. Valid values are 0 (at most once) and 1 (at least once).</p>
351
+ * @public
352
+ */
353
+ qos: number | undefined;
354
+ }
355
+ /**
356
+ * @public
357
+ */
358
+ export interface ListSubscriptionsResponse {
359
+ /**
360
+ * <p>A list of topic filters and their associated Quality of Service (QoS) levels that the client is subscribed to.</p>
361
+ * @public
362
+ */
363
+ subscriptions?: SubscriptionSummary[] | undefined;
364
+ /**
365
+ * <p>The token to use to get the next set of results, or <b>null</b> if there are no additional results.</p>
366
+ * @public
367
+ */
368
+ nextToken?: string | undefined;
369
+ }
224
370
  /**
225
371
  * <p>The input for the Publish operation.</p>
226
372
  * @public
@@ -299,6 +445,117 @@ export interface PublishRequest {
299
445
  */
300
446
  messageExpiry?: number | undefined;
301
447
  }
448
+ /**
449
+ * @public
450
+ */
451
+ export interface SendDirectMessageRequest {
452
+ /**
453
+ * <p>The unique identifier of the MQTT client to send the message to.</p>
454
+ * <p>Client IDs must not exceed 128 characters and can't start with a dollar sign ($).
455
+ * MQTT client IDs must be URL encoded (percent-encoded) when they contain characters that are
456
+ * not valid in HTTP requests, such as spaces, forward slashes (/), and UTF-8 characters.
457
+ * For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and
458
+ * protocol limits and quotas</a>.</p>
459
+ * @public
460
+ */
461
+ clientId: string | undefined;
462
+ /**
463
+ * <p>The topic of the outbound MQTT Publish message to the receiving client.
464
+ * For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and
465
+ * protocol limits and quotas</a>.</p>
466
+ * @public
467
+ */
468
+ topic: string | undefined;
469
+ /**
470
+ * <p>The MQTT5 content type property forwarded to the receiving client
471
+ * (for example, <code>application/json</code>).</p>
472
+ * @public
473
+ */
474
+ contentType?: string | undefined;
475
+ /**
476
+ * <p>A UTF-8 encoded string that's used as the topic name for a response message. The response
477
+ * topic describes the topic which the receiver should publish to as part of the
478
+ * request-response flow. The topic must not contain wildcard characters.
479
+ * For more information, see <a href="https://docs.aws.amazon.com/general/latest/gr/iot-core.html#message-broker-limits">Amazon Web Services IoT Core message broker and
480
+ * protocol limits and quotas</a>.</p>
481
+ * @public
482
+ */
483
+ responseTopic?: string | undefined;
484
+ /**
485
+ * <p>A Boolean value that specifies whether to wait for delivery confirmation from the receiving client.</p>
486
+ * <p>When set to <code>true</code>, the API delivers the message at QoS 1 and waits for
487
+ * the client to send a delivery confirmation (PUBACK) before returning a successful response. If
488
+ * delivery confirmation is not received within the specified <code>timeout</code> period,
489
+ * the API returns HTTP 504.</p>
490
+ * <p>When set to <code>false</code>, the API delivers the message at QoS 0 and returns
491
+ * after Amazon Web Services IoT Core attempts to deliver the message.</p>
492
+ * <p>Valid values: <code>true</code> | <code>false</code>
493
+ * </p>
494
+ * <p>Default value: <code>false</code>
495
+ * </p>
496
+ * @public
497
+ */
498
+ confirmation?: boolean | undefined;
499
+ /**
500
+ * <p>An integer that represents the maximum time, in seconds, to wait for a delivery confirmation (PUBACK) from the
501
+ * receiving client after the message has been delivered. This parameter is only used when
502
+ * <code>confirmation</code> is set to <code>true</code>. If <code>confirmation</code>
503
+ * is <code>false</code>, this parameter is ignored.</p>
504
+ * <p>The total API response time may be higher than this value due to internal processing.
505
+ * Set your HTTP client timeout to a value greater than this parameter.</p>
506
+ * <p>Valid range: 1 to 15 seconds.</p>
507
+ * <p>Default value: <code>5</code> seconds.</p>
508
+ * @public
509
+ */
510
+ timeout?: number | undefined;
511
+ /**
512
+ * <p>The message body. MQTT accepts text, binary, and empty (null) message payloads.</p>
513
+ * @public
514
+ */
515
+ payload?: Uint8Array | undefined;
516
+ /**
517
+ * <p>A JSON string that contains an array of JSON objects. If you don't use Amazon Web Services SDK or CLI,
518
+ * you must encode the JSON string to base64 format before adding it to the HTTP header.
519
+ * <code>userProperties</code> is an HTTP header value in the API.</p>
520
+ * <p>For MQTT 3.1.1 clients, user properties are silently dropped.</p>
521
+ * <p>The following example <code>userProperties</code> parameter is a JSON string which
522
+ * represents two User Properties. Note that it needs to be base64-encoded:</p>
523
+ * <p>
524
+ * <code>[\{"deviceName": "alpha"\}, \{"deviceCnt": "45"\}]</code>
525
+ * </p>
526
+ * @public
527
+ */
528
+ userProperties?: __AutomaticJsonStringConversion | string | undefined;
529
+ /**
530
+ * <p>An <code>Enum</code> string value that indicates whether the payload is formatted as
531
+ * UTF-8. <code>payloadFormatIndicator</code> is an HTTP header value in the API.</p>
532
+ * @public
533
+ */
534
+ payloadFormatIndicator?: PayloadFormatIndicator | undefined;
535
+ /**
536
+ * <p>The base64-encoded binary data used by the sender of the request message to identify which
537
+ * request the response message is for when it's received. <code>correlationData</code> is an
538
+ * HTTP header value in the API.</p>
539
+ * @public
540
+ */
541
+ correlationData?: string | undefined;
542
+ }
543
+ /**
544
+ * <p>The output from the SendDirectMessage operation.</p>
545
+ * @public
546
+ */
547
+ export interface SendDirectMessageResponse {
548
+ /**
549
+ * <p>The status message indicating the result of the operation.</p>
550
+ * @public
551
+ */
552
+ message?: string | undefined;
553
+ /**
554
+ * <p>A unique identifier for the request. Include this value when contacting Amazon Web Services Support for troubleshooting.</p>
555
+ * @public
556
+ */
557
+ traceId?: string | undefined;
558
+ }
302
559
  /**
303
560
  * <p>The input for the UpdateThingShadow operation.</p>
304
561
  * @public
@@ -0,0 +1,7 @@
1
+ import type { Paginator } from "@smithy/types";
2
+ import { ListSubscriptionsCommandInput, ListSubscriptionsCommandOutput } from "../commands/ListSubscriptionsCommand";
3
+ import type { IoTDataPlanePaginationConfiguration } from "./Interfaces";
4
+ /**
5
+ * @public
6
+ */
7
+ export declare const paginateListSubscriptions: (config: IoTDataPlanePaginationConfiguration, input: ListSubscriptionsCommandInput, ...rest: any[]) => Paginator<ListSubscriptionsCommandOutput>;
@@ -1,2 +1,3 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListRetainedMessagesPaginator";
3
+ export * from "./ListSubscriptionsPaginator";
@@ -3,6 +3,7 @@ import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema }
3
3
  export declare var IoTDataPlaneServiceException$: StaticErrorSchema;
4
4
  export declare var ConflictException$: StaticErrorSchema;
5
5
  export declare var ForbiddenException$: StaticErrorSchema;
6
+ export declare var GatewayTimeoutException$: StaticErrorSchema;
6
7
  export declare var InternalFailureException$: StaticErrorSchema;
7
8
  export declare var InvalidRequestException$: StaticErrorSchema;
8
9
  export declare var MethodNotAllowedException$: StaticErrorSchema;
@@ -21,6 +22,8 @@ export declare const errorTypeRegistries: TypeRegistry[];
21
22
  export declare var DeleteConnectionRequest$: StaticStructureSchema;
22
23
  export declare var DeleteThingShadowRequest$: StaticStructureSchema;
23
24
  export declare var DeleteThingShadowResponse$: StaticStructureSchema;
25
+ export declare var GetConnectionRequest$: StaticStructureSchema;
26
+ export declare var GetConnectionResponse$: StaticStructureSchema;
24
27
  export declare var GetRetainedMessageRequest$: StaticStructureSchema;
25
28
  export declare var GetRetainedMessageResponse$: StaticStructureSchema;
26
29
  export declare var GetThingShadowRequest$: StaticStructureSchema;
@@ -29,15 +32,23 @@ export declare var ListNamedShadowsForThingRequest$: StaticStructureSchema;
29
32
  export declare var ListNamedShadowsForThingResponse$: StaticStructureSchema;
30
33
  export declare var ListRetainedMessagesRequest$: StaticStructureSchema;
31
34
  export declare var ListRetainedMessagesResponse$: StaticStructureSchema;
35
+ export declare var ListSubscriptionsRequest$: StaticStructureSchema;
36
+ export declare var ListSubscriptionsResponse$: StaticStructureSchema;
32
37
  export declare var PublishRequest$: StaticStructureSchema;
33
38
  export declare var RetainedMessageSummary$: StaticStructureSchema;
39
+ export declare var SendDirectMessageRequest$: StaticStructureSchema;
40
+ export declare var SendDirectMessageResponse$: StaticStructureSchema;
41
+ export declare var SubscriptionSummary$: StaticStructureSchema;
34
42
  export declare var UpdateThingShadowRequest$: StaticStructureSchema;
35
43
  export declare var UpdateThingShadowResponse$: StaticStructureSchema;
36
44
  export declare var DeleteConnection$: StaticOperationSchema;
37
45
  export declare var DeleteThingShadow$: StaticOperationSchema;
46
+ export declare var GetConnection$: StaticOperationSchema;
38
47
  export declare var GetRetainedMessage$: StaticOperationSchema;
39
48
  export declare var GetThingShadow$: StaticOperationSchema;
40
49
  export declare var ListNamedShadowsForThing$: StaticOperationSchema;
41
50
  export declare var ListRetainedMessages$: StaticOperationSchema;
51
+ export declare var ListSubscriptions$: StaticOperationSchema;
42
52
  export declare var Publish$: StaticOperationSchema;
53
+ export declare var SendDirectMessage$: StaticOperationSchema;
43
54
  export declare var UpdateThingShadow$: StaticOperationSchema;
@@ -11,6 +11,10 @@ import {
11
11
  DeleteThingShadowCommandInput,
12
12
  DeleteThingShadowCommandOutput,
13
13
  } from "./commands/DeleteThingShadowCommand";
14
+ import {
15
+ GetConnectionCommandInput,
16
+ GetConnectionCommandOutput,
17
+ } from "./commands/GetConnectionCommand";
14
18
  import {
15
19
  GetRetainedMessageCommandInput,
16
20
  GetRetainedMessageCommandOutput,
@@ -27,10 +31,18 @@ import {
27
31
  ListRetainedMessagesCommandInput,
28
32
  ListRetainedMessagesCommandOutput,
29
33
  } from "./commands/ListRetainedMessagesCommand";
34
+ import {
35
+ ListSubscriptionsCommandInput,
36
+ ListSubscriptionsCommandOutput,
37
+ } from "./commands/ListSubscriptionsCommand";
30
38
  import {
31
39
  PublishCommandInput,
32
40
  PublishCommandOutput,
33
41
  } from "./commands/PublishCommand";
42
+ import {
43
+ SendDirectMessageCommandInput,
44
+ SendDirectMessageCommandOutput,
45
+ } from "./commands/SendDirectMessageCommand";
34
46
  import {
35
47
  UpdateThingShadowCommandInput,
36
48
  UpdateThingShadowCommandOutput,
@@ -63,6 +75,19 @@ export interface IoTDataPlane {
63
75
  options: __HttpHandlerOptions,
64
76
  cb: (err: any, data?: DeleteThingShadowCommandOutput) => void
65
77
  ): void;
78
+ getConnection(
79
+ args: GetConnectionCommandInput,
80
+ options?: __HttpHandlerOptions
81
+ ): Promise<GetConnectionCommandOutput>;
82
+ getConnection(
83
+ args: GetConnectionCommandInput,
84
+ cb: (err: any, data?: GetConnectionCommandOutput) => void
85
+ ): void;
86
+ getConnection(
87
+ args: GetConnectionCommandInput,
88
+ options: __HttpHandlerOptions,
89
+ cb: (err: any, data?: GetConnectionCommandOutput) => void
90
+ ): void;
66
91
  getRetainedMessage(
67
92
  args: GetRetainedMessageCommandInput,
68
93
  options?: __HttpHandlerOptions
@@ -116,6 +141,19 @@ export interface IoTDataPlane {
116
141
  options: __HttpHandlerOptions,
117
142
  cb: (err: any, data?: ListRetainedMessagesCommandOutput) => void
118
143
  ): void;
144
+ listSubscriptions(
145
+ args: ListSubscriptionsCommandInput,
146
+ options?: __HttpHandlerOptions
147
+ ): Promise<ListSubscriptionsCommandOutput>;
148
+ listSubscriptions(
149
+ args: ListSubscriptionsCommandInput,
150
+ cb: (err: any, data?: ListSubscriptionsCommandOutput) => void
151
+ ): void;
152
+ listSubscriptions(
153
+ args: ListSubscriptionsCommandInput,
154
+ options: __HttpHandlerOptions,
155
+ cb: (err: any, data?: ListSubscriptionsCommandOutput) => void
156
+ ): void;
119
157
  publish(
120
158
  args: PublishCommandInput,
121
159
  options?: __HttpHandlerOptions
@@ -129,6 +167,19 @@ export interface IoTDataPlane {
129
167
  options: __HttpHandlerOptions,
130
168
  cb: (err: any, data?: PublishCommandOutput) => void
131
169
  ): void;
170
+ sendDirectMessage(
171
+ args: SendDirectMessageCommandInput,
172
+ options?: __HttpHandlerOptions
173
+ ): Promise<SendDirectMessageCommandOutput>;
174
+ sendDirectMessage(
175
+ args: SendDirectMessageCommandInput,
176
+ cb: (err: any, data?: SendDirectMessageCommandOutput) => void
177
+ ): void;
178
+ sendDirectMessage(
179
+ args: SendDirectMessageCommandInput,
180
+ options: __HttpHandlerOptions,
181
+ cb: (err: any, data?: SendDirectMessageCommandOutput) => void
182
+ ): void;
132
183
  updateThingShadow(
133
184
  args: UpdateThingShadowCommandInput,
134
185
  options?: __HttpHandlerOptions
@@ -149,6 +200,13 @@ export interface IoTDataPlane {
149
200
  Exclude<keyof PaginationConfiguration, "client">
150
201
  >
151
202
  ): Paginator<ListRetainedMessagesCommandOutput>;
203
+ paginateListSubscriptions(
204
+ args: ListSubscriptionsCommandInput,
205
+ paginationConfig?: Pick<
206
+ PaginationConfiguration,
207
+ Exclude<keyof PaginationConfiguration, "client">
208
+ >
209
+ ): Paginator<ListSubscriptionsCommandOutput>;
152
210
  }
153
211
  export declare class IoTDataPlane
154
212
  extends IoTDataPlaneClient
@@ -44,6 +44,10 @@ import {
44
44
  DeleteThingShadowCommandInput,
45
45
  DeleteThingShadowCommandOutput,
46
46
  } from "./commands/DeleteThingShadowCommand";
47
+ import {
48
+ GetConnectionCommandInput,
49
+ GetConnectionCommandOutput,
50
+ } from "./commands/GetConnectionCommand";
47
51
  import {
48
52
  GetRetainedMessageCommandInput,
49
53
  GetRetainedMessageCommandOutput,
@@ -60,10 +64,18 @@ import {
60
64
  ListRetainedMessagesCommandInput,
61
65
  ListRetainedMessagesCommandOutput,
62
66
  } from "./commands/ListRetainedMessagesCommand";
67
+ import {
68
+ ListSubscriptionsCommandInput,
69
+ ListSubscriptionsCommandOutput,
70
+ } from "./commands/ListSubscriptionsCommand";
63
71
  import {
64
72
  PublishCommandInput,
65
73
  PublishCommandOutput,
66
74
  } from "./commands/PublishCommand";
75
+ import {
76
+ SendDirectMessageCommandInput,
77
+ SendDirectMessageCommandOutput,
78
+ } from "./commands/SendDirectMessageCommand";
67
79
  import {
68
80
  UpdateThingShadowCommandInput,
69
81
  UpdateThingShadowCommandOutput,
@@ -78,20 +90,26 @@ export { __Client };
78
90
  export type ServiceInputTypes =
79
91
  | DeleteConnectionCommandInput
80
92
  | DeleteThingShadowCommandInput
93
+ | GetConnectionCommandInput
81
94
  | GetRetainedMessageCommandInput
82
95
  | GetThingShadowCommandInput
83
96
  | ListNamedShadowsForThingCommandInput
84
97
  | ListRetainedMessagesCommandInput
98
+ | ListSubscriptionsCommandInput
85
99
  | PublishCommandInput
100
+ | SendDirectMessageCommandInput
86
101
  | UpdateThingShadowCommandInput;
87
102
  export type ServiceOutputTypes =
88
103
  | DeleteConnectionCommandOutput
89
104
  | DeleteThingShadowCommandOutput
105
+ | GetConnectionCommandOutput
90
106
  | GetRetainedMessageCommandOutput
91
107
  | GetThingShadowCommandOutput
92
108
  | ListNamedShadowsForThingCommandOutput
93
109
  | ListRetainedMessagesCommandOutput
110
+ | ListSubscriptionsCommandOutput
94
111
  | PublishCommandOutput
112
+ | SendDirectMessageCommandOutput
95
113
  | UpdateThingShadowCommandOutput;
96
114
  export interface ClientDefaults
97
115
  extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
@@ -0,0 +1,52 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ IoTDataPlaneClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../IoTDataPlaneClient";
8
+ import {
9
+ GetConnectionRequest,
10
+ GetConnectionResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface GetConnectionCommandInput extends GetConnectionRequest {}
15
+ export interface GetConnectionCommandOutput
16
+ extends GetConnectionResponse,
17
+ __MetadataBearer {}
18
+ declare const GetConnectionCommand_base: {
19
+ new (
20
+ input: GetConnectionCommandInput
21
+ ): import("@smithy/core/client").CommandImpl<
22
+ GetConnectionCommandInput,
23
+ GetConnectionCommandOutput,
24
+ IoTDataPlaneClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ new (
29
+ input: GetConnectionCommandInput
30
+ ): import("@smithy/core/client").CommandImpl<
31
+ GetConnectionCommandInput,
32
+ GetConnectionCommandOutput,
33
+ IoTDataPlaneClientResolvedConfig,
34
+ ServiceInputTypes,
35
+ ServiceOutputTypes
36
+ >;
37
+ getEndpointParameterInstructions(): {
38
+ [x: string]: unknown;
39
+ };
40
+ };
41
+ export declare class GetConnectionCommand extends GetConnectionCommand_base {
42
+ protected static __types: {
43
+ api: {
44
+ input: GetConnectionRequest;
45
+ output: GetConnectionResponse;
46
+ };
47
+ sdk: {
48
+ input: GetConnectionCommandInput;
49
+ output: GetConnectionCommandOutput;
50
+ };
51
+ };
52
+ }
@@ -0,0 +1,53 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ IoTDataPlaneClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../IoTDataPlaneClient";
8
+ import {
9
+ ListSubscriptionsRequest,
10
+ ListSubscriptionsResponse,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface ListSubscriptionsCommandInput
15
+ extends ListSubscriptionsRequest {}
16
+ export interface ListSubscriptionsCommandOutput
17
+ extends ListSubscriptionsResponse,
18
+ __MetadataBearer {}
19
+ declare const ListSubscriptionsCommand_base: {
20
+ new (
21
+ input: ListSubscriptionsCommandInput
22
+ ): import("@smithy/core/client").CommandImpl<
23
+ ListSubscriptionsCommandInput,
24
+ ListSubscriptionsCommandOutput,
25
+ IoTDataPlaneClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: ListSubscriptionsCommandInput
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ ListSubscriptionsCommandInput,
33
+ ListSubscriptionsCommandOutput,
34
+ IoTDataPlaneClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): {
39
+ [x: string]: unknown;
40
+ };
41
+ };
42
+ export declare class ListSubscriptionsCommand extends ListSubscriptionsCommand_base {
43
+ protected static __types: {
44
+ api: {
45
+ input: ListSubscriptionsRequest;
46
+ output: ListSubscriptionsResponse;
47
+ };
48
+ sdk: {
49
+ input: ListSubscriptionsCommandInput;
50
+ output: ListSubscriptionsCommandOutput;
51
+ };
52
+ };
53
+ }
@@ -0,0 +1,62 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import {
3
+ BlobPayloadInputTypes,
4
+ MetadataBearer as __MetadataBearer,
5
+ } from "@smithy/types";
6
+ import {
7
+ IoTDataPlaneClientResolvedConfig,
8
+ ServiceInputTypes,
9
+ ServiceOutputTypes,
10
+ } from "../IoTDataPlaneClient";
11
+ import {
12
+ SendDirectMessageRequest,
13
+ SendDirectMessageResponse,
14
+ } from "../models/models_0";
15
+ export { __MetadataBearer };
16
+ export { $Command };
17
+ export type SendDirectMessageCommandInputType = Pick<
18
+ SendDirectMessageRequest,
19
+ Exclude<keyof SendDirectMessageRequest, "payload">
20
+ > & {
21
+ payload?: BlobPayloadInputTypes;
22
+ };
23
+ export interface SendDirectMessageCommandInput
24
+ extends SendDirectMessageCommandInputType {}
25
+ export interface SendDirectMessageCommandOutput
26
+ extends SendDirectMessageResponse,
27
+ __MetadataBearer {}
28
+ declare const SendDirectMessageCommand_base: {
29
+ new (
30
+ input: SendDirectMessageCommandInput
31
+ ): import("@smithy/core/client").CommandImpl<
32
+ SendDirectMessageCommandInput,
33
+ SendDirectMessageCommandOutput,
34
+ IoTDataPlaneClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ new (
39
+ input: SendDirectMessageCommandInput
40
+ ): import("@smithy/core/client").CommandImpl<
41
+ SendDirectMessageCommandInput,
42
+ SendDirectMessageCommandOutput,
43
+ IoTDataPlaneClientResolvedConfig,
44
+ ServiceInputTypes,
45
+ ServiceOutputTypes
46
+ >;
47
+ getEndpointParameterInstructions(): {
48
+ [x: string]: unknown;
49
+ };
50
+ };
51
+ export declare class SendDirectMessageCommand extends SendDirectMessageCommand_base {
52
+ protected static __types: {
53
+ api: {
54
+ input: SendDirectMessageRequest;
55
+ output: SendDirectMessageResponse;
56
+ };
57
+ sdk: {
58
+ input: SendDirectMessageCommandInput;
59
+ output: SendDirectMessageCommandOutput;
60
+ };
61
+ };
62
+ }