1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class IotData extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: IotData.Types.ClientConfiguration)
|
13 | config: Config & IotData.Types.ClientConfiguration;
|
14 | /**
|
15 | * Deletes the thing shadow for the specified thing. For more information, see DeleteThingShadow in the AWS IoT Developer Guide.
|
16 | */
|
17 | deleteThingShadow(params: IotData.Types.DeleteThingShadowRequest, callback?: (err: AWSError, data: IotData.Types.DeleteThingShadowResponse) => void): Request<IotData.Types.DeleteThingShadowResponse, AWSError>;
|
18 | /**
|
19 | * Deletes the thing shadow for the specified thing. For more information, see DeleteThingShadow in the AWS IoT Developer Guide.
|
20 | */
|
21 | deleteThingShadow(callback?: (err: AWSError, data: IotData.Types.DeleteThingShadowResponse) => void): Request<IotData.Types.DeleteThingShadowResponse, AWSError>;
|
22 | /**
|
23 | * Gets the thing shadow for the specified thing. For more information, see GetThingShadow in the AWS IoT Developer Guide.
|
24 | */
|
25 | getThingShadow(params: IotData.Types.GetThingShadowRequest, callback?: (err: AWSError, data: IotData.Types.GetThingShadowResponse) => void): Request<IotData.Types.GetThingShadowResponse, AWSError>;
|
26 | /**
|
27 | * Gets the thing shadow for the specified thing. For more information, see GetThingShadow in the AWS IoT Developer Guide.
|
28 | */
|
29 | getThingShadow(callback?: (err: AWSError, data: IotData.Types.GetThingShadowResponse) => void): Request<IotData.Types.GetThingShadowResponse, AWSError>;
|
30 | /**
|
31 | * Publishes state information. For more information, see HTTP Protocol in the AWS IoT Developer Guide.
|
32 | */
|
33 | publish(params: IotData.Types.PublishRequest, callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
34 | |
35 |
|
36 |
|
37 | publish(callback?: (err: AWSError, data: {}) => void): Request<{}, AWSError>;
|
38 | |
39 |
|
40 |
|
41 | updateThingShadow(params: IotData.Types.UpdateThingShadowRequest, callback?: (err: AWSError, data: IotData.Types.UpdateThingShadowResponse) => void): Request<IotData.Types.UpdateThingShadowResponse, AWSError>;
|
42 | |
43 |
|
44 |
|
45 | updateThingShadow(callback?: (err: AWSError, data: IotData.Types.UpdateThingShadowResponse) => void): Request<IotData.Types.UpdateThingShadowResponse, AWSError>;
|
46 | }
|
47 | declare namespace IotData {
|
48 | export interface DeleteThingShadowRequest {
|
49 | |
50 |
|
51 |
|
52 | thingName: ThingName;
|
53 | }
|
54 | export interface DeleteThingShadowResponse {
|
55 | |
56 |
|
57 |
|
58 | payload: JsonDocument;
|
59 | }
|
60 | export interface GetThingShadowRequest {
|
61 | |
62 |
|
63 |
|
64 | thingName: ThingName;
|
65 | }
|
66 | export interface GetThingShadowResponse {
|
67 | |
68 |
|
69 |
|
70 | payload?: JsonDocument;
|
71 | }
|
72 | export type JsonDocument = Buffer|Uint8Array|Blob|string;
|
73 | export type Payload = Buffer|Uint8Array|Blob|string;
|
74 | export interface PublishRequest {
|
75 | |
76 |
|
77 |
|
78 | topic: Topic;
|
79 | |
80 |
|
81 |
|
82 | qos?: Qos;
|
83 | |
84 |
|
85 |
|
86 | payload?: Payload;
|
87 | }
|
88 | export type Qos = number;
|
89 | export type ThingName = string;
|
90 | export type Topic = string;
|
91 | export interface UpdateThingShadowRequest {
|
92 | |
93 |
|
94 |
|
95 | thingName: ThingName;
|
96 | |
97 |
|
98 |
|
99 | payload: JsonDocument;
|
100 | }
|
101 | export interface UpdateThingShadowResponse {
|
102 | |
103 |
|
104 |
|
105 | payload?: JsonDocument;
|
106 | }
|
107 | |
108 |
|
109 |
|
110 | export type apiVersion = "2015-05-28"|"latest"|string;
|
111 | export interface ClientApiVersions {
|
112 | |
113 |
|
114 |
|
115 | apiVersion?: apiVersion;
|
116 | }
|
117 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
118 | |
119 |
|
120 |
|
121 | export import Types = IotData;
|
122 | }
|
123 | export = IotData;
|