@aws-sdk/client-iot-data-plane 3.1075.0 → 3.1077.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 +760 -15
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +8 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -78
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/IoTDataPlaneServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -145
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -374
package/dist-cjs/index.js
CHANGED
|
@@ -1,21 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
1
|
+
const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
|
|
3
2
|
const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
|
|
4
|
-
const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
3
|
+
const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
|
|
5
4
|
exports.$Command = Command;
|
|
6
5
|
exports.__Client = Client;
|
|
7
|
-
const { resolveRegionConfig } = require("@smithy/core/config");
|
|
8
|
-
const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
9
|
-
const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
10
|
-
const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
11
|
-
const { getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
12
|
-
const {
|
|
13
|
-
const {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const {
|
|
18
|
-
|
|
6
|
+
const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
|
|
7
|
+
const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
|
|
8
|
+
const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
|
|
9
|
+
const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
|
|
10
|
+
const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
|
|
11
|
+
const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
|
|
12
|
+
const { defaultProvider } = require("@aws-sdk/credential-provider-node");
|
|
13
|
+
const { toUtf8, fromUtf8, toBase64, fromBase64, calculateBodyLength } = require("@smithy/core/serde");
|
|
14
|
+
const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
|
|
15
|
+
const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
|
|
16
|
+
const { Sha256 } = require("@smithy/core/checksum");
|
|
17
|
+
|
|
18
|
+
const defaultIoTDataPlaneHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
19
|
+
return {
|
|
20
|
+
operation: getSmithyContext(context).operation,
|
|
21
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
22
|
+
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
23
|
+
})(),
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
function createAwsAuthSigv4HttpAuthOption(authParameters) {
|
|
27
|
+
return {
|
|
28
|
+
schemeId: "aws.auth#sigv4",
|
|
29
|
+
signingProperties: {
|
|
30
|
+
name: "iotdata",
|
|
31
|
+
region: authParameters.region,
|
|
32
|
+
},
|
|
33
|
+
propertiesExtractor: (config, context) => ({
|
|
34
|
+
signingProperties: {
|
|
35
|
+
config,
|
|
36
|
+
context,
|
|
37
|
+
},
|
|
38
|
+
}),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
const defaultIoTDataPlaneHttpAuthSchemeProvider = (authParameters) => {
|
|
42
|
+
const options = [];
|
|
43
|
+
switch (authParameters.operation) {
|
|
44
|
+
default: {
|
|
45
|
+
options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return options;
|
|
49
|
+
};
|
|
50
|
+
const resolveHttpAuthSchemeConfig = (config) => {
|
|
51
|
+
const config_0 = resolveAwsSdkSigV4Config(config);
|
|
52
|
+
return Object.assign(config_0, {
|
|
53
|
+
authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
|
|
54
|
+
});
|
|
55
|
+
};
|
|
19
56
|
|
|
20
57
|
const resolveClientEndpointParameters = (options) => {
|
|
21
58
|
return Object.assign(options, {
|
|
@@ -31,6 +68,654 @@ const commonParams = {
|
|
|
31
68
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
32
69
|
};
|
|
33
70
|
|
|
71
|
+
var version = "3.1076.0";
|
|
72
|
+
var packageInfo = {
|
|
73
|
+
version: version};
|
|
74
|
+
|
|
75
|
+
const n = "ref";
|
|
76
|
+
const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = "stringEquals", h = { [n]: "Endpoint" }, i = { [n]: d }, j = { [n]: "Region" }, k = { "fn": f, "argv": [i, "name"] }, l = {}, m = [j];
|
|
77
|
+
const _data = {
|
|
78
|
+
conditions: [
|
|
79
|
+
[c, [h]],
|
|
80
|
+
[c, m],
|
|
81
|
+
["aws.partition", m, d],
|
|
82
|
+
[e, [{ [n]: "UseFIPS" }, b]],
|
|
83
|
+
[e, [{ [n]: "UseDualStack" }, b]],
|
|
84
|
+
[e, [{ fn: f, argv: [i, "supportsDualStack"] }, b]],
|
|
85
|
+
[e, [{ fn: f, argv: [i, "supportsFIPS"] }, b]],
|
|
86
|
+
[g, [j, "ca-central-1"]],
|
|
87
|
+
[g, [j, "cn-north-1"]],
|
|
88
|
+
[g, [j, "us-east-1"]],
|
|
89
|
+
[g, [k, "aws"]],
|
|
90
|
+
[g, [k, "aws-cn"]],
|
|
91
|
+
[g, [k, "aws-us-gov"]],
|
|
92
|
+
[g, [j, "us-east-2"]],
|
|
93
|
+
[g, [j, "us-west-1"]],
|
|
94
|
+
[g, [j, "us-west-2"]],
|
|
95
|
+
[g, [j, "us-gov-east-1"]],
|
|
96
|
+
[g, [j, "us-gov-west-1"]]
|
|
97
|
+
],
|
|
98
|
+
results: [
|
|
99
|
+
[a],
|
|
100
|
+
[a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
|
|
101
|
+
[a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
|
|
102
|
+
[h, l],
|
|
103
|
+
["https://data-ats.iot-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", l],
|
|
104
|
+
[a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
|
|
105
|
+
["https://data.iot-fips.ca-central-1.amazonaws.com", l],
|
|
106
|
+
["https://data.iot-fips.us-east-1.amazonaws.com", l],
|
|
107
|
+
["https://data.iot-fips.us-east-2.amazonaws.com", l],
|
|
108
|
+
["https://data.iot-fips.us-west-1.amazonaws.com", l],
|
|
109
|
+
["https://data.iot-fips.us-west-2.amazonaws.com", l],
|
|
110
|
+
["https://data.iot-fips.us-gov-east-1.amazonaws.com", l],
|
|
111
|
+
["https://data.iot-fips.us-gov-west-1.amazonaws.com", l],
|
|
112
|
+
["https://data-ats.iot-fips.{Region}.{PartitionResult#dnsSuffix}", l],
|
|
113
|
+
[a, "FIPS is enabled but this partition does not support FIPS"],
|
|
114
|
+
["https://data-ats.iot.{Region}.{PartitionResult#dualStackDnsSuffix}", l],
|
|
115
|
+
[a, "DualStack is enabled but this partition does not support DualStack"],
|
|
116
|
+
["https://data.ats.iot.cn-north-1.amazonaws.com.cn", l],
|
|
117
|
+
["https://data-ats.iot.{Region}.amazonaws.com", l],
|
|
118
|
+
["https://data-ats.iot.{Region}.amazonaws.com.cn", l],
|
|
119
|
+
["https://data-ats.iot.{Region}.{PartitionResult#dnsSuffix}", l],
|
|
120
|
+
[a, "Invalid Configuration: Missing Region"]
|
|
121
|
+
]
|
|
122
|
+
};
|
|
123
|
+
const root = 2;
|
|
124
|
+
const r = 100_000_000;
|
|
125
|
+
const nodes = new Int32Array([
|
|
126
|
+
-1, 1, -1,
|
|
127
|
+
0, 23, 3,
|
|
128
|
+
1, 4, r + 21,
|
|
129
|
+
2, 5, r + 21,
|
|
130
|
+
3, 12, 6,
|
|
131
|
+
4, 11, 7,
|
|
132
|
+
8, r + 17, 8,
|
|
133
|
+
10, r + 18, 9,
|
|
134
|
+
11, r + 19, 10,
|
|
135
|
+
12, r + 18, r + 20,
|
|
136
|
+
5, r + 15, r + 16,
|
|
137
|
+
4, 21, 13,
|
|
138
|
+
6, 14, r + 14,
|
|
139
|
+
7, r + 6, 15,
|
|
140
|
+
9, r + 7, 16,
|
|
141
|
+
13, r + 8, 17,
|
|
142
|
+
14, r + 9, 18,
|
|
143
|
+
15, r + 10, 19,
|
|
144
|
+
16, r + 11, 20,
|
|
145
|
+
17, r + 12, r + 13,
|
|
146
|
+
5, 22, r + 5,
|
|
147
|
+
6, r + 4, r + 5,
|
|
148
|
+
3, r + 1, 24,
|
|
149
|
+
4, r + 2, r + 3,
|
|
150
|
+
]);
|
|
151
|
+
const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
|
|
152
|
+
|
|
153
|
+
const cache = new EndpointCache({
|
|
154
|
+
size: 50,
|
|
155
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
156
|
+
});
|
|
157
|
+
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
158
|
+
return cache.get(endpointParams, () => decideEndpoint(bdd, {
|
|
159
|
+
endpointParams: endpointParams,
|
|
160
|
+
logger: context.logger,
|
|
161
|
+
}));
|
|
162
|
+
};
|
|
163
|
+
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
164
|
+
|
|
165
|
+
class IoTDataPlaneServiceException extends ServiceException {
|
|
166
|
+
constructor(options) {
|
|
167
|
+
super(options);
|
|
168
|
+
Object.setPrototypeOf(this, IoTDataPlaneServiceException.prototype);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
class ConflictException extends IoTDataPlaneServiceException {
|
|
173
|
+
name = "ConflictException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
constructor(opts) {
|
|
176
|
+
super({
|
|
177
|
+
name: "ConflictException",
|
|
178
|
+
$fault: "client",
|
|
179
|
+
...opts,
|
|
180
|
+
});
|
|
181
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
class ForbiddenException extends IoTDataPlaneServiceException {
|
|
185
|
+
name = "ForbiddenException";
|
|
186
|
+
$fault = "client";
|
|
187
|
+
constructor(opts) {
|
|
188
|
+
super({
|
|
189
|
+
name: "ForbiddenException",
|
|
190
|
+
$fault: "client",
|
|
191
|
+
...opts,
|
|
192
|
+
});
|
|
193
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
class InternalFailureException extends IoTDataPlaneServiceException {
|
|
197
|
+
name = "InternalFailureException";
|
|
198
|
+
$fault = "server";
|
|
199
|
+
constructor(opts) {
|
|
200
|
+
super({
|
|
201
|
+
name: "InternalFailureException",
|
|
202
|
+
$fault: "server",
|
|
203
|
+
...opts,
|
|
204
|
+
});
|
|
205
|
+
Object.setPrototypeOf(this, InternalFailureException.prototype);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
class InvalidRequestException extends IoTDataPlaneServiceException {
|
|
209
|
+
name = "InvalidRequestException";
|
|
210
|
+
$fault = "client";
|
|
211
|
+
constructor(opts) {
|
|
212
|
+
super({
|
|
213
|
+
name: "InvalidRequestException",
|
|
214
|
+
$fault: "client",
|
|
215
|
+
...opts,
|
|
216
|
+
});
|
|
217
|
+
Object.setPrototypeOf(this, InvalidRequestException.prototype);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
class ResourceNotFoundException extends IoTDataPlaneServiceException {
|
|
221
|
+
name = "ResourceNotFoundException";
|
|
222
|
+
$fault = "client";
|
|
223
|
+
constructor(opts) {
|
|
224
|
+
super({
|
|
225
|
+
name: "ResourceNotFoundException",
|
|
226
|
+
$fault: "client",
|
|
227
|
+
...opts,
|
|
228
|
+
});
|
|
229
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
class ThrottlingException extends IoTDataPlaneServiceException {
|
|
233
|
+
name = "ThrottlingException";
|
|
234
|
+
$fault = "client";
|
|
235
|
+
constructor(opts) {
|
|
236
|
+
super({
|
|
237
|
+
name: "ThrottlingException",
|
|
238
|
+
$fault: "client",
|
|
239
|
+
...opts,
|
|
240
|
+
});
|
|
241
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
class MethodNotAllowedException extends IoTDataPlaneServiceException {
|
|
245
|
+
name = "MethodNotAllowedException";
|
|
246
|
+
$fault = "client";
|
|
247
|
+
constructor(opts) {
|
|
248
|
+
super({
|
|
249
|
+
name: "MethodNotAllowedException",
|
|
250
|
+
$fault: "client",
|
|
251
|
+
...opts,
|
|
252
|
+
});
|
|
253
|
+
Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
class ServiceUnavailableException extends IoTDataPlaneServiceException {
|
|
257
|
+
name = "ServiceUnavailableException";
|
|
258
|
+
$fault = "server";
|
|
259
|
+
constructor(opts) {
|
|
260
|
+
super({
|
|
261
|
+
name: "ServiceUnavailableException",
|
|
262
|
+
$fault: "server",
|
|
263
|
+
...opts,
|
|
264
|
+
});
|
|
265
|
+
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
class UnauthorizedException extends IoTDataPlaneServiceException {
|
|
269
|
+
name = "UnauthorizedException";
|
|
270
|
+
$fault = "client";
|
|
271
|
+
constructor(opts) {
|
|
272
|
+
super({
|
|
273
|
+
name: "UnauthorizedException",
|
|
274
|
+
$fault: "client",
|
|
275
|
+
...opts,
|
|
276
|
+
});
|
|
277
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
class UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException {
|
|
281
|
+
name = "UnsupportedDocumentEncodingException";
|
|
282
|
+
$fault = "client";
|
|
283
|
+
constructor(opts) {
|
|
284
|
+
super({
|
|
285
|
+
name: "UnsupportedDocumentEncodingException",
|
|
286
|
+
$fault: "client",
|
|
287
|
+
...opts,
|
|
288
|
+
});
|
|
289
|
+
Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
class GatewayTimeoutException extends IoTDataPlaneServiceException {
|
|
293
|
+
name = "GatewayTimeoutException";
|
|
294
|
+
$fault = "server";
|
|
295
|
+
constructor(opts) {
|
|
296
|
+
super({
|
|
297
|
+
name: "GatewayTimeoutException",
|
|
298
|
+
$fault: "server",
|
|
299
|
+
...opts,
|
|
300
|
+
});
|
|
301
|
+
Object.setPrototypeOf(this, GatewayTimeoutException.prototype);
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
class RequestEntityTooLargeException extends IoTDataPlaneServiceException {
|
|
305
|
+
name = "RequestEntityTooLargeException";
|
|
306
|
+
$fault = "client";
|
|
307
|
+
constructor(opts) {
|
|
308
|
+
super({
|
|
309
|
+
name: "RequestEntityTooLargeException",
|
|
310
|
+
$fault: "client",
|
|
311
|
+
...opts,
|
|
312
|
+
});
|
|
313
|
+
Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
const _CE = "ConflictException";
|
|
318
|
+
const _DC = "DeleteConnection";
|
|
319
|
+
const _DCR = "DeleteConnectionRequest";
|
|
320
|
+
const _DTS = "DeleteThingShadow";
|
|
321
|
+
const _DTSR = "DeleteThingShadowRequest";
|
|
322
|
+
const _DTSRe = "DeleteThingShadowResponse";
|
|
323
|
+
const _FE = "ForbiddenException";
|
|
324
|
+
const _GC = "GetConnection";
|
|
325
|
+
const _GCR = "GetConnectionRequest";
|
|
326
|
+
const _GCRe = "GetConnectionResponse";
|
|
327
|
+
const _GRM = "GetRetainedMessage";
|
|
328
|
+
const _GRMR = "GetRetainedMessageRequest";
|
|
329
|
+
const _GRMRe = "GetRetainedMessageResponse";
|
|
330
|
+
const _GTE = "GatewayTimeoutException";
|
|
331
|
+
const _GTS = "GetThingShadow";
|
|
332
|
+
const _GTSR = "GetThingShadowRequest";
|
|
333
|
+
const _GTSRe = "GetThingShadowResponse";
|
|
334
|
+
const _IFE = "InternalFailureException";
|
|
335
|
+
const _IRE = "InvalidRequestException";
|
|
336
|
+
const _LNSFT = "ListNamedShadowsForThing";
|
|
337
|
+
const _LNSFTR = "ListNamedShadowsForThingRequest";
|
|
338
|
+
const _LNSFTRi = "ListNamedShadowsForThingResponse";
|
|
339
|
+
const _LRM = "ListRetainedMessages";
|
|
340
|
+
const _LRMR = "ListRetainedMessagesRequest";
|
|
341
|
+
const _LRMRi = "ListRetainedMessagesResponse";
|
|
342
|
+
const _LS = "ListSubscriptions";
|
|
343
|
+
const _LSR = "ListSubscriptionsRequest";
|
|
344
|
+
const _LSRi = "ListSubscriptionsResponse";
|
|
345
|
+
const _MNAE = "MethodNotAllowedException";
|
|
346
|
+
const _P = "Publish";
|
|
347
|
+
const _PR = "PublishRequest";
|
|
348
|
+
const _RETLE = "RequestEntityTooLargeException";
|
|
349
|
+
const _RML = "RetainedMessageList";
|
|
350
|
+
const _RMS = "RetainedMessageSummary";
|
|
351
|
+
const _RNFE = "ResourceNotFoundException";
|
|
352
|
+
const _SDM = "SendDirectMessage";
|
|
353
|
+
const _SDMR = "SendDirectMessageRequest";
|
|
354
|
+
const _SDMRe = "SendDirectMessageResponse";
|
|
355
|
+
const _SJUP = "SynthesizedJsonUserProperties";
|
|
356
|
+
const _SL = "SubscriptionList";
|
|
357
|
+
const _SS = "SubscriptionSummary";
|
|
358
|
+
const _SUE = "ServiceUnavailableException";
|
|
359
|
+
const _TE = "ThrottlingException";
|
|
360
|
+
const _UDEE = "UnsupportedDocumentEncodingException";
|
|
361
|
+
const _UE = "UnauthorizedException";
|
|
362
|
+
const _UTS = "UpdateThingShadow";
|
|
363
|
+
const _UTSR = "UpdateThingShadowRequest";
|
|
364
|
+
const _UTSRp = "UpdateThingShadowResponse";
|
|
365
|
+
const _a = "application/json";
|
|
366
|
+
const _c = "client";
|
|
367
|
+
const _cD = "correlationData";
|
|
368
|
+
const _cI = "clientId";
|
|
369
|
+
const _cS = "cleanSession";
|
|
370
|
+
const _cSo = "connectedSince";
|
|
371
|
+
const _cT = "contentType";
|
|
372
|
+
const _co = "connected";
|
|
373
|
+
const _con = "confirmation";
|
|
374
|
+
const _dR = "disconnectReason";
|
|
375
|
+
const _dS = "disconnectedSince";
|
|
376
|
+
const _e = "error";
|
|
377
|
+
const _h = "http";
|
|
378
|
+
const _hE = "httpError";
|
|
379
|
+
const _hH = "httpHeader";
|
|
380
|
+
const _hQ = "httpQuery";
|
|
381
|
+
const _iSI = "includeSocketInformation";
|
|
382
|
+
const _kAD = "keepAliveDuration";
|
|
383
|
+
const _lMT = "lastModifiedTime";
|
|
384
|
+
const _m = "message";
|
|
385
|
+
const _mE = "messageExpiry";
|
|
386
|
+
const _mR = "maxResults";
|
|
387
|
+
const _mT = "mediaType";
|
|
388
|
+
const _n = "name";
|
|
389
|
+
const _nT = "nextToken";
|
|
390
|
+
const _p = "payload";
|
|
391
|
+
const _pFI = "payloadFormatIndicator";
|
|
392
|
+
const _pS = "pageSize";
|
|
393
|
+
const _pSa = "payloadSize";
|
|
394
|
+
const _pWM = "preventWillMessage";
|
|
395
|
+
const _q = "qos";
|
|
396
|
+
const _r = "results";
|
|
397
|
+
const _rT = "retainedTopics";
|
|
398
|
+
const _rTe = "responseTopic";
|
|
399
|
+
const _re = "retain";
|
|
400
|
+
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.iotdataplane";
|
|
401
|
+
const _sE = "sessionExpiry";
|
|
402
|
+
const _sI = "sourceIp";
|
|
403
|
+
const _sN = "shadowName";
|
|
404
|
+
const _sP = "sourcePort";
|
|
405
|
+
const _se = "server";
|
|
406
|
+
const _su = "subscriptions";
|
|
407
|
+
const _t = "topic";
|
|
408
|
+
const _tF = "topicFilter";
|
|
409
|
+
const _tI = "targetIp";
|
|
410
|
+
const _tIr = "traceId";
|
|
411
|
+
const _tN = "thingName";
|
|
412
|
+
const _tP = "targetPort";
|
|
413
|
+
const _ti = "timestamp";
|
|
414
|
+
const _tim = "timeout";
|
|
415
|
+
const _uP = "userProperties";
|
|
416
|
+
const _vEI = "vpcEndpointId";
|
|
417
|
+
const _xamcd = "x-amz-mqtt5-correlation-data";
|
|
418
|
+
const _xampfi = "x-amz-mqtt5-payload-format-indicator";
|
|
419
|
+
const _xamup = "x-amz-mqtt5-user-properties";
|
|
420
|
+
const n0 = "com.amazonaws.iotdataplane";
|
|
421
|
+
const _s_registry = TypeRegistry.for(_s);
|
|
422
|
+
var IoTDataPlaneServiceException$ = [-3, _s, "IoTDataPlaneServiceException", 0, [], []];
|
|
423
|
+
_s_registry.registerError(IoTDataPlaneServiceException$, IoTDataPlaneServiceException);
|
|
424
|
+
const n0_registry = TypeRegistry.for(n0);
|
|
425
|
+
var ConflictException$ = [-3, n0, _CE,
|
|
426
|
+
{ [_e]: _c, [_hE]: 409 },
|
|
427
|
+
[_m],
|
|
428
|
+
[0]
|
|
429
|
+
];
|
|
430
|
+
n0_registry.registerError(ConflictException$, ConflictException);
|
|
431
|
+
var ForbiddenException$ = [-3, n0, _FE,
|
|
432
|
+
{ [_e]: _c, [_hE]: 403 },
|
|
433
|
+
[_m],
|
|
434
|
+
[0]
|
|
435
|
+
];
|
|
436
|
+
n0_registry.registerError(ForbiddenException$, ForbiddenException);
|
|
437
|
+
var GatewayTimeoutException$ = [-3, n0, _GTE,
|
|
438
|
+
{ [_e]: _se, [_hE]: 504 },
|
|
439
|
+
[_m],
|
|
440
|
+
[0]
|
|
441
|
+
];
|
|
442
|
+
n0_registry.registerError(GatewayTimeoutException$, GatewayTimeoutException);
|
|
443
|
+
var InternalFailureException$ = [-3, n0, _IFE,
|
|
444
|
+
{ [_e]: _se, [_hE]: 500 },
|
|
445
|
+
[_m],
|
|
446
|
+
[0]
|
|
447
|
+
];
|
|
448
|
+
n0_registry.registerError(InternalFailureException$, InternalFailureException);
|
|
449
|
+
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
450
|
+
{ [_e]: _c, [_hE]: 400 },
|
|
451
|
+
[_m],
|
|
452
|
+
[0]
|
|
453
|
+
];
|
|
454
|
+
n0_registry.registerError(InvalidRequestException$, InvalidRequestException);
|
|
455
|
+
var MethodNotAllowedException$ = [-3, n0, _MNAE,
|
|
456
|
+
{ [_e]: _c, [_hE]: 405 },
|
|
457
|
+
[_m],
|
|
458
|
+
[0]
|
|
459
|
+
];
|
|
460
|
+
n0_registry.registerError(MethodNotAllowedException$, MethodNotAllowedException);
|
|
461
|
+
var RequestEntityTooLargeException$ = [-3, n0, _RETLE,
|
|
462
|
+
{ [_e]: _c, [_hE]: 413 },
|
|
463
|
+
[_m],
|
|
464
|
+
[0]
|
|
465
|
+
];
|
|
466
|
+
n0_registry.registerError(RequestEntityTooLargeException$, RequestEntityTooLargeException);
|
|
467
|
+
var ResourceNotFoundException$ = [-3, n0, _RNFE,
|
|
468
|
+
{ [_e]: _c, [_hE]: 404 },
|
|
469
|
+
[_m],
|
|
470
|
+
[0]
|
|
471
|
+
];
|
|
472
|
+
n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
|
|
473
|
+
var ServiceUnavailableException$ = [-3, n0, _SUE,
|
|
474
|
+
{ [_e]: _se, [_hE]: 503 },
|
|
475
|
+
[_m],
|
|
476
|
+
[0]
|
|
477
|
+
];
|
|
478
|
+
n0_registry.registerError(ServiceUnavailableException$, ServiceUnavailableException);
|
|
479
|
+
var ThrottlingException$ = [-3, n0, _TE,
|
|
480
|
+
{ [_e]: _c, [_hE]: 429 },
|
|
481
|
+
[_m],
|
|
482
|
+
[0]
|
|
483
|
+
];
|
|
484
|
+
n0_registry.registerError(ThrottlingException$, ThrottlingException);
|
|
485
|
+
var UnauthorizedException$ = [-3, n0, _UE,
|
|
486
|
+
{ [_e]: _c, [_hE]: 401 },
|
|
487
|
+
[_m],
|
|
488
|
+
[0]
|
|
489
|
+
];
|
|
490
|
+
n0_registry.registerError(UnauthorizedException$, UnauthorizedException);
|
|
491
|
+
var UnsupportedDocumentEncodingException$ = [-3, n0, _UDEE,
|
|
492
|
+
{ [_e]: _c, [_hE]: 415 },
|
|
493
|
+
[_m],
|
|
494
|
+
[0]
|
|
495
|
+
];
|
|
496
|
+
n0_registry.registerError(UnsupportedDocumentEncodingException$, UnsupportedDocumentEncodingException);
|
|
497
|
+
const errorTypeRegistries = [
|
|
498
|
+
_s_registry,
|
|
499
|
+
n0_registry,
|
|
500
|
+
];
|
|
501
|
+
var SynthesizedJsonUserProperties = [0, n0, _SJUP, { [_mT]: _a }, 0];
|
|
502
|
+
var DeleteConnectionRequest$ = [3, n0, _DCR,
|
|
503
|
+
0,
|
|
504
|
+
[_cI, _cS, _pWM],
|
|
505
|
+
[[0, 1], [2, { [_hQ]: _cS }], [2, { [_hQ]: _pWM }]], 1
|
|
506
|
+
];
|
|
507
|
+
var DeleteThingShadowRequest$ = [3, n0, _DTSR,
|
|
508
|
+
0,
|
|
509
|
+
[_tN, _sN],
|
|
510
|
+
[[0, 1], [0, { [_hQ]: _n }]], 1
|
|
511
|
+
];
|
|
512
|
+
var DeleteThingShadowResponse$ = [3, n0, _DTSRe,
|
|
513
|
+
0,
|
|
514
|
+
[_p],
|
|
515
|
+
[[21, 16]], 1
|
|
516
|
+
];
|
|
517
|
+
var GetConnectionRequest$ = [3, n0, _GCR,
|
|
518
|
+
0,
|
|
519
|
+
[_cI, _iSI],
|
|
520
|
+
[[0, 1], [2, { [_hQ]: _iSI }]], 1
|
|
521
|
+
];
|
|
522
|
+
var GetConnectionResponse$ = [3, n0, _GCRe,
|
|
523
|
+
0,
|
|
524
|
+
[_co, _tN, _cS, _sI, _sP, _tI, _tP, _kAD, _cSo, _dS, _dR, _sE, _cI, _vEI],
|
|
525
|
+
[2, 0, 2, 0, 1, 0, 1, 1, 1, 1, 0, 1, 0, 0]
|
|
526
|
+
];
|
|
527
|
+
var GetRetainedMessageRequest$ = [3, n0, _GRMR,
|
|
528
|
+
0,
|
|
529
|
+
[_t],
|
|
530
|
+
[[0, 1]], 1
|
|
531
|
+
];
|
|
532
|
+
var GetRetainedMessageResponse$ = [3, n0, _GRMRe,
|
|
533
|
+
0,
|
|
534
|
+
[_t, _p, _q, _lMT, _uP],
|
|
535
|
+
[0, 21, 1, 1, 21]
|
|
536
|
+
];
|
|
537
|
+
var GetThingShadowRequest$ = [3, n0, _GTSR,
|
|
538
|
+
0,
|
|
539
|
+
[_tN, _sN],
|
|
540
|
+
[[0, 1], [0, { [_hQ]: _n }]], 1
|
|
541
|
+
];
|
|
542
|
+
var GetThingShadowResponse$ = [3, n0, _GTSRe,
|
|
543
|
+
0,
|
|
544
|
+
[_p],
|
|
545
|
+
[[21, 16]]
|
|
546
|
+
];
|
|
547
|
+
var ListNamedShadowsForThingRequest$ = [3, n0, _LNSFTR,
|
|
548
|
+
0,
|
|
549
|
+
[_tN, _nT, _pS],
|
|
550
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _pS }]], 1
|
|
551
|
+
];
|
|
552
|
+
var ListNamedShadowsForThingResponse$ = [3, n0, _LNSFTRi,
|
|
553
|
+
0,
|
|
554
|
+
[_r, _nT, _ti],
|
|
555
|
+
[64 | 0, 0, 1]
|
|
556
|
+
];
|
|
557
|
+
var ListRetainedMessagesRequest$ = [3, n0, _LRMR,
|
|
558
|
+
0,
|
|
559
|
+
[_nT, _mR],
|
|
560
|
+
[[0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]]
|
|
561
|
+
];
|
|
562
|
+
var ListRetainedMessagesResponse$ = [3, n0, _LRMRi,
|
|
563
|
+
0,
|
|
564
|
+
[_rT, _nT],
|
|
565
|
+
[() => RetainedMessageList, 0]
|
|
566
|
+
];
|
|
567
|
+
var ListSubscriptionsRequest$ = [3, n0, _LSR,
|
|
568
|
+
0,
|
|
569
|
+
[_cI, _nT, _mR],
|
|
570
|
+
[[0, 1], [0, { [_hQ]: _nT }], [1, { [_hQ]: _mR }]], 1
|
|
571
|
+
];
|
|
572
|
+
var ListSubscriptionsResponse$ = [3, n0, _LSRi,
|
|
573
|
+
0,
|
|
574
|
+
[_su, _nT],
|
|
575
|
+
[() => SubscriptionList, 0]
|
|
576
|
+
];
|
|
577
|
+
var PublishRequest$ = [3, n0, _PR,
|
|
578
|
+
0,
|
|
579
|
+
[_t, _q, _re, _p, _uP, _pFI, _cT, _rTe, _cD, _mE],
|
|
580
|
+
[[0, 1], [1, { [_hQ]: _q }], [2, { [_hQ]: _re }], [21, 16], [() => SynthesizedJsonUserProperties, { [_hH]: _xamup }], [0, { [_hH]: _xampfi }], [0, { [_hQ]: _cT }], [0, { [_hQ]: _rTe }], [0, { [_hH]: _xamcd }], [1, { [_hQ]: _mE }]], 1
|
|
581
|
+
];
|
|
582
|
+
var RetainedMessageSummary$ = [3, n0, _RMS,
|
|
583
|
+
0,
|
|
584
|
+
[_t, _pSa, _q, _lMT],
|
|
585
|
+
[0, 1, 1, 1]
|
|
586
|
+
];
|
|
587
|
+
var SendDirectMessageRequest$ = [3, n0, _SDMR,
|
|
588
|
+
0,
|
|
589
|
+
[_cI, _t, _cT, _rTe, _con, _tim, _p, _uP, _pFI, _cD],
|
|
590
|
+
[[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
|
|
591
|
+
];
|
|
592
|
+
var SendDirectMessageResponse$ = [3, n0, _SDMRe,
|
|
593
|
+
0,
|
|
594
|
+
[_m, _tIr],
|
|
595
|
+
[0, 0]
|
|
596
|
+
];
|
|
597
|
+
var SubscriptionSummary$ = [3, n0, _SS,
|
|
598
|
+
0,
|
|
599
|
+
[_tF, _q],
|
|
600
|
+
[0, 1], 2
|
|
601
|
+
];
|
|
602
|
+
var UpdateThingShadowRequest$ = [3, n0, _UTSR,
|
|
603
|
+
0,
|
|
604
|
+
[_tN, _p, _sN],
|
|
605
|
+
[[0, 1], [21, 16], [0, { [_hQ]: _n }]], 2
|
|
606
|
+
];
|
|
607
|
+
var UpdateThingShadowResponse$ = [3, n0, _UTSRp,
|
|
608
|
+
0,
|
|
609
|
+
[_p],
|
|
610
|
+
[[21, 16]]
|
|
611
|
+
];
|
|
612
|
+
var __Unit = "unit";
|
|
613
|
+
var RetainedMessageList = [1, n0, _RML,
|
|
614
|
+
0, () => RetainedMessageSummary$
|
|
615
|
+
];
|
|
616
|
+
var SubscriptionList = [1, n0, _SL,
|
|
617
|
+
0, () => SubscriptionSummary$
|
|
618
|
+
];
|
|
619
|
+
var DeleteConnection$ = [9, n0, _DC,
|
|
620
|
+
{ [_h]: ["DELETE", "/connections/{clientId}", 200] }, () => DeleteConnectionRequest$, () => __Unit
|
|
621
|
+
];
|
|
622
|
+
var DeleteThingShadow$ = [9, n0, _DTS,
|
|
623
|
+
{ [_h]: ["DELETE", "/things/{thingName}/shadow", 200] }, () => DeleteThingShadowRequest$, () => DeleteThingShadowResponse$
|
|
624
|
+
];
|
|
625
|
+
var GetConnection$ = [9, n0, _GC,
|
|
626
|
+
{ [_h]: ["GET", "/connections/{clientId}", 200] }, () => GetConnectionRequest$, () => GetConnectionResponse$
|
|
627
|
+
];
|
|
628
|
+
var GetRetainedMessage$ = [9, n0, _GRM,
|
|
629
|
+
{ [_h]: ["GET", "/retainedMessage/{topic}", 200] }, () => GetRetainedMessageRequest$, () => GetRetainedMessageResponse$
|
|
630
|
+
];
|
|
631
|
+
var GetThingShadow$ = [9, n0, _GTS,
|
|
632
|
+
{ [_h]: ["GET", "/things/{thingName}/shadow", 200] }, () => GetThingShadowRequest$, () => GetThingShadowResponse$
|
|
633
|
+
];
|
|
634
|
+
var ListNamedShadowsForThing$ = [9, n0, _LNSFT,
|
|
635
|
+
{ [_h]: ["GET", "/api/things/shadow/ListNamedShadowsForThing/{thingName}", 200] }, () => ListNamedShadowsForThingRequest$, () => ListNamedShadowsForThingResponse$
|
|
636
|
+
];
|
|
637
|
+
var ListRetainedMessages$ = [9, n0, _LRM,
|
|
638
|
+
{ [_h]: ["GET", "/retainedMessage", 200] }, () => ListRetainedMessagesRequest$, () => ListRetainedMessagesResponse$
|
|
639
|
+
];
|
|
640
|
+
var ListSubscriptions$ = [9, n0, _LS,
|
|
641
|
+
{ [_h]: ["GET", "/connections/{clientId}/subscriptions", 200] }, () => ListSubscriptionsRequest$, () => ListSubscriptionsResponse$
|
|
642
|
+
];
|
|
643
|
+
var Publish$ = [9, n0, _P,
|
|
644
|
+
{ [_h]: ["POST", "/topics/{topic}", 200] }, () => PublishRequest$, () => __Unit
|
|
645
|
+
];
|
|
646
|
+
var SendDirectMessage$ = [9, n0, _SDM,
|
|
647
|
+
{ [_h]: ["POST", "/connections/{clientId}/messages", 200] }, () => SendDirectMessageRequest$, () => SendDirectMessageResponse$
|
|
648
|
+
];
|
|
649
|
+
var UpdateThingShadow$ = [9, n0, _UTS,
|
|
650
|
+
{ [_h]: ["POST", "/things/{thingName}/shadow", 200] }, () => UpdateThingShadowRequest$, () => UpdateThingShadowResponse$
|
|
651
|
+
];
|
|
652
|
+
|
|
653
|
+
const getRuntimeConfig$1 = (config) => {
|
|
654
|
+
return {
|
|
655
|
+
apiVersion: "2015-05-28",
|
|
656
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
657
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
658
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
659
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
660
|
+
extensions: config?.extensions ?? [],
|
|
661
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultIoTDataPlaneHttpAuthSchemeProvider,
|
|
662
|
+
httpAuthSchemes: config?.httpAuthSchemes ?? [
|
|
663
|
+
{
|
|
664
|
+
schemeId: "aws.auth#sigv4",
|
|
665
|
+
identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
|
|
666
|
+
signer: new AwsSdkSigV4Signer(),
|
|
667
|
+
},
|
|
668
|
+
],
|
|
669
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
670
|
+
protocol: config?.protocol ?? AwsRestJsonProtocol,
|
|
671
|
+
protocolSettings: config?.protocolSettings ?? {
|
|
672
|
+
defaultNamespace: "com.amazonaws.iotdataplane",
|
|
673
|
+
errorTypeRegistries,
|
|
674
|
+
version: "2015-05-28",
|
|
675
|
+
serviceTarget: "IotMoonrakerService",
|
|
676
|
+
},
|
|
677
|
+
serviceId: config?.serviceId ?? "IoT Data Plane",
|
|
678
|
+
sha256: config?.sha256 ?? Sha256,
|
|
679
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
680
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
681
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
|
|
685
|
+
const getRuntimeConfig = (config) => {
|
|
686
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
687
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
688
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
689
|
+
const clientSharedValues = getRuntimeConfig$1(config);
|
|
690
|
+
emitWarningIfUnsupportedVersion$1(process.version);
|
|
691
|
+
const loaderConfig = {
|
|
692
|
+
profile: config?.profile,
|
|
693
|
+
logger: clientSharedValues.logger,
|
|
694
|
+
};
|
|
695
|
+
return {
|
|
696
|
+
...clientSharedValues,
|
|
697
|
+
...config,
|
|
698
|
+
runtime: "node",
|
|
699
|
+
defaultsMode,
|
|
700
|
+
authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
|
|
701
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
702
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
|
|
703
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
704
|
+
maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
|
|
705
|
+
region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
|
|
706
|
+
requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
707
|
+
retryMode: config?.retryMode ??
|
|
708
|
+
loadConfig({
|
|
709
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
710
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
711
|
+
}, config),
|
|
712
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
713
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
714
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
|
|
715
|
+
userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
|
|
716
|
+
};
|
|
717
|
+
};
|
|
718
|
+
|
|
34
719
|
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
720
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
721
|
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
@@ -273,19 +958,79 @@ const PayloadFormatIndicator = {
|
|
|
273
958
|
UTF8_DATA: "UTF8_DATA",
|
|
274
959
|
};
|
|
275
960
|
|
|
961
|
+
exports.ConflictException = ConflictException;
|
|
962
|
+
exports.ConflictException$ = ConflictException$;
|
|
963
|
+
exports.DeleteConnection$ = DeleteConnection$;
|
|
276
964
|
exports.DeleteConnectionCommand = DeleteConnectionCommand;
|
|
965
|
+
exports.DeleteConnectionRequest$ = DeleteConnectionRequest$;
|
|
966
|
+
exports.DeleteThingShadow$ = DeleteThingShadow$;
|
|
277
967
|
exports.DeleteThingShadowCommand = DeleteThingShadowCommand;
|
|
968
|
+
exports.DeleteThingShadowRequest$ = DeleteThingShadowRequest$;
|
|
969
|
+
exports.DeleteThingShadowResponse$ = DeleteThingShadowResponse$;
|
|
970
|
+
exports.ForbiddenException = ForbiddenException;
|
|
971
|
+
exports.ForbiddenException$ = ForbiddenException$;
|
|
972
|
+
exports.GatewayTimeoutException = GatewayTimeoutException;
|
|
973
|
+
exports.GatewayTimeoutException$ = GatewayTimeoutException$;
|
|
974
|
+
exports.GetConnection$ = GetConnection$;
|
|
278
975
|
exports.GetConnectionCommand = GetConnectionCommand;
|
|
976
|
+
exports.GetConnectionRequest$ = GetConnectionRequest$;
|
|
977
|
+
exports.GetConnectionResponse$ = GetConnectionResponse$;
|
|
978
|
+
exports.GetRetainedMessage$ = GetRetainedMessage$;
|
|
279
979
|
exports.GetRetainedMessageCommand = GetRetainedMessageCommand;
|
|
980
|
+
exports.GetRetainedMessageRequest$ = GetRetainedMessageRequest$;
|
|
981
|
+
exports.GetRetainedMessageResponse$ = GetRetainedMessageResponse$;
|
|
982
|
+
exports.GetThingShadow$ = GetThingShadow$;
|
|
280
983
|
exports.GetThingShadowCommand = GetThingShadowCommand;
|
|
984
|
+
exports.GetThingShadowRequest$ = GetThingShadowRequest$;
|
|
985
|
+
exports.GetThingShadowResponse$ = GetThingShadowResponse$;
|
|
986
|
+
exports.InternalFailureException = InternalFailureException;
|
|
987
|
+
exports.InternalFailureException$ = InternalFailureException$;
|
|
988
|
+
exports.InvalidRequestException = InvalidRequestException;
|
|
989
|
+
exports.InvalidRequestException$ = InvalidRequestException$;
|
|
281
990
|
exports.IoTDataPlane = IoTDataPlane;
|
|
282
991
|
exports.IoTDataPlaneClient = IoTDataPlaneClient;
|
|
992
|
+
exports.IoTDataPlaneServiceException = IoTDataPlaneServiceException;
|
|
993
|
+
exports.IoTDataPlaneServiceException$ = IoTDataPlaneServiceException$;
|
|
994
|
+
exports.ListNamedShadowsForThing$ = ListNamedShadowsForThing$;
|
|
283
995
|
exports.ListNamedShadowsForThingCommand = ListNamedShadowsForThingCommand;
|
|
996
|
+
exports.ListNamedShadowsForThingRequest$ = ListNamedShadowsForThingRequest$;
|
|
997
|
+
exports.ListNamedShadowsForThingResponse$ = ListNamedShadowsForThingResponse$;
|
|
998
|
+
exports.ListRetainedMessages$ = ListRetainedMessages$;
|
|
284
999
|
exports.ListRetainedMessagesCommand = ListRetainedMessagesCommand;
|
|
1000
|
+
exports.ListRetainedMessagesRequest$ = ListRetainedMessagesRequest$;
|
|
1001
|
+
exports.ListRetainedMessagesResponse$ = ListRetainedMessagesResponse$;
|
|
1002
|
+
exports.ListSubscriptions$ = ListSubscriptions$;
|
|
285
1003
|
exports.ListSubscriptionsCommand = ListSubscriptionsCommand;
|
|
1004
|
+
exports.ListSubscriptionsRequest$ = ListSubscriptionsRequest$;
|
|
1005
|
+
exports.ListSubscriptionsResponse$ = ListSubscriptionsResponse$;
|
|
1006
|
+
exports.MethodNotAllowedException = MethodNotAllowedException;
|
|
1007
|
+
exports.MethodNotAllowedException$ = MethodNotAllowedException$;
|
|
286
1008
|
exports.PayloadFormatIndicator = PayloadFormatIndicator;
|
|
1009
|
+
exports.Publish$ = Publish$;
|
|
287
1010
|
exports.PublishCommand = PublishCommand;
|
|
1011
|
+
exports.PublishRequest$ = PublishRequest$;
|
|
1012
|
+
exports.RequestEntityTooLargeException = RequestEntityTooLargeException;
|
|
1013
|
+
exports.RequestEntityTooLargeException$ = RequestEntityTooLargeException$;
|
|
1014
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1015
|
+
exports.ResourceNotFoundException$ = ResourceNotFoundException$;
|
|
1016
|
+
exports.RetainedMessageSummary$ = RetainedMessageSummary$;
|
|
1017
|
+
exports.SendDirectMessage$ = SendDirectMessage$;
|
|
288
1018
|
exports.SendDirectMessageCommand = SendDirectMessageCommand;
|
|
1019
|
+
exports.SendDirectMessageRequest$ = SendDirectMessageRequest$;
|
|
1020
|
+
exports.SendDirectMessageResponse$ = SendDirectMessageResponse$;
|
|
1021
|
+
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
1022
|
+
exports.ServiceUnavailableException$ = ServiceUnavailableException$;
|
|
1023
|
+
exports.SubscriptionSummary$ = SubscriptionSummary$;
|
|
1024
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1025
|
+
exports.ThrottlingException$ = ThrottlingException$;
|
|
1026
|
+
exports.UnauthorizedException = UnauthorizedException;
|
|
1027
|
+
exports.UnauthorizedException$ = UnauthorizedException$;
|
|
1028
|
+
exports.UnsupportedDocumentEncodingException = UnsupportedDocumentEncodingException;
|
|
1029
|
+
exports.UnsupportedDocumentEncodingException$ = UnsupportedDocumentEncodingException$;
|
|
1030
|
+
exports.UpdateThingShadow$ = UpdateThingShadow$;
|
|
289
1031
|
exports.UpdateThingShadowCommand = UpdateThingShadowCommand;
|
|
1032
|
+
exports.UpdateThingShadowRequest$ = UpdateThingShadowRequest$;
|
|
1033
|
+
exports.UpdateThingShadowResponse$ = UpdateThingShadowResponse$;
|
|
1034
|
+
exports.errorTypeRegistries = errorTypeRegistries;
|
|
290
1035
|
exports.paginateListRetainedMessages = paginateListRetainedMessages;
|
|
291
1036
|
exports.paginateListSubscriptions = paginateListSubscriptions;
|